Erik Zaadi

The tales of a developer with passion for dad jokes

Making the touchpad work with two finger swipes on ubuntu 10.10 installed on a Lenovo laptop

Once you’ve tried a mac, it’s hard to use a touchpad without multitouch capabilities.

On Ubuntu 11.04 this should work out of the box, but the script below will allow you to control the settings better than the UI.

Save this script somewhere on your disk:

sleep 10
xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Pressure" 4
xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Width" 8 # Below width 1 finger touch, above width simulate 2 finger touch. - value=pad-pixels
xinput --set-prop --type=int --format=8 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Scrolling" 1 1 # vertical scrolling, horizontal scrolling - values: 0=disable 1=enable
xinput --set-prop --type=int --format=8 "SynPS/2 Synaptics TouchPad" "Synaptics Edge Scrolling" 0 0 0 # vertical, horizontal, corner - values: 0=disable 1=enable
xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Jumpy Cursor Threshold" 250 # stabilize 2 finger actions - value=pad-pixels
xinput --set-prop --type=int --format=8 "SynPS/2 Synaptics TouchPad" "Synaptics Tap Action" 0 3 0 0 1 2 0

Open System => Preferences => Startup application and add a new startup item :

sh /path/to/your/

And voila, you’ve got :

  • two fingers scroll (vertical and horizontal)

  • single tap for single click

  • two finger tap for middle click

  • right bottom tap for right click

The reason for the sleep is to give the xinput server time to init after the login..

Works on my Lenovo w520, with a 32bit Ubuntu 10.10.

Reference : and


Share on: