Doesn't know system default layout/variant

Bug #919200 reported by Michael Terry
40
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Light Display Manager
Fix Released
High
Unassigned
lightdm (Ubuntu)
Triaged
High
Unassigned

Bug Description

lightdm_get_layout does not return the correct system default keyboard layout/variant.

For that, pitti says we need to access xkl_config->layouts[0]/xkl_config->variants[0].

Currently, we just grab the first layout returned from xkl_config_registry_foreach_layout, which only returns the available layouts, not the configured layouts. So "us" will always be first there.

Related branches

Changed in lightdm (Ubuntu):
status: New → Triaged
Changed in lightdm:
status: New → Triaged
Changed in lightdm (Ubuntu):
importance: Undecided → High
Changed in lightdm:
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lightdm - 1.1.2-0ubuntu3

---------------
lightdm (1.1.2-0ubuntu3) precise; urgency=low

  * debian/patches/05_keyboard_indicator.patch:
    - Backported patch from trunk to fix various keyboard layout issues
      preventing greeter keyboard indicators from working.
      LP: #919199, LP: #919200, LP: #915468
 -- Michael Terry <email address hidden> Sun, 12 Feb 2012 19:37:51 -0500

Changed in lightdm (Ubuntu):
status: Triaged → Fix Released
Michael Terry (mterry)
Changed in lightdm:
status: Triaged → Fix Committed
Changed in lightdm:
status: Fix Committed → Fix Released
Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

I believe this bug still exists.

When lightdm starts and before I log in, it sets my layout to:
xkb_keymap {
 xkb_keycodes { include "evdev+aliases(qwerty)" };
 xkb_types { include "complete" };
 xkb_compat { include "complete" };
 xkb_symbols { include "pc+us+inet(evdev)" };
 xkb_geometry { include "pc(pc105)" };
};

With `xinit xterm`, I correctly get my system defaults, which are:
xkb_keymap {
 xkb_keycodes { include "evdev+aliases(qwerty)" };
 xkb_types { include "complete" };
 xkb_compat { include "complete+ledscroll(group_lock)" };
 xkb_symbols { include "pc+us+gr:2+inet(evdev)+group(alt_shift_toggle)" };
 xkb_geometry { include "pc(pc105)" };
};

This results in (at least) all Greek users having a broken keyboard layout by default, except for the one created by ubiquity.
Note that "us,gr" is necessary for Greek users to type both Greek and English characters, we do have to use 2 layouts, so taking only the first one is incorrect.

My /etc/default/keyboard contains:
XKBMODEL="pc105"
XKBLAYOUT="us,gr"
XKBVARIANT=","
XKBOPTIONS="grp:alt_shift_toggle,grp_led:scroll"

See also LP bug #1016409

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

By changing XKBLAYOUT in /etc/default/keyboard to either "gr" or "gr,us" and rebooting, lightdm then forces all the users to have only Greek layout.

It appears that lightdm_get_layout() assumes that users only need one layout, while Greek users need two.

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

I'm changing the status from "Fix Released" to "Triaged", since the problem still exists, lightdm assumes that systems only have one default keyboard layout, while there are many countries that need two (e.g. "us,gr").

Please do fix that, it's a very serious problem affecting thousands of users which cannot use their native language until they open gnome settings and manually add the correct keyboard layout (if they know how to do so). Even in Ubiquity, they can't type their real name, they have to install the system in English first and go through all the hoops to change the system default language, their username etc later.

Changed in lightdm (Ubuntu):
status: Fix Released → Triaged
Revision history for this message
Antoine Pitrou (pitrou) wrote :

I have what seems to be the same problem. I configured my keyboard layout to French, and it works both under the console and under a Xubuntu (XFCE) session, but not on the lightdm login screen. This makes it a mess to type in my password.

Really, this bug should be marked as critical, as it's a huge usability roadblock for anyone with a non-US keyboard (and there are millions of us).

(this is with Xubuntu 12.04, all current updates applied)

Revision history for this message
Michael Grivas (mgrivas) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

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