My laptop is of a chinese brand and has this issue where if the lid is closed it will sometimes register input for either the touchpad or the touchscreen. I primarily use it connected to my monitor, mouse and keyboard.
Ideally i would like some daemon or some script that is run everytime the lid of the laptop is either closed or opened, and disables or enables the touchscreen and touchpad.
A simple script i run manually is also fine though, but I’m not sure what to do
Any suggestions?