Enable Number pad NumLock at startup in Ubuntu Login Window

This post was written by admin on December 12, 2009
Posted Under: General

If you need to input password to login ubuntu and there are numbers in the password,it’s very annoying that you need to press NumLock key to enable number pad every time you login.
Here’s how to enable NumLock when startup into login window.
For Ubuntu Gnome and Xubuntu XFCE (GDM)
Install numlockx by this command in terminal(Applications/Accessories/Terminal):

sudo apt-get install numlockx

edit /etc/gdm/Init/Default with your favourite editor:

sudo gedit /etc/gdm/Init/Default

add following above the last line which says exit 0:

if [ -x /usr/bin/numlockx ]; then
/usr/bin/numlockx on
fi

For KDE
Similar to GDM,edit /etc/kde4/kdm/Xsetup (if you are still running kde3 you will want to edit /etc/kde3/kdm/Xsetup instead) and add the following code to it:

if [ -x /usr/bin/numlockx ]; then
/usr/bin/numlockx on
fi

For more,see:https://help.ubuntu.com/community/NumLock

Related posts:

  1. How to Turn off/down/up login sound when Ubuntu Gnome startup
  2. Change Login window theme in Ubuntu 9.10/10.04 and higher
  3. Change ubuntu login window theme
  4. Enable Auto Login in ubuntu
  5. ComputerTip:Use Number Pad as Mousekeys to Move cursor on the screen

    Tags:

    Reader Comments

    Thank you so much. It works.=)

    [Reply]

    #1 
    Written By Abi Darwish on September 19th, 2010 @ 7:59 am

    Add a Comment

    required, use real name
    required, will not be published
    optional, your blog address