PDA

View Full Version : HOWTO: numlock activated at startup in login screen


PaDV
February 24th, 2005, 03:38 PM
I find it very annoying that the numlock is not activated at startup in the login screen GDM, especially when using a password that contains numbers. I tried the How To: "Setting up numlock on start up" but noticed that the numlock is activated just after logging in, at the splash screen of Gnome. The following solution solves this problem:

Make sure that the warty universe repository is enabled.

Execute the following commands in a terminal:
1. sudo apt-get install numlockx
2. sudo gedit /etc/X11/gdm/Init/Default
3. Add the following lines at the end before the line "exit 0":

if [ -x /usr/bin/X11/numlockx ]; then
/usr/bin/X11/numlockx on
fi
4. Put off your numlock and restart X by pressing Ctrl+Alt+Backspace

The numlock should be activated now and every time you reboot!!!

macewan
February 24th, 2005, 08:54 PM
nice

ebash
February 26th, 2005, 06:57 AM
Under hoary the path to numlockx seems to have changed to /usr/bin/numlockx.
In such case the correct entries to add to the file /etc/X11/gdm/Init/Default should be :
# Set Num Lock
if [ -x /usr/bin/numlockx ]; then
/usr/bin/numlockx on
fi

madtom
February 24th, 2007, 05:56 PM
thanks a lot, exactly what i was looking for :)

setotitan
March 21st, 2008, 06:28 PM
great how to really did the trick! just wanted to put a side note here, if you're using gutsy step 2 is actually:

sudo gedit /etc/gdm/Init/Default

i was beating my head against the wall trying to figure out why i couldn't get it ;)

hazza96
March 21st, 2008, 08:34 PM
I have not tried doing these suggestions but I found this thread because my num lock light is on after boot up but the num lock isn't. I hit the numpad and no numbers are entered.

I have to hit the num lock key three times for it to actually be on.

I will try the suggestion and see what happens.