Apple Magic Trackpad: 2/3-finger click does a left-click instead of right/middle-click

Bug #862094 reported by Daniel van Vugt
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Linux
Fix Released
Undecided
Daniel van Vugt
linux (Ubuntu)
Fix Released
Undecided
Daniel van Vugt

Bug Description

When I try to right-click with the Apple Magic Trackpad using two fingers, it just does a regular left click. Strange, because multi-touch seems to be working -- two finger scrolling is working perfectly.

Note: I have tap-to-click turned off so am using the physical button built into the Magic Trackpad.

WORKAROUND:

synclient ClickFinger2=3
synclient ClickFinger3=2
or...
xinput set-prop 'Apple Wireless Trackpad' 'Synaptics Click Action' 1 3 2

Note: If you're running Unity then you will also need the fix for bug 754000 to get 3-finger clicks working as middle-button.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: xserver-xorg-input-synaptics 1.3.99+git20110116.0e27ce3a-0ubuntu12.1
ProcVersionSignature: Ubuntu 2.6.38-11.50-generic 2.6.38.8
Uname: Linux 2.6.38-11-generic x86_64
Architecture: amd64
Date: Thu Sep 29 15:16:45 2011
DistUpgraded: Fresh install
DistroCodename: natty
DistroVariant: ubuntu
DkmsStatus:
 bcmwl, 5.100.82.38+bdcom, 2.6.38-11-generic, x86_64: installed
 vboxhost, 4.0.10, 2.6.38-11-generic, x86_64: installed
 vboxhost, 4.0.10, 2.6.38-10-generic, x86_64: installed
GraphicsCard:
 Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0102] (rev 09) (prog-if 00 [VGA controller])
   Subsystem: Dell Device [1028:047e]
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
MachineType: Dell Inc. OptiPlex 990
ProcEnviron:
 LANGUAGE=en_AU:en
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-11-generic root=UUID=e79b78d3-ed94-4285-8af0-4c7803ef2097 ro quiet splash vt.handoff=7
SourcePackage: xserver-xorg-input-synaptics
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/28/2011
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A05
dmi.board.name: 0D6H9T
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 15
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA05:bd05/28/2011:svnDellInc.:pnOptiPlex990:pvr01:rvnDellInc.:rn0D6H9T:rvrA00:cvnDellInc.:ct15:cvr:
dmi.product.name: OptiPlex 990
dmi.product.version: 01
dmi.sys.vendor: Dell Inc.
version.compiz: compiz 1:0.9.4+bzr20110606-0ubuntu1~natty2vv4
version.ia32-libs: ia32-libs 20090808ubuntu13
version.libdrm2: libdrm2 2.4.23-1ubuntu6
version.libgl1-mesa-dri: libgl1-mesa-dri 7.10.2-0ubuntu2
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 7.10.2-0ubuntu2
version.xserver-xorg: xserver-xorg 1:7.6+4ubuntu3.1
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.0-0ubuntu4.1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.14.0-4ubuntu7.1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110107+b795ca6e-0ubuntu7

Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Confirmed this bug also occurs in Ubuntu 11.10 beta 2 (live).

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Found the problem. xserver-xorg-input-synaptics is defaulting to any click = button 1. Obviously...

The workaround is simple:
    synclient ClickFinger2=3
or:
    xinput set-prop 'Apple Wireless Trackpad' 'Synaptics Click Action' 1 3 2

description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Found the cause of this bug:

    http://cgit.freedesktop.org/xorg/driver/xf86-input-synaptics/commit/?id=776ec0ed42616769ed834b5822df3b2b0d5c0e85

But that's not the root cause... It is triggered because the hid-magicmouse module reports the Magic Trackpad as having 2 buttons when it should only report 1. This can be seen with evtest:

# evtest /dev/input/event7
Input driver version is 1.0.1
Input device ID: bus 0x5 vendor 0x5ac product 0x30e version 0x160
Input device name: "Apple Wireless Trackpad"
Supported events:
  Event type 0 (Sync)
  Event type 1 (Key)
    Event code 256 (Btn0)
    Event code 257 (Btn1)
    Event code 272 (LeftBtn)
    Event code 273 (RightBtn) <------------ WRONG
    Event code 325 (ToolFinger)
    Event code 330 (Touch)
    Event code 333 (Tool Doubletap)
    Event code 334 (Tool Tripletap)
    Event code 335 (?)

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Changing package to linux as the root cause of this bug has been tracked down to the "hid-magicmouse" kernel module.

affects: xserver-xorg-input-synaptics (Ubuntu) → linux (Ubuntu)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

@Chase, please review.

Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Chase Douglas (chasedouglas) wrote :

Daniel, you seem to be correct. There's some code in the hid-magicmouse module that enables multitouch mode for the magic trackpad. It sounds like we need to remove the RightBtn code when that happens. Would you be able to create a patch for this and send it to the linux-input mailing list? If not, I can take a look.

Thanks!

Changed in linux (Ubuntu):
assignee: nobody → Daniel van Vugt (vanvugt)
status: Confirmed → In Progress
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The fix is making its way into the kernel soon, I hope:
http://www.spinics.net/lists/linux-input/msg17747.html

summary: - Apple Magic Trackpad: 2-finger click does a left-click instead of right-
- click
+ Apple Magic Trackpad: 2/3-finger click does a left-click instead of
+ right/middle-click
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The fix has been accepted by the linux-input maintainer, probably going to appear in kernel 3.2...
http://git.kernel.org/?p=linux/kernel/git/jikos/hid.git;a=commitdiff;h=bca621421c53caf73f36e181d6e5fe41fe0da7a7

Changed in linux:
status: New → In Progress
assignee: nobody → Daniel van Vugt (vanvugt)
status: In Progress → Fix Committed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in linux:
status: Fix Committed → Fix Released
tags: added: kernel-fixed-upstream-v3.2-rc1
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

In theory you can try the fix in oneiric using these packages:
http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2-rc1-oneiric/

Changed in linux (Ubuntu):
assignee: Daniel van Vugt (vanvugt) → nobody
status: In Progress → Confirmed
summary: - Apple Magic Trackpad: 2/3-finger click does a left-click instead of
- right/middle-click
+ Apple Magic Trackpad: 2-finger click does a left-click instead of right-
+ click
Changed in linux (Ubuntu):
status: Confirmed → Triaged
summary: - Apple Magic Trackpad: 2-finger click does a left-click instead of right-
- click
+ Apple Magic Trackpad: 2/3-finger click does a left-click instead of
+ right/middle-click
description: updated
description: updated
Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

Kernel bug, uTouch is not to blame

Changed in utouch:
status: New → Invalid
Changed in linux (Ubuntu):
assignee: nobody → Daniel van Vugt (vanvugt)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Fix released in kernel 3.2, hence released in precise alpha-1.

Changed in linux (Ubuntu):
status: Triaged → Fix Released
no longer affects: utouch
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.