hal-system-power-* scripts

Richard Hughes hughsient at gmail.com
Tue Sep 20 08:48:39 PDT 2005


On Tue, 2005-09-20 at 11:34 -0400, David Zeuthen wrote:
> On Mon, 2005-09-19 at 23:05 +0100, Richard Hughes wrote:
> > At the moment, we filter the Hibernate script action per-distro, i.e.
> > Suse wants to use PowerSave, and Fedora wants to use pm-hibernate. This
> > limits the other distros that might want to use powersave (e.g. gentoo)
> > or other solutions, e.g. hibernate2.
> > 
> > What I am suggesting, is rather than filter by distro, filter by
> > installed tool. i.e. if the user has PowerSave installed, use that. If
> > the user has hibernate2 installed, use that, and so on until we just get
> > down dirty and do the hibernate ourselves for distros with no such
> > helper scripts installed.
> > 
> > I've got many bug-reports from users of other distros (ubuntu for
> > example) that have suspend2 support added, but they have to change the
> > hal-system-* script to get things working. This isn't cool.
> > 
> > With my suggestion, the user has to edit no files, and all just works.
> 
> No, it just wont work. Some distros, call them X and Y, may have
> multiple tools installed, say A and B, and on distro X only A is known
> to work and on distro Y only B is known to work. Hence, we need to
> filter by distro before we filter on tool. 

Surely distro A would only have the tool that works pre-installed?

Fedora isn't going to have PowerSave installed, just like SuSe isn't
going to have pmi installed.

> I don't see a problem that each distro filter on tools separately
> though.

Okay, what about a compromise.

Filter by distro (Redhat = pm-utils, SuSe = PowerSave) (like we have in
CVS) and then fallback to looking for the tools (like I proposed) for
the other Distros.

Richard.



More information about the hal mailing list