From 2099afe62624ffbfc15de52053a9aed3932d7675 Mon Sep 17 00:00:00 2001 From: Cyryl Plotnicki-Chudyk Date: Sat, 3 Jan 2015 22:11:25 +0100 Subject: [PATCH] script for enabling hibernation in ubuntu --- ubuntu/com.ubuntu.enable-hibernate.pkla | 9 +++++++++ ubuntu/enable_hibernation | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 ubuntu/com.ubuntu.enable-hibernate.pkla create mode 100755 ubuntu/enable_hibernation 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" +