Skip to content

Instantly share code, notes, and snippets.

@7rin0
Created November 3, 2016 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 7rin0/340db5e28e98f2a807f761434c883102 to your computer and use it in GitHub Desktop.
Save 7rin0/340db5e28e98f2a807f761434c883102 to your computer and use it in GitHub Desktop.
ACPI - Wake up with Power button only (executed by root)
#!/bin/bash
echo 'UHC1' > /proc/acpi/wakeup
echo 'UHC2' > /proc/acpi/wakeup
echo 'UHC4' > /proc/acpi/wakeup
echo 'UHC6' > /proc/acpi/wakeup
echo 'USB5' > /proc/acpi/wakeup
echo 'USB3' > /proc/acpi/wakeup
echo 'USB5' > /proc/acpi/wakeup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment