You are not logged in.

#1 2023-03-10 11:31:44

sira
Member
Registered: 2023-02-14
Posts: 12

Lenovo Power Button Light

Hello everyone, I have an issue:
My laptop (Lenovo Thinkbook 15-iil) has a very bright power button light, and this very harm my eyes, I want a way to disable that!
thanks for your help smile

Offline

#2 2023-03-10 14:32:42

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,520
Website

Re: Lenovo Power Button Light

Find it's brightness under /sys/class/leds, mine is at /sys/class/leds/tpacpi::power/brightness, then set this to zero to confirm it works:

# echo 0 > /sys/class/leds/tpacpi::power/brightness

If that works, you just need to make that automatic at boot up.  There are a few approaches for this, though I think a systemd-tmpfiles approach might be the currently most recommended.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2023-03-10 15:53:16

sira
Member
Registered: 2023-02-14
Posts: 12

Re: Lenovo Power Button Light

Trilby wrote:

Find it's brightness under /sys/class/leds, mine is at /sys/class/leds/tpacpi::power/brightness

I don't have tpacpi::power, it's for me:

ls /sys/class/leds/
input3::capslock  input3::numlock  input3::scrolllock  phy0-led

can be "phy0-led" for me??

Offline

#4 2023-03-10 16:43:43

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,520
Website

Re: Lenovo Power Button Light

No, phy0-led is a network card indicator.  It seems your thinkbook isn't covered by the thinkpad module or any other default kernel modules.  There may be a third party module for it, or you might be able to find some other sys interface that covers it.  Check the following for candidates:

find -L /sys/class/ -maxdepth 4 -iname brightness

Of course there's also the simple low-tech solution of a bit of electrical tape.

Last edited by Trilby (2023-03-10 16:44:07)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2023-03-12 17:14:08

sira
Member
Registered: 2023-02-14
Posts: 12

Re: Lenovo Power Button Light

Trilby wrote:

here may be a third party module for it, or you might be able to find some other sys interface that covers it.  Check the following for candidates:

find -L /sys/class/ -maxdepth 4 -iname brightness | curl -F 'file=@-' 0x0.st

http://0x0.st/HiYm.txt
Trilby wrote:

Of course there's also the simple low-tech solution of a bit of electrical tape.

I think I should go back to the same. smile

Offline

Board footer

Powered by FluxBB