xinput list⎡ Virtual core pointerid=2[master pointer (3)]⎜ ↳ Virtual core XTEST pointer id=4[slave pointer (2)]⎜ ↳ PS/2 Generic Mouse id=11[slave pointer (2)]⎜ ↳ Logitech M585/M590 id=12[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)]↳ Sleep Button id=7[slave keyboard (3)]↳ Integrated_Webcam_HD: Integrate id=8[slave keyboard (3)]↳ Dell WMI hotkeys id=9[slave keyboard (3)]↳ AT Translated Set 2 keyboard id=10[slave keyboard (3)]
11就是触摸板
xinput --set-prop 'PS/2 Generic Mouse' 'Device Enabled' 0 //关闭xinput --set-prop 'PS/2 Generic Mouse' 'Device Enabled' 1 //打开
如果觉得《linux关闭触摸板》对你有帮助,请点赞、收藏,并留下你的观点哦!