Last active
August 6, 2020 10:21
-
-
Save ericrswanny/f303fac1a30255c6a9f5321575b406cc to your computer and use it in GitHub Desktop.
X240 Touchpad Suspend Fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# /lib/systemd/system-sleep/SUSPEND_pmouse.sh | |
# Note: don't forget to make it executable | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment