Friday, August 18, 2006

Two-Finger Scrolling on the Trackpad

Pre-requisites. You will need the xorg-dev package.
apt-get install xorg-dev
(You must also have compliers and libraries installed; see the Xubuntu 6.06 LTS post.)

Install the new Synaptics driver. The included synaptics mouse driver does not support two-finger scrolling, but the latest one does (0.14.6). So download the latest synaptics driver.
Extract and compile using 'make'.

Copy synaptics_drv.o into place. (I crashed my systems doing this, so you
may want to exit X before you put the driver in place.)
cp synaptics_drv.o /usr/lib/xorg/modules/input/
Now edit the InputDevice section of your xorg.conf file. My InputDevice section now reads like so.
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
Option "HorizTwoFingerScroll" "1"
Option "VertTwoFingerScroll" "1"
(I only added the two *TwoFingerScroll options.)

Restart X.

Firefox. In about:config make the following changes.
mousewheel.withnokey.action 0
mousewheel.withnokey.numlines 1
mousewheel.withnokey.sysnumlines false
mousewheel.horizscroll.withnokey.action 0
mousewheel.horizscroll.withnokey.numlines 1
mousewheel.horizscroll.withnokey.sysnumlines false
general.smoothScroll true