Code44free's Blog

Ubuntu 16.04 fix for «touchpad doesn’t work after suspend» problem

Posted in Uncategorized by code44free on Август 18, 2016

In my fujitsu laptop, on freshly installed Ubuntu 16.04LTS, after suspend, touchpad stopped to work. As i found by googling, this is a common problem. In my situation to fix this issue, i’m created file /etc/systemd/system/fix_touchpad.service with the following content:


[Unit]
Description=Re-run psmouse
After=suspend.target
After=hibernate.target
After=hybrid-sleep.target

[Service]
ExecStart=/bin/sh -c ' modprobe -r -f psmouse && modprobe psmouse '

[Install]
WantedBy=suspend.target
WantedBy=hibernate.target
WantedBy=hybrid-sleep.target

and register it with the command:


$ sudo systemctl enable fix_touchpad.service

Old trick with pm-utils and script in /etc/pm/sleep.d/ folder doesn’t work for me