打字的時候手掌總是不知不覺碰到觸摸闆,導緻滑鼠指針滿螢幕亂竄,很煩人,于是在網上找到一些禁用觸摸闆的方法,适用于ubuntu 10.04的方法如下:
首先
[email protected]:/$ sudo find | grep xorg.conf
./etc/X11/xorg.conf.failsafe
./usr/share/man/man5/xorg.conf.5.gz
./usr/lib/X11/xorg.conf.d
./usr/lib/X11/xorg.conf.d/05-evdev.conf
./usr/lib/X11/xorg.conf.d/10-wacom.conf
./usr/lib/X11/xorg.conf.d/10-vmmouse.conf
./usr/lib/X11/xorg.conf.d/10-synaptics.conf
ubuntu 10.04的輸入裝置配置檔案在/usr/lib/X11/xorg.conf.d檔案夾内,cat ./usr/lib/X11/xorg.conf.d/05-evdev.conf可以看到
# Catchall classes for input devices
# We don't simply match on any device since that also adds accelerometers
# and other devices that we don't really want to use. The list below
# matches everything but joysticks.
Section "InputClass"
Identifier "evdev pointer catchall"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
EndSection
Section "InputClass"
Identifier "evdev keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
EndSection
#Section "InputClass"
# Identifier "evdev touchpad catchall"
# MatchIsTouchpad "on"
# MatchDevicePath "/dev/input/event*"
# Driver "evdev"
#EndSection
Section "InputClass"
Identifier "evdev tablet catchall"
MatchIsTablet "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
EndSection
Section "InputClass"
Identifier "evdev touchscreen catchall"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
EndSection
把其中的MatchIsTouchpad都注釋掉,./usr/lib/X11/xorg.conf.d/10-synaptics.conf中也有MatchIsTouchpad,我也全部注釋了,然後重新啟動計算機,觸摸闆就老實了