[master] system keyboard layout not honored

Bug #1458220 reported by Richard Stevens
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
sddm (Mandriva)
Fix Released
Low
sddm (Ubuntu)
Confirmed
High
Unassigned
xorg-server (Ubuntu)
Confirmed
High
Unassigned

Bug Description

I'm on a fresh install of Kubuntu:
Description: Ubuntu 15.04
Release: 15.04

I chose German as installation language, de with nodeadkeys as keyboard and locale is set to de_DE.UTF-8.

The console uses the correct keyboard, however when logging into sddm, the keyboard layout is set to US.

SDDM doesn't seem to honour the keyboard configured during installation.

SDDM installed is:
ddm:
  Installiert: 0.11.0-0ubuntu10
  Installationskandidat: 0.11.0-0ubuntu10
  Versionstabelle:
 *** 0.11.0-0ubuntu10 0
        500 http://de.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
        100 /var/lib/dpkg/status

I believe it's a bug since the keyboard layout at login window after installing as described above should be the default system one, german in the above case.

I have tried all sorts of ways (including some ugly hacks) to get this resolved on a previous installation but didn't find a way. Considering the many moving parts to get the login manager up and running, I'm aware this might be filed against the wrong package. It might even be an installer bug.

Thanks!

Revision history for this message
In , Rémi Verschelde (rverschelde) wrote :

Testing sddm 0.11.0 on Mageia 5 pre-RC, I see that there is an issue with the keyboard layout. "en_US" is preselected and is the only available option, I can't use the "fr" keyboard layout even though my system locale is French.

Reproducible:

Steps to Reproduce:

Revision history for this message
In , Rémi Verschelde (rverschelde) wrote :

This would be this upstream bug: https://github.com/sddm/sddm/issues/202

Revision history for this message
In , Rémi Verschelde (rverschelde) wrote :

I have the same behaviour as some reported on the upstream bug report by the way: the flag is initially "us", but as soon as I start typing my password, it switches to "fr".

Revision history for this message
In , Doktor5000 (doktor5000) wrote :

Hmmm I think we had similar patch for this, will recheck as it was fixed.
Patch was added here:
http://svnweb.mageia.org/packages?view=revision&revision=797925
and was merged upstream in 0.11:
http://svnweb.mageia.org/packages?view=revision&revision=800515

Seems that was a different issue.

For me, also only en_US is preselected, and once I select my username and begin typing, it automatically switches to de_DE including the correct flag. Although I don't have some german special characters, I'll check again for the keyboard layout.

Do you have either
/etc/locale.conf
/etc/vconsole.conf
or something in /etc/X11/xorg.conf.d/ ?

What does localectl show?

As our tools don't run localectl, it will probably show nothing, which might be the cause of the bug as mentioned in https://github.com/sddm/sddm/issues/202
Will need to check how Colin fixed similar issues for GNOME et al.

Revision history for this message
In , Rémi Verschelde (rverschelde) wrote :

(In reply to Florian Hubold from comment #3)
> Do you have either
> /etc/locale.conf
> /etc/vconsole.conf
> or something in /etc/X11/xorg.conf.d/ ?

I don't have any of those.

> What does localectl show?

$ localectl
   System Locale: n/a

       VC Keymap: n/a
      X11 Layout: n/a

> As our tools don't run localectl, it will probably show nothing, which might
> be the cause of the bug as mentioned in
> https://github.com/sddm/sddm/issues/202
> Will need to check how Colin fixed similar issues for GNOME et al.

That might be yet another "old cauldron" issue, Colin did implement some stuff with localectl AFAIU, so maybe sddm works fine on new installs of Mageia 5 beta 3.
I'll check that in a VM.

Revision history for this message
In , Rémi Verschelde (rverschelde) wrote :

I can confirm that the bug also affects a Mageia 5 beta 3 VM.

Revision history for this message
In , Rémi Verschelde (rverschelde) wrote :

In my Mageia 5 beta 3 VM I do have all the files you mentioned, and the configuration look good:

$ cat /etc/locale.conf
LANGUAGE=de_DE.UTF-8:de
LANG=de_DE.UTF-8

$ cat /etc/vconsole.conf
KEYMAP=de-latin1
FONT=lat0-16

$ cat /etc/X11/xorg.conf.d/00-keyboard.conf
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "de"
        Option "XkbModel" "pc105"
        Option "XkbOptions" "compose:rwin"
EndSection

$ localectl
   System Locale: LANG=de_DE.UTF-8
                  LANGUAGE=de_DE.UTF-8:de
       VC Keymap: de-latin1
      X11 Layout: de
       X11 Model: pc105
     X11 Options: compose:rwin

So I guess all those files and localectl output are related to Colin's fixes for the GNOME l10n issues.

Still, all that stuff does not fix the sddm flaw of showing "us" keyboard layout and grabbing the correct one when you start typing.

Revision history for this message
In , Rémi Verschelde (rverschelde) wrote :

Lowering the severity as it actually works fine when you start typing (I did not check if the first character was inputted according to the US layout or the system one though).

Revision history for this message
In , Doktor5000 (doktor5000) wrote :

(In reply to Rémi Verschelde from comment #6)
> Still, all that stuff does not fix the sddm flaw of showing "us" keyboard
> layout and grabbing the correct one when you start typing.

This is confirmed by 3 people in the upstream report, best comment there.
We can't do much about this.

Added a short note to Errata:
https://wiki.mageia.org/en/Mageia_5_Errata#sddm

Revision history for this message
In , Rémi Verschelde (rverschelde) wrote :

(In reply to Florian Hubold from comment #8)
> This is confirmed by 3 people in the upstream report, best comment there.
> We can't do much about this.

Yep, let's see how upstream handles it. It's good to have our own bug report open for Mageia users that might want to report the same issue anyway.

> Added a short note to Errata:
> https://wiki.mageia.org/en/Mageia_5_Errata#sddm

Thanks! :)

Revision history for this message
In , Otto-leipala (otto-leipala) wrote :

I got it working by editing this file /usr/share/sddm/scripts/Xsetup

Added: setxkbmap XX

XX are your keyboard layout code can list availables with: localectl list-keymaps

Revision history for this message
In , Doktor5000 (doktor5000) wrote :

You do realize that we cannot hardcode the keyboard layout in the script that is supposed to set this according to systemwide defaults?

Revision history for this message
In , Otto-leipala (otto-leipala) wrote :

Yes i realize it,that was just my own test that suggested thing temp fix it.

Revision history for this message
In , Rémi Verschelde (rverschelde) wrote :

Still no progress upstream, so I pinged them in the bug report: https://github.com/sddm/sddm/issues/202

Revision history for this message
In , Doktor5000 (doktor5000) wrote :

It was suggested earlier that this might be an XCB bug, so reported that:
https://bugs.freedesktop.org/show_bug.cgi?id=93701

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in sddm (Ubuntu):
status: New → Confirmed
Revision history for this message
Xavier Gnata (xavier-gnata-gmail) wrote :

Duplicate of Bug #1448076

Revision history for this message
Xavier Gnata (xavier-gnata-gmail) wrote :
Revision history for this message
Flames_in_Paradise (ellisistfroh-deactivatedaccount) wrote :

https://bugs.freedesktop.org/show_bug.cgi?id=93701

Title: "xcb_xkb_get_names reply always returns "us" layout until XCB_XKB_NEW_KEYBOARD_NOTIFY detects first keypress"

Changed in xorg-server (Ubuntu):
status: New → Confirmed
summary: - system keyboard layout not honored
+ [master] system keyboard layout not honored
Changed in sddm (Mandriva):
importance: Unknown → Low
status: Unknown → In Progress
tags: added: kubuntu wily xenial
Changed in sddm (Ubuntu):
importance: Undecided → High
Changed in xorg-server (Ubuntu):
importance: Undecided → High
Revision history for this message
In , Rémi Verschelde (rverschelde) wrote :

Still no activity upstream, not much more info on the XCB bug report, and upstream moved it from the 0.14 milestone to 0.15, so we're not seeing a fix anytime soon.

Could we hack a workaround for Mageia 6?

Revision history for this message
In , Doktor5000 (doktor5000) wrote :

(In reply to Rémi Verschelde from comment #15)
> Could we hack a workaround for Mageia 6?

Feel free to hack on this.

Revision history for this message
Xavier Gnata (xavier-gnata-gmail) wrote :

On an up to date kubuntu, the bug it still there:
ssds see my laptop keyboard as a french one (which is correct) but the external keyboard is still handeled as a qwerty. That's a bit of an issue for people who are not used to foreign keyboard.
A workaround is presented here : https://github.com/sddm/sddm/issues/202 but again it does not really help to sell kubuntu as a "nice and easy desktop" to beginners.

Revision history for this message
In , Marja11 (marja11) wrote :

Is this bug still valid?

Revision history for this message
In , Rémi Verschelde (rverschelde) wrote :

This is still valid yes. IIRC Papoteur had started working on an edited version of our theme to simply remove the misleading flag icon.

Revision history for this message
In , Papoteur (yves-brungard-mageia) wrote :
Revision history for this message
Richard Stevens (3-uail-j) wrote :

Not sure if it helps but since I have created this bug quite some time ago I have discovered a few things. For me at least the bug seems to be somehow connected to Logitech wireless keyboards. If I boot my system with a wired Cherry keyboard, the keyboard configuration is honored and everything works as expected. If I connect the logitech wireless keyboard, it's not. This is reproducible. My Logitech Keyboard is a K520 with a Unifying receiver.

Revision history for this message
Axel Schmidt (arties) wrote :

This bug still exists but really curious on Kubuntu 16.04 and after upgrade on 16.10.
This bug exists first at login screen, thats mean, if you have an encrypted ubuntu system with passphrase required at boot time. At boot time the external logitech keyboard with german layout and unifying receiver works fine with german layout like the internal laptop keyboard. But at login screen the external keyboard changed to us layout, the internal keyboard not!

And now it would be extremly strange. After a time between 5 and 90 minutes working with the wrong layout on the external logitech keyboard, the external keyboard changes to the german layout themself! And until reboot the external keyboard keep the german layout.

Changed in sddm (Mandriva):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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