Disabling hibernation in PolicyKit

December 9, 2012 at 8:45 PM (UTC)

To disable hibernation in PolicyKit, create a file /etc/polkit-1/localauthority/50-local.d/com.zigg.disable-hibernate.pkla with the following contents:

[Disable hibernate by default]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=no

Inspired by the enable configuration at How do I hibernate my computer?.