本人用的Ubuntu 10.04系統,筆記本上有鼠標和觸摸板。默認下,觸摸板是開啟的,
有時候打字的時候會不時碰到觸摸板,添了不少麻煩,所以得禁用觸摸板,限於目前所用的UBUNTU上
沒有相關的GUI工具來禁用。找到一方法,使用xinput命令:
終端下:
xinput list 列出所有input輸入設備
- www.linuxidc.com@linuxidc:/etc/X11/xinit/xinput.d$ xinput list
- ⎡ Virtual core pointer id=2 [master pointer (3)]
- ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
- ⎜ ↳ Logitech USB Optical Mouse id=9 [slave pointer (2)]
- ⎜ ↳ SynPS/2 Synaptics TouchPad id=11 [slave pointer (2)]
- ⎣ Virtual core keyboard id=3 [master keyboard (2)]
- ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
- ↳ Power Button id=6 [slave keyboard (3)]
- ↳ Video Bus id=7 [slave keyboard (3)]
- ↳ Power Button id=8 [slave keyboard (3)]
- ↳ AT Translated Set 2 keyboard id=10 [slave keyboard (3)]
出觸摸輸入設備SynPS/2 Synaptics TouchPad的 id = 11
再用以下命令就可以了, 0,表示禁止,1 ,表示開啟
www.linuxidc.com@linuxidc:~$ xinput set-prop 11 "Device Enabled" 0
狀態:
- www.linuxidc.com@linuxidc:~$ xinput list-props 11
- Device 'SynPS/2 Synaptics TouchPad':
- Device Enabled (121): 0
- Coordinate Transformation Matrix (123): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
- Device Accel Profile (245): 0
- Device Accel Constant Deceleration (246): 1.000000
- Device Accel Adaptive Deceleration (247): 1.000000
- Device Accel Velocity Scaling (248): 10.000000
- Synaptics Edges (262): 1752, 5192, 1620, 4236
- ............
當注銷或者重啟系統後,被禁止的設備又被開啟。對於synaptics 的觸摸板,還有另種方法,不過效果差不多,如下:安裝gsynaptics,:sudo apt-get install gsynapticsgsynaptics
在彈出對話框中,取消 啟用觸摸板 選項
這樣就能禁止掉觸摸板了,但跟先前用的xinput命令一樣,當系統注銷或重啟時,觸摸板又被開啟了,還是有點麻煩.
不過可以在 啟動應用程序 中 加入系統啟動項.
google 了我網上的一些方法,實踐後,發現也是挺麻煩的。而且對於不同的系統
還是有些不一樣。
看到有說touchpad-indicator可以很方便解決問題,但搜了一下,沒找到這個軟件.