This solution applies to Ubuntu LInux Natty Narwhal 11.04, Maverick Meerkat 10.10, and Lucid Lynx 10.04.
Update (Oct. 17, 2010): Thanks to the comments below for an updated solution for Ubuntu Maverick Meerkat 10.10. If you are upgrading from 10.04, insert the following into Terminal:
sudo mv /usr/lib/X11/xorg.conf.d/20-thinkpad.conf /usr/share/X11/xorg.conf.d/20-thinkpad.conf
If this sounds like news to you, then follow the detailed instructions below, except change step one as follows:
Step 1. Create a new file
sudo nano /usr/share/X11/xorg.conf.d/20-thinkpad.conf
***
It’s that special time of year again! I have just finished upgrading my trusty ThinkPad T61 to the latest version of Ubuntu Linux — 10.04 Lucid Lynx. This edition of the operating system no longer employs the udev method of emulating scrolling. With the following instructions, one will be able to scroll with the middle button both vertically and horizontally:
Step 1. Create a new file
sudo nano /usr/lib/X11/xorg.conf.d/20-thinkpad.conf
Step 2. Insert the following
Section "InputClass"
Identifier "Trackpoint Wheel Emulation"
MatchProduct "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint"
MatchDevicePath "/dev/input/event*"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "Emulate3Buttons" "false"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
EndSection
Step 3. Save file, restart computer, and enjoy!
ที่มา: http://www.eastwoodzhao.com/thinkpad-middle-button-scroll-ubuntu-linux/