diff --git a/ubuntu/com.ubuntu.enable-hibernate.pkla b/ubuntu/com.ubuntu.enable-hibernate.pkla new file mode 100644 index 00000000..a50e4cdf --- /dev/null +++ b/ubuntu/com.ubuntu.enable-hibernate.pkla @@ -0,0 +1,9 @@ +[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 +ResultActive=yes diff --git a/ubuntu/enable_hibernation b/ubuntu/enable_hibernation new file mode 100755 index 00000000..3fff2dea --- /dev/null +++ b/ubuntu/enable_hibernation @@ -0,0 +1,4 @@ +#!/bin/sh +sudo cp -v com.ubuntu.enable-hibernate.pkla /var/lib/polkit-1/localauthority/50-local.d/ +echo "Don't forget to install Hibernate Status Button" +