| Summary: |
xorg xkb options don't trigger when MatchProduct is used |
| Product: |
xorg
|
Reporter: |
sparhawk <freedesktopbugs> |
| Component: |
Server/Input/XKB | Assignee: |
Xorg Project Team <xorg-team> |
| Status: |
RESOLVED
NOTOURBUG
|
QA Contact: |
Xorg Project Team <xorg-team> |
| Severity: |
normal
|
|
|
| Priority: |
medium
|
|
|
| Version: |
7.7 (2012.06) | |
|
| Hardware: |
x86-64 (AMD64) | |
|
| OS: |
Linux (All) | |
|
| Whiteboard: |
|
|
i915 platform:
|
|
i915 features:
|
|
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
I have a file in /etc/X11/xorg.conf.d/ that attempts to set the xkb options for a specific keyboard model. Hence, it contains the following line: MatchProduct "TrulyErgonomic.com Truly Ergonomic Computer Keyboard" I know that this match triggers fine, because it activates at-home-modifier [1] as expected, only for this keyboard. I can confirm this by commenting out the following at-home-modifier line, which results in a lack of activation. Option "TransMod" "36:64" However, it seems that the xkb options are not triggering. For example this line: Option "XKbOptions" "lv3:ralt_switch_multikey,numpad:pc,ctrl:swapcaps" Similarly to above, I've tried removing ",ctrl:swapcaps" and restarting, but this makes no difference. From `setxkbmap -query`, no options are set. Oddly enough, if I comment out the "MatchProduct" line, then this line functions as expected, as confirmed by restarting with either ",ctrl:swapcaps" present or absent. (Obviously this then acts on all keyboards.) Finally, I've also tried manually changing the settings of they integrated keyboard. First I find the id with `xinput list`, then run setxkbmap -device 15 -layout us -variant altgr-intl -option lv3:ralt_switch_multikey,numpad:pc,ctrl:swapcaps This works as expected. In case it's important, here is /etc/X11/xorg.conf.d/11-TECK-keymap.conf : Section "InputClass" Identifier "TECK" Driver "evdev" # If you save this file under xorg.conf.d/ : Option "AutoServerLayout" "on" MatchIsKeyboard "on" MatchProduct "TrulyErgonomic.com Truly Ergonomic Computer Keyboard" ### at-home-modifier options begin here. # The basic option. Option "XkbLayout" "us" Option "XkbVariant" "altgr-intl" Option "XKbOptions" "lv3:ralt_switch_multikey,numpad:pc,ctrl:swapcaps" Option "TransMod" "36:64" EndSection I'm running Kubuntu 13.04, KDE 4.10.5, with "Configure layouts" and "Configure keyboard options" unchecked in System Settings. [1] http://gitorious.org/at-home-modifier/at-home-modifier/blobs/raw/master/README