ENABLE TWO-FINGER SCROLLING in UBUNTU on the THINKPAD T61 and T400

If two-finger scrolling does not function correctly in Ubuntu, follow this procedure to force-enable it.


1. Open a terminal (ctrl + alt + t) and launch gedit with the following command:
gedit
2. Paste the following into the new document that is now open:
#!/bin/bash
# Enable two-finger scrolling
synclient HorizTwoFingerScroll=1
synclient VertTwoFingerScroll=1
synclient EmulateTwoFingerMinZ=48
synclient EmulateTwoFingerMinW=8
4. Save this file as two-finger_scroll.sh in your home folder
5. From the terminal, enter the following command to make the file executable:
sudo chmod +x two-finger_scroll.sh
6. From the Dash, search for Startup Applications and launch it
7. Click the 'Add' button and enter the following:
Name: Enable two-finger scrolling
Command: /home/[your user name]/two-finger_scroll.sh
8. Click 'Add'
9. From the terminal, enter the following commands to create a trigger that will re-enable two-finger scrolling when the computer wakes from suspend or hibernation:
sudo touch /etc/pm/sleep.d/99-twofinger
sudo chmod 755 /etc/pm/sleep.d/99-twofinger
sudo gedit /etc/pm/sleep.d/99-twofinger
10. Paste the following into the new document that is now open, replacing [your user name] with your user name (without the brackets):
#!/bin/sh
case "$1" in
        thaw|resume)
        DISPLAY=:0.0 su `who | grep tty7 | sed 's/\([a-z]*\).*/\1/'` -c '/home/[your user name]/two-finger_scroll.sh'
        DISPLAY=:0.0 su `who | grep tty8 | sed 's/\([a-z]*\).*/\1/'` -c '/home/[your user name]/two-finger_scroll.sh'
        ;;
        *)
        ;;
        esac
exit $?

11, Click 'Save'
12. Restart your computer and two-finger scrolling should work
13. Some recent versions of Ubuntu may require the following for the script to run correctly at startup:
sudo chmod +777 two-finger_scroll.sh



Sources: http://ubuntuforums.org/showthread.php?p=10220575#post10220575 and http://ubuntuforums.org/showthread.php?p=10071212#post10071212