Tuesday, September 1, 2015

How to auto-enable Numlock on a laptop

If you have a laptop with a numeric keypad, you probably want Numlock to stay on. I got tired of pressing the button after every startup and went in search of the menu item for it. I did not find one, I searched further and found the answer:

Install numlockx.

Click on Menu >> Accessories >> Terminal
Type in:
sudo apt-get install numlockx
Press <ENTER>
Type in your sudo password and press <ENTER>
Click on Menu >> Preferences > Default applications for LXSession.
Click on the Autostart tab.
Under Manual autostarted applications, type numlockx in the box and click Add.

This is what LXSession configuration should look like, once you have made the change.

You can reboot to test, but it should work. It works on my Lenovo, but there are people that report that it does not work on their machines.