Taming Macbook Pro’s Trackpad in Ubuntu 12.10 Linux


Taming Macbook Pro’s Trackpad in Ubuntu Linux

I’ve been working much more in Ubuntu Linux lately on my 2011 Macbook Pro, and the lack of integration for the trackpad has really been driving me crazy. The default synaptics driver does an ok job, but when it comes to things like gestures, the details make all the difference.

I tried BlueDragon’s xf86-input-mtrack, an Xorg driver for multitouch trackpads. It seems to act more like a mouse emulator and offers some options for control via gestures. The most important options for me were the ability to ignore a thumb as it rests on the trackpad, as well as being able to map three-fingered swiping gestures for web navigation.

After a bit of tuning, here’s the configuration I found came the closest to what I was used to in OSX. Still not perfect, but serviceable:


To set this up on your Ubuntu machine (technically it should work in Gentoo and Arch too) first install xf86-input-mtrack. In a Terminal, enter the command:


Then edit your xorg.conf file (if you prefer a text editor besides gedit, use that instead):


You may have existing configurations for the synaptics touchpad driver. Comment out existing stuff by adding a # to the beginning of each line. Then add the configuration block from above. There are a lot of additional options for mtrack covered in the readme.

Then apply your changes by restarting lightdm (no reboot required, but all your windows will be closed!):


that’s it!

by 4 years ago


  1. Adrian

    This is the first configuration for mtrack that I like. It is the closest to Mac OS X, makes using Ubuntu doable with a touchpad.

    Thank you. 😀

  2. Alex

    Very nice 😀 Thanks!
    I did tweak it a bit again to allow for twofinger-right-click. And I’m now going to apply this to the magic mouse aswell.
    What I’m most curious about though, have you ever configured your keyboard with the right layout?


Your email address will not be published. Required fields are marked *