A DKMS module to support the Apple Magic Trackpad 2
C Other
Switch branches/tags
Nothing to show
Clone or download
Latest commit 664abf3 Oct 24, 2017
Permalink
Failed to load latest commit information.
scripts Initial commit Dec 22, 2016
usr Initial commit Dec 22, 2016
.gitignore Initial commit Dec 22, 2016
CHANGELOG Initial commit Dec 22, 2016
LICENSE Initial commit Dec 22, 2016
Makefile Initial commit Dec 22, 2016
README.md Fix typo in readme Oct 23, 2017

README.md

magictrackpad2-dkms

A DKMS module for patching the bcm5974 and hid drivers to support the Apple Magic Trackpad 2.

Tested with Kernel 4.4.0-57-generic on Ubuntu 16.04 LTS.

How to install

It should be enough to install the package. If it still doesn't work, you may have to copy the kernel modules from /lib/modules/4.4.0-57-generic/updates/dkms/ to /lib/modules/4.4.0-57-generic/kernel/drivers/hid/

How to configure

Configuration happens in xorg.conf at /usr/share/X11/xorg.conf.d/49-synaptics-bcm5974.conf and with xinput.

If your mouse only moves when you press hard, modify the thresholds:

xinput set-prop "bcm5974" "Synaptics Finger" 0 10 0

How to update

Install the current kernel sources: sudo apt-get install linux-source

The sources are then available at /usr/src/linux-source-4.4.0/linux-source-4.4.0.tar.bz2.

Extract following files to src/bcm5974...:

  • /linux-source-4.4.0/drivers/input/mouse/bcm5974.c

Extract following files to src/hid...:

  • /linux-source-4.4.0/drivers/hid/hid-apple.c
  • /linux-source-4.4.0/drivers/hid/hid-core.c
  • /linux-source-4.4.0/drivers/hid/hid-debug.c
  • /linux-source-4.4.0/drivers/hid/hid-ids.h
  • /linux-source-4.4.0/drivers/hid/hid-input.c
  • /linux-source-4.4.0/drivers/hid/hidraw.c

Apply the patches in the same folders.

Build a package with make

Thanks: