系統:Debian Wheezy Xfce。
問題:雖然安裝了 Xorg 觸摸板輸入的驅動(synaptics),但是“點擊”觸摸板中間部分,仍然無法啟用其相當於鼠標的“單擊”功能。
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.重啟系統
synaptics 是觸摸板的 Xorg 輸入驅動。即使觸摸板也可以由 evdev 或鼠標驅動處理,但該驅動能夠允許觸摸板實現更多的功能。synaptics 這個名稱屬歷史沿襲,在 Linux 下,特定硬件有內核處理,但該驅動適用於任何觸摸板。如果設備為“PS/2 Mouse”或更古老,內核驅動可能不會支持這樣的設備,該驅動也會提供有限支持的功能。不過,適用於任何設備,不管功能多少,都是非常不錯了。
synaptics 部分功能列表 :
關於 synaptics
的更多內容,可以在終端運行 man synaptics
進行查看。