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.

What is the standard way to turn numlock on by default on startup on lubuntu 10.04?

Lubuntu installs LXDE. I saw some aother solutions for other flavours, but maybe there is a special setting for the lubuntu flavour.

I tried already numlock=0 and numlock=1 in /etc/lxdm/lxdm.conf , but numlock stays off on the next boot.

All other operating systems, also other ubuntu systems, do have numlock turned on on the same machine after booting.

I installed numlockx, and it can change the value, but is this the standard lubuntu way to go? If so, what is the standard place in the lubuntu startup sequene to insert 'numlockx on', how do I set this up correctly?

I also looked at the included lxde keyboard configuration system gui tool, but there are only few options, numlock default not among them.

(Please before you mark this as duplicate consider if it really fits, I could not find this answered in this way. I am interestd to know the standard way for lubuntu (and not kubuntu or gnome) in detail.)


There is also an explanation of the lxdm config file here, but it does not really explain what "lxde numlock suport" means (how could a gui not support numlock?) and what the settings 0 and 1 mean:

http://manpages.ubuntu.com/manpages/lucid/man1/lxdm.1.html


If there is no other LXDE or lubuntu standard way to do it, I am planning to use numlockx and add this line:

/usr/bin/numlockx on

at the beginning of either

/etc/X11/xinit/xinitrc

or

~/.xinitrc

following the instructions found here:

http://www.cyberciti.biz/faq/how-to-linux-turn-on-num-lock-on-gnome-startup/

share|improve this question
    
Isn't there a BIOS configuration for numlock state on startup? Most computers has it. –  yossile Mar 25 '12 at 12:35
    
This wold be the best but unfortunateley this machine does not have such an option in the BIOS, so I need a linux solution. –  mit Mar 25 '12 at 14:17
add comment

1 Answer

up vote 4 down vote accepted

Have you tried editing /etc/xdg/lubuntu/lxdm/lxdm.conf instead?

Uncomment # numlock=0 and make it numlock=1

Worked for me :)

share|improve this answer
    
Thank you teracow. I have abandoned "lubuntu" for other reasons, so I cannot check, but your answer will help other people in the future. –  mit May 2 '12 at 12:16
2  
update: this solution worked for lubuntu upto 11.10 Oneiric. However, I've just upgraded to 12.04 Precise and it does not work anymore. Oh well. ;) –  teracow May 5 '12 at 20:32
2  
another update: so, now I'm using numlockx - doesn't need to be configured, just installed. –  teracow May 6 '12 at 0:18
    
teracow's setting are the same that currently work for me without using numlockx. I'm currently using 12.04 with the setting of numlock=1 in both /etc/xdg/lubuntu/lxdm/lxdm.conf and /etc/lxdm/lxdm.conf –  RyanLoremIpsum Jul 24 '13 at 23:04
add comment

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.