Disabling touch screen only temporarily [duplicate]

My touchscreen is cracked, so the pointer continuously clicks on the cracked area. That prevents me from using the computer normally.

I have tried the xinput disable 'ELAN Touchscreen' command, and even the one specific to the input number (though it should make no difference), yet whenever I do this, touch is re-enabled after only a few seconds.

Is there some way to disable the screen permanently until I decide to turn it on again (when I finally go to fix it)?


Solution 1:

To first find the id of the device use:

xinput -list

From there find the name of the touch screen and then run:

xinput disable DEVICE

where DEVICE is the device name enclosed in quotes or its id.