Fix: Touchpad not working after suspending laptop
Advertisement
This bug is filed on Launchpad: Elantech touchpad stops working after suspend.
Every time you wake the laptop from suspend, you have to “unload and reload the psmouse module by hand.”
Advertisement

So the fix is to write a script.
sudo vim /lib/systemd/system-sleep/trackpoint
with:
#!/bin/sh
case $1/$2 in
pre/*)
echo "Going to $2..."
# Place your pre suspend commands here, or `exit 0` if no pre suspend action required
modprobe -r psmouse
;;
post/*)
echo "Waking up from $2..."
# Place your post suspend (resume) commands here, or `exit 0` if no post suspend action required
sleep 2
modprobe psmouse
;;
esac
Don’t forget to make it executable.
sudo chmod +x /lib/systemd/system-sleep/trackpoint
Reboot and enjoy.
Links: https://askubuntu.com/questions/671910/touchpad-not-working-after-suspending-laptop https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1490130
Comments are hosted on the Chinese main site. This mirror is read-only.