Shell forgets mouse & keyboard customizations after m&k unplug/replug or using KVM switch
Affected version
Version: Gnome 3.38.2
OS: Manjaro 64-bit (latest)
Display: Xorg 1.20.9 + Nvidia binary 455.45.01
Kernel: Kernel: x86_64 Linux 5.4.80-2-MANJARO
Bug summary
I use a KVM switch to use a single mouse and keyboard between two desktop machines. When I switch back to this machine running Gnome desktop 3.38.2, the small number of mouse and keyboard settings I've customized are forgotten. Resetting Gnome Shell with alt-F2 + r fixes this.
I've confirmed that this also happens when I simply unplug the mouse and keyboard and plug them directly into the machine's USB ports.
Worth noting that this only started happening when my distro upgraded from Gnome 3.36 to 3.38.
Steps to reproduce
- In the Gnome Tweaks tool, change a couple of default options: in Additional Layout Options set "Caps Lock is also a Ctrl", and change the mouse acceleration profile to Flat.
- Use a KVM switch - mine is an IOGEAR GCS22U 2-Port USB KVM - to connect a single standard USB mouse and keyboard to two different machines, the first-booted of which is running Gnome desktop.
- Press the KVM button to switch to the second machine.
- Press the button again to switch back.
- Observe: the keyboard and mouse setting customizations have reverted to their defaults.
- Press alt-F2 and then r to reset Gnome Shell.
- Observe: the customizations are back.
- Unplug the mouse and keyboard from the KVM and plug them directly into the machine's USB ports.
- Observe: the same thing described in step 5 happens.
What happened
See step 5 above.
What did you expect to happen
Customizations should be preserved even across KVM switch / mouse and keyboard unplug. Steps 6 and 7 shouldn't be necessary every time the user switches back / replugs the devices.
Relevant logs, screenshots, screencasts etc.
Not sure what log info would be useful but I'm happy to provide it on request.