1,执行 xinput 查看有哪些输入设备
# xinput list
? Virtual core pointer id=2 [master pointer (3)]
? ? Virtual core XTEST pointer id=4 [slave pointer (2)]
? ? PixArt Lenovo USB Optical Mouse id=9 [slave pointer (2)]
? ? DualPoint Stick id=12 [slave pointer (2)]
? ? AlpsPS/2 ALPS DualPoint TouchPad id=11 [slave pointer (2)]
? Virtual core keyboard id=3 [master keyboard (2)]
? Virtual core XTEST keyboard id=5 [slave keyboard (3)]
? Video Bus id=6 [slave keyboard (3)]
? Power Button id=7 [slave keyboard (3)]
? Sleep Button id=8 [slave keyboard (3)]
? AT Translated Set 2 keyboard id=10 [slave keyboard (3)]
? Dell WMI hotkeys id=13 [slave keyboard (3)]
如上可看出触摸板设备名为SynPS/2 Synaptics TouchPad,id为11。键盘中间的触摸头id为12,这两个我都要关掉
2,执行xinput set-prop更改其属性值
# xinput set-prop 'AlpsPS/2 ALPS DualPoint TouchPad' 'Device Enabled' 0 (这里改成1就是打开,0就是关闭)
# xinput set-prop 'DualPoint Stick' 'Device Enabled' 0
阅读(2032) | 评论(0) | 转发(0) |