Disable touchpad

Command line, type xinput, view the touchpad device ID, such as mine:

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜↳ Virtual core XTEST pointer               id=4    [slave  pointer  (2)]
⎜↳ Cypress APA Trackpad (cyapa)             id=14 [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)] ↳ Sleep Button id=9 [slave keyboard (3)] ↳ Sleep Button id=10 [slave keyboard (3)] ↳ Integrated_Webcam_HD id=13 [slave keyboard (3)] ↳ AT Translated Set 2 keyboard id=15 [slave keyboard (3)]

ID is the touchpad can be seen 14, then the next command execution

xinput disable 14

You can disable the touchpad. To restore the touchpad, execute the command

xinput enable 14

Guess you like

Origin www.cnblogs.com/qfmduke/p/11018714.html