Fix touchpad behavior in a Macbook Air (Ubuntu Linux 11.10)

I received a brand new Macbook Air this week but I had already decided that I was going to install Ubuntu to be more efficient at work (yes, I’m used to work with GNU/Linux and I didn’t want to spend a few hours getting on with OS X Lion).

In order to make everything work I followed step by step* instructions available on the Ubuntu community page about my concrete Macbook model ( and everything seems to work as expected… but the touchpad.

The touchpad way to work had two issues that really annoyed me:

    • The first one was that I could not disable the tap-to-click feature, which is very annoying when you try to write with the built-in keyboard.


  • The second one is that the scrolling behavior was reversed to work like it does by default in the OS X Lion. Ok, this is not as annoying as the first issue but this behavior affected the external mouse scroll-wheel too.


To fix these issues you need to edit the /etc/X11/xorg.conf file and add these three lines in the touchpad section:

Option "MaxTapTime" "0"
Option "ScrollUpButton" "5"
Option "ScrollDownButton" "4"

So, you will have something like:

Section "InputClass"
    Identifier       "Multitouch Touchpad"
    Driver           "mtrack"
    MatchDevicePath  "/dev/input/event*"
    MatchIsTouchpad  "on"
    Option           "CorePointer"     "true"
    Option           "Sensitivity"     "0.65"  #    1 : movement speed
    Option           "ScrollDistance"  "100"   #  150 : two-finger drag dist for click
    Option           "ClickTime"       "25"    #   50 : millisec to hold emulated click
    Option      "MaxTapTime"      "0"
    Option      "ScrollUpButton" "5"
    Option      "ScrollDownButton" "4"

Once you have updated this file, you will need to restart your computer or restart the lightdm service (service lightdm restart in the command line) to make these changes effective.

I hope that this short post helps you in some way and keep in touch cause I’m going to explain how to fix the function keys behavior in a few days :-)

* NOTE: I must say that I’ve decided to not set up a swap partition but a swap file in order to make it easier to manage partitions both from Ubuntu and Mac OS (I usually love to have separate partitions for home, swap and boot but it’s not as easy in a Macbook, believe me, I’ve done it before in a Macbook 2,1). Another thing that I’ve also modified is the swappiness parameter but it’s something personal, it has no relation with maintenance issues.

Macbook Touchpad

Hello world! (once again)

Hi there!

I’ve been writing on iXavi since two years ago but I’ve decided that it’s time to start to write some of my posts to a wider audience.

This blog had started as a semi-professional blog about web programming and it slowly turns into a personal blog about things I like and tech recommendations about things I’ve learnt during these years. In order to keep everything as clear as possible, I’ve created this subdomain ( and will be posting in English here and continue writing in Spanish in the old domain (

Before closing this initial post, I also want to let you know that I’ve opened another subdomain where I will be posting in Catalan ( It’s probable that I won’t upload tech-related content in this site and let my politic and economical opinions flow to the front page of but, anyway, it will replace my old personal site,

After these introductory lines, welcome all!