1. 输入命令: xinput, 得到类似的输出:
Virtual core pointer id=2 [master pointer (3)]
? ? Virtual core XTEST pointer id=4 [slave pointer (2)]
? ? USB Optical Mouse id=12 [slave pointer (2)]
? ? DualPoint Stick id=14 [slave pointer (2)]
? ? AlpsPS/2 ALPS DualPoint TouchPad id=15 [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=11 [slave keyboard (3)]
? AT Translated Set 2 keyboard id=13 [slave keyboard (3)]
? Dell WMI hotkeys id=16 [slave keyboard (3)]
其中的 Synaptics TouchPad就是触摸板,其设备id为15,这个后面用到
2. 执行命令: xinput set-prop 15 "Device Enabled" 0
这样就禁止了触摸板,如果要启用,把0换成1即可。
阅读(1394) | 评论(0) | 转发(0) |