Turn Num Lock on automatically

Michael

Administrator
Staff member
Feb 11, 2022
126
4
18
Does your keyboard (laptop?) have a separate numeric keypad on the right? Then it's useful for Num Lock to be switched on automatically, when you start Linux Mint.

Note: this instruction is only meant for desktops and laptops that have a separate numeric keypad! It's definitely not desirable to have the Num Lock on by default on a laptop that has no such separate keypad.

You can achieve that as follows:

a. Transfer the following command into the terminal:

Code:
sudo apt-get install numlockx

Now do this: Menu - Administration - Login Window.
Tab Settings: enable Activate numlock.

Reboot your computer. The numeric keypad should turn on automatically after you log into your user account.

Note: it's possible that during login, Debian will turn Num Lock off again. If that happens, you can counteract that irritating behaviour as follows:

Menu - Preferences - Startup Applications

Click the + button (Add) - Custom command

Give the new addition the name Numlockx and the command:
numlockx

Startup delay: set it at 20 seconds.

Click Add.

This will turn Num Lock on, 20 seconds after login. The delay is necessary, because you have to make sure it happens after Debian has turned Num Lock off.

Note: user preference, so repeat this in each user account.