#xinput list
#xinput list-props list-number
#xinput set-prop list-number func-number 1/0
$xinput list
列出所有input输入设备
-
$ 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 ,表示开启
$ xinput set-prop 11 "Device Enabled" 0
阅读(4607) | 评论(0) | 转发(1) |