Enabling Num. Lock on boot................?
Anyone know a way to enable numbers lock on boot?
|
I tried this on Red Hat 9 and it worked Great... That bugged me also but never really thought to find a solution till I seen your post :-)
Anyway for RedHat9 may work for others I really don't know Add the folloing lines to /etc/rc.d/rc.sysinit for tty in /dev/tty[1-9]*; do setleds -D +num < $tty done Then reboot that should work... (I just put it on the bottom of the list) Mandrake I belive (Don't quote me) may be able to do chkconfig numlock status to see if it is on or off and then chkconfig numblock on to turn it on at boot but i've never used mandrake just read that and it didn't work with redhat. P.S. backup the rc.sysinit to another file for safty in case it goes bad for you. Vince |
Why not quote you about Mandrake? You _were_ right, there is a service called 'numlock' which puts on numlock every time you boot.
|
thanks for confirming that... I'm a newbie with Linux and don't want to steer anyone the wrong way but help if I can.
L8r, Vince |
......... or -
ln -s /etc/rc.d/init.d/numlock /etc/rc.d/rc5.d/S85numlock if you want it to run in run level 5 |
Hey Vince0000,
I copied and pasted this into the file you told me to but it still doesn't work: for tty in /dev/tty[1-9]*; do setleds -D +num < $tty done Do I need to change something here or is this EXACTLY how it should read? Thanks a bunch..............ALAN |
Yes that should be it... I had to do my other computer at home and it worked perfect also...
for tty in /dev/tty[1-9]*; do setleds -D +num < $tty done is the code I used to to be sure but one thing I did do is typed it in manually instead of copy and paste. I believe a copy and past may give it unnecessary spaces etc (Possible?) I just typed that in exactly as shown at the bottom of the /etc/rc.d/rc.sysinit file RedHat 9 btw... if you are using a different distribution it may be different. Vince |
for tty in /dev/tty[1-9]*; do
setleds -D +num < $tty done did not work for me. neither did simlinking ln -s /etc/rc.d/init.d/numlock /etc/rc.d/rc5.d/S85numlock [which makes perfect sense seeing as tho I don't have numlock in RH9 - d' Oh!] |
nope - this did not work either:
if you have KDE installed run: kcontrol go to: peripherals >> keyboard >> enable numlock. Gnome just did not have it anywhere. I am wonderin if it is because I do not actually use KDE ??? If I configure any H/W with the KDE control panel should the settings stick in Gnome??? |
The code that I added enabled the NUMLOCK in the TEXT mode login I haven't tested it in the XMode GUI... I will check that and post back later... It worked for mine on 2 systems first time each one.
Vince |
nVidia driver stopping numlock????
well last night I tried a bunch of different combo's ~man setleds says to put INITTY=/dev/tty[1-8] for tty in $INITTY; do setleds -D +num < $tty done into the /etc/rc file. I also did a combo in the /etc/rc.d/rc.sysinit file. for tty in /dev/tty[1-9]*; do setleds -D +num < $tty done I tried diff versions of this too Add to /etc/rc.d/rc.local: INITTY=/dev/tty[1-8] for tty in $INITTY; do setleds -D +num < $tty done sometimes replacing each code with setleds -L +num < /dev/tty[1] instead of setleds -D +num < $tty SO ~ What happens?? ~ setleds -L +num < /dev/tty[1] ~ produces nothing. ~ setleds -D +num < $tty ~ gives lets numlock run in all the inits except X. Ironic. Everything is fine until I startx - it is enabled UNTIL the video switches the screen to the nVidia splash screen. What can be causing this ?? I was wondering if the module in the video driver is causing it to reset - OR is there another script running and setting the tty back to numlock off?? |
You may want to check out this link it may involve a little work but I never tested it...
http://home.sw.rr.com/linuxbits/NumLock.html It covers a setup for the Console and the X Gui... Let me know if it does work, I started but my compile with GCC didn't go just quite right... but I do all my work from the console so maybe you will have more luck. Vince |
thanks it looks like the script for X might cover it - I appreciate it - I will give it a shot when I get home as I can't test by remote.
|
Quote:
|
Oooo yer gettin me hopes up now Andrew. :)
It really is annoying tho -is'nt it - especially when you are typing something delicate like a long command then you need number and you plod thru destroying everything you typed. I hate that beep. I cannot be trained not to use the numpad cos I use it contstantly in work day in day out all day. - It's just too handy. |
All times are GMT -5. The time now is 05:33 PM. |