Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Lantizia/e35135aa3b37928a8e979a0f44ccb45d to your computer and use it in GitHub Desktop.
Save Lantizia/e35135aa3b37928a8e979a0f44ccb45d 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