Fix the crappy touchpad behavior when using Ubuntu 13.04 on a Macbook Pro

May 26, 2013

Ubuntu is my favorite OS. When I run Ubuntu I tend to run it on a Macbook Pro. What drove me completely mad with this setup was how crappy the touchpad worked. Most of the time out of no where the curser would jump all over the screen. I found this hack which makes working with Ubuntu a pleasure.

First

sudo apt-get install xserver-xorg-input-mtrack

Then

sudo gedit /etc/X11/xorg.conf

Add this to the bottom of the file

Section "InputClass"
	MatchIsTouchpad "on"
	Identifier      "Touchpads"
	Driver          "mtrack"
	Option          "Sensitivity" "0.55"
	Option		"FingerHigh" "12"
	Option		"FingerLow" "1"
	Option          "IgnoreThumb" "true"
	Option          "IgnorePalm" "true"
	Option          "TapButton1" "0"
	Option          "TapButton2" "0"
	Option          "TapButton3" "0"
	Option          "TapButton4" "0"
	Option          "ClickFinger1" "1"
	Option          "ClickFinger2" "3"
	Option          "ClickFinger3" "3"
	Option          "ButtonMoveEmulate" "false"
	Option		"ButtonIntegrated" "true"
	Option          "ClickTime" "25"
	Option          "BottomEdge" "25"
	Option		"SwipeLeftButton" "8"
	Option		"SwipeRightButton" "9"
	Option		"SwipeUpButton" "0"
	Option		"SwipeDownButton" "0"
	Option		"ScrollDistance" "75"
EndSection

And Finally
sudo restart lightdm
You can tweak the following configuration file above by reading the documentation https://github.com/BlueDragonX/xf86-input-mtrack/blob/master/README.md