Enable two-finger touchpad scrolling in Linux

So I finally found a thread about touchpad scrolling which lead me to explore the output of the `synclient -l` command on my Gutsy notebook, and lo and behold, the answer I’ve been looking for:

VertEdgeScroll = 1
HorizEdgeScroll = 1
VertTwoFingerScroll = 0
HorizTwoFingerScroll = 0

It turns out that two-fingered scrolling (like on the new Macs) is really easy to enable. Here’s how.

Make a backup of your X.org config file. Don’t blame me if you don’t do this and hose up your system.

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

Use the editor of your choice to add the following lines to your /etc/X11/xorg.conf file:


Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
add these lines >>>>
Option "HorizEdgeScroll" "0"
Option "VertEdgeScroll" "0"
Option "VertTwoFingerScroll" "1"
Option "HorizTwoFingerScroll" "1"
EndSection

Restart X, and that should do it. However, if you're like me, and have enough trouble as it is with touchpads, you may want to disable the horizontal scroll, as you end up flipping back and forth between web pages without a clue what's going on.

Leave a Reply