Skip to content

Instantly share code, notes, and snippets.

@jesusaurus
Created January 17, 2022 20:20
Show Gist options
  • Save jesusaurus/2d48194f8edf3e5dd98ab9afa88a388d to your computer and use it in GitHub Desktop.
Save jesusaurus/2d48194f8edf3e5dd98ab9afa88a388d to your computer and use it in GitHub Desktop.
Prevent immediate resume-from-suspend
#!/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