Bug 4905

Summary: Wacom Graphire 3 loses relative mode in Kernels 2.6.13_rc1 through 2.6.13_rc4
Product: Drivers Reporter: Mike Auty (m.auty)
Component: USBAssignee: Greg Kroah-Hartman (greg)
Status: CLOSED INVALID    
Severity: normal CC: akpm, dmitry.torokhov, pingc, vojtech
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.13_rc1 Subsystem:
Regression: --- Bisected commit-id:
Attachments: fixes this bug and a Cintiq 21UX bug

Description Mike Auty 2005-07-17 03:42:47 UTC
Distribution: Gentoo 2005.0
Hardware Environment: i686 AMD Athlon(tm) 64 Processor 3400+
Software Environment: gcc-3.4.4, glibc-2.3.5-r0, Xorg-6.8.2

Problem Description: 

When running under kernel 2.6.12.2, the Xorg wacom driver locates the
/dev/input/eventX devices and correctly interprets the X options to make the
mouse/puck run in relative mode, such that picking up the device and replacing
it on the other side of the tablet does not cause the cursor to move at all.

Upon choosing the 2.6.13_rc1 kernel under grub, X boots fine and provides no
errors, it reports that the mouse has been told to run in relative mode, but the
cursor now moves to the absolute position on the screen when the puck is removed
and replaced on the other side of the tablet.

The 2.6.13-rc1 config was created by copying the 2.6.12.2 config and running
make oldconfig and altering only the new options.

The linuxwacom driver (both kernel and X version) were present during this
problem.  Since the linuxwacom Xorg driver currently doesn't compile for
dlloader, it wasn't possible to test whether this worked or not.

This was reported http://bugs.gentoo.org/show_bug.cgi?id=99178, where it was
suggested that I file a kernel bug.

Steps to reproduce:

Boot kernel-2.6.12.2 or lower.
Setup the mouse to relative mode and check that it works as expected.
Reboot the machine in kernel-2.6.13-rc1 (or higher up to _rc3 so far)
Remove and replace the mouse on the tablet.

If there's any further information I can provide that might help, or tests I can
run etc., please post them and I'll be happy to give them a try.  Thanks...
Comment 1 Andrew Morton 2005-07-29 00:39:42 UTC
Is this problem still present in 2.6.13-rc4?  Were
you able to find a workaround?

Comment 2 Mike Auty 2005-07-29 13:10:05 UTC
The problem still occurs with 2.6.13_rc4 (and I've updated the summary accordingly).

I've now been able to try the linuxwacom driver over the one included with Xorg
since the gentoo developers very kindly included dlloader support in a recent
ebuild, and the problem still occurs both with and without it present.  As
previously, returning to 2.6.12.2 cures the problem.

I haven't found any other workaround yet.  Assuming it's related to the event
driver, does anyone know exactly what changed between versions in that area?  As
always if anyone needs me to run any tests or try anything for them, I'm more
than willing, just let me know what I should do.  Thanks...
Comment 3 Andrew Morton 2005-07-29 14:07:46 UTC
hm.  Dmitry, Vojtech: is this related to the in-kernel Wacom driver
or is it a general input driver core problem?
Comment 4 Dmitry Torokhov 2005-07-29 14:37:30 UTC
I think it was caused by the latest Wcom driver update from Ping Cheng that I 
picked up from -mm. I was hoping we would comment - he was CCed on th original 
e-mail.
Comment 5 Mike Auty 2005-07-30 06:13:48 UTC
I'm now in contact with Ping and we're trying to figure out the problem.  So far
we've determined that replacing the wacom drivers from the 2.6.13 sources with
ones from the 2.6.11 sources still shows the same symptoms.  I'll also report
back anything else we find here...
Comment 6 Ping Cheng 2005-07-30 10:10:20 UTC
From Mike's last comments (#5), I don't think it is a problem of my latest 
wacom.c. And, I don't think it is the new kernel's issue either. I feel it is 
probably a driver setup or X configuration file issue. Mike is doing more 
testing there. We'll keep you informed.
Comment 7 Greg Kroah-Hartman 2005-08-04 13:14:17 UTC
Ok, I'll mark this as INVALID for now.

If you all determine that this is a kernel issue, please reopen the bug.
Comment 8 Ping Cheng 2005-08-13 11:41:39 UTC
Created attachment 5630 [details]
fixes this bug and a Cintiq 21UX bug

It turns out that the code does have a bug for Graphire. Attached patch fixes
the bug and a Cintiq 21UX bug as well.
Comment 9 Andrew Morton 2005-08-14 01:20:02 UTC
Please email the patch in the normal manner if it's ready
for applying.
Comment 10 Greg Kroah-Hartman 2005-08-15 10:23:07 UTC
Got it, I'll forward it on now, thanks.