GNOME Bugzilla – Bug 737673
keyboard: xkb-options not applied when bluetooth keyboard connects
Last modified: 2014-10-03 18:09:22 UTC
I just upgraded to 3.14 (archlinux), and when I start gnome my xkb-options setting does not get applied. I have the following settings in dconf: $ dconf read /org/gnome/desktop/input-sources/xkb-options ['compose:ralt', 'terminate:ctrl_alt_bksp', 'caps:escape', 'altwin:swap_alt_win'] I've confirmed that gnome-settings-daemon is running. I can make it work by going to gnome-tweak-tool, and changing the specific setting to something else, and then back to where I had it, but I have to do that for each setting. I can also make it work by running "setxkbmap" with no arguments, which applies all settings that are in dconf.
Update: I found out this only happens with a bluetooth keyboard. If I disconnect my bluetooth keyboard and reconnect it, I have to manually set the options again. In 3.12 the xkb options were applied automatically when my keyboard connected.
Created attachment 287610 [details] [review] backend-x11: Re-upload keymap when new keyboard devices are added The X server applies a default keymap to hotplugged keyboard devices. To enforce our current settings we must re-upload the keymap when a new keyboard shows up. Note that setting the VCK keymap causes the server to propagate it to all slave keyboard devices.
It turns out that we need to reset the root window property as well so just keeping the component names around wasn't enough and thus I decided to cache the strings from the public API and redo all dance when needed.
(In reply to comment #3) > It turns out that we need to reset the root window property as well so just > keeping the component names around wasn't enough and thus I decided to cache > the strings from the public API and redo all dance when needed. I forgot to mention that we need to reset the root window property because the X server resets it to the RMLVO values that it applies on the newly attached keyboard device.
Which is really dumb and stupid, but it is what is.
Review of attachment 287610 [details] [review]: OK.
Jasper told me to push on IRC. Attachment 287610 [details] pushed as 478b75e - backend-x11: Re-upload keymap when new keyboard devices are added
Thanks, Rui, for the bug fix! This was driving me crazy the past day or two, (and I just realized now it was connected to plugging in my USB keyboard). -Carl