View Full Version : Keyboard leds in X
habdin
Salamo 3alaikom,
I have long wondered how to make the Numlock by default go on in X. I have found a way of doing it in virtual consoles however I don't care much about virtual consoles. I have found this ability in M$ Windows. I really don't know a way of making this available and permanent in X. Anyone knows how?
Salam.
alaa
how about setting it on from the BIOS setup.
habdin
Salamo 3alaikom,
It is done in the Bios but it is disabled within Linux (closes) when you go in virtual consoles and in X. I don't know what to do to let it go on.
Note: I noticed that there is an ability in Mandrake to make the Numlock by default be on like in Windows. I always wanted to know how was this done in MDK.
Salam.
^3aFrEt^
it is the same here
i remember i searched this problem b4 but i really don`t remember what i reached :rolleyes:
habdin
Originally posted by ^3aFrEt^
it is the same here
i remember i searched this problem b4 but i really don`t remember what i reached :rolleyes:
Ya farheti beek ya ^3fret^.
Salamo 3alaikom.
alaa
in Mandrake it is done through a command called setleds.
setleds only works from the console, but I suppose the X session may inherit the console LED properties so you can try it.
cheers,
Alaa
habdin
Salamo 3alaikom,
setleds is a known command for setting Leds on and off for consoles. The question is: Is it possible to use it for setting Numlock to go on via xinit.rc?
Salam.
sattia
If I got u right then if u use KDE; u can simply goto Control Center -> Peripherals -> Keyboard ull find the follwoing section:
NumLock on KDE startup:
- Turn On
- Turn Off
- Leave unchanged
I hope this answers ur question
habdin
Salamo 3alaikom,
I am unfortunately a GNOME user. GNOME have a session saving property. I thought of a script that could be run at Gnome initiation to make Numlock be on probably via setleds. How about that? It is good to see that KDE has this property.
Salam.
alaa
yes you can put setled in the init script,
here is how Mandrake does it
for tty in /dev/tty[1-8]; do
setleds -D +num < $tty
done
habdin
Salamo 3alaikom,
I think most linux distributions do this if it is intended to let Numlock to go on by default. I remember I read it in some How-to. Thanks Alaa for pinpointing it to me. Yet I am not sure it will work for X as well. However I will try and make the results available in here In Shaa Allah.
Salam.
ErrorMsg
In mandrake there is an option to let them on/off using one of rc.d services (mandrake control center -> system ->serices )
and it will work in lfs (www.linuxfromscratch.org in hints )
-----------
but in other distro if you try to make such servace let say in rc.local
it will turn on and then turn off ,and if you tune it one in consol then enter loggin and password then type exit it will tern off
and X also reset the keyboard and this will turn it off so makeing
setleds +num </dev/tty7 in rc.local will not work on some distro
------------
here is the lfs method it may work with your distro (http://hints.linuxfromscratch.org/hints/numlock.txt)
vBulletin v3.0.1, Copyright ©2000-2004, Jelsoft Enterprises Ltd.