You are not logged in.
Hi,
After recent upgrade (mostly gnome-3.6-related) on my laptop I decided to drop gnome-settings-daemon and use lightweight xsettingsd for my i3wm desktop environment. However, with gnome-settings-daemon gone my X keyboard layout configuration was gone as well. I tried to configure it using the following lines in /etc/X11/xorg.conf.d/10-evdev.conf:
Section "InputClass"
Identifier "evdev keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "XkbModel" "evdev"
Option "XkbRules" "evdev"
Option "XkbLayout" "us,ru"
Option "XkbVariant" ",winkeys"
Option "XkbOptions" "grp:caps_toggle,grp_led:scroll,terminate:ctrl_alt_bksp"
EndSectionThis configuration works very well on my desktop computer, however, when I changed 10-evdev.conf on the laptop and restarted X11 (through restarting GDM or even rebooting), it didn't work. The layout was not switching on Capslock as it should have been. I even tried to use gnome-settings-daemon again, but it seems that they have changed something in it in 3.6 version, and my old configuration is not working anymore - launching gsd does not enable layout swithing. I couldn't manage to configure gsd again with gnome control center too - it now has completely different interface in keyboard settings.
However, issuing setxkbmap command with right options works, and layout switches correctly after it.
So, first part of my question: is there a way to drop setxkbmap command and use X11 config only?
My first action in debugging this was to look into Xorg.0.log, which brings me to the second part of my question. I found rather suspicious things there:
...
[ 27.070] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[ 27.070] (**) Option "xkb_rules" "evdev"
[ 27.070] (**) Option "xkb_model" "evdev"
[ 27.070] (**) Option "xkb_layout" "us,ru"
[ 27.070] (**) Option "xkb_variant" ",winkeys"
[ 27.070] (**) Option "xkb_options" "grp:caps_toggle,grp_led:scroll,terminate:ctrl_alt_bksp"
...
[ 27.130] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[ 27.130] (**) Option "xkb_rules" "evdev"
[ 27.130] (**) Option "xkb_model" "evdev"
[ 27.130] (**) Option "xkb_layout" "us,ru"
[ 27.130] (**) Option "xkb_variant" ",winkeys"
[ 27.130] (**) Option "xkb_options" "grp:caps_toggle,grp_led:scroll,terminate:ctrl_alt_bksp"
...
[ 27.134] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 9)
[ 27.134] (**) Option "xkb_rules" "evdev"
[ 27.134] (**) Option "xkb_model" "evdev"
[ 27.134] (**) Option "xkb_layout" "us,ru"
[ 27.134] (**) Option "xkb_variant" ",winkeys"
[ 27.134] (**) Option "xkb_options" "grp:caps_toggle,grp_led:scroll,terminate:ctrl_alt_bksp"
...
[ 27.136] (II) XINPUT: Adding extended input device "WebCam SC-13HD11338N" (type: KEYBOARD, id 10)
[ 27.136] (**) Option "xkb_rules" "evdev"
[ 27.136] (**) Option "xkb_model" "evdev"
[ 27.136] (**) Option "xkb_layout" "us,ru"
[ 27.136] (**) Option "xkb_variant" ",winkeys"
[ 27.136] (**) Option "xkb_options" "grp:caps_toggle,grp_led:scroll,terminate:ctrl_alt_bksp"
...
[ 27.138] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 11)
[ 27.138] (**) Option "xkb_rules" "evdev"
[ 27.138] (**) Option "xkb_model" "evdev"
[ 27.138] (**) Option "xkb_layout" "us,ru"
[ 27.138] (**) Option "xkb_variant" ",winkeys"
[ 27.138] (**) Option "xkb_options" "grp:caps_toggle,grp_led:scroll,terminate:ctrl_alt_bksp"
...So, it looks like that keyboard options really were applied to the keyboard (last entry) - strange that in fact this is not right, and these options do not work without setxkbmap.
However, there are very strange entries too - somehow my webcam, power button, sleep button and video bus (!) were recognized as keyboard! Is this normal behavior? This does not seem to have any consequences, but still this does not feel right.
Regards,
Vladimir.
Offline