Keyboard layout switch problem

Bug #1901187 reported by Dhia Eddine Chouchane
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-settings-daemon (Ubuntu)
Confirmed
Low
Unassigned
indicator-keyboard (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Hello,

I have a problem where keyboard layout change stops actually switching the keyboard input layout.

Ubuntu version: 20.04.1 LTS

Desktop environment: Gnome 3.36.3 (Ubuntu desktop)

Steps to reproduce:
1. Plug an external USB keyboard
2. Log in to your ubuntu-desktop session
3. Change layout => works properly
4. Unplug USB keyboard and plug it again
5. Change keyboard layout => Problem

Expected behaviour:
Changing keyboard layout through GUI to change keyboard layout from French to English.

What happened instead:
The GUI indicates that the layout changed. However when typing text into any window, the layout actually does not change.

This problem also happens when the computer goes to sleep as it disconnects USB devices.
Once the external USB keyboard is disconnected, the only way to get it to switch layout is by logging out and back in.

If you could point me out to what logs would be useful and where to find them, I could provide you with more information.

Note:
It is worth noting that I am using an external USB keyboard on my laptop. Unplugging the keyboard fixes the problem once it happens. However re-plugging it causes the problem to instantly happen again.

Tags: bot-comment
description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1901187/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → indicator-keyboard (Ubuntu)
description: updated
Revision history for this message
Ubuntu One (uountuone) wrote :

Suffered the same issue, with broken behaviour on external USB keyboard but normal behaviour on laptop's internal keyboard. Workaround was to remove the French keyboard layout and reinstall it. So far so good.

Revision history for this message
Ubuntu One (uountuone) wrote :

Same versions as OP.

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

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

Changed in gnome-settings-daemon (Ubuntu):
status: New → Confirmed
Changed in indicator-keyboard (Ubuntu):
status: New → Confirmed
Revision history for this message
Andrew Khalymon (akhalymon) wrote :
Download full text (4.6 KiB)

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)
[ 66...

Read more...

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, the title isn't really clear, is the problem about newly connected devices? if so it does sound like https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/issues/555

Changed in gnome-settings-daemon (Ubuntu):
importance: Undecided → Low
Changed in indicator-keyboard (Ubuntu):
importance: Undecided → Low
Revision history for this message
Dhia Eddine Chouchane (dhiachouchane) wrote :

Thank you for you reply @seb128. I do not think it is the same problem. The external keyboard works fine as long as it did not get disconnected.
Once it is reconnected again after getting disconnected, both external and embedded keyboards fail to change layout.
Disconnecting the external keyboard makes it possible to effectively change layout again for the embedded keyboard.

Revision history for this message
Bjorn Hassler (bjohas) wrote :

I'm on Ubuntu 20.04.3 LTS, gnome 3.36.8.

I have the same or a related problem. See also here: https://askubuntu.com/questions/448183/keyboard-map-is-changed-randomly (the dconf fix didn't work).

Basically, when a new device is connected, the keyboard map seems to be reset, e.g. a USB webcam. The issue also occurs when a bluetooth device connects.

Does anybody have any ideas what I could do here?

Many thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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