How to turn on/turn off leds by terminal?

Posted by GarouDan on Super User See other posts from Super User or by GarouDan
Published on 2012-06-16T00:32:42Z Indexed on 2012/06/16 9:18 UTC
Read the original article Hit count: 209

Filed under:
|
|
|
|

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?

© Super User or respective owner

Related posts about keyboard

Related posts about terminal