Thursday, September 27, 2007

Linux on Thinkpad T60

Almost everything here comes from thinkwiki

Trackpoint Mouse:


see thinkwiki
To make the trackpoint scroll work, /etc/X11/xorg.conf should have the following mouse section:

Section "InputDevice"
Identifier "Mouse[1]"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "IMPS/2"
Option "ZAxisMapping" "4 5"
Option "YAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
Option "Emulate3Buttons" "true"
Option "Emulate3TimeOut" "50"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "EmulateWheelTimeOut" "200"
EndSection
Make sure that the identifier in this section is the same as you have in the ServerLayout section.
With the above configuration, firefox and opera show an annoying behavior when scrolling reaches the end of the page.

For firefox, adjust the following (using about:config)

mousewheel.horizscroll.withcontrolkey.action = 3;
mousewheel.horizscroll.withcontrolkey.numlines = 1;
mousewheel.horizscroll.withcontrolkey.sysnumlines = true;

mousewheel.horizscroll.withnokey.action = 0;
mousewheel.horizscroll.withnokey.numlines = 1;
mousewheel.horizscroll.withnokey.sysnumlines = true;

mousewheel.horizscroll.withshiftkey.action = 1;
mousewheel.horizscroll.withshiftkey.numlines = 1;


For opera, comment out the following lines in standard_mouse.ini in e.g. /usr/share/opera/ini/ (Debian) or /opt/opera/share/opera/ini/ (Gentoo)

Button6 = Back
Button7 = Forward

No comments: