Reproducible on desktop system (Lenovo Thinkstation S30) with Ubuntu 20.04.1 
LTS with Gnome Shell 3.36.4-1ubuntu1~20.04.2.
Steps: log in, physically unplug USB keyboard, plug it again.
Keyboard switchers show the switching happens, but layout is not changing 
actually.

It's also reproducible on Thinkpad X230 with exactly the same package versions.
Keyboard is Logitech K780, same for both systems. I've also tried another 
keyboard (some A4Tech one), the problem is reproducible with it too.

It's not reproducible for me with suspend and resume, only in the
conditions mentioned above.

Here is dmesg output from my system during keyboard plug/unplug.
65536.705683] logitech-hidpp-device 0003:046D:405B.0012: HID++ 4.5 device 
connected.
[65584.128856] usb 3-1.3: USB disconnect, device number 3
[65588.703094] usb 3-1.3: new full-speed USB device number 4 using xhci_hcd
[65588.814024] usb 3-1.3: New USB device found, idVendor=046d, idProduct=c52b, 
bcdDevice=12.10
[65588.814026] usb 3-1.3: New USB device strings: Mfr=1, Product=2, 
SerialNumber=0
[65588.814027] usb 3-1.3: Product: USB Receiver
[65588.814028] usb 3-1.3: Manufacturer: Logitech
[65588.835398] logitech-djreceiver 0003:046D:C52B.0015: hiddev0,hidraw0: USB 
HID v1.11 Device [Logitech USB Receiver] on usb-0000:07:00.0-1.3/input2
[65588.970091] input: Logitech K780 as 
/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3/3-1.3:1.2/0003:046D:C52B.0015/0003:046D:405B.0016/input/input43
[65588.970364] logitech-hidpp-device 0003:046D:405B.0016: input,hidraw1: USB 
HID v1.11 Keyboard [Logitech K780] on usb-0000:07:00.0-1.3/input2:1
[65590.930221] logitech-hidpp-device 0003:046D:405B.0016: HID++ 4.5 device 
connected.

Xorg.0.log
[ 66212.318] (II) config/udev: removing device Logitech K780
[ 66212.318] (**) Option "fd" "84"
[ 66212.322] (II) UnloadModule: "libinput"
[ 66212.322] (II) systemd-logind: not releasing fd for 13:75, still in use
[ 66212.322] (II) config/udev: removing device Logitech K780
[ 66212.322] (**) Option "fd" "84"
[ 66212.322] (II) event11 - Logitech K780: device removed
[ 66212.323] (II) UnloadModule: "libinput"
[ 66212.324] (II) systemd-logind: releasing fd for 13:75
[ 66226.101] (II) config/udev: Adding input device Logitech K780 
(/dev/input/event11)
[ 66226.101] (**) Logitech K780: Applying InputClass "libinput keyboard 
catchall"
[ 66226.101] (II) Using input driver 'libinput' for 'Logitech K780'
[ 66226.102] (II) systemd-logind: got fd for /dev/input/event11 13:75 fd 84 
paused 0
[ 66226.103] (**) Logitech K780: always reports core events
[ 66226.103] (**) Option "Device" "/dev/input/event11"
[ 66226.103] (**) Option "_source" "server/udev"
[ 66226.105] (II) event11 - Logitech K780: is tagged by udev as: Keyboard
[ 66226.105] (II) event11 - Logitech K780: device is a keyboard
[ 66226.105] (II) event11 - Logitech K780: device removed
[ 66226.105] (II) libinput: Logitech K780: needs a virtual subdevice
[ 66226.105] (**) Option "config_info" 
"udev:/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3/3-1.3:1.2/0003:046D:C52B.0020/0003:046D:405B.0021/input/input46/event11"
[ 66226.105] (II) XINPUT: Adding extended input device "Logitech K780" (type: 
MOUSE, id 8)
[ 66226.106] (**) Option "AccelerationScheme" "none"
[ 66226.107] (**) Logitech K780: (accel) selected scheme none/0
[ 66226.107] (**) Logitech K780: (accel) acceleration factor: 2.000
[ 66226.107] (**) Logitech K780: (accel) acceleration threshold: 4
[ 66226.108] (II) event11 - Logitech K780: is tagged by udev as: Keyboard
[ 66226.109] (II) event11 - Logitech K780: device is a keyboard
[ 66226.109] (**) Logitech K780: Applying InputClass "libinput keyboard 
catchall"
[ 66226.109] (II) Using input driver 'libinput' for 'Logitech K780'
[ 66226.109] (II) systemd-logind: returning pre-existing fd for 
/dev/input/event11 13:75
[ 66226.109] (**) Logitech K780: always reports core events
[ 66226.109] (**) Option "Device" "/dev/input/event11"
[ 66226.109] (**) Option "_source" "_driver/libinput"
[ 66226.109] (II) libinput: Logitech K780: is a virtual subdevice
[ 66226.109] (**) Option "config_info" 
"udev:/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3/3-1.3:1.2/0003:046D:C52B.0020/0003:046D:405B.0021/input/input46/event11"
[ 66226.109] (II) XINPUT: Adding extended input device "Logitech K780" (type: 
KEYBOARD, id 9)
[ 66226.109] (**) Option "xkb_model" "pc105"
[ 66226.110] (**) Option "xkb_layout" "us"
[ 66226.110] (WW) Option "xkb_variant" requires a string value
[ 66226.110] (WW) Option "xkb_options" requires a string value

The problem is not happening randomly, I was able to replicate it
straight after reboot.

Workaround is to restart gnome-shell with Alt-F2, then 'r'.

I can provide additional information if needed.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1901187

Title:
  Keyboard layout switch problem

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1901187/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to