LightDM assumes there's only ONE system default layout

Bug #1051288 reported by Alkis Georgopoulos on 2012-09-15
This bug affects 50 people
Affects Status Importance Assigned to Milestone
Light Display Manager
lightdm (Ubuntu)

Bug Description

In Greece, the default system layout is "us,gr":
$ grep XKBLAYOUT /etc/default/keyboard

For new users that don't have .dmrc or accountsservice entries and are supposed to get the system defaults, LightDM assumes their keyboard layout is "us".
So they can't switch languages in the greeter and they can't input national characters until they login, go to gnome settings and manually set the keyboard layout.

A similar bug was, but that was only solved for the single-layout case.

Changed in lightdm (Ubuntu):
importance: Undecided → High
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lightdm (Ubuntu):
status: New → Confirmed
Alkis Georgopoulos (alkisg) wrote :

Here's a list of the affected countries. All these people can't type national characters unless they know how to go to gnome control center and add their keyboard layout and their preferred switching method.

This is a serious regression, it used to work fine in gdm and in gdm2.

$ grep XKBLAYOUT=us, keyboard-configuration.config | sort -u
 XKBLAYOUT=us,am # Armenia
 XKBLAYOUT=us,ara # Arabic
 XKBLAYOUT=us,bd # Bangladesh
 XKBLAYOUT=us,bg # Bulgaria
 XKBLAYOUT=us,bt # Bhutan
 XKBLAYOUT=us,by # Belarus
 XKBLAYOUT=us,ge # Georgia
 XKBLAYOUT=us,gr # Greece
 XKBLAYOUT=us,il # Israel
 XKBLAYOUT=us,in # India
 XKBLAYOUT=us,ir # Iran
 XKBLAYOUT=us,kg # Kyrgyzstan
 XKBLAYOUT=us,kh # Cambodia
 XKBLAYOUT=us,kz # Kazakhstan
 XKBLAYOUT=us,la # Laos
 XKBLAYOUT=us,lk # Sri Lanka
 XKBLAYOUT=us,ma # Morocco
 XKBLAYOUT=us,mk # Macedonia
 XKBLAYOUT=us,mn # Mongolia
 XKBLAYOUT=us,np # Nepal
 XKBLAYOUT=us,ru # Russia
 XKBLAYOUT=us,si # Sri Lanka
 XKBLAYOUT=us,th # Thailand
 XKBLAYOUT=us,tj # Tajikistan
 XKBLAYOUT=us,ua # Ukraine

Alkis Georgopoulos (alkisg) wrote :

For Greek users, we created live CDs for Ubuntu 12.04 to work around the problem:

holtzermann17 (holtzermann17) wrote :

This might also affect Dvorak users.

I can confirm that this is a pretty big problem if you have two users who use different keyboard layouts. One of them simply cannot really enter his password and has to learn how to type it on a different layout.

Changed in lightdm (Ubuntu):
status: Confirmed → Triaged
Changed in lightdm:
status: New → Triaged
importance: Undecided → Medium
Changed in lightdm (Ubuntu):
importance: High → Medium
anatoly techtonik (techtonik) wrote :

Ubuntu 16.10 it is even worse, Even for a single user I can not unlock or suspend/shutdown resumed PC if I was on different layout than my password.

Michael Grivas (mgrivas) wrote :

2017-06: Quite a long time for such a bug to survive.
As Anatoly said, it is worse on 16.10 .
If you lock the session with wrong layout, you are doomed.
Is there any hint where we should search for a solution?
Do you have any place in code to try to debug?

Michael Grivas (mgrivas) wrote :

One more hint on this:
The button for choosing layout does not actually work, at least not when one locks the screen from the "wrong" layout.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers