[Hal] [PATCH] add detection of other distros and support for SUSE and ALTLinux to tools/hal-system-power-*

Danny Kukawka danny.kukawka at web.de
Wed Aug 17 01:55:37 PDT 2005


Hi,

this patch adds dectection of more distrubutions (ALTLinux, SUSE, Mandrake, 
Slackware, Debian and Gentoo) and adds support for powersave [1] for SUSE and 
ALTLinux (powersave will be included to next release ALT Linux 3.0) to the 
scripts. 

Please review.

Cheers,

Danny

 hal-system-power-hibernate      |   34 ++++++++++++++++++-
 hal-system-power-set-power-save |   61 ++++++++++++++++++++++++++++++-----
 hal-system-power-suspend        |   36 ++++++++++++++++++--
 3 files changed, 119 insertions(+), 12 deletions(-)

[1] http://sourceforge.net/projects/powersave/

> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-system_power_scripts.diff
Type: text/x-diff
Size: 5469 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20050817/f5d50877/hal-fix-system_power_scripts.bin


More information about the hal mailing list