How to disable-enable touchpad in ubuntu terminal


STEP 1: Determine the device id (the device name should be something with touchpad or glidepoint)

xinput list

STEP 2: Disable it (e.g. here the device id is 13)

xinput set-prop 13 "Device Enabled" 0

you can also dis/enable some other devices.
You may run the command during session startup

Original link: