Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a installation of Ubuntu 12.04, my NUM LOCK is disabled every time at boot, so i have to turn it on manually each time for the log in screen "password"

I tried these lines:

sudo apt-get update
sudo apt-get -y install numlockx
sudo sed -i 's|^exit 0.*$|# Numlock enable\n[ -x /usr/bin/numlockx ] \&\& numlockx on\n\nexit 0|' /etc/rc.local

and i edited in the file:

/etc/kbd/config, uncommenting lines:
Turn on numlock by default
LEDS=+num

and also:

Miscellaneous compatibility options, Enable Default Numeric Keys.

nothing works :(

i have windows 7 on the same machine, and num lock is okay, i guess it is not a bios problem!!

any help please?

Thanks in advance

share|improve this question
1  
This worked for me :) Ensure that numlockx is installed: sudo apt-get install numlockx Edit the file /etc/lightdm/lightdm.conf gksudo gedit /etc/lightdm/lightdm.conf Add the following line to the file: greeter-setup-script=/usr/bin/numlockx on –  Mohammed Ibrahim Mar 13 '13 at 12:58
    
Put this as a answer. –  nerof61 Mar 13 '13 at 17:04

1 Answer 1

From a comment of the OP:


This worked for me:

Ensure that numlockx is installed:

sudo apt-get install numlockx

Edit the file /etc/lightdm/lightdm.conf:

 gksudo gedit /etc/lightdm/lightdm.conf

Add the following line to the file:

greeter-setup-script=/usr/bin/numlockx on
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.