Skip to content

Instantly share code, notes, and snippets.

@xsnpdngv
Created May 1, 2017 00:04
Show Gist options
  • Save xsnpdngv/5d6065aee82f26933c23f0553c70328f to your computer and use it in GitHub Desktop.
Save xsnpdngv/5d6065aee82f26933c23f0553c70328f to your computer and use it in GitHub Desktop.
Enable hibernate option in Ubuntu: Create or edit under: /etc/polkit-1/localauthority/50-local.d/
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment