1.首先,保证安装了 synaptics 驱动:
$ sudo apt-get install xserver-xorg-input-synaptics
2.复制 /usr/share/X11/xorg.conf.d 到 /etc/X11
$ sudo cp -R /usr/share/X11/xorg.conf.d/ /etc/X11
3.将原 /etc/X11/xorg.conf.d/10-evdev.conf 配置文件下面同一部分内容改为:
Section "InputClass"
Identifier "evdev touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "synaptics"
Option "TapButton1" "1"
Option "TapButton2" "2"
Option "TapButton2" "3"
EndSection
关于上面文件中 TapButton 的使用,man 手册里面的解释为
Option "TapButton1" "integer"
Which mouse button is reported on a non-corner one-finger tap. Set to
0 to disable. Property: "Synaptics Tap Action"
Option "TapButton2" "integer"
Which mouse button is reported on a non-corner two-finger tap. Set to
0 to disable. Property: "Synaptics Tap Action"
Option "TapButton3" "integer"
Which mouse button is reported on a non-corner three-finger tap. Set
to 0 to disable. Property: "Synaptics Tap Action"
4.重启系统