10
3
I would like turn on/turn off some of my leds running a command on linux.
I use Ubuntu 12.04 LTS.
I tried
xset led named "Scroll Lock"
xset led named "Num Lock"
xset led 2 (this is the number of Scroll Lock as `xset q` says)
xset led 1
but nothing works.
Tried
setleds +num
setleds +scroll
but I got a error message saying Error reading the current settings of flags. Maybe you're not on the console?
(I was in a terminal).
So, how can I perform this?
Note that
xdotool key Num_Lock
is not as innocent as turning a LED on or off; It is the equivalent of actually pressing the key! – Serge Stroobandt – 2018-11-04T12:14:46.403This should be the accepted answer. Best solution I've ever seen. Thank you! The lights are so annoying! – jocap – 2014-05-13T21:22:20.480