I just got a new thinkpad T430 that has a synaptics trackpad. Strangely the trackpad would not work correctly once the laptop goes to sleep and wakes up. The little red knob IBM thingy would work fine but the trackpad and the associated buttons were not working fine. Found a nice workaround for it that I thought I will share.
The idea was to disable and enable the psmouse driver so that it would reset itself. Here is the script to do the same. It should be placed in /etc/pm/sleep.d and marked as executable
vivekv@Vivek-Laptop /etc/pm/sleep.d $ cat 71input-reset
#!/bin/sh
#
# Reload the AT keyboard interface.
case "$1" in
hibernate|suspend)
rmmod psmouse
;;
thaw|resume)
modprobe psmouse
;;
*)
;;
esac
Here is my virtual pointer information.
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=11 [slave pointer (2)]
⎜ ↳ TPPS/2 IBM TrackPoint id=13 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Sleep Button id=8 [slave keyboard (3)]
↳ Integrated Camera id=9 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=10 [slave keyboard (3)]
↳ ThinkPad Extra Buttons id=12 [slave keyboard (3)]