mouseemu does not detect Synaptic touchpad on Macbookpro 8,1

Bug #1003053 reported by monochromec
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mouseemu (Ubuntu)
New
Undecided
Unassigned

Bug Description

Mouseemu incorrectly interprets the touchpad of a 2012 MacbookPro 8.1 as a keyboard.
As a result, no mouseclick is recorded and intpreted in function report_click when pressed with the specified modifier key (option -middle or right).

I'll provide more info once I have time to dig deeper into the source code.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: mouseemu 0.16-0ubuntu7
ProcVersionSignature: Ubuntu 3.2.0-24.38-generic 3.2.16
Uname: Linux 3.2.0-24-generic x86_64
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Tue May 22 20:20:21 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: mouseemu
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.default.mouseemu: [modified]
modified.conffile..etc.init.d.mouseemu: [modified]
mtime.conffile..etc.default.mouseemu: 2012-05-19T17:23:41.784331
mtime.conffile..etc.init.d.mouseemu: 2012-05-22T19:51:11.728629

Revision history for this message
monochromec (monochromec) wrote :
Revision history for this message
monochromec (monochromec) wrote :

Maybe related to LPB #952005.

Revision history for this message
monochromec (monochromec) wrote :
Download full text (5.0 KiB)

Seems to be related to mouse detection in the function scan_for_devs ().

The if branch starting with

" if (test_bit(EV_REL, bit)) {
    int i;
    /* our own virtual mouse (on rescans)*/
    if (id[ID_PRODUCT] == 0x1E && id[ID_VENDOR] == 0x1F) {
     close(fd);
     continue;"

is never entered on my 8.1 (discovered this after suitable instrumentation of the code in the function). As a result, no mouse is registered as a virtual device and event_parse doesn't have a chance to detect clicks in connection with pressing of modifier keys as it's intended with this tool.

Don't know enough about uinput / event handling in connection with Apple-specific hardware to investigate further. If it helps, here an excerpt of the lsusb command:

Bus 001 Device 005: ID 05ac:0253 Apple, Inc. Internal Keyboard/Trackpad (ISO)
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 8
  idVendor 0x05ac Apple, Inc.
  idProduct 0x0253 Internal Keyboard/Trackpad (ISO)
  bcdDevice 1.18
  iManufacturer 1 Apple Inc.
  iProduct 2 Apple Internal Keyboard / Trackpad
  iSerial 0
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 84
    bNumInterfaces 3
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower 40mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 3 Human Interface Device
      bInterfaceSubClass 1 Boot Interface Subclass
      bInterfaceProtocol 1 Keyboard
      iInterface 3 Apple Internal Keyboard
        HID Device Descriptor:
          bLength 9
          bDescriptorType 33
          bcdHID 1.11
          bCountryCode 13 International (ISO)
          bNumDescriptors 1
          bDescriptorType 34 Report
          wDescriptorLength 156
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x83 EP 3 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x000a 1x 10 bytes
        bInterval 8
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 1
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 3 Human Interface Device
      bInterfaceSubClass 0 No Subclass
      bInterfaceProtocol 0 None
      iInterface 4 Touchpad
        HID Device Descript...

Read more...

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.