Fix for touchpad no longer working after resume from suspend
I have a thinkpad running Ubuntu on it. Whenever I suspend and resume again, the touchpad no longer works.
To fix this, one has to call following as root to reload the kernel module:
modprobe -r psmouse
modprobe psmouse
Alternatively, this can be automated with a script.
Place the following code in a file called
/lib/systemd/system-sleep/fix-touchpad
#!/bin/sh
PATH=/sbin:/usr/sbin:/bin:/usr/bin
case "$1" in
pre)
#code execution BEFORE sleeping/hibernating/suspending
;;
post)
#code execution AFTER resuming
/usr/sbin/modprobe -r psmouse
/usr/sbin/modprobe psmouse
;;
esac
exit 0
And don’t forget to add execution rights to it using
sudo chmod +x /lib/systemd/system-sleep/fix-touchpad
Kommentare
Fix for touchpad no longer working after resume from suspend — Keine Kommentare
HTML tags allowed in your comment: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>