Summary: | Tablet buttons on Thinkpad X201 Tablet not working after updating to systemd 208 | ||
---|---|---|---|
Product: | systemd | Reporter: | rat.o.drat |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED FIXED | QA Contact: | systemd-bugs |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
dmesg output
dmidecode output |
Description
rat.o.drat
2013-11-23 00:43:53 UTC
Created attachment 89662 [details]
dmesg output
Created attachment 89663 [details]
dmidecode output
I've played with this a bit and fixed the issue for me, though I haven't found a proper fix. I've created a file /etc/udev/hwdb.d/90-custom-keyboard.hwdb and copied there the rules for those buttons. But I replaced pnThinkPad*X2*Tablet* with pn*. So the contents are: keyboard:dmi:bvn*:bvr*:bd*:svnLENOVO*:pn*:pvr* KEYBOARD_KEY_5d=menu KEYBOARD_KEY_63=fn KEYBOARD_KEY_66=screenlock KEYBOARD_KEY_67=cyclewindows # bezel circular arrow KEYBOARD_KEY_68=setup # bezel setup / menu KEYBOARD_KEY_6c=direction # rotate screen Now I get proper results: Event: time 1385170153.511745, type 4 (EV_MSC), code 4 (MSC_SCAN), value 66 Event: time 1385170153.511745, type 1 (EV_KEY), code 152 (KEY_SCREENLOCK), value 1 Event: time 1385170153.511745, -------------- SYN_REPORT ------------ Event: time 1385170153.811917, type 4 (EV_MSC), code 4 (MSC_SCAN), value 66 Event: time 1385170153.811917, type 1 (EV_KEY), code 152 (KEY_SCREENLOCK), value 0 Event: time 1385170153.811917, -------------- SYN_REPORT ------------ I've tried pnThinkPad* or pn*X201*, nothing seemed to work. According to dmidecode the value matched there should be "ThinkPad X201 Tablet" (I think). I would do more but i don't know how to debug this other than trying different strings and rebooting to see if it works. Please provide this string: $ cat /sys/class/dmi/id/modalias dmi:bvnLENOVO:bvrG7ET96WW(2.56):bd09/12/2013:svnLENOVO:pn23561T0:pvrThinkPadT430s:rvnLENOVO:rn23561T0:rvrNotDefined:cvnLENOVO:ct10:cvrNotAvailable: With this laptop, it looks more like "pvr" should be matched instead of "pvn". $ cat /sys/class/dmi/id/modalias dmi:bvnLENOVO:bvr6QET46WW(1.16):bd06/07/2010:svnLENOVO:pn2985DMG:pvrThinkPadX201Tablet:rvnLENOVO:rn2985DMG:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable: After blindly posting that I realized it's the string being matched. OK, so the rule that should work with ThinkPad X200 and X201 Tablet would be: keyboard:dmi:bvn*:bvr*:bd*:svnLENOVO*:pn*:pvrThinkPad*X2*Tablet* The above works for me now. Thanks for the help. Applied as http://cgit.freedesktop.org/systemd/systemd/commit/?id=f92164e. Please check that it works. Yes, this works. |
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.