You are not logged in.

#1 2017-06-25 12:27:29

lightning
Member
Registered: 2017-06-25
Posts: 5

gnome-shell doesn't respect the gnome keyboard layout setting

I'm running a notebook with GDM and gnome-shell. Since a while gnome-shell doesn't seem to care about the setting of keyboard layout as set in gnome-control-center. I have the layout set to German, but in most applications (e.g. chromium, gvim, keepass) the keyboard behaves like it is set to English. I can even cycle between different layouts (in my case de, en, fr), and the language input still sticks to English.

The weird thing is: Sometimes when I boot the keyboard layout is as expected and can even be cycled successfully (so that the actual input language is the same as the one that is set), but most of the times it doesn't work. And even weirder it doesn't affect all applications. In contrast, in gnome-terminal and evolution the keyboard setting is applied correctly *most* of the times, but here *sometimes* it isn't.

How can I fix this? Any help is appreciated.

Edit: I just switched to a tty and back to gnome-shell (without logging out), and now everything works as expected.

Last edited by lightning (2017-06-25 12:30:38)

Offline

#2 2017-06-25 13:51:27

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: gnome-shell doesn't respect the gnome keyboard layout setting

gnome on wayland? only xwayland clients affected? tried gnome on xorg?

Offline

#3 2017-06-25 13:59:22

lightning
Member
Registered: 2017-06-25
Posts: 5

Re: gnome-shell doesn't respect the gnome keyboard layout setting

Yes, gnome on wayland. I don't have xorg installed, and I'd prefer not to install it. If this step is needed to resolve the problem, I would do it anyway.

I'm unsure what you mean by xwayland clients. A quick google search didn't bring any helpful description up.

Offline

#4 2017-06-25 14:11:00

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: gnome-shell doesn't respect the gnome keyboard layout setting

Clients w/o native wayland support will run on a nested X11 server and I assume the layout (notably on a dynamic setup) isn't properly carried down.
There'll be a running Xwayland process.

Offline

#5 2017-06-25 14:14:21

lightning
Member
Registered: 2017-06-25
Posts: 5

Re: gnome-shell doesn't respect the gnome keyboard layout setting

The only process with a /usr/bin/xwayland child is gnome-shell which happens to exist twice. Both are childs (with other processes in between) of /usr/bin/gdm.

Edit: One gnome-shell belongs to my user, one belongs to the user gdm.

Last edited by lightning (2017-06-25 14:15:12)

Offline

#6 2017-06-25 14:16:37

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: gnome-shell doesn't respect the gnome keyboard layout setting

xwayland is NOT a child process of the X11 client, but (typically) the wayland server (in this case gnome-shell)
The X11 client then talks to this server process.

If you don't get this with the majority of gtk3 and Qt5 clients but eg. xterm, you can bet your arm on the xwayland connection.

Offline

#7 2017-06-25 14:18:23

lightning
Member
Registered: 2017-06-25
Posts: 5

Re: gnome-shell doesn't respect the gnome keyboard layout setting

Ok, thanks so far. And now what? Can you recommend me a source to dig deeper into this topic?

Offline

#8 2017-06-25 14:24:23

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: gnome-shell doesn't respect the gnome keyboard layout setting

https://bugs.freedesktop.org/buglist.cg … esolution=---
https://bugs.freedesktop.org/show_bug.cgi?id=93237

xwayland is some sort of compatibility layer, I would not expect this to be fixed other than native wayland support by the client.

Offline

#9 2017-06-25 14:26:13

lightning
Member
Registered: 2017-06-25
Posts: 5

Re: gnome-shell doesn't respect the gnome keyboard layout setting

For all others that come around this bug: As a workaround log in to gnome-shell, switch to a tty (and maybe login there) and get back to gnome-shell. This made it work for me.

Offline

Board footer

Powered by FluxBB