作者: 天天见闻 时间:2023-03-15 阅读: 59
安装xorg-x11-apps 包:yum install xorg-x11-apps。Virtual core pointer id=2 [master pointer ] Virtual core XTEST pointer id=4 [slave pointer ] PixArt USB Optical Mouse id=12 [slave pointer ] FSPPS/2 Sentelic FingerSensingPad id=14 [slave pointer ] Virtual core keyboard id=3 [master keyboard ] Virtual core XTEST keyboard id=5 [slave keyboard ] Power Button id=6 [slave keyboard ] Video Bus id=7 [slave keyboard ] Video Bus id=8 [slave keyboard ] Power Button id=9 [slave keyboard ] Sleep Button id=10 [slave keyboard ] USB Webcam id=11 [slave keyboard ] AT Translated Set 2 keyboard id=13 [slave keyboard ]. 我这儿是14 然后: # 屏蔽 xinput set-int-prop 14 'Device Enabled' 8 0 # 启用 xinput set-int-prop 14 'Device Enabled' 8 1. 最好不要用数字,在脚本中,因为数字会变。'elif [ $1 == 'off' ]then xinput set-int-prop 'FSPPS/2 Sentelic FingerSensingPad' 'Device Enabled' 8 0 echo '触摸板关闭成功!'else echo '请输入参数:on/off' echo '比如开启触摸板:FingerSensingPad on'fi...