Skip to content

Provide a driver for the Apple Magic Mouse

Michael Poole linux-bluetooth linux-input lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Provide a driver for the Apple Magic Mousedrivers/hid/hid-core.c include/linux/hid.h+3 -10 replies
2/2Add a device driver for the Apple Magic Mouse.drivers/hid/Kconfig drivers/hid/Makefile drivers/hid/hid-core.c +2 more+482 -011 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Provide a driver for the Apple Magic Mouse

I think this patch is ready for real review. The Magic Mouse requires that a driver send an unlock Report(Feature) command, similar to the Wacom wireless tablet and Sixaxis controller quirks. This turns on an Input Report that isn't published in the input Report descriptor that contains touch data (and usually overrides the normal motion and click Report).

Because the mouse has only one switch and no scroll wheel, the driver (under control of parameters) emulates a middle button and scroll wheel. User space could also ignore and/or re-synthesize those events based on the reported events.

The first patch exports hid_register_report() so the driver can turn on the multitouch report. The second patch adds the device ID and the driver. Some user-space tools to talk to the mouse directly (that is, when it is not associated with the host's HIDP stack) are at
http://github.com/entrope/linux-magicmouse .