Bug 68376 - xorg xkb options don't trigger when MatchProduct is used
Summary: xorg xkb options don't trigger when MatchProduct is used
Status: RESOLVED NOTOURBUG
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/Input/XKB (show other bugs)
Version: 7.7 (2012.06)
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-21 11:23 UTC by sparhawk
Modified: 2014-07-06 12:29 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description sparhawk 2013-08-21 11:23:35 UTC
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


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.