Skip to content

Instantly share code, notes, and snippets.

@basilevs
Created April 13, 2021 13:37
Show Gist options
  • Save basilevs/032408a275ff8be041b47bb3207edd3a to your computer and use it in GitHub Desktop.
Save basilevs/032408a275ff8be041b47bb3207edd3a to your computer and use it in GitHub Desktop.
A systemd service to reset old Synaptic touchpads after suspend. Put in /etc/systemd/system/
[Unit]
Description=Reset touchpad after suspend
After=suspend.target
[Service]
User=root
Type=oneshot
ExecStart=modprobe -r psmouse ; modprobe psmouse
TimeoutSec=0
StandardOutput=syslog
[Install]
WantedBy=suspend.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment