Basically, i created an bash file with the name disabletouchscreen.sh and which had inside:
xinput set-prop ‘ELAN Touchscreen’ “Device Enabled” 0
xinput set-prop ‘SynPS/2 Synaptics TouchPad’ “Device Enabled” 0
The first one disable my touchscreen and the second my touchpad which i discovered the name with the command:
Info: The 0 means it will be disabled by default. The 1 if you want to enable it.
I used the command: sudo nautilus to get to my file manager in ROOT so that i could copy the disabletouchscreen.sh to the folder /etc/profile.d
or you could just use terminal text editor nano to create this file. As you want.