After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 691396 - When caps lock set as kb switcher third press doesn't change layout
When caps lock set as kb switcher third press doesn't change layout
Status: RESOLVED INVALID
Product: gnome-control-center
Classification: Core
Component: Keyboard
3.6.x
Other Linux
: Normal critical
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-01-09 11:29 UTC by Wolfram
Modified: 2013-01-09 12:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Wolfram 2013-01-09 11:29:42 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.
Comment 1 Rui Matos 2013-01-09 11:48:07 UTC
(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

?
Comment 2 Wolfram 2013-01-09 12:03:31 UTC
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?
Comment 3 Rui Matos 2013-01-09 12:07:50 UTC
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.
Comment 4 Wolfram 2013-01-09 12:19:40 UTC
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.
Comment 5 Wolfram 2013-01-09 12:21:50 UTC
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.
Comment 6 Rui Matos 2013-01-09 12:29:30 UTC
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.