Wrong keyboard layout by graphical login

Bug #990214 reported by Carsten Holzmüller
This bug affects 20 people
Affects Status Importance Assigned to Milestone
LightDM GTK+ Greeter
lightdm-gtk-greeter (Ubuntu)

Bug Description

I have installed a new xubuntu (Ubuntu 12.04 LTS) on an empty system.
My home directory is encrypted (checkbox by install).
The text console (F1, F2, F3... ) uses the german keyboard layout (correct).
The lightdm 1.2.1-0ubuntu1 uses an english keyboard (maybe us) and there is no chooser.
I also tried xdm 1:1.1.11-1ubuntu1 with the same result.



~/.dmrc (but encrypted...)

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/990214/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
Carsten Holzmüller (carsten-holzmueller-q) wrote :

The Bug #985065 is fixed, but my problem still exists.
I've no xkeyboard-config package (not installed and not available for installing).
My xkb-data package has the version 2.5-1ubuntu1.3.

affects: ubuntu → lightdm (Ubuntu)
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
Ilkka Jylhä (ilkka-jylha) wrote :

I have this bug in xubuntu 12.04.01 but not in ubuntu 12.04

Matt Fischer (mfisch)
affects: lightdm (Ubuntu) → lightdm-gtk-greeter (Ubuntu)
Revision history for this message
Carsten Holzmüller (carsten-holzmueller-q) wrote :

This bug still exists in xubuntu 12.10 (fresh installation, no update, without encryption).

Revision history for this message
Uriel32 (max-faul) wrote :

I still have this problem in Ubuntu 12.04.2 LTS

Revision history for this message
Barta Tamás (barta-tamas-d) wrote :

Ubuntu 13.10 here, and I installed it via apt-get, and I get english keyboard layout instead of hungarian.

Sean Davis (bluesabre)
Changed in lightdm-gtk-greeter:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Serede (serede) wrote :

Adding this line to either /etc/X11/xorg.conf.d/20-keyboard.conf or /etc/X11/xorg.conf.d/10-evdev.conf is a possible workoround:
Section "InputClass"
 Identifier "keyboard"
 Option "XkbLayout" "de"

Revision history for this message
r_avital (raphaelavital) wrote :

Additional info:

1. At login screen, no way to choose a keyboard layout.

2. At screen-unlocker (activating after screen has been locked for a while):

   a) There is a small window with "en" in it, even though the system has been set up to show a country flag (U.S. in this case).
   b) Switching to different layouts is possible, I can tell because one of my layouts is right-to-left, and when I switch to it via keyboard shortcuts, the cursor jumps to the right of the password box -- HOWEVER, the language indicator (the box with "en" in it) does not reflect the change at all, stays on "en"

Revision history for this message
Pavel Podkorytov (tierpod) wrote :

Xubuntu 14.04.2, same problem. Lightdm-gtk-greeter and light-locker show me 'ru' layout, but when i type username, it's 'us'.

Revision history for this message
Pascollin (pascollin) wrote :

Xubuntu 15.10 fresh install, same problem. Lightdm-gtk-greeter still always forces 'en' layout on USB keyboard (instead of 'fr' required layout).

When using my laptop internal keyboard, 'fr' layout is correctly applied. But USB attached keyboard always apply 'en' layout.

Revision history for this message
Pascollin (pascollin) wrote :

/etc/X11/xorg.conf.d/ doesn't exists anymore to apply the workaround proposed by Sered on 2014-07-08.

Revision history for this message
vigilian (vigilian) wrote :

how can't it be a priority number one !!!! it stills sucks on 14.04.3 and 15.10

Revision history for this message
monomakh (monomakh) wrote :

and 16.04

Revision history for this message
Antoine Delaporte (adlp.org) wrote :

On a 16.04, Fresh Install net install, tasksellto install xfce...
It's on a (french laptop) wich is plugged on a dock station

Test in THIS order (because it's fun)
  * try to login with the USB keyboard : I'm in qwerty even if the notification upper right part of the screen write "fr"
  * try to swap this to en, and to fr
  * the USB keyboard stay in qwerty
  * swap to text mode (ctrl-alt-f1)
  * the USB keyboard is in azerty !
  * go back to X11 (alt-f1)
  * the USB keyboard is en qwerty :/
  * use the internal (laptop) keyboard : it's in azerty !
  * finish the login with the USB keyboard : it's stay in azerty !!!

Funny, isn't it ?

Revision history for this message
Antoine Delaporte (adlp.org) wrote :

Ok... in case the problem may came because I've a Logitech Wireless Keyboard (K520)

my pseudo ref : https://forums.archlinux.fr/viewtopic.php?t=16249#p138183
The interessent sentence "C'est un bug connu depuis très longtemps avec les claviers sans fils de logitech. Généralement il est contourné via un lancement de setxkbmap..."
This sentence mean : "This is a well known old bug with the logitech wireless keyboard. Usualy it can be setup with a setxkbmap launc".

So I do the same thing than they explain : I create a /etc/lightdm/lightdm.conf in witch I add
greeter-setup-script=/usr/bin/setxkbmap fr oss

I dislike this solution I feel this not smart. But I need this working now :/

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

I'm not quite sure about the history, but it strikes me that there may be some misconceptions floating around in the above discussion.

On my Ubuntu 16.10 I

* removed all keyboard layout related user settings,
* set XKBLAYOUT="se" in /etc/default/keyboard, and
* rebooted.

The resulting effective layout on lightdm-gtk-greeter was Swedish as expected.

Please note that the language chooser shown by default in lightdm-gtk-greeter is about setting the session's display language, and has nothing to do with keyboard layouts.

You can enable a keyboard layout switcher; please see <http://askubuntu.com/q/821017> including the comments.

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

Other bug subscribers