Linux 禁用触摸板
1,首先需要查看触摸板:
命令:xinput list
结果:
? Virtual core
pointer
id=2 [master
pointer (3)]
? ? Virtual core XTEST
pointer
id=4 [slave pointer
(2)]
? ? Macintosh mouse button
emulation
id=14 [slave pointer
(2)]
? ? USB OPTICAL
MOUSE
id=15 [slave pointer
(2)]
? ? ImPS/2 Logitech Wheel
Mouse
id=13 [slave pointer
(2)]
? Virtual core
keyboard
id=3 [master
keyboard (2)]
? Virtual core XTEST
keyboard
id=5 [slave keyboard
(3)]
? AT Translated Set 2
keyboard
id=6 [slave keyboard
(3)]
? Lid
Switch
id=7 [slave
keyboard (3)]
? Lenovo
EasyCamera
id=8 [slave keyboard
(3)]
? Sleep
Button
id=9 [slave keyboard
(3)]
? Power
Button
id=10 [slave keyboard
(3)]
? Video
Bus
id=11 [slave keyboard
(3)]
? Power
Button
id=12 [slave keyboard
(3)]
2、一般的,触摸板都是带PS/2选项的:
禁用触摸板:
xinput set-prop "ImPS/2 Logitech Wheel Mouse" "Device Enabled"
0
启用触摸板:
xinput set-prop "ImPS/2 Logitech Wheel Mouse" "Device Enabled" 1
3、查看是否成功
命令: xinput list-props "ImPS/2 Logitech Wheel Mouse"
结果: Device ‘ImPS/2 Logitech Wheel Mouse‘:
Device Enabled
(138): 0
当看到这里的值,是 0 的时候,说明以上的设置均已经奏效
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。