0

I tried to activate numlock in the login screen using numlockx. The instruction point me to add this line

greeter-setup-script=/usr/bin/numlockx on

to this file

 /etc/init/lightdm.conf 

I tried to reboot. In the boot screen this line was shown.

ERROR: File /etc/init/lightdm.conf: syntax invalid:
init:lightdm.conf:62: Unknown stanza

Which means the added line. What should I do?

Parto
  • 15,647
CatFly
  • 103
  • 1
  • 4

1 Answers1

1

Probably you edited the wrong file. I have a feeling that you are supposed to add that line to e.g. /etc/lightdm/lightdm.conf, which should (at least) contain:

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

Optionally you can use a dedicated file, e.g. /etc/lightdm/lightdm.conf.d/numlock.conf, with the same contents.