Disable touchpad on a ThinkPad
I have a Lenovo thinkpad which has both a touchpad and a trackpoint device. By default both are enabled which (for me) is not welcome. I prefer the trackpoint device and when I use this I inadvertently make "gestures" on the touchpad which do things like flip to a new desktop, scroll up my file etc.
I have found a good and reliable way to disable the touchpad from within an X session but using the x input command. I have written a little script which does the job fine.
However I would really like to go one step further and disable it before I ever start X. Currently, even when I disable it with xinput, it comes back enabled whenever I wake up from sleep state. I tried putting my disabling script into the "hooks" for pm-utilts, but of course these all run as root and there is no root X session open when they are running, so that fails.
I also tried calling the script from the ~/.xsession script, but with no success here either.
I guess the correct way to do this is through writing or modifying some udev rules. I have not dabbled in this magic before. Any ideas on where to start?