The content of this page is under Gentoo.
在Gentoo上使用笔记本触摸板
经过几翻折腾,终于能在Gentoo下正常使用触摸板了,简单记录一下值得注意的地方。
内核选项
确保 evdev 选中的前提下,把 PS/2 mouse 选中就够了。
驱动安装
USE 里一定要加上 hal 。
然后 emerge -uN xorg-server xf86-input-synaptics 。
功能调试
Gentoo 的 Wiki 里充满了过时的信息。目前 Google 一下 Gentoo Synaptics ,第一个结果页面里就包含了通过 xorg.conf , hal 和 udev 设置触摸板这三种办法。在最新版本(>7.3)的 Xorg 中唯一奏效的是 udev 的方法。具体步骤是创建 /usr/share/X11/xorg.conf.d/50-synaptcis.conf 文件,内容如下:
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchDevicePath "/dev/input/event*"
MatchIsTouchPad "on
Option "VertEdgeScroll" "on"
Option "TapButton1" "1"
EndSectionMatchDevicePath 这一行是触摸板在系统对应的设备文件,可以通过察看 /proc/bus/input/devices 的内容找到 (Synaptics 下面的 Handlers 项)。更多的 Option 可以在 man synaptics 里找到。比如把两指点击触发右键可以通过 Option "TapButton2" "3" 来实现。