Sunday, June 13, 2010

Dell latitude: Enable middle click scroll on Ubuntu

It seems by default most, if not all, laptops with a pointing stick and a middle mouse button default to using paste for the middle mouse click assignment with XORG. You can change this so that it scrolls like it does on Windows.

Edit one of the files in /usr/lib/X11/xorg.conf.d/ or just create a new one and add:

Section "InputClass"
Identifier "Trackpoint Wheel Emulation"
MatchProduct "PS/2 ALPS DualPoint TouchPad"
MatchDevicePath "/dev/input/event*"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "Emulate3Buttons" "false"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
EndSection
Change MatchProduct to your pointing stick device. You can find the name of your device by running
xinput list
Log out and back in for it to take effect.



1 comment:

Gabriel said...

Hi,

It worked perfectly! But the scroll in the touchpad does not work. Have any idea?

Thanks in advance!