I decided to put some work into getting the advanced features of the touchpad on my MacBook working. These include double and triple tap for middle and right clicking and scrolling using the touchpad.

I started with the instructions on Simon van der Linden’s “MacBook: emulate a Synaptics touchpad with Ubuntu GNU/Linux” page. The patch on the Ubuntu forums is required to support the touchpad. However, even though this supports the touchpad, it’s fairly jittery and difficult to use.
So, next step was to apply another patch from Jason Parekh which helps fix that jitter and improves the multi-tap recognition.
Finally, I tweaked Jason’s patch a small bit, and I find it improved the jitter a bit more. Here’s the complete patch to appletouch.c that I’m using at the moment. With this, I load the appletouch.ko module with
modprobe appletouch tap_threshold=5 track_threshold=1
To do this automatically on boot, put the following into /etc/modprobe.d/options (you may have already put in a similar line from Simon van der Linden’s howto, so just edit it in that case)
install usbhid /sbin/modprobe appletouch tap_threshold=5 track_threshold=1 && sleep 2 && /sbin/modprobe –ignore-install usbhid $CMDLINE_OPTS
I have noticed some issues with slight jitters and when using the scrolling in Firefox. While using Firefox, I’ve noticed phantom clicks, which can get annoying when in the middle of a blog post and the browser’s back button gets mysteriously clicked! What I suspect is that I hit the touchpad and bring up the right-click menu, and I end up hitting the “Back” option there. Other than that, it works well, and I’m sure once I get used to it, I’ll wonder how I ever did without it!

