Created
January 17, 2022 20:20
-
-
Save ConsoleCatzirl/2d48194f8edf3e5dd98ab9afa88a388d to your computer and use it in GitHub Desktop.
Prevent immediate resume-from-suspend
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 | |
# disable all acpi wakeups except the power button | |
cat /proc/acpi/wakeup | grep enabled | grep -v PWRB | | |
while read dev foo | |
do | |
echo $dev > /proc/acpi/wakeup | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment