FS#19434 - [xf86-input-wacom] Wacom tablet not working

Attached to Project: Arch Linux
Opened by Cody Maloney (maloney) - Wednesday, 12 May 2010, 08:23 GMT
Last edited by Ionut Biru (wonder) - Tuesday, 27 July 2010, 19:29 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Jan de Groot (JGC)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

I have a lenovo x200 tablet, and with it my wacom serial tablet isn't being detected by the rules in xorg.conf.d.

Additional info:
xf86-input-wacom: 0.10.6-2
xorg-server: 1.8.0.902-1

$udevadm info --path=/sys/class/tty/ttyS0 --attribute-walk
looking at device '/devices/pnp0/00:0a/tty/ttyS0':
KERNEL=="ttyS0"
SUBSYSTEM=="tty"
DRIVER==""

looking at parent device '/devices/pnp0/00:0a':
KERNELS=="00:0a"
SUBSYSTEMS=="pnp"
DRIVERS=="serial"
ATTRS{id}=="WACf004"

looking at parent device '/devices/pnp0':
KERNELS=="pnp0"
SUBSYSTEMS==""
DRIVERS==""

Wacom Doesn't show up in Xorg.0.log (Attached just in case there's something someone wants in it).


Steps to reproduce:
Start x
Tablet doesn't work
This task depends upon

Closed by  Ionut Biru (wonder)
Tuesday, 27 July 2010, 19:29 GMT
Reason for closing:  Implemented
Additional comments about closing:  in 0.10.8-1
Comment by Jan de Groot (JGC) - Wednesday, 12 May 2010, 08:35 GMT
Does udev actually load the wacom kernel driver, or isn't that one used for serial wacom tablets? It looks like udev doesn't pass the mouse device to Xorg.
Comment by Cody Maloney (maloney) - Wednesday, 12 May 2010, 08:42 GMT
The wacom kernel driver isn't loaded. According to the info in dmesg when I manually load it suggests that it's just for USB:

usbcore: registered new interface driver wacom
wacom: v1.52:USB Wacom tablet driver

It looks sort of like a bug that was reported in the Ubuntu launchpad: https://bugs.launchpad.net/ubuntu/+source/xf86-input-wacom/+bug/522318
Comment by Cody Maloney (maloney) - Thursday, 13 May 2010, 04:43 GMT
Adding the following two udev rules fixes it:

ACTION=="add|change", SUBSYSTEMS=="pnp", ATTRS{id}=="WACf*", ENV{ID_INPUT}="1", ENV{ID_INPUT_TABLET}="1", ENV{x11_driver}="wacom"
ACTION=="add|change", SUBSYSTEM=="pnp", ATTR{id}=="WACf*", ENV{NAME}="Serial Wacom Tablet"
Comment by Natanji (Natanji) - Thursday, 24 June 2010, 21:48 GMT
Actually, the detection in /etc/X11/xorg.conf.d/50-wacom.conf is broken and should be fixed, instead of manually adding udev rules that make the file work with them. ;)

I see two problems in the file: It matches WACf, not WACf004 device string, which is the one used in all the Thinkpad tablets.
Additionally, it matches the device path to /etc/input/ttyS0 for serial tablets. However some tablets don't show up there, but in /etc/ttyS0 simply. Editing xorg.conf.d to reflect these differences fixes the issue for me.

Is this something we should fix, or some upstream bug?

Also, I wanna note that this should get fixed ASAP as this happens with the current version of xf86-input-wacom in extra, not just in testing, since the Xorg 1.8 update.
Comment by Natanji (Natanji) - Friday, 25 June 2010, 23:31 GMT
I reported the bug upstream and hope there will be a fix from there: http://sourceforge.net/tracker/?func=detail&aid=3021125&group_id=69596&atid=525124
Comment by Natanji (Natanji) - Friday, 16 July 2010, 23:47 GMT
http://sourceforge.net/tracker/index.php?func=detail&aid=3021125&group_id=69596&atid=525124

It was rejected upstream because udev rules are distro-specific. So arch should really fix this. For matching, I recommend adding/changing the following lines to 50-wacom.conf

# Match all wacom tablets with a serial ID starting with WACf or FUJ*
ACTION!="add|change", GOTO="wacom_end"
ATTRS{id}=="WACf*" ENV{NAME}="Serial Wacom Tablet", ENV{ID_INPUT}="1",
ENV{ID_INPUT_TABLET}="1", SYMLINK+="input/wacom"
ATTRS{id}=="FUJ*" ENV{NAME}="Serial Wacom Tablet", ENV{ID_INPUT}="1",
ENV{ID_INPUT_TABLET}="1", SYMLINK+="input/wacom"
LABEL="wacom_end"

This is a hell of an easy fix so please do fix it soon.
Comment by Jan Alexander Steffens (heftig) - Monday, 19 July 2010, 00:58 GMT
Here's Fedora's wacom rules file: http://cvs.fedoraproject.org/viewvc/rpms/xorg-x11-drv-wacom/F-13/70-wacom.rules?view=co

Required for Xorg hotplugging support of serial tablets.
Comment by Natanji (Natanji) - Monday, 19 July 2010, 16:06 GMT
An equivalent of the Fedora file already comes with xf86-input-wacom in Arch. So your comments doesn't really help.
Comment by Jan Alexander Steffens (heftig) - Monday, 19 July 2010, 16:19 GMT
There is no such file in xf86-input-wacom in neither [extra] nor [testing].
Comment by Natanji (Natanji) - Monday, 19 July 2010, 16:50 GMT
My bad, you are correct.
I just wonder why it takes so long to fix this, the bug has been around for weeks as well as fixes... does anybody know how to get Jan to fix this quickly? Or is he very busy right now?

Loading...