Better integration with power management scripts

Stefan Seyfried hughsient at gmail.com
Thu Apr 20 13:26:54 PDT 2006


On Tue, Apr 18, 2006 at 11:41:23AM +0100, 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

How will you interact with the user if stopping a service / unloading
a module fails?

> * re-initialise the video of video cards as reqd.

Just use s2ram from the suspend project http://suspend.sf.net

> 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

Well, but then you will have to implement lots of stuff in HAL so we can
decent usability and security for suspend.
 
> 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.

Well, using HAL for suspend is a pretty hot political topic, but anyway... :-)
-- 
seife

"[...] a 'enterprise desktop' should never be allowed to drive development.
 It is, by definition, boring and same-old, same-old."    -- Linus Torvalds



More information about the hal mailing list