[Bug] LightDM does not use the configured keyboard layout

Report Bugs, Issues and non- package Requests
Post Reply
Message
Author
User avatar
Jeremy
Posts: 6
Joined: Sat Feb 17, 2018 2:57 pm

[Bug] LightDM does not use the configured keyboard layout

#1 Post by Jeremy »

Expected Behavior:
  • The LightDM Login manager uses the same layout than the rest of the LinuxMX OS
Observed Behavior:
  • The configuration of keyboard layout has no effect of the LightDM Login Manager. A user with a non-US layout and no auto login will have to reselect his layout in the very long layout list each times he tries to connect.
  • Selected layout will not be saved for the next connection.
  • No user-friendly tool or parameter allows to set a default layout for LighDM
Solution
  • To permanently define a layout for LightDM, the following line must be added in /etc/lightdm/lightdm.conf below [SeatDefaults]

    Code: Select all

    greeter-setup-script=/usr/bin/setxkbmap -layout xx -variant yy
    For a french swiss layout, xx = ch and yy = fr
    -layout is optional
Steps to reproduce
  • Clean install, with preserve /home selected, and a different layout than us selected in the installation settings

User avatar
dolphin_oracle
Developer
Posts: 20001
Joined: Sun Dec 16, 2007 1:17 pm

Re: [Bug] LightDM does not use the configured keyboard layout

#2 Post by dolphin_oracle »

Jeremy wrote:Expected Behavior:
  • The LightDM Login manager uses the same layout than the rest of the LinuxMX OS
Observed Behavior:
  • The configuration of keyboard layout has no effect of the LightDM Login Manager. A user with a non-US layout and no auto login will have to reselect his layout in the very long layout list each times he tries to connect.
  • Selected layout will not be saved for the next connection.
  • No user-friendly tool or parameter allows to set a default layout for LighDM
Solution
  • To permanently define a layout for LightDM, the following line must be added in /etc/lightdm/lightdm.conf below [SeatDefaults]

    Code: Select all

    greeter-setup-script=/usr/bin/setxkbmap -layout xx -variant yy
    For a french swiss layout, xx = ch and yy = fr
    -layout is optional
Steps to reproduce
  • Clean install, with preserve /home selected, and a different layout than us selected in the installation settings
could you post your /etc/default/keyboard file please?
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Jeremy
Posts: 6
Joined: Sat Feb 17, 2018 2:57 pm

Re: [Bug] LightDM does not use the configured keyboard layout

#3 Post by Jeremy »

Here it is. Is it missing something ? While trying to solve this issue I also reconfigured keyboard itself through

Code: Select all

 dpkg-reconfigure keyboard-configuration
, which affected this file

Code: Select all

# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="ch"
XKBVARIANT="fr"
XKBOPTIONS="lv3:ralt_switch,terminate:ctrl_alt_bksp"

BACKSPACE="guess"

User avatar
dolphin_oracle
Developer
Posts: 20001
Joined: Sun Dec 16, 2007 1:17 pm

Re: [Bug] LightDM does not use the configured keyboard layout

#4 Post by dolphin_oracle »

Jeremy wrote:Here it is. Is it missing something ? While trying to solve this issue I also reconfigured keyboard itself through

Code: Select all

 dpkg-reconfigure keyboard-configuration
, which affected this file

Code: Select all

# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="ch"
XKBVARIANT="fr"
XKBOPTIONS="lv3:ralt_switch,terminate:ctrl_alt_bksp"

BACKSPACE="guess"
with that info in the file, was it still defaulting to a us keyboard without your script added to lightdm.conf?
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Jeremy
Posts: 6
Joined: Sat Feb 17, 2018 2:57 pm

Re: [Bug] LightDM does not use the configured keyboard layout

#5 Post by Jeremy »

dolphin_oracle wrote:
Jeremy wrote:Here it is. Is it missing something ? While trying to solve this issue I also reconfigured keyboard itself through

Code: Select all

 dpkg-reconfigure keyboard-configuration
, which affected this file

Code: Select all

# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="ch"
XKBVARIANT="fr"
XKBOPTIONS="lv3:ralt_switch,terminate:ctrl_alt_bksp"

BACKSPACE="guess"
with that info in the file, was it still defaulting to a us keyboard without your script added to lightdm.conf?
Yes, when I remove the line from /etc/lightdm/lighdm.conf, it will default to us, even with the correct infos in Keyboard configuration file. Actually, it defaults to [layout] not us

Post Reply

Return to “Bugs and Non-Package Requests Forum”