LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Turning on Keyboard LEDs on startup (https://www.linuxquestions.org/questions/linux-newbie-8/turning-on-keyboard-leds-on-startup-78585/)

ganninu 08-03-2003 12:02 PM

Turning on Keyboard LEDs on startup
 
I don't know you guys, but I'm a bit lazy to turn on the Num Lock led each time I boot Linux. Windoze does it automatically. So i did some research and I concluded that in order to do it I must modify the /etc/X11/XF86Config file... There are some references about three LEDs in that file, but I couldn't undertand them. Any suggestions?

antken 08-03-2003 12:40 PM

on start up my mandrake server does this in a startup file

setleds -D +num

and to take it off:

setleds -D -num

just put that in a start up file and your off

ganninu 08-03-2003 06:25 PM

yup it really works. thanks.

ganninu 08-03-2003 06:32 PM

...however strangely enough this does not work on RED HAT 9... it gives me this error:

KDGKBLED: Invalid argument
Error reading current flags setting. Maybe you are not on the console?


Any suggestions?

antken 08-03-2003 08:01 PM

Quote:

yup it really works. thanks.
no problem



Quote:

KDGKBLED: Invalid argument
i should have just posted the hole line out of my start up script D'OH!

basically to make the numlock come on on all the screens it does a mini loop

in that loop it does this:

setleds -D +num < /dev/ttyX

where /dev/ttyx is the console your on e.g. /dev/tty6

have a play
and let us know

ganninu 08-04-2003 02:23 AM

yes i've tested it with that script (infact on mandy it works...) The problem is in RedHat Linux (apologies, that error came up prior to the script), but still no LEDs light after that script (and no errors)


All times are GMT -5. The time now is 12:09 AM.