I installed LightDM on an Arch Linux system (using pacman) and it runs fine, except, that if I try to type a special character (like "@", "$", ...) in the user or password field it doesn't do anything. I'm using the gtk3 greeter, but it doesn't work with other greeters aswell.

I configured the keyboard and the locale like described in the Arch Linux installation guide and it also says in the top right corner of LightDM "de_DE.utf-8".

  • 1
    Which special characters don't work? Are they the ones that require AltGr? – Gilles 'SO- stop being evil' May 18 '14 at 23:58
  • 1
    Yes, exactly. I think LightDM uses for some reasons an American keyboard layout (for example "-" on my keyboard becomes "/"). But if I login without LightDM and start Cinnamon everything works fine. – TeHeRu33 May 19 '14 at 10:15

The problem was that I forgot the file /etc/X11/xorg.conf.d/20-keyboard.conf . I created it with the content:

Section "InputClass"
    Identifier "keyboard"
    MatchIsKeyboard "yes"
    Option "XkbLayout" "de"
    Option "XkbVariant" "nodeadkeys"

and now LightDM works.


On Xubuntu

On Xubuntu, I had to create a file in a different directory:

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

with this contents for a Belgian be keyboard:

display-setup-script=/usr/bin/setxkbmap be oss

The command setxkbmap is provided by the package x11-utils, hence

$ sudo apt install x11-utils

The available keyboard codes are listed with:

$ localectl list-x11-keymap-layouts

While you are at it, you might also want to ensure that NumLock is active during LightDM login. This can be achieved by appending an additional line to that very same 00-keyboard.conf configuration file:

display-setup-script=/usr/bin/setxkbmap be oss
greeter-setup-script=/usr/bin/numlockx on

Of course, this requires that the numlockx package is installed:

$ sudo apt install numlockx

With my linux mint (which is an Ubuntu derivative, so I suppose it should wok with other Ubuntu based distros):

Looking in file /etc/default/keyboard, there is a line like XKBLAYOUT="us".

I replaced us by fr (for my french keyboard) and it works.


I edited /etc/lightdm/lightdm.conf and under the section [Seat:*] I added a line:

display-setup-script=setxkbmap de

to get my layout (I use dvorak but I think you'll want de perhaps) layout in the display manager/greeter. The installed keymaps can be listed with ls /usr/share/kbd/keymaps/i386 and you probably want de for yours.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.