Last active
March 25, 2019 22:08
-
-
Save FFY00/0cd8101a7c7de1aca3e2f98c40ebd8e4 to your computer and use it in GitHub Desktop.
Disable wake up from hibernation on lid open
This file contains hidden or 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/bash | |
# Script name: /lib/systemd/system-sleep/hibernation-lid.sh | |
# Purpose: Disable wakeup events when hibernating | |
if [ "$2" = "hibernate" ]; then | |
# Hibernating. Disabling/Re-enabling lid wakeup events. | |
echo LID > /proc/acpi/wakeup | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment