two-finger scrolling produces spurious button 5 events

Bug #260780 reported by Marius Gedminas
42
This bug affects 4 people
Affects Status Importance Assigned to Milestone
xserver-xorg-input-synaptics (Debian)
Fix Released
Unknown
xserver-xorg-input-synaptics (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: xserver-xorg-input-synaptics

I've a Lenovo T61 with a Synaptics touchpad with the following options in my xorg.conf:

        Option "HorizEdgeScroll" "0"
        Option "VertTwoFingerScroll" "true"

If I try to use two-finger scrolling, very often I get spurious scroll down events immediately after I lift my fingers off the touchpad. This makes two-finger scrolling feature absolutely unusable :(

This is on Hardy with xserver-xorg-input-synaptics 0.14.7~git20070706-1ubuntu4

Steps to reproduce:

1. Enable VertTwoFingerScroll
2. Start xev
3. Move the mouse into the xev window
4. Place two fingers on the touchpad, move them forward a bit and immediately lift them, without pausing.

Expected results:

* you see a few button 4 press & release events in the xev log

Actual results:

* you see a few button 4 press & release events, and following those about 120 button 5 press & release events.

(This might be related to bug 228311, although it refers to right-edge scrolling, which never caused big problems for me. I'd get a couple of scroll events in the wrong direction after lifting my finger, but I always thought it was my finger shifting position while I was lifting it up.)

Tags: hardy karmic
Revision history for this message
Nicolas Cavallari (batchman) wrote :

i discovered, looked up and solved this problem on my Inspiron 1520 running Debian.

Only problem is that my fix currently breaks Trackstick emulation mode.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=437254

Revision history for this message
Marius Gedminas (mgedmin) wrote :

That Debian bug also links to Ubuntu bug 133060.

I can confirm that if I look with synclient -m 10, and do the brief two-finger scroll up motion, I see a bunch of lines with events x=1, y=5855, 0<=z<=3 at the end.

Will try the workaround next.

I don't know what "Trackstick emulation mode" is.

Revision history for this message
Marius Gedminas (mgedmin) wrote :

The patch attached to bu 113060 (namely, http://launchpadlibrarian.net/14094880/Dell-Inspiron-6400-taps-fix.patch) fixes two-finger scrolling problems for me.

Thank you, Nicolas!

Changed in xserver-xorg-input-synaptics:
status: Unknown → New
Revision history for this message
William Grant (wgrant) wrote :

That patch to ignore the (1, 5855) events fixes things for me too. Does it break anything for other people?

Changed in xserver-xorg-input-synaptics:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Nicolas Cavallari (batchman) wrote :

The hackish patch doesn't break anything, but that doesn't mean it's great.

Revision history for this message
Michele (mikelito) wrote :

Got bitten by this bug on Intrepid, running on a Thinkpad T60.
the patch mentioned above makes the thing more usable, but still a lot of garbage button 4-5 events are being generated. Any news from upstream?

Revision history for this message
Michele (mikelito) wrote :

just wanted to report that the patch at

http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=30;filename=dell-touchpad.patch;att=1;bug=437254

works fine on my system. The author reports it to break 'trackstick emulation mode', but since I don't even know what it is, I am quite happy with it.
It also seems less hackish than the "ignore (1,5855)" patch.

Revision history for this message
Nicolas Cavallari (batchman) wrote :

It seems that trackstick emulation mode was fixed since last time i tried (which was a long time).

This patch is now making its way into the new upstream...

Revision history for this message
Marius Gedminas (mgedmin) wrote :
Revision history for this message
Nicolas Cavallari (batchman) wrote :

Yes, it was commited overnight ;)

Revision history for this message
ischoegl (ischoegl) wrote :

Just ran into the same problem with random scrolls on Intrepid on my thinkpad T60. Will there be a fix in the standard ubuntu packages anytime soon?

Bryce Harrington (bryce)
tags: added: hardy
Revision history for this message
Mark Gross (mark97229) wrote :

I'm getting almost this bug running Karmic alpha 6.
but its button 3 in this case.
MotionNotify event, serial 31, synthetic NO, window 0x3200001,
    root 0x100, subw 0x0, time 1357157, (116,133), root:(121,851),
    state 0x0, is_hint 0, same_screen YES

ButtonPress event, serial 31, synthetic NO, window 0x3200001,
    root 0x100, subw 0x0, time 1357305, (116,133), root:(121,851),
    state 0x0, button 3, same_screen YES

ButtonRelease event, serial 31, synthetic NO, window 0x3200001,
    root 0x100, subw 0x0, time 1357356, (116,133), root:(121,851),
    state 0x400, button 3, same_screen YES

ButtonPress event, serial 31, synthetic NO, window 0x3200001,
    root 0x100, subw 0x0, time 1357536, (116,133), root:(121,851),
    state 0x0, button 3, same_screen YES

ButtonRelease event, serial 31, synthetic NO, window 0x3200001,
    root 0x100, subw 0x0, time 1357536, (116,133), root:(121,851),
    state 0x400, button 3, same_screen YES

MotionNotify event, serial 31, synthetic NO, window 0x3200001,
    root 0x100, subw 0x0, time 1357672, (116,133), root:(121,851),
    state 0x0, is_hint 0, same_screen YES

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

Hi, the spurious click issue has been fixed in current Ubuntu. There was a subsequent issue but I patched it in natty yesterday.

Can you re-test on natty to see if this is still occurring for you?

Changed in xserver-xorg-input-synaptics (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Marius Gedminas (mgedmin) wrote :

I can't reproduce this on maverick.

I'm not sure I can find the time to test natty; I'll try.

What was the subsequent issue that you patched?

Changed in xserver-xorg-input-synaptics (Debian):
status: New → Confirmed
Revision history for this message
Ahmed Shams (ashams) wrote :

Hi, does this bug still affect any of the current Ubuntu releases?
Thanks.

Changed in xserver-xorg-input-synaptics (Ubuntu):
status: Incomplete → New
status: New → Incomplete
Revision history for this message
Mark Gross (mark97229) wrote :

FWIW I have not seen this problem in a long time. But, also my hardware has changed since 2009 so that doesn't prove much.

Bryce Harrington (bryce)
Changed in xserver-xorg-input-synaptics (Ubuntu):
status: Incomplete → Fix Released
Changed in xserver-xorg-input-synaptics (Debian):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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