Thursday, January 1, 2009

touchpad的驱动安装

默认情况下, X服务器只能驱动touchpad最基本的功能: 光标的移动, 左右键

为了使touchpad有更多的功能. 需要使用touchpad的驱动

emerge synatics
此驱动为X服务器的桥接驱动, 安装后的so文件会放到如下地址:
/usr/lib/xorg/modules/input/synaptics_drv.so

为X服务器的桥接驱动, 那么, 他就由X去调用它, 因此, 需要配置X服务器的配置文件:
/etc/X11/xorg.conf

在"ServerLayout"一section中增加一个子节:
InputDevice "Touchpad" #其实此名可以随意 主要是一个section的名字罢了

然后增加一个section:
Section "InputDevice"
Identifier "Touchpad" #就是section的名字, 给人看的
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "SHMConfig" "on"
# User customized stuff
Option "Protocol" "auto-dev"
Option "LeftEdge" "1700"
Option "RightEdge" "5300"
Option "TopEdge" "1700"
Option "BottomEdge" "4200"
Option "FingerLow" "25"
Option "FingerHigh" "30"
Option "MaxTapTime" "180"
Option "MaxTapMove" "220"
Option "VertScrollDelta" "100"
Option "HorizScrollDelta" "0" # this disables horizontal scrolling
Option "MinSpeed" "0.06"
Option "MaxSpeed" "0.16"
Option "AccelFactor" "0.0018"
Option "TapButton1" "1"
Option "TapButton2" "1"
Option "TapButton3" "1"
Option "LTCornerButton" "2"
Option "LBCornerButton" "0"
Option "RTCornerButton" "0"
Option "RBCornerButton" "0"
Option "LeftRightScrolling" "0" # this *should* disable leftrightscrolling
EndSection

重启一下X服务器, 就OK了, 不行就reboot机器

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.