dpkg:numlockx 

After installing the numlockx packages, whenever the X is started, the number lock automatically goes on. The reason is because the file /etc/X11/Xsession.d/55numlockx from the package, which has:

test -x /usr/bin/numlockx && /usr/bin/numlockx on

To disable this:

echo true > /etc/X11/Xsession.d/55numlockx

documented on: 2005.05.05

having Number lock turn on 

> I would like to have the number lock automatically goes on when I log on

Okay, got it working. For those intersted, here's what I had to do…

First, go to http://www.justlinux.com/nhf/Hardwa…to_Stay_On.html and download the numlockx file. follow his intsructions to compile and install (very simple, even for the total newbie). Now, when it comes to creating/editing the .xinitrc file, that part did not get it starting automatically for me.

I had to, using Gnome, open the preferences->More Preferences-> Sessions manager, and on the startup programs tab, choose "add" and enter numlockx. Set the order for it to very high, I used 75, so it starts absolutely last. If you dont do this it hangs things and gives problems.

Reboot or Log out/in, and all should be well.

jeffreybluml 03-28-2004

How to Get the NumLock Key to Stay On 

http://www.justlinux.com/nhf/Hardware/How_to_Get_the_NumLock_Key_to_Stay_On.html

In Console mode 

You will need the setleds program.

In your X server 

You would think that if you set the default setting to on in the console, that it would carry over to you X server, but NO. That would not be that easy. (Hopefully they will fix this in future versions) As of now the only way I know how to do this is with the help of a little program called numlockx.

numlockx - enable NumLock in X11 sessions

You can find numlockx at http://dforce.sh.cvut.cz/~seli/en/numlockx/ or I have also placed a copy at my website http://ourworld.cs.com/kvsmaster/files/numlockx-1.0.tar.gz.

then put in your .xinitrc file:

numlockx on &

Num Lock 

http://www.linuxquestions.org/questions/history/36446

> How can i automatically turn the num lock on to use the numeric keyboard
> without pressing all the times num lock?

If you use KDE you can set this setting in the control center.

Start control center

click Peripherals | Keyboard | Advanced Tab. Then click the "Turn on" radio button.

albean 11-25-2002