"How to disable touchpad by xinput" is below:
Package xinput is necessary to do this. If the command does not work, install it first:
demo@mx1:~
!# apt install xinput
demo@mx1:~
$ xinput list
⎡ Virtual core pointer id=2
⎜ ↳ Virtual core XTEST pointer id=4
⎜ ↳ PixArt USB Optical Mouse id=10
⎜ ↳ TOSB1003:00 06CB:CD4B Mouse id=11
⎜ ↳ TOSB1003:00 06CB:CD4B Touchpad id=12
⎜ ↳ PS/2 Generic Mouse id=14
⎣ Virtual core keyboard id=3
↳ Virtual core XTEST keyboard id=5
↳ Power Button id=6
↳ Video Bus id=7
↳ Power Button id=8
↳ Toshiba input device id=9
↳ AT Translated Set 2 keyboard id=13
↳ ACPI Virtual Keyboard Device id=15
demo@mx1:~
$ xinput disable 12
demo@mx1:~
$ xinput enable 12
demo@mx1:~
$ exit
Thread: e-users Disabling Touchpad
https://sourceforge.net/p/enlightenment/mailman/enlightenment-users/thread/51e2c347-f459-6dbb-ccaf-09033dc34c86%40telecos.upc.edu/
https://unix.stackexchange.com/questions/512463/disable-touchpad-through-xinput
https://www.linux.org/threads/disable-touchpad-through-xinput.23029/