Created
January 22, 2023 19:33
-
-
Save h0tw1r3/e4b4c4032547d773ab7f7f1cc6995bf1 to your computer and use it in GitHub Desktop.
Linux on Lenovo Thinkpad S1 Yoga
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 | |
# trackpad and trackpoint are connected to the ps port | |
# psmouse is not hotplug friendly | |
# must be removed before sleep | |
# place this file in /lib/systemd/system-sleep | |
# and chmod +x | |
PATH=/sbin:/usr/sbin:/bin:/usr/bin | |
case $1/$2 in | |
pre/*) | |
echo "Going to $2..." | |
modprobe -r psmouse | |
;; | |
post/*) | |
echo "Waking up from $2..." | |
sleep 2 | |
modprobe psmouse | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment