DEV Community

Nur Kholis M
Nur Kholis M

Posted on

LightDM: Disable Numlock active

Issue

My Numlock indicator always turn on when LightDM login display. Since I'm using mini/laptop size keyboard which doesn't have any specific number key, it make annoying when inputting user password. My keyboard char U, I, O, J, K, L, M become number 4, 5, 6, 1, 2, 3, 0

Cause

LightDM in xubuntu have several default startup script in path /usr/share/lightdm/lightdm.conf.d/:

/usr/share/lightdm/lightdm.conf.d/
├── 50-disable-guest.conf
├── 50-disable-log-backup.conf
├── 50-greeter-wrapper.conf
├── 50-guest-wrapper.conf
├── 50-ubuntu.conf
├── 50-unity-greeter.conf
├── 50-xserver-command.conf
├── 50-xubuntu-numlock.conf
├── 60-lightdm-gtk-greeter.conf
└── 60-xubuntu.conf
Enter fullscreen mode Exit fullscreen mode

One of the is 50-xubuntu-numlock.conf:

$ cat lightdm.conf.d/50-xubuntu-numlock.conf
[Seat:*]
greeter-setup-script=xubuntu-numlockx
Enter fullscreen mode Exit fullscreen mode

Fix

Just disable that script by renaming it:

$ sudo mv /usr/share/lightdm/lightdm.conf.d/50-xubuntu-numlock.conf{,.disabled}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)