Setting num lock to "on" at boot or log in.
Is there a way to mae it so that num lock isn't reset to off everytime the computer boots?
Using Slackware 9.1, KDE/KDM |
i've been using linux for a couple years, and i've never been able to get a gui to launch with numlock on. :p it's such a simple thing, you'd think someone would have an easy solution. but nothing i've tried has ever worked. search google and try the various methods, maybe you'll have better luck.
|
In debian there is a small app called numlockx, that does just that. Turns the numlock on at login/boot.
If you are running KDE, you can open the Control Center>Peripherals>Keyboard>NumLock on KDE Startup and choose Turn on. |
This is what works for me in Slack 10:
Code:
# This turns on numlock: |
install numlockx and make sure it runs at startup
and here is a detailed howto ;) http://startlinux.co.nz/articles/article_139.php |
I have, in my ~/.xinitrc numlockx starting before my window manager - this does the job fine...
|
numlockx doesn't work for me, either. :( maybe it's because i'm using xfce4 and it's not going through startx but startxfce4? after it didn't work in ~/.xinitrc, i put it in both ~/.xfce4/xinitrc and in the global xfce4 xinitrc, but still no numlock. it flashes for second while X is starting, then it turns off again, but it does that normally anyway. i've resigned myself to the fact that i'm just never going to have default numlock in linux. :p
|
numlockx didn't work for me either, so I found the following c program:
Code:
#include <X11/extensions/XTest.h> Code:
gcc -I/usr/X11R6/include -L/usr/X11R6/lib -o setnumlock setnumlock.c -lX11 -lXtst Code:
/usr/X11R6/bin/setnumlock & Regards |
An old reply to this often asked question by user: dracae (Hmmm. Haven't seen him lately.) Works great in Debian.
Quote:
|
All times are GMT -5. The time now is 11:04 AM. |