Bug 1392748

Summary: GDM defaults to the wrong keyboard layout when two are configured in Gnome
Product: [Fedora] Fedora Reporter: Dagan McGregor <bugzilla.redhat>
Component: gdmAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 25CC: rstrode, zifts69+rhbugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-12 10:38:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Dagan McGregor 2016-11-08 06:45:30 UTC
Description of problem:

I installed Fedora and have been happily using the Dvorak keyboard layout for a long time. I recently added keyboard layout switching to make it easier to use a Yubikey (which requires Keyboard US layout).

Logging into GDM now defaults to using English (US) keyboard layout (en2), not the system keyboard layout or even the Gnome default Dvorak keyboard layout (en1).

This is noticable as the keyboard drop-down in the top-right of the screen shows the second keyboard layout, and it has to be changed to allow authentication to succeed.

Version-Release number of selected component (if applicable):

- Fedora 25 workstation
- gdm-3.22.1-1.fc25.x86_64

How reproducible:
After every boot

Steps to Reproduce:
1. Start computer normally
2. Attempt to login as normal
3. Password rejected due to wrong keyboard layout

Actual results:
GDM defaults to Keyboard (US) layout causing password failures.

Expected results:
GDM defaults to using the system keyboard layout, or Gnome default keyboard layout (en1) as defined by the user.

Additional info:
I have only noticed this happening recently, so a package update may have caused behaviour to be different. Originally I had everything set to use Dvorak and there were no issues.

It is only noticable now that I have configured Gnome to allow two different keyboard layouts.

Comment 1 Dagan McGregor 2016-11-08 06:47:33 UTC
It should have added: my system default keyboard layout is Dvorak, happily accepted by LUKS etc. Only GDM seems to switch back when not requested to.

Comment 2 zinks 2016-12-20 07:26:39 UTC
I'm seeing the same problem. The only difference is that my default keyboard is german. After logging in the keyboard is correctly set to german.

[root@zinksrv ~]# dnf list installed gdm
Installierte Pakete
gdm.x86_64                                                                                            1:3.22.1-1.fc25

Comment 3 Dagan McGregor 2017-02-13 08:13:01 UTC
This is still happening with Fedora 25 with all the latest updates applied.

It's a really stupid and frustrating bug that Gnome keeps losing track of the primary keyboard layout and thinks everyone wants to use QWERTY.

Comment 4 Dagan McGregor 2017-02-13 08:27:38 UTC
After a quick search for upstream Gnome bugs, it appears this has been around for a while:

https://bugzilla.gnome.org/show_bug.cgi?id=747625

Comment 5 Dagan McGregor 2017-03-01 08:01:31 UTC
I have noticed recently that this bug is occurring much less often than what it was when I logged this bug. 

So it appears something has changed with the various package updates I have installed, but I am unable to point to what.

The bug still happens at a login if I have used the keyboard switching in a previous session.
The login screen will show the default keyboard (en1, dvorak) but when the desktop loads it will be on the secondary layout (en2, qwerty).

Comment 6 zinks 2017-03-08 06:45:20 UTC
To me the problem was solved after turning /home into a real directory. Before it was a symbolic link. I did this because of https://bugzilla.redhat.com/show_bug.cgi?id=1414157 
So those two problems seem to be related. I had three systems setup with a symbolic link for /home. All 3 had this problem. After making /home a real directory on all 3 systems the problem disappeared.

Comment 7 Fedora End Of Life 2017-11-16 18:44:12 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 8 Fedora End Of Life 2017-12-12 10:38:44 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.