4

I upgraded my OS to the latest version - Linux Mint 18.2 Sarah. After upgrading my NumLock is off. I changed my display manager from mdm to lightdm. this method is not working.

karel
  • 1,961
  • 2
  • 17
  • 26
mend4x
  • 517
  • 1
  • 7
  • 15

4 Answers4

2

Jaleks' answer was only almost right for me, but this finally worked (Linux Mint 18.2 Cinnamon, manually updated to LightDM (from LM 18.1)):

Install sudo apt install numlockx, after that, edit /usr/share/lightdm/lightdm.conf.d/90-slick-greeter.conf file and add the following line at the end:

greeter-setup-script=/usr/bin/numlockx on
αғsнιη
  • 40,939
  • 15
  • 71
  • 114
user244026
  • 36
  • 1
0

try to edit /etc/lightdm/lightdm.conf:

[Seat:*]
greeter-setup-script=/usr/bin/numlockx on

Just for reference: weird enough there is a whole ecosystem for numlock settings, depending on which display/window managers one uses, see e.g. the always great Arch wiki: https://wiki.archlinux.org/index.php/Activating_Numlock_on_Bootup

Jaleks
  • 2,499
  • 1
  • 17
  • 34
0

On plain Ubuntu

First install the numlockx package:

$ sudo apt install numlockx

On plain Ubuntu, the LightDM directory in which to create the configuration file is named slightly differently:

$ cd /etc/lightdm/lightdm.conf.d
$ sudo touch 00-keyboard.conf
$ sudo nano 00-keyboard.conf

The following configuration worked for me:

[SeatDefaults]
greeter-setup-script=/usr/bin/numlockx on

In this very configuration file, one can also define the keyboard layout to be used during the LightDM login session.

Serge Stroobandt
  • 2,314
  • 3
  • 32
  • 36
-1

Mint 18.3 the setup for Numlockx has been added in the "login screen" option (within the "administration" menu)

cf : https://www.linuxmint.com/rel_sylvia_cinnamon_whatsnew.php

PSy
  • 1