Skip to content

Instantly share code, notes, and snippets.

@schlomo
Created February 7, 2015 19:09
Show Gist options
  • Save schlomo/183524530d17d6a888d0 to your computer and use it in GitHub Desktop.
Save schlomo/183524530d17d6a888d0 to your computer and use it in GitHub Desktop.
PolicyKit Local Authority policy to disable suspend and hibernate for all users. Should be installed into /var/lib/polkit-1/localauthority/90-mandatory.d or /etc/polkit-1/localauthority/90-mandatory.d
[Completely disable suspend and hibernate]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend;org.freedesktop.upower.hibernate;org.freedesktop.login1.suspend*;org.freedesktop.login1.hibernate*
ResultAny=no
ResultInactive=no
ResultActive=no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment