hal/fdi/policy/10osvendor 10-power-mgmt-policy.fdi,1.2,1.3
David Zeuthen
david at freedesktop.org
Tue Aug 16 11:08:44 PDT 2005
- Previous message: hal/po ChangeLog,1.17,1.18 pa.po,NONE,1.1
- Next message: hal/tools Makefile.am, 1.18, 1.19 hal-system-power-hibernate, NONE,
1.1 hal-system-power-set-power-save, NONE,
1.1 hal-system-power-suspend, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/hal/hal/fdi/policy/10osvendor
In directory gabe:/tmp/cvs-serv9732/fdi/policy/10osvendor
Modified Files:
10-power-mgmt-policy.fdi
Log Message:
2005-08-16 David Zeuthen <davidz at redhat.com>
First stab at system power management... Need to put this in the
hal spec too..
* hal.conf.in: Add security policy for Device.SystemPowerManagement
and Device.Volume.Crypto interfaces - only allow the console user to
invoke methods on these interfaces
* fdi/policy/10osvendor/10-power-mgmt-policy.fdi: Add methods
Suspend(int secondsBeforeWakeup), Hibernate() and
SetPowerSave(bool shouldSavePower) to the
org.freedesktop.Hal.Device.SystemPowerManagement interface
* tools/Makefile.am (sbin_SCRIPTS): Add hal-system-power-*
* tools/hal-system-power-hibernate: New file
* tools/hal-system-power-suspend: New file
* tools/hal-system-power-set-power-save: New file
Index: 10-power-mgmt-policy.fdi
===================================================================
RCS file: /cvs/hal/hal/fdi/policy/10osvendor/10-power-mgmt-policy.fdi,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- 10-power-mgmt-policy.fdi 9 May 2005 03:43:26 -0000 1.2
+++ 10-power-mgmt-policy.fdi 16 Aug 2005 18:08:42 -0000 1.3
@@ -22,4 +22,22 @@
</match>
</device>
+ <device>
+ <match key="info.udi" string="/org/freedesktop/Hal/devices/computer">
+ <append key="info.interfaces" type="strlist">org.freedesktop.Hal.Device.SystemPowerManagement</append>
+
+ <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_names" type="strlist">Suspend</append>
+ <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_signatures" type="strlist">i</append>
+ <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths" type="strlist">hal-system-power-suspend</append>
+
+ <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_names" type="strlist">Hibernate</append>
+ <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_signatures" type="strlist"></append>
+ <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths" type="strlist">hal-system-power-hibernate</append>
+
+ <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_names" type="strlist">SetPowerSave</append>
+ <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_signatures" type="strlist">b</append>
+ <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths" type="strlist">hal-system-power-set-power-save</append>
+ </match>
+ </device>
+
</deviceinfo>
- Previous message: hal/po ChangeLog,1.17,1.18 pa.po,NONE,1.1
- Next message: hal/tools Makefile.am, 1.18, 1.19 hal-system-power-hibernate, NONE,
1.1 hal-system-power-set-power-save, NONE,
1.1 hal-system-power-suspend, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the hal-commit
mailing list