How to enable middle button scrolling on IBM R51 laptop running on Ubuntu 8.10? Create file mouse.fdi in directory /etc/hal/fdi/policy/.
Edit mouse.fdi:
<match key="info.product" string="TPPS/2 IBM TrackPoint">
<merge key="input.x11_options.EmulateWheel" type="string">true</merge>
<merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
<merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
<merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
<merge key="input.x11_options.ZAxsisMapping" type="string">4 5</merge>
<merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
<merge key="input.x11_options.ButtonMapping" type="string">1 1 3 4 5 6 7</merge>
</match>
Two bold lines will disable "paste" by middle button.
I am not sure if is necessary but you may need to install following packages
sudo apt-get install build-essential git-core
sudo apt-get build-dep xserver-xorg-input-evdev
git clone git://git.freedesktop.org/git/xorg/driver/xf86-input-evdev
cd xf86-input-evdev
git reset --hard 5f2c8a2dcdf98b39997ee5e7c9a9ace3b640bfa3
./autogen.sh --prefix=/usr
make
sudo make install
I found it here.
Then just restart gdm and hal
sudo /etc/init.d/gdm restart
sudo /etc/init.d/hal restart