Subject: gnome-shell: keyboard layout switching ignored after unplug/plug USB keyboard
Date: Wed, 01 Oct 2014 12:55:46 +0200
Package: gnome-shell
Version: 3.14.0-1
Severity: important
Hi,
since (roughly) GNOME 3.14 upgrade the keyboard layout switching is
non-functional. After pressing SUPER-space the graphical switcher is
shown and you can switch the layouts, but it doesn't do anything with
the input - US keyboard is still used. You can still set the layout
manually with 'setxkbmap cz' (for Czech keyboard), but the interface
between gnome-shell (or what takes care of it) and X input is broken.
It starts working again after a reboot, but unplugging and plugging
the keyboard starts the behaviour (or in my case unplugging the ASUS
USB dock and suspending the laptop).
It can be easily reproduced by unplugging and plugging the keyboard
back:
Quote from debian-devel:
> 10:36 < buxy> ondrej: indeed, I unplugged my USB keyboard yesterday
> and it's now broken too, funnily it fixed my broken keyboard shortcuts
> that I reported in #763506
Let me know if you have any idea how to debug the issue.
Cheers,
Ondrej Sury
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gnome-shell depends on:
ii dconf-gsettings-backend [gsettings-backend] 0.22.0-1
ii evolution-data-server 3.12.6-1
ii gir1.2-accountsservice-1.0 0.6.37-3
ii gir1.2-atspi-2.0 2.12.0-2
ii gir1.2-caribou-1.0 0.4.15-1
ii gir1.2-clutter-1.0 1.20.0-1
ii gir1.2-freedesktop 1.42.0-1
ii gir1.2-gcr-3 3.14.0-1+b1
ii gir1.2-gdesktopenums-3.0 3.14.0-1
ii gir1.2-gdm3 3.13.92-1
ii gir1.2-gkbd-3.0 3.6.0-1
ii gir1.2-glib-2.0 1.42.0-1
ii gir1.2-gnomebluetooth-1.0 3.14.0-1
ii gir1.2-gnomedesktop-3.0 3.14.0-1
ii gir1.2-gtk-3.0 3.14.0-1
ii gir1.2-ibus-1.0 1.5.8-2
ii gir1.2-mutter-3.0 3.14.0-1
ii gir1.2-networkmanager-1.0 0.9.10.0-3
ii gir1.2-nmgtk-1.0 0.9.10.0-2
ii gir1.2-pango-1.0 1.36.7-1
ii gir1.2-polkit-1.0 0.105-7
ii gir1.2-soup-2.4 2.48.0-1
ii gir1.2-telepathyglib-0.12 0.24.1-1
ii gir1.2-telepathylogger-0.2 0.8.1-1
ii gir1.2-upowerglib-1.0 0.99.1-3
ii gjs 1.41.91-2
ii gnome-backgrounds 3.14.0-1
ii gnome-icon-theme-symbolic 3.12.0-1
ii gnome-settings-daemon 3.14.0-1
ii gnome-shell-common 3.14.0-1
ii gnome-themes-standard 3.14.0-1
ii gsettings-desktop-schemas 3.14.0-1
ii libatk-bridge2.0-0 2.12.1-1+b1
ii libatk1.0-0 2.14.0-1
ii libc6 2.19-11
ii libcairo2 1.12.16-5
ii libcanberra-gtk3-0 0.30-2.1
ii libcanberra0 0.30-2.1
ii libclutter-1.0-0 1.20.0-1
ii libcogl-pango20 1.18.2-2
ii libcogl20 1.18.2-2
ii libcroco3 0.6.8-3
ii libdbus-glib-1-2 0.102-1
ii libecal-1.2-16 3.12.6-1
ii libedataserver-1.2-18 3.12.6-1
ii libgcr-base-3-1 3.14.0-1+b1
ii libgdk-pixbuf2.0-0 2.30.8-1+b1
ii libgirepository-1.0-1 1.42.0-1
ii libgjs0e [libgjs0-libmozjs-24-0] 1.41.91-2
ii libglib2.0-0 2.42.0-1
ii libgstreamer1.0-0 1.4.3-1
ii libgtk-3-0 3.14.0-1
ii libical1 1.0-1
ii libjson-glib-1.0-0 1.0.2-1
ii libmozjs-24-0 24.2.0-2
ii libmutter0e 3.14.0-1
ii libnm-glib4 0.9.10.0-3
ii libnm-util2 0.9.10.0-3
ii libpango-1.0-0 1.36.7-1
ii libpangocairo-1.0-0 1.36.7-1
ii libpolkit-agent-1-0 0.105-7
ii libpolkit-gobject-1-0 0.105-7
ii libpulse-mainloop-glib0 5.0-6
ii libpulse0 5.0-6
ii libsecret-1-0 0.18-1+b1
ii libstartup-notification0 0.12-4
ii libsystemd0 215-5+b1
ii libtelepathy-glib0 0.24.1-1
ii libx11-6 2:1.6.2-3
ii libxfixes3 1:5.0.1-2
ii python 2.7.8-1
ii telepathy-mission-control-5 1:5.16.3-1
Versions of packages gnome-shell recommends:
ii gdm3 3.13.92-1
ii gkbd-capplet 3.6.0-1
ii gnome-contacts 3.14.0-1
ii gnome-control-center 1:3.14.0-1
ii gnome-user-guide 3.14.0-1
ii unzip 6.0-12
gnome-shell suggests no packages.
-- no debconf information
Acknowledgement sent
to Dmitry Borodaenko <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian GNOME Maintainers <[email protected]>.
(Tue, 13 Oct 2020 17:33:03 GMT) (full text, mbox, link).
[cc to most recent uploaders to flag that this 6 years old bug is back]
This started happening to me after upgrade to gnome-shell 3.38.1. The
behavior I see is that SUPER-space on my laptop's keyboard still works
as expected, at the same time SUPER-space on my USB keyboard (connected
via USB hub in my monitor) works exactly as described by Ondřej:
keyboard switcher appears and they keyboard language indicator changes,
but the keyboard layout remains unchanged.
Mentions of keyboard, warnings, and errors in my journalctl before I
plug in the keyboard:
Oct 13 10:08:03 x1 systemd[1109]: Starting GNOME keyboard configuration service...
Oct 13 10:08:03 x1 systemd[1109]: Starting GNOME keyboard shortcuts service...
Oct 13 10:08:03 x1 systemd[1109]: app-gnome-user\x2ddirs\x2dupdate\x2dgtk-1422.scope: Failed to add PIDs to scope's control group: No such process
Oct 13 10:08:03 x1 systemd[1109]: app-gnome-user\x2ddirs\x2dupdate\x2dgtk-1422.scope: Failed with result 'resources'.
Oct 13 10:08:03 x1 systemd[1109]: Failed to start Application launched by gnome-session-binary.
Oct 13 10:08:03 x1 gsd-usb-protect[1411]: Failed to fetch USBGuard parameters: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.usbguard1 was not provided by any .service files
Oct 13 10:08:03 x1 systemd[1109]: Started GNOME keyboard shortcuts service.
Oct 13 10:08:03 x1 systemd[1109]: Reached target GNOME keyboard shortcuts target.
Oct 13 10:08:03 x1 systemd[1109]: Started GNOME keyboard configuration service.
Oct 13 10:08:03 x1 systemd[1109]: Reached target GNOME keyboard configuration target.
Oct 13 10:08:03 x1 gnome-shell[826]: Failed to set CRTC gamma: drmModeCrtcSetGamma on CRTC 51 failed: Permission denied
Oct 13 10:08:03 x1 gsd-media-keys[1400]: Failed to grab accelerator for keybinding settings:rfkill
Oct 13 10:08:03 x1 gsd-media-keys[1400]: Failed to grab accelerator for keybinding settings:playback-repeat
Oct 13 10:08:03 x1 gsd-media-keys[1400]: Failed to grab accelerator for keybinding settings:rotate-video-lock
Oct 13 10:08:03 x1 gsd-media-keys[1400]: Failed to grab accelerator for keybinding settings:playback-random
Oct 13 10:08:03 x1 gsd-media-keys[1400]: Failed to grab accelerator for keybinding settings:hibernate
Oct 13 10:08:03 x1 colord[742]: failed to get session [pid 1393]: No data available
Oct 13 10:08:03 x1 gnome-shell[826]: Failed to set CRTC gamma: drmModeCrtcSetGamma on CRTC 51 failed: Permission denied
Oct 13 10:08:04 x1 gnome-shell[826]: Connection to xwayland lost
Oct 13 10:08:04 x1 gdm-launch-environment][768]: pam_unix(gdm-launch-environment:session): session closed for user Debian-gdm
Oct 13 10:08:04 x1 gdm-launch-environment][768]: pam_systemd(gdm-launch-environment:session): Failed to release session: Interrupted system call
Oct 13 10:08:04 x1 systemd-logind[710]: Session c1 logged out. Waiting for processes to exit.
Oct 13 10:08:04 x1 gsd-color[1393]: failed to connect to device: Failed to connect to missing device /org/freedesktop/ColorManager/devices/xrandr_LG_Display_Debian_gdm_117
Oct 13 10:08:10 x1 gnome-shell[1298]: Could not create transient scope for PID 1553: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 1553 does not exist.
Oct 13 10:08:10 x1 gnome-shell[1298]: Could not create transient scope for PID 1554: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 1554 does not exist.
Oct 13 10:08:16 x1 gnome-shell[1298]: Could not create transient scope for PID 1558: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 1558 does not exist.
Log of all journalctl messages after turning on my monitor is attached,
too long to include inline.
--
Dmitry Borodaenko
There have been many changes to Debian since this bug was originally
reported. If you are still experiencing this issue with Debian 12 (or
with Testing or Unstable), please report a new bug.
Thank you,
Jeremy Bícha
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.