Better integration with power management scripts
Nigel Cunningham
ncunningham at cyclades.com
Tue Apr 18 16:14:57 EEST 2006
Hi.
On Tuesday 18 April 2006 20:41, Richard Hughes wrote:
> Further to David's ideas, here are some of my ideas (shamelessly taken
> from the ubuntu pmi and fedora pmscripts):
>
> Create a /usr/share/hal/scripts/pm/hooks directory that distros and
> vendors can dump files into that do things on resume and suspend, for
> example:
>
> * unloading certain modules and re-modprobing them if required
> * stopping and starting certain services
> * re-initialise the video of video cards as reqd.
> * making the ibm led blink (echo "7 blink" > /proc/acpi/ibm/led)
>
> And we only need one common pm helper script, for example returning what
> kind of video adaptor (Intel, ATI, NVidia) you have or general useful
> code we want to use in the pm hooks.
>
> I think this is required as all the main distros have different ways of
> doing this, for example pmi for ubuntu and pm-* for fedora, when all
> this stuff is *really* simple and should be centralised in HAL so
> vendors (hardware vendors like IBM or software vendors like Oracle)
> could provide one file that works on any distro.
>
> Any stuff like enabling bootsplash or doing other clever-stuff, one file
> can just be dropped in /usr/share/hal/scripts/pm as required.
>
> Comments? Please bear in mind the general idea is to make this easy for
> a user to suspend and hibernate, not some political statement using HAL,
> so please keep critique technical.
Have you looked at Bernard Blackham's hibernate script (it can be found on
suspend2.net). Even if you don't want the script itself, there may be useful
ideas that I think I can safely assume Bernard (cc'd) wouldn't mind seeing
incorporated in your implementation.
Regards,
Nigel
> Richard.
>
> _______________________________________________
> hal mailing list
> hal at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/hal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20060418/be4df217/attachment.pgp
More information about the hal
mailing list