tc1100 stylus buttons regression

Bug #573275 reported by MyR
40
This bug affects 6 people
Affects Status Importance Assigned to Milestone
xf86-input-wacom (Ubuntu)
Confirmed
Medium
Unassigned
Declined for Maverick by Bryce Harrington
Lucid
Won't Fix
Medium
Unassigned
Natty
Invalid
Medium
Unassigned

Bug Description

Hello, the patch for the tc1100 stylus buttons was not included in the latest release (1:0.10.5-0ubuntu4)

Patch probably needs to be added to line 481 of wcmISDV4.c but I don't know how to make one.
---
Architecture: i386
DistroRelease: Ubuntu 10.04
DkmsStatus: nvidia-96, 96.43.17, 2.6.32-22-generic, i686: installed
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
MachineType: Hewlett-Packard HP Tablet PC Tx1100
NonfreeKernelModules: nvidia
Package: xf86-input-wacom (not installed)
PccardctlIdent:
 Socket 0:
   no product info available
 Socket 1:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
 Socket 1:
   no card
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-22-generic root=UUID=c20caff1-2d58-435b-9daf-626f68a97442 ro quiet splash
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Tags: lucid lucid
Uname: Linux 2.6.32-22-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 01/03/2005
dmi.bios.vendor: Phoenix
dmi.bios.version: FirstBIOS Pro 2002 Q3
dmi.board.name: 08B0
dmi.board.vendor: Hewlett-Packard
dmi.board.version: 31.0A
dmi.chassis.asset.tag: KRD524007M
dmi.chassis.type: 14
dmi.chassis.vendor: Hewlett-Packard
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnPhoenix:bvrFirstBIOSPro2002Q3:bd01/03/2005:svnHewlett-Packard:pnHPTabletPCTx1100:pvr0F0E:rvnHewlett-Packard:rn08B0:rvr31.0A:cvnHewlett-Packard:ct14:cvrN/A:
dmi.product.name: HP Tablet PC Tx1100
dmi.product.version: 0F0E
dmi.sys.vendor: Hewlett-Packard
glxinfo: Error: [Errno 2] No such file or directory
system:
 distro: Ubuntu
 codename: lucid
 architecture: i686
 kernel: 2.6.32-22-generic

Revision history for this message
Bryce Harrington (bryce) wrote :

[This is an automatic notification.]

Hi MyR,

This bug was reported against an earlier version of Ubuntu, can you
test if it still occurs on Lucid?

Please note we also provide technical support for older versions of
Ubuntu, but not in the bug tracker. Instead, to raise the issue through
normal support channels, please see:

    http://www.ubuntu.com/support

If you are the original reporter and can still reproduce the issue on
Lucid, please run the following command to refresh the report:

  apport-collect 573275

If you are not the original reporter, please file a new bug report, so
we can work with you as the original reporter instead (you can reference
bug 573275 in your report if you think it may be related):

  ubuntu-bug xorg

If by chance you can no longer reproduce the issue on Lucid or if you
feel it is no longer relevant, please mark the bug report 'Fix Released'
or 'Invalid' as appropriate, at the following URL:

  https://bugs.launchpad.net/ubuntu/+bug/573275

Changed in xf86-input-wacom (Ubuntu):
status: New → Incomplete
tags: added: needs-retested-on-lucid-by-june
Revision history for this message
MyR (myr-jedi) wrote :

This was reported in Lucid.

Changed in xf86-input-wacom (Ubuntu):
status: Incomplete → Confirmed
tags: added: apport-collected
description: updated
Revision history for this message
MyR (myr-jedi) wrote : BootDmesg.txt

apport information

Revision history for this message
MyR (myr-jedi) wrote : CurrentDmesg.txt

apport information

Revision history for this message
MyR (myr-jedi) wrote : GdmLog.txt

apport information

Revision history for this message
MyR (myr-jedi) wrote : GdmLog1.txt

apport information

Revision history for this message
MyR (myr-jedi) wrote : GdmLog2.txt

apport information

Revision history for this message
MyR (myr-jedi) wrote : Lspci.txt

apport information

Revision history for this message
MyR (myr-jedi) wrote : Lsusb.txt

apport information

Revision history for this message
MyR (myr-jedi) wrote : PciDisplay.txt

apport information

Revision history for this message
MyR (myr-jedi) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
MyR (myr-jedi) wrote : ProcInterrupts.txt

apport information

Revision history for this message
MyR (myr-jedi) wrote : ProcModules.txt

apport information

Revision history for this message
MyR (myr-jedi) wrote : RelatedPackageVersions.txt

apport information

Revision history for this message
MyR (myr-jedi) wrote : UdevDb.txt

apport information

Revision history for this message
MyR (myr-jedi) wrote : UdevLog.txt

apport information

Revision history for this message
MyR (myr-jedi) wrote : XorgConf.txt

apport information

Revision history for this message
MyR (myr-jedi) wrote : XorgLog.txt

apport information

Revision history for this message
MyR (myr-jedi) wrote : XorgLogOld.txt

apport information

Revision history for this message
MyR (myr-jedi) wrote : Xrandr.txt

apport information

Revision history for this message
MyR (myr-jedi) wrote : setxkbmap.txt

apport information

Revision history for this message
MyR (myr-jedi) wrote : xdpyinfo.txt

apport information

Revision history for this message
MyR (myr-jedi) wrote : xkbcomp.txt

apport information

tags: removed: needs-retested-on-lucid-by-june
Revision history for this message
MyR (myr-jedi) wrote :

The source code that needs to be changed was already included and working properly in 9.10! It was presumably left out by accident; there is no other problem to diagnose.

Bryce Harrington (bryce)
tags: added: lucid
Revision history for this message
MyR (myr-jedi) wrote :

The patch should probably be pushed upstream if possible. Can someone do that or tell me how?

Revision history for this message
IKT (ikt) wrote :

Heya,

If you're still around you may want to look at this:

https://wiki.ubuntu.com/Bugs/Patches

MyR (myr-jedi)
tags: added: natty
removed: lucid
Revision history for this message
DannyBiker (dannybiker) wrote :

Any news on this ?

Revision history for this message
MyR (myr-jedi) wrote :

Here's the patch

Revision history for this message
MyR (myr-jedi) wrote :

OK, so the patch doesn't quite work... that is that patch from Ubuntu 9.10.

Can you make it work?? I don't have any experience programming in C.

Revision history for this message
MyR (myr-jedi) wrote :

This patch is a little better but still doesn't work.

Now the buttons are giving me a:

MotionNotify event, serial 33, synthetic NO, window 0x3200001,
    root 0xfc, subw 0x0, time 161661, (76,26), root:(77,79),
    state 0x0, is_hint 0, same_screen YES

in xev

bugbot (bugbot)
tags: added: lucid
tags: added: patch
Revision history for this message
Bryce Harrington (bryce) wrote :

MyR, hmm yeah it looks like that patch got dropped somewhere along the line, but it's not clear why/when/how.

Unfortunately, the codebase has changed quite a bit since that patch was made, and it no longer applies.

I've taken a shot at rewriting the patch for the current codebase (well, as of natty), but I need you to test it to verify I've ported things properly. I've packaged it up in a PPA so it's easier for you to test. The PPA is here:

  https://launchpad.net/~bryce/+archive/jackfruit

If that restores the functionality for you, please report back here.

Changed in xf86-input-wacom (Ubuntu):
importance: Undecided → Medium
status: Confirmed → In Progress
Changed in xf86-input-wacom (Ubuntu Natty):
status: New → In Progress
importance: Undecided → Medium
Changed in xf86-input-wacom (Ubuntu Lucid):
importance: Undecided → Medium
Changed in xf86-input-wacom (Ubuntu):
status: In Progress → Incomplete
Revision history for this message
MyR (myr-jedi) wrote :

Thank you! thank you! thank you!! I will test it as soon as the package builds...

Revision history for this message
MyR (myr-jedi) wrote :

Thank you again for trying. However the package you made causes a crash every time a stylus button is clicked probably because of "xf86WcmEvent(common, 0, ds);". Otherwise the one you made is identical to my effort (posted above).

I guess we're both on the right track, but it still doesn't work. It doesn't seem to be sending the right event. Xev gives a MotionNotify event instead of ButtonPress when clicking the button. Any ideas or guidance for debugging would be very much appreciated!

Changed in xf86-input-wacom (Ubuntu):
status: Incomplete → In Progress
Revision history for this message
MyR (myr-jedi) wrote :

Well I reapplied the patch I created and it's a little different than last time (due to xserver updates?). Now pressing the stylus button returns the cursor to the place it was before using the stylus.

Revision history for this message
MyR (myr-jedi) wrote :

I mean the cursor returns to the last spot it was while using the stylus, even though I moved it the the built-in mouse.
Sorry for all the messages.

Revision history for this message
Bryce Harrington (bryce) wrote :

I guess unless you spot the error to make it work right, probably the next best step would be to forward this issue upstream, to bugs.freedesktop.org.

Revision history for this message
Bryce Harrington (bryce) wrote :

...or to the wacom driver mailing list.

Revision history for this message
Bryce Harrington (bryce) wrote :

Alternatively, please collect a full backtrace from the crash and maybe I can decipher what's gone wrong.

See https://wiki.ubuntu.com/X/Backtracing for directions on collecting a full backtrace. Skip over the bits about apport and use the gdb method.

Changed in xf86-input-wacom (Ubuntu):
status: In Progress → Incomplete
Revision history for this message
bugbot (bugbot) wrote :

We're closing this bug since it is has been some time with no response from the original reporter. However, if the issue still exists please feel free to reopen with the requested information. Also, if you could, please test against the latest development version of Ubuntu, since this confirms the bug is one we may be able to pass upstream for help.

Changed in xf86-input-wacom (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xf86-input-wacom (Ubuntu Lucid):
status: New → Confirmed
Revision history for this message
Barry Callahan (barryc-rjlsystems) wrote :

Using LUbuntu Precise (12.04) on my TC1100.

Using the stock install, there is absolutely no response whatsoever from the system when I trigger the three stylus buttons. Not when I cat /dev/input/*, nor out of xev.

I manually applied the second wcmISDV4.c.patch file listed under patches on the right. It *LOOKS* like the only difference between it and the other copy is that the second one contains the diff command on the first line. But I have to admit that I haven't diffed them to be certain. The position in the file is considerably offset from when the patch was originally generated. (new code inserted at line 787)

dpkg-buildpackage execution completed with non-error status.

Install the newly generated package and restart X. /dev/input/* still do not twitch when I trigger the buttons.
HOWEVER, when I run xev and trigger the buttons from top to bottom (or right to left, depending on the orientation of the screen) starting from rotate, I get:

MotionNotify event, serial 41, synthetic NO, window 0x2200001,
    root 0x152, subw 0x2200002, time 308508, (35,41), root:(57,334),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 41, synthetic NO, window 0x2200001,
    root 0x152, subw 0x2200002, time 325562, (35,41), root:(57,334),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 41, synthetic NO, window 0x2200001,
    root 0x152, subw 0x2200002, time 333829, (35,41), root:(57,334),
    state 0x0, is_hint 0, same_screen YES

----------
So, needless to say, I'm getting input, so it's an obvious step in the right direction, but I can't tell the three button presses apart from each other. I'm looking into what I need to do next to make the buttons useful, finally.

Changed in xf86-input-wacom (Ubuntu):
status: Expired → Confirmed
dino99 (9d9)
Changed in xf86-input-wacom (Ubuntu Natty):
status: In Progress → Invalid
tags: removed: natty
Changed in xf86-input-wacom (Ubuntu Lucid):
status: Confirmed → Incomplete
Changed in xf86-input-wacom (Ubuntu):
status: Confirmed → Incomplete
tags: added: precise
Changed in xf86-input-wacom (Ubuntu):
status: Incomplete → Confirmed
Changed in xf86-input-wacom (Ubuntu Lucid):
status: Incomplete → Confirmed
Revision history for this message
Rolf Leggewie (r0lf) wrote :

lucid has seen the end of its life and is no longer receiving any updates. Marking the lucid task for this ticket as "Won't Fix".

Changed in xf86-input-wacom (Ubuntu Lucid):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.