Created
October 26, 2018 17:44
-
-
Save ps1dr3x/b15c62eafb388ddf8bb7d3896d1a1cee to your computer and use it in GitHub Desktop.
Turn on keyboard backlight/leds on wayland (xset led 3 alternative)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# "input0::scrolllock" might be different (?) | |
# On | |
sudo sh -c 'echo 1 > /sys/class/leds/input0::scrolllock/brightness' | |
# Off | |
# sudo sh -c 'echo 0 > /sys/class/leds/input0::scrolllock/brightness' |
how to learn the input device?
I've made a Systemd task to detect and force the LEDs to turn on periodically.
There's the repository
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hmm.. Maybe you have a daemon or something else running and rewriting the value @aevim @Tryware, maybe you could try to monitor the i/o operations on that path. I guess the behavior of this operation is also dependent on the keyboard's hardware, firmware and drivers. I changed keyboard and I don't need this workaround anymore, but in my case for example I had to put that in a 5 seconds cronjob because for some reasons the value was rewritten to 0 every time I was pressing the CapsLock key (but only in that case as far as I remember).