CentOS系統禁用開啟觸控板
1.安裝xorg-x11-apps:sudo yum install xorg-x11-apps;
2.檢視對應裝置的 id:xinput –list,我的檢視結果如下
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Logitech G102 Prodigy Gaming Mouse id=10 [slave pointer (2)]
⎜ ↳ TPPS/2 IBM TrackPoint id=15 [slave pointer (2)]
⎜ ↳ Macintosh mouse button emulation id=16 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=17 [slave pointer (2)]
⎜ ↳ Logitech G102 Prodigy Gaming Mouse id=18 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ ThinkPad Extra Buttons id=6 [slave keyboard (3)]
↳ Lid Switch id=7 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=8 [slave keyboard (3)]
↳ Integrated Camera id=9 [slave keyboard (3)]
↳ Sleep Button id=11 [slave keyboard (3)]
↳ Video Bus id=12 [slave keyboard (3)]
↳ Video Bus id=13 [slave keyboard (3)]
↳ Power Button id=14 [slave keyboard (3)]
對應觸控板id為17;
3.關閉:xinput set-int-prop 17 "Device Enabled" 8 0
4.啟用:xinput set-int-prop 17 "Device Enabled" 8 1