How to enable two finger scrolling on a Sony Vaio laptop

My girlfriend has found a cheap second-hand Sony Vaio laptop, which has been working great with Ubuntu, except for not having two-finger scrolling and suspending it causing it to reboot. We dug a little bit and ended up finding out how to enable the two-finger scrolling.

It’s pretty simple, so we just created a script that gets executed on startup:

#!/bin/bash synclient HorizTwoFingerScroll=1 synclient VertTwoFingerScroll=1 synclient EmulateTwoFingerMinW=0 synclient EmulateTwoFingerMinZ=90

If it scrolls when you want the cursor to move, increase the MinZ value. If it moves the cursor when you want it to scroll, decrease the value. Simple!