summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2012-05-11 16:29:57 +0000
committerThomas Backlund <tmb@mageia.org>2012-05-11 16:29:57 +0000
commit82af1cc07a24f33e5f7eae8fd2e7badaa7d940bb (patch)
tree455c24dfc0332ac875cd431ded0159143cf0bb91 /files
parent4ba4c62c8853853e2ac87e49a02e70f55400e00f (diff)
downloaddraklive-config-82af1cc07a24f33e5f7eae8fd2e7badaa7d940bb.tar
draklive-config-82af1cc07a24f33e5f7eae8fd2e7badaa7d940bb.tar.gz
draklive-config-82af1cc07a24f33e5f7eae8fd2e7badaa7d940bb.tar.bz2
draklive-config-82af1cc07a24f33e5f7eae8fd2e7badaa7d940bb.tar.xz
draklive-config-82af1cc07a24f33e5f7eae8fd2e7badaa7d940bb.zip
disable suspend and hibernate in live mode
Diffstat (limited to 'files')
-rwxr-xr-xfiles/50-disable-suspend.pkla6
-rwxr-xr-xfiles/99-live-disable-suspend-hibernate.fdi11
2 files changed, 6 insertions, 11 deletions
diff --git a/files/50-disable-suspend.pkla b/files/50-disable-suspend.pkla
new file mode 100755
index 0000000..7c92300
--- /dev/null
+++ b/files/50-disable-suspend.pkla
@@ -0,0 +1,6 @@
+[Disable Suspend]
+Identity=unix-user:*
+Action=org.freedesktop.upower.hibernate;org.freedesktop.upower.suspend
+ResultAny=no
+ResultInactive=no
+ResultActive=no
diff --git a/files/99-live-disable-suspend-hibernate.fdi b/files/99-live-disable-suspend-hibernate.fdi
deleted file mode 100755
index 96f1767..0000000
--- a/files/99-live-disable-suspend-hibernate.fdi
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
-<deviceinfo version="0.2">
- <device>
- <match key="info.udi" string="/org/freedesktop/Hal/devices/computer">
- <merge key="power_management.can_hibernate" type="bool">false</merge>
- <merge key="power_management.can_suspend" type="bool">false</merge>
- <merge key="power_management.can_suspend_to_disk" type="bool">false</merge>
- <merge key="power_management.can_suspend_to_ram" type="bool">false</merge>
- </match>
- </device>
-</deviceinfo>