summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2010-04-14 10:08:57 +0100
committerRichard Hughes <richard@hughsie.com>2010-04-14 10:08:57 +0100
commit5f1e64709b62517e4a925e952d255ab16d818df0 (patch)
tree4f1d5a752dd00d2090bee90368521f5261c53a44 /etc
parent42f0715637eb998523c52b9c90dde9bee36f8ebd (diff)
downloadupower-5f1e64709b62517e4a925e952d255ab16d818df0.tar.gz
Add a config file with SleepTimeout and AllowHibernateEncryptedSwap entries
Diffstat (limited to 'etc')
-rw-r--r--etc/Makefile.am6
-rw-r--r--etc/UPower.conf22
2 files changed, 28 insertions, 0 deletions
diff --git a/etc/Makefile.am b/etc/Makefile.am
new file mode 100644
index 0000000..3e39412
--- /dev/null
+++ b/etc/Makefile.am
@@ -0,0 +1,6 @@
+configdir = $(sysconfdir)/UPower
+config_DATA = UPower.conf
+
+EXTRA_DIST = \
+ $(config_DATA)
+
diff --git a/etc/UPower.conf b/etc/UPower.conf
new file mode 100644
index 0000000..1b7f9c3
--- /dev/null
+++ b/etc/UPower.conf
@@ -0,0 +1,22 @@
+# Only the system vendor should modify this file, ordinary users
+# should not have to change anything.
+
+[UPower]
+
+# This is the smallest amount of time that UPower gives to session and system
+# processes after the suspend or hibernate request is given.
+# If the session power management component uses AboutToSuspend() then the
+# session process can only make this time larger than the value below, never
+# smaller.
+#
+# Reducing this time means the suspend happens quicker, but might also not give
+# some processes enough time to save state.
+#
+# default=1000
+SleepTimeout=1000
+
+# This controls whether hibernate is allowed when using encrypted swap.
+#
+# default=true
+AllowHibernateEncryptedSwap=true
+