ubuntu14.04禁止觸摸板和恢復觸摸板
阿新 • • 發佈:2017-05-29
ant mouse test inpu virtual 使用 pow web pan
? 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)]
? Video Bus id=8 [slave keyboard (3)]
? Power Button id=9 [slave keyboard (3)]
? Sleep Button id=10 [slave keyboard (3)]
? Integrated Webcam id=12 [slave keyboard (3)]
? AT Translated Set 2 keyboard id=13 [slave keyboard (3)]
? Dell WMI hotkeys id=16 [slave keyboard (3)]
2.從第一步可以得到觸摸板的id=14,那本機上
1.使用xinput list查看與觸摸板相關的id,以下是本機的輸出,沒搞清楚為什麽是Mouse!!!
[email protected]:~$ xinput list
? Virtual core pointer id=2 [master pointer (3)]
? ? Virtual core XTEST pointer id=4 [slave pointer (2)]
? ? HID compliant-mouse HID compliant-mouse id=11 [slave pointer (2)]
? ? PS/2 Generic Mouse id=14 [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)]
? Video Bus id=8 [slave keyboard (3)]
? Power Button id=9 [slave keyboard (3)]
? Sleep Button id=10 [slave keyboard (3)]
? Integrated Webcam id=12 [slave keyboard (3)]
? AT Translated Set 2 keyboard id=13 [slave keyboard (3)]
? Dell WMI hotkeys id=16 [slave keyboard (3)]
2.從第一步可以得到觸摸板的id=14,那本機上
2.1:禁止觸摸板
xinput disable 14
2.2恢復觸摸板
xinput enable 14
!!!不足之處歡迎糾正!!!
ubuntu14.04禁止觸摸板和恢復觸摸板