Situation:
When I turn on my Linux Mint 20/19/18/17 Cinnamon the NumLock is Off in the Login window.
Objective:
Turn on NumLock automatically at startup in the Login window.
keyboardlinux-mintloginnumlock
Situation:
When I turn on my Linux Mint 20/19/18/17 Cinnamon the NumLock is Off in the Login window.
Objective:
Turn on NumLock automatically at startup in the Login window.
Best Answer
For all versions of Linux Mint
You need to install a program needed for this purpose -
numlockx
; man page:Choose if you wish to achieve the goal through CLI or GUI below.
Linux Mint 20.x / 19.x (LightDM)
GUI; probably most convenient under normal operation:
Once
numlockx
is installed, the following menu item in Login Window -> Settings called:becomes available; as you can see:
This will add the line:
to the following file:
Linux Mint 18.x / 17.x (MDM)
GUI; probably most convenient under normal operation:
Once
numlockx
is installed, the following menu item in Login Window -> Options called:becomes available; as you can see:
As pointed out in the other answer, this will add the following line to
/etc/mdm/mdm.conf
:CLI; suitable if you are setting other computers up through SSH, for instance:
Open a text editor you are skilled in with this file, e.g.
nano
if unsure:Add these lines at the beginning of the file:
As pointed out by Gilles, don't put
exec
in front of the command.