I kept trying and got it mostly working-ish.
I'll put my notes here for anyone interested in trying it out:
I have kernel 4.19.0-2 installed in buster/testing. With 4.20+, the driver is built into the kernel, so you wouldn't need to download, build, and install the module.
Install your kernel headers (make sure the meta-package points to a package that matches your kernel version), dkms (a tool for managing kernel modules), and the libinput packages.
- Code: Select all
$ sudo apt install linux-headers-amd64 dkms libinput-bin libinput-tools
Download the driver source from
github. I downloaded the zip file.
Build and install the module.
- Code: Select all
$ cd Linux-Magic-Trackpad-2-Driver-master/linux/drivers/hid
$ make
$ sudo bash ../../../scripts/install.sh
It should be installed and loaded into your kernel. Run this command to ensure it is.
- Code: Select all
$ lsmod | grep hid_magicmouse
At this point, I have clicking, single finger scrolling (i.e. move the mouse pointer), two finger scrolling (i.e. scroll the page up/down left/right), and button clicking (mouse button 1 only).
For now I've used xinput to fix the properties. Figure out the ID of the trackpad.
- Code: Select all
$ xinput list | grep 'Magic Trackpad'
Show the properties, to figure out which ones you want to change. I changed Drag Lock Enabled, Tapping Enabled, and Natural Scrolling Enabled. You need the ID in parentheses for the property.
- Code: Select all
$ xinput list-props <Trackpad ID>
Then to change one:
- Code: Select all
$ xinput set-prop <Trackpad ID> <Property ID> <new value>
That gave me natural scrolling (aka Australian scrolling), tap for button 1, two finger tap for button 2, and three finger tap for button 3. I don't have inertial scrolling, but I'd like to, so I'll keep looking into that.
These values will revert if you power off or disconnect the trackpad (including during a reboot), so it's not the best solution. I'm going to keep looking into using libinput to permanently configure things the way I want them, but the Trackpad is in a state where I can use it as my primary input device and save my wrist, so that's pretty good progress.