Views:
57,584β
Votes: 21β
Tags:
touchpad
suspend
asus
synaptics
Link:
π See Original Answer on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/828920
Title:
Touchpad not working after suspending laptop
ID:
/2016/09/24/Touchpad-not-working-after-suspending-laptop
Created:
September 24, 2016
Edited: September 24, 2016
Upload:
December 22, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
This bug is reported in launchpad: Elantech touchpad stops working after suspend. After suspend the OP tries # modprobe -r psmouse
and # modprobe psmouse
and it doesnβt work. But what if psmouse was removed before suspend and inserted after suspend?
If this works manually then you can automate by creating a new file in the /lib/systemd/system-sleep/
directory containing:
#!/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
It is known after a suspend the psmouse module canβt be removed. We also know it can be removed and inserted before a suspend. So this technique removes it before suspend. After resume insert it and hopefully the kernel wonβt reject it.
The sleep 2
command is from my own problems where systemd and kernel (via gnome or APM) were both sleeping and waking up. I needed to redirect pulseaudio sound back to the TV due to a bug introduced in Ubuntu 16.04/pulseaudio 8.0. The 2 second delay was necessary for kernel and systemd to finish waking up. Still havenβt figured out the dual suspend and dual resume yetβ¦.