星期五, 九月 28, 2007

thinkpad trackpoint设置搞定

在ubuntu下自动没有trachpoint(就是键盘上的鼠标左右键中间的那个键,不是小红点)的上下翻页的功能,只有作为中键的功能。在网上查了一下,改下设置就好了:
gedit /etc/X11/xorg.conf

先把原来的说明掉(当然,先之先是要备份xorg.conf)
#Section "InputDevice"
# Identifier "Configured Mouse"
# Driver "mouse"
# Option "CorePointer"
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
Option "YAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
EndSection
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
Option "YAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
EndSection
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
Option "YAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
EndSection
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
Option "YAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
EndSection
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
Option "YAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
EndSection
# Option "Device" "/dev/input/mice"
# Option "Protocol" "ImPS/2"
# Option "ZAxisMapping" "4 5"
# Option "Emulate3Buttons" "true"
#EndSection

然后加上下面的话
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
Option "YAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
EndSection

这里边也许有的是不必要的,不管了,反正可以用就行了。这样可以手不离键盘也挺方便的.
然后重启电脑或者重启X。

但是有bug,就在编辑这个页面的时候,用trackpoint和小红点往下拉的时候无缘无故转到企图别的页面上去。不知道原因。
将下面两个说明掉,就可以了
Option "YAxisMapping" "4 5"
Option "XAxisMapping" "6 7"

没有评论: