Disable LED indicators via systemd

The LED indicators on the Framework Laptop can be quite bright in a dark room, even the low option. For example, when I leave the laptop open in the bedroom at night, the “breathing” power button LED can illuminate the ceiling.

If you prefer something closer to the MacBook experience—no power button LED—here’s a simple systemd approach to disable both power button and charging LEDs at boot.

Create a systemd service

Create /etc/systemd/system/led-off.service

[Unit]
Description=Turn off power and charging LEDs
After=multi-user.target

[Service]
Type=oneshot
ExecStart=/usr/bin/sh -c 'echo 0 > /sys/class/leds/chromeos:white:power/brightness; echo 0 > /sys/class/leds/chromeos:multicolor:charging/brightness'

[Install]
WantedBy=multi-user.target

Enable the service

sudo systemctl daemon-reload
sudo systemctl enable led-off.service
sudo systemctl start led-off.service

Tested on:

  • Fedora 43
  • Kernel 6.17
  • BIOS 3.16
  • Framework Laptop 13 (AMD 7640U)
3 Likes

You are amazing, there’s also /sys/class/leds/chromeos:multicolor:charging/ for the charging LED. The service above includes turning off this LED.

Are these directories new?

Glad you like it! Yes. The systemd script will turn off both charging and power button LED. And I guess the directory was changed at some point. As this post in 2021 suggested a different directory structure.