最近挖掘了一下触摸板,原来有这么多功能啊。
首先,make.conf中
INPUT_DEVICES="evdev"
emerge -av xf86-input-synaptics
在/etc/X11/xorg.conf中加入以下section:
Section "InputDevice"
Identifier "Touchpad"
Driver "synaptics"
Option "Device" "/dev/input/mouse0"
Option "Protocol" "auto-dev"
Option "LeftEdge" "80"
Option "RightEdge" "950"
Option "TopEdge" "100"
Option "BottomEdge" "680"
Option "FingerLow" "7"
Option "FingerHigh" "8"
# Option "MaxTapTime" "180"
# Option "MaxTapMove" "110"
Option "VertEdgeScroll" "true" #垂直滚动
Option "HorizEdgeScroll" "true" #水平滚动
Option "TapButton1" "1" #单指点击设为左键
Option "VertScrollDelta" "20"
Option "HorizScrollDelta" "20"
Option "MinSpeed" "0.60"
Option "MaxSpeed" "1.20"
Option "AccelFactor" "0.010"
Option "EdgeMotionMinSpeed" "200"
Option "EdgeMotionMaxSpeed" "200"
Option "RBCornerButton" "2" #把右下角设成鼠标中键
Option "SHMConfig" "on" #可运行时配置
EndSection
synclient -l 可列出当前配置。
synclient var1=value1可以xorg运行时修改当前配置。
我主要是加了滚动和中键。如想了解更多可man synclient 或man synaptics