GNOME Bugzilla – Bug 691396
When caps lock set as kb switcher third press doesn't change layout
Last modified: 2013-01-09 12:29:30 UTC
I've used gnome-tweak-tool to set caps lock as kb switch hotkey. I've added two layouts (en-us, ru) in regional settings/typing. So, for now first press on caps lock turns english layout on. Second press turns russian layout. Third press... does nothing. Keyboard indicator disappears from gnome-shell panel and keyboard layout remains set to russian. Next press will turn english layout again. It's VERY, VERY annoying, you've not only broken per-window/per-context layout switching but also broken layout switching at all.
(In reply to comment #0) > I've used gnome-tweak-tool to set caps lock as kb switch hotkey. I've added two > layouts (en-us, ru) in regional settings/typing. > > So, for now first press on caps lock turns english layout on. Second press > turns russian layout. Third press... does nothing. Keyboard indicator > disappears from gnome-shell panel and keyboard layout remains set to russian. > Next press will turn english layout again. This means that there's an entry in your input sources which isn't valid. What's the output of running gsettings get org.gnome.desktop.input-sources sources ?
wolfy@zen ~ % gsettings get org.gnome.desktop.input-sources sources [('ibus', 'm17n:ru:kbd'), ('ibus', 'xkb:us::eng'), ('xkb', 'ru')] Which entry is incorrect and how may I remove it?
From your description it's probably the first one, m17n. Do you see 3 entries in gnome-control-center? How did you add these 3 entries? If you upgraded they might have come from your previous ibus settings.
No, I see only two entries - "english" and "russian". I've used Ibus before, but it doesn't work for 3.6, so I've removed ~/.xinputrc For now I've tried to uninstall m17n but without any success.
Ok, the following command fixed the problem: gsettings set org.gnome.desktop.input-sources sources "[('ibus','xkb:us::eng'), ('xkb', 'ru')]" But I still don't know what happened and why bad entry wasn't displayed in settings center.
It was probably migrated from your old configuration and during the upgrade either ibus-m17n got uninstalled or broken somehow which makes that entry invalid since we can't activate it.