FrameworkComputer / EmbeddedController

Embedded Controller firmware for the Framework Laptop
BSD 3-Clause "New" or "Revised" License
950 stars 64 forks source link

Option to disable power LED entirely #11

Open hauntingEcho opened 2 years ago

hauntingEcho commented 2 years ago

When playing music/youtube/whatever with the screen off as I go to sleep, the power LED lights up the whole room. Options to dim it were added here, but the ability to disable it entirely would be appreciated. This has also been mentioned in the discussion thread.

Putting electrical tape over a button gets a bit messier than putting it over the charge lights, and I haven't got up the courage to start cutting on the board just yet :)

hauntingEcho commented 2 years ago

Exposing it via /sys/class/leds could also be nice (because we could set up keybinds), but the possibility of that is deeper than my firmware knowledge goes.

james2432 commented 1 year ago

I wish this was merged :(

hauntingEcho commented 2 weeks ago

Looks like /sys/class/leds support may be available with kernel 6.11: https://old.reddit.com/r/framework/comments/1g8gbm2/what/lt0fxia/

AkechiShiro commented 2 weeks ago

@hauntingEcho can confirm this works on kernel 6.11, I'm on Framework 13th AMD.

I can shutdown the power LED with

echo 0 | sudo tee /sys/class/leds/chromeos:white:power/brightness

Full brightness

echo 1 | sudo tee /sys/class/leds/chromeos:white:power/brightness

Here are also the other leds :

chromeos::kbd_backlight chromeos:multicolor:charging chromeos:white:power input0::capslock input0::numlock input0::scrolllock

EDIT: Not sure if there is any way to restore the default behavior afterwards, and I can't seem to be able to lower the brightness, it is either full or nothing, putting values between 0 and 100 do nothing, if value is >0 then the light looks like it's at full brightness. EDIT 2: Add Kernel version: Linux 6.11.3 #1-NixOS SMP PREEMPT_DYNAMIC Thu Oct 10 10:04:18 UTC 2024 x86_64 GNU/Linux