I’m running Ubuntu 18.04.1 with Wayland, and my issue began when I updated Ubuntu from 17.04 to 17.10.
I have two keyboard layouts set up, as shown below:
The keyboard shortcut for switching between them is Super+Space and, after a seemingly random time, it stops working. Curiously, Ubuntu’s gray boxes that show the layout switch always appear when I use the shortcut; the change simply is not reflected in the keyboard output.
I have tried, with Gnome’s tweaks utility, changing the key combination, but whatever I choose also stops working after some time.
One thing that brings the shortcut back to life is unchecking and checking any of the key combinations in Tweak’s keyboard additional layout options. That is, if I check and uncheck something else, it doesn’t matter what, Win+Space or any other combination starts working again.
Later I found I could reproduce this GUI check by running
dconf write /org/gnome/desktop/input-sources/xkb-options "[\"grp:win_space_toggle\"]"
But again, after some time, for no apparent reason, the shortcut stops working once more. And even when the shortcuts are not working, the output I get from
dconf read /org/gnome/desktop/input-sources/xkb-options
is the same as before, that is,
['grp:win_space_toggle']. So it seems that either
dconf write is doing more than just updating this entry, or
dconf read is returning some stale value.
Anyway, I’m confused. If someone could point me to how further diagnose this issue, I would appreciate it.