LightDM assumes there's only ONE system default layout

Bug #1051288 reported by Alkis Georgopoulos
158
This bug affects 51 people
Affects Status Importance Assigned to Milestone
Light Display Manager
Triaged
Medium
Unassigned
lightdm (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

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

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 https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/919200, but that was only solved for the single-layout case.

Tags: disco eoan
Changed in lightdm (Ubuntu):
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in lightdm (Ubuntu):
status: New → Confirmed
Revision history for this message
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

Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

For Greek users, we created live CDs for Ubuntu 12.04 to work around the problem:
http://ts.sch.gr/wiki/Linux/LiveCD

Revision history for this message
holtzermann17 (holtzermann17) wrote :

This might also affect Dvorak users.

Revision history for this message
Simon Friedberger (simon-ubuntu-p) wrote :

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
Revision history for this message
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.

Revision history for this message
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?

Revision history for this message
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.

Revision history for this message
Michael Grivas (mgrivas) wrote :
Revision history for this message
Adam Niedling (krychek) wrote :

I have Hungarian and English keyboard layouts set up.
However at the login screen it's English and Afghan. Have no idea why. It changed at some point during 18.04.

$ grep XKBLAYOUT /etc/default/keyboard
XKBLAYOUT="us,af"

Adam Niedling (krychek)
tags: added: disco
Adam Niedling (krychek)
tags: added: eoan
Revision history for this message
Adam Niedling (krychek) wrote :

It turns out I don't have this issue anymore after a clean install of 19.10.

Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

Are you still using lightdm there? Ubuntu 19.10 uses GDM; only some other flavors like MATE, Xubuntu and Lubuntu use lightdm.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.