自己在家笔记本装来个双系统玩玩,发现触摸板很烦人,禁用!
1、安装一个小神器
yum install xorg-x11-apps
2、查看你到输入硬件对应的id,方便禁用命令
[[email protected] yum.repos.d]# xinput list ? Virtual core pointer id=2 [master pointer (3)] ? ? Virtual core XTEST pointer id=4 [slave pointer (2)] ? ? 2.4G Gaming Dongle id=9 [slave pointer (2)] ? ? Macintosh mouse button emulation id=15 [slave pointer (2)] ? ? SynPS/2 Synaptics TouchPad id=16 [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)] ? 2.4G Gaming Dongle id=7 [slave keyboard (3)] ? Namuga 1.3M Webcam id=8 [slave keyboard (3)] ? Sleep Button id=10 [slave keyboard (3)] ? Power Button id=11 [slave keyboard (3)] ? Lid Switch id=12 [slave keyboard (3)] ? Video Bus id=13 [slave keyboard (3)] ? Power Button id=14 [slave keyboard (3)]
从结果里可以看到,Touchad到id=16
3、禁用!
xinput set-int-prop 16 "Device Enabled" 8 0
4、如果需要,可以再用此命令启用
xinput set-int-prop 16 "Device Enabled" 8 1
CentOS禁用笔记本touchpad
时间: 2024-12-21 06:20:27