When the laptop (Dell Vostro 15) wakes from suspend the mouse cursor can be moved with the touchpad at the login/lock screen, but once back in to the session does not move it. At this point plugging in an external USB mouse works fine. The touchpad works after a reboot, until suspending.
Asked
Active
Viewed 1.1k times
1 Answers
16
Reloading the touchpad / mouse driver after resuming from suspend works in most cases.
Run sudo -H gedit /lib/systemd/system-sleep/touchpad
Copy and paste in these lines:
#!/bin/bash
if [[ $1 == post ]]; then
modprobe -r psmouse
modprobe psmouse
fi
Save the file and exit.
Now make it a program by setting the execution bit:
chmod a+x /lib/systemd/system-sleep/touchpad
You will need to reboot for changes to take effect.

WinEunuuchs2Unix
- 102,282
modprobe -r psmouse
and thenmodprobe psmouse
from the terminal should resolve the problem, right? It doesn't though. If it was solving the issue, then I could have within the script you are recommending. – SaTa Sep 27 '19 at 15:51pmouse
withi2c_i801
to get the 2 finger scrolling working after suspend. – papar Sep 07 '20 at 15:43