Skip to content

Instantly share code, notes, and snippets.

@FFY00
Last active March 25, 2019 22:08
Show Gist options
  • Save FFY00/0cd8101a7c7de1aca3e2f98c40ebd8e4 to your computer and use it in GitHub Desktop.
Save FFY00/0cd8101a7c7de1aca3e2f98c40ebd8e4 to your computer and use it in GitHub Desktop.
Disable wake up from hibernation on lid open
#!/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