一直在用IBM原产的ThinkPad 产品
因此把WiKi的ThinkPad Trackpoint 配置分享
配置Trackpoint
http://www.linux-wiki.cn/index.php/%E9%85%8D%E7%BD%AETrackpoint%E7%9A%84%E4%B8%AD%E9%94%AE%E6%BB%9A%E8%BD%AE%E5%8A%9F%E8%83%BD
其它发行版
其它发行版,如Fedora 9及以前的版本,或其它在/etc/X11/xorg.conf中没有Configured Mouse小节的发行版中,修改的基本思路都是在/etc/X11/xorg.conf中有关鼠标一项如上设置即可,并注意更改ServerLayout部分(如果有的话)的设备名称。下面以Fedora 9为例介绍:
Fedora中,/etc/X11/xorg.conf中没有Configured Mouse一项,需要添加:
# ServerFlags一节对Fedora 9来说是必要的[3]
Section "ServerFlags"
Option "AutoAddDevices" "false"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "Emulate3Buttons" "on"
Option "Emulate3TimeOut" "50"
Option "EmulateWheel" "on"
Option "EmulateWheelTimeOut" "200"
Option "EmulateWheelButton" "2"
Option "YAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
Option "SHMConfig" "on"
EndSection
在
Section "ServerLayout"
中,去掉(如果有的话)
InputDevice "Synaptics" "CorePointer"
加入:
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
配置完成,重新启动X就可以看到效果。
Firefox中水平滚动的配置
Firefox中垂直滚动是没有问题的,但是当试图水平滚动时可能执行的是前进、后退操作。如果要修正,请在地址栏中输入
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;
mousewheel.horizscroll.withshiftkey.sysnumlines = true;
你也可以直接做如下更改(仅仅避免了由中键导致的前进、后退功能):
mousewheel.horizscroll.withnokey.action = 0;