some mouse events are lost

Bug #897131 reported by Roger Peppe
38
This bug affects 5 people
Affects Status Importance Assigned to Milestone
xserver-xorg-input-synaptics (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

[Note this happens only when using the buttons and touchpoint on my Lenovo Thinkpad X220.
When I plug in an external mouse, I do not see the problem.]

- I cannot drag with the middle mouse button; it generates scroll events only.

- Chorded mouse clicks are lost (I use an application that reacts to specific combinations
of mouse buttons). For example, if I click, drag and continue to hold down the left mouse
button, then click the middle mouse button (while still holding down the left button),
that click is not delivered to my application.

This simple tcl/tk input to wish will demonstrate the problem - chord the mouse
as described above, and the b2 event will not be triggered correctly.

bind . <ButtonPress-1> {puts "b1"}
bind . <ButtonPress-2> {puts "b2"}
bind . <ButtonRelease-1> {puts "b1r"}
bind . <ButtonRelease-2> {puts "b2r"}
bind . <ButtonPress-3> {puts "b3"}
bind . <ButtonRelease-3> {puts "b3r"}

This behaviour is not entirely consistent - *sometimes* I do see the chorded click.

This bug also occurs in Unity-2D and has been reported there: https://bugs.launchpad.net/unity-2d/+bug/893546

Omer Akram (om26er)
affects: unity → ubuntu
Revision history for this message
Vadim Rutkovsky (roignac) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. We need some more information from you before we can start working on this bug.

Please include the information requested at https://wiki.ubuntu.com/DebuggingTouchpadDetection as separate attachments. This information can be gathered for you automatically using the command apport-collect 897131

affects: ubuntu → xserver-xorg-input-synaptics (Ubuntu)
Changed in xserver-xorg-input-synaptics (Ubuntu):
status: New → Incomplete
Revision history for this message
Roger Peppe (rogpeppe) wrote :

Within the attached archive are the outputs from evtest and xev for the two issues I described.
For evtest-chord.out and xev-chord.out, I did this:

button-1 down
button-2 down
button-2 up
button-1 up

For evtest-middle-motion.out and xev-middle-motion.out, I did this:

button-2 down
wiggle touchpoint
button-2 up

As you can see, xev shows that the underlying device is reporting all
the events perfectly. Somewhere else in the input stack, the events
are being converted (lost in the former case, converted into button-5
presses aka scroll events in the latter)

Revision history for this message
Roger Peppe (rogpeppe) wrote :

BTW the touch pad is correctly detected. If it's relevant I can include h/w details. (apport-collect hung up on me).

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for xserver-xorg-input-synaptics (Ubuntu) because there has been no activity for 60 days.]

Changed in xserver-xorg-input-synaptics (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Fredrik Wendt (fredrik-wendt) wrote :

I'd be happy trying to solve this if someone could lend a hand in pointing to the software chain of getting the raw events converted to ButtonPress/ButtonRelease and read up on the source code changes from 10.04 to 11.10 that caused this. A Stefan in Bug 880544 also sees this.
Three different lines of Thinkpads: T410, X220, R61.

Changed in xserver-xorg-input-synaptics (Ubuntu):
status: Expired → Confirmed
tags: added: apport-collected oneiric ubuntu
Revision history for this message
Fredrik Wendt (fredrik-wendt) wrote : apport information

ApportVersion: 1.23-0ubuntu4
Architecture: amd64
CheckboxSubmission: 1609297f26f8878ea2a3a9bf100364ba
CheckboxSystem: bb422ca46d02494cdbc459927a98bc2f
DistUpgraded: Fresh install
DistroCodename: oneiric
DistroRelease: Ubuntu 11.10
DistroVariant: ubuntu
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
MachineType: LENOVO 25223EG
Package: xserver-xorg-input-synaptics 1.4.1-1ubuntu2
PackageArchitecture: amd64
ProcEnviron:
 PATH=(custom, no user)
 LANG=sv_SE.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-15-generic root=UUID=f5bd58a3-0916-4f2d-a092-32763c74c6cc ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.0.0-15.26-generic 3.0.13
Tags: oneiric ubuntu
Uname: Linux 3.0.0-15-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 08/27/2010
dmi.bios.vendor: LENOVO
dmi.bios.version: 6IET72WW (1.32 )
dmi.board.name: 25223EG
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr6IET72WW(1.32):bd08/27/2010:svnLENOVO:pn25223EG:pvrThinkPadT410:rvnLENOVO:rn25223EG:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 25223EG
dmi.product.version: ThinkPad T410
dmi.sys.vendor: LENOVO
version.compiz: compiz 1:0.9.6+bzr20110929-0ubuntu6
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.26-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 7.11-0ubuntu3
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 7.11-0ubuntu3
version.xserver-xorg: xserver-xorg 1:7.6+7ubuntu7.1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.6.0-1ubuntu13
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.99~git20110811.g93fc084-0ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.15.901-1ubuntu2.1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110411+8378443-1

Revision history for this message
Fredrik Wendt (fredrik-wendt) wrote : BootDmesg.txt

apport information

Revision history for this message
Fredrik Wendt (fredrik-wendt) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Fredrik Wendt (fredrik-wendt) wrote : Dependencies.txt

apport information

Revision history for this message
Fredrik Wendt (fredrik-wendt) wrote : DpkgLog.txt

apport information

Revision history for this message
Fredrik Wendt (fredrik-wendt) wrote : Lspci.txt

apport information

Revision history for this message
Fredrik Wendt (fredrik-wendt) wrote : Lsusb.txt

apport information

Revision history for this message
Fredrik Wendt (fredrik-wendt) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Fredrik Wendt (fredrik-wendt) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Fredrik Wendt (fredrik-wendt) wrote : ProcModules.txt

apport information

Revision history for this message
Fredrik Wendt (fredrik-wendt) wrote : UdevDb.txt

apport information

Revision history for this message
Fredrik Wendt (fredrik-wendt) wrote : UdevLog.txt

apport information

Revision history for this message
Fredrik Wendt (fredrik-wendt) wrote : dmidecode.txt.txt

apport information

Revision history for this message
Fredrik Wendt (fredrik-wendt) wrote : locale.txt

apport information

Revision history for this message
Fredrik Wendt (fredrik-wendt) wrote : peripherals.txt

apport information

Revision history for this message
Fredrik Wendt (fredrik-wendt) wrote : setxkbmap.txt

apport information

Revision history for this message
Fredrik Wendt (fredrik-wendt) wrote : xinput.txt

apport information

Revision history for this message
Fredrik Wendt (fredrik-wendt) wrote : xkbcomp.txt

apport information

Revision history for this message
Mrinal Kalakrishnan (kalakris) wrote :

I was hit by this bug as well, and did some digging around. It seems like the middle-click-to-scroll functionality on thinkpad keyboards is now enabled by default. To fix this (rather, to get back the old behavior), edit the file "/usr/share/X11/xorg.conf.d/11-evdev-trackpoint.conf", and change the Option "EmulateWheel" to "false". Restart X and you should now be able to resize windows with alt-middle-click just fine! xev also reports the correct events after I made this change.

There's plenty more information on this page, for thinkpad keyboard users: http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint

Revision history for this message
Roger Peppe (rogpeppe) wrote :

@Mrinal thanks very much for that info. I was sure that the middle button behaviour, at least, was a matter of policy, but I obviously did not come up with the right set of keywords to find the above page.

As for the chording events, I can only hope that they were a symptom of the same issue - it's not something I could always reproduce, so we'll see if it now works consistently.

This is definitely something that should be part of the GUI configuration options.

Revision history for this message
Evan Heidtmann (evan-heidtmann) wrote :

I was having a similar problem, and the fix in #24 worked well for me. I'm on the 12.04 beta2.

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.