Comment 2 for bug 1899206

Revision history for this message
Weston Hunter (westonhunter) wrote : Re: Tweaktool Keyboard “Additional Layout Options” not persisting on USB keyboard unplug/reconnect

I did a bit more digging (based on Bernard Stafford's suggestion that USB keyboard unplug/reconnect) is causing the reconnected keyboard to go back to the default keyboard config. I was able to get my keyboard customizations to apply to the reconnected USB keyboard by explicitly adding them to /etc/default/keyboard:XKBOPTIONS.

When they are set only by Tweak tool (and not in /etc/default/keyboard:XKBOPTIONS), the options only seem to be defined in dconf in "org.gnome.desktop.input-sources xkb-options ['shift:both_capslock', 'ctrl:swap_lalt_lctl_lwin']". These settings seem to stop working when a USB keyboard is reconnected. This is the behavior which seems to have changed in the past month or so. (Thanks to Bernard for suggesting I even look into default keyboard configuration. This should help some.)

In addition to the keyboard settings not getting applied to the reconnected USB keyboard, it also appears that the mouse tracking speed setting (established in Gnome settings) is also lost on USB reconnect. This is also new behavior (almost certainly related to the reconnect issue I'm seeing with the USB keyboard).

I don't think it's very ergonomic to need to restart my Gnome session just to get my expected keyboard and mouse settings established when i reconnect my input devices back into my laptop.