[gnome-power-manager] Add GConf keys for the disk spindown functionality



commit f51c6bc80bbc3e90a206d0d3c228672ce2b1fa27
Author: Richard Hughes <richard hughsie com>
Date:   Mon Jun 22 11:00:48 2009 +0100

    Add GConf keys for the disk spindown functionality

 data/gnome-power-manager.schemas.in |   48 +++++++++++++++++++++++++++++++++++
 src/gpm-common.h                    |    6 ++++
 2 files changed, 54 insertions(+), 0 deletions(-)
---
diff --git a/data/gnome-power-manager.schemas.in b/data/gnome-power-manager.schemas.in
index 4b84e16..d234abd 100644
--- a/data/gnome-power-manager.schemas.in
+++ b/data/gnome-power-manager.schemas.in
@@ -490,6 +490,54 @@
     </schema>
 
     <schema>
+      <key>/schemas/apps/gnome-power-manager/disks/spindown_enable_ac</key>
+      <applyto>/apps/gnome-power-manager/disks/spindown_enable_ac</applyto>
+      <owner>gnome-power-manager</owner>
+      <type>bool</type>
+      <default>false</default>
+      <locale name="C">
+        <short>If the low-power mode should be enabled when on AC</short>
+        <long>If the system low-power mode should be enabled when on AC power.</long>
+      </locale>
+    </schema>
+
+    <schema>
+      <key>/schemas/apps/gnome-power-manager/disks/spindown_enable_battery</key>
+      <applyto>/apps/gnome-power-manager/disks/spindown_enable_battery</applyto>
+      <owner>gnome-power-manager</owner>
+      <type>bool</type>
+      <default>true</default>
+      <locale name="C">
+        <short>If the low-power mode should be enabled when on battery</short>
+        <long>If the system low-power mode should be enabled when on laptop battery power.</long>
+      </locale>
+    </schema>
+
+    <schema>
+      <key>/schemas/apps/gnome-power-manager/disks/spindown_timeout_ac</key>
+      <applyto>/apps/gnome-power-manager/disks/spindown_timeout_ac</applyto>
+      <owner>gnome-power-manager</owner>
+      <type>int</type>
+      <default>600</default>
+      <locale name="C">
+        <short>Seconds of inactivity to spin down when on AC</short>
+        <long>The number of seconds of inactivity to spin down the disks when on AC power.</long>
+      </locale>
+    </schema>
+
+    <schema>
+      <key>/schemas/apps/gnome-power-manager/disks/spindown_timeout_battery</key>
+      <applyto>/apps/gnome-power-manager/disks/spindown_timeout_battery</applyto>
+      <owner>gnome-power-manager</owner>
+      <type>int</type>
+      <default>60</default>
+      <locale name="C">
+        <short>Seconds of inactivity to spin down when on battery</short>
+        <long>The number of seconds of inactivity to spin down the disks when on battery power.</long>
+      </locale>
+    </schema>
+
+    <schema>
       <key>/schemas/apps/gnome-power-manager/notify/perhaps_recall</key>
       <applyto>/apps/gnome-power-manager/notify/perhaps_recall</applyto>
       <owner>gnome-power-manager</owner>
diff --git a/src/gpm-common.h b/src/gpm-common.h
index 096fa07..1fb42db 100644
--- a/src/gpm-common.h
+++ b/src/gpm-common.h
@@ -110,6 +110,12 @@ G_BEGIN_DECLS
 #define GPM_CONF_LOCK_GNOME_KEYRING_SUSPEND	GPM_CONF_DIR "/lock/gnome_keyring_suspend"
 #define GPM_CONF_LOCK_GNOME_KEYRING_HIBERNATE	GPM_CONF_DIR "/lock/gnome_keyring_hibernate"
 
+/* disks */
+#define GPM_CONF_DISKS_SPINDOWN_ENABLE_AC	GPM_CONF_DIR "/disks/spindown_enable_ac"
+#define GPM_CONF_DISKS_SPINDOWN_ENABLE_BATT	GPM_CONF_DIR "/disks/spindown_enable_battery"
+#define GPM_CONF_DISKS_SPINDOWN_TIMEOUT_AC	GPM_CONF_DIR "/disks/spindown_timeout_ac"
+#define GPM_CONF_DISKS_SPINDOWN_TIMEOUT_BATT	GPM_CONF_DIR "/disks/spindown_timeout_battery"
+
 /* notify */
 #define GPM_CONF_NOTIFY_PERHAPS_RECALL		GPM_CONF_DIR "/notify/perhaps_recall"
 #define GPM_CONF_NOTIFY_LOW_CAPACITY		GPM_CONF_DIR "/notify/low_capacity"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]