You are not logged in.

#1 2015-12-14 10:37:13

RGBD
Member
Registered: 2015-12-14
Posts: 2

Cannot change keyboard layout with xkb-switch in gnome 3.

I use Gnome 3 as DE. I also use xkb-switch for automatic layout change in vim.
At some point I noticed that xkb-switch stoped working, i.e. it doesn't change layout anymore.

However in xfce everything works as intended. Later I've tried to monitor layout changes in Gnome
wiwth xkb-switch -W option. Result was confusing, because xkb-switch works as intended, but
something else is switching the layout back.

So when I run:

xkb-switch -s ru

xkb-switch -W output looks like this:

ru
us

Here is the output of setxkbmap -print -verbose 10 in gnome:

Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules:      evdev
model:      pc105
layout:     us,ru,us
variant:    ,,
options:    grp:caps_toggle
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+us+ru:2+us:3+inet(evdev)+capslock(grouplock)
geometry:   pc(pc105)
xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include "pc+us+ru:2+us:3+inet(evdev)+capslock(grouplock)"	};
	xkb_geometry  { include "pc(pc105)"	};
};

The same output in xfce:

Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules:      evdev
model:      pc105
layout:     us,ru
variant:    ,
options:    grp:caps_toggle
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+us+ru:2+inet(evdev)+capslock(grouplock)
geometry:   pc(pc105)
xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include "pc+us+ru:2+inet(evdev)+capslock(grouplock)"	};
	xkb_geometry  { include "pc(pc105)"	};
};

And here are the contents of /etc/X11/xorg.conf.d/00-keyboard.conf:

# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us,ru"
        Option "XkbVariant" ","
EndSection

gnome-shell --version is GNOME Shell 3.18.3.

I found nothing similar to this problem on the internet.
What can I do to prevent gnome from changing layout?
Are there other tools for switching layout from command line?
Any workaround would be fine.

Offline

#2 2016-03-23 18:30:48

MrZammler
Member
Registered: 2016-03-23
Posts: 1

Re: Cannot change keyboard layout with xkb-switch in gnome 3.

Hi,

did you happen to find a solution to this? Having the same problem under Gnome 3.18. Trying to switch languages using setxkbmap doesn't work any more...

Offline

#3 2016-09-29 16:57:48

RGBD
Member
Registered: 2015-12-14
Posts: 2

Re: Cannot change keyboard layout with xkb-switch in gnome 3.

No sollution so far. Crosslinking github repo issue.
https://github.com/ierton/xkb-switch/issues/15

Offline

Board footer

Powered by FluxBB