14

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.

0

1 Answer 1

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.

9
  • This didn't help (I'd actually tried before manually rmmod and modprobing psmouse). But now, after another restart, it is working again. I believe some update was installed as well, so perhaps some transient kernel issue that was fixed?
    – Andrew Ray
    Commented Oct 14, 2018 at 7:11
  • This issue went away after an update. Not sure of its actual cause.
    – Andrew Ray
    Commented Oct 14, 2018 at 7:16
  • I should have put into the answer a reboot may be necessary for changes to take effect but I didn't fully research that part of the answer. Let me know if it is still broken after next suspend. Thanks. Commented Oct 14, 2018 at 15:48
  • 2
    This solution did not work for me. Ubuntu 18.04 with "SYNA8004:00 06CB:CD8B Touchpad", Lenovo X1 Carbon Gen 7. I get snappy touchpad behavior after resuming from hibernation.
    – SaTa
    Commented Sep 27, 2019 at 3:30
  • @SaTa You need to reboot for changes to take effect. Also hibernation often brings a host of new problems not found with suspend/resume. Commented Sep 27, 2019 at 10:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .