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:
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:
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:
2. Paste the following into the new document that is now open:
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:
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:
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:
Sources:
http://ubuntuforums.org/showthread.php?p=10220575#post10220575
http://ubuntuforums.org/showthread.php?p=10071212#post10071212