[Pm-utils] Re: pm-utils' 55battery: WTF?

Stefan Seyfried seife at suse.de
Wed Mar 14 06:14:43 PDT 2007


On Wed, Mar 14, 2007 at 01:56:02PM +0100, Olivier Blin wrote:
> David Zeuthen <david at fubar.dk> writes:
> > It tells HAL to rescan the battery - in case someone changed the battery
> > we want the new serial number etc... if I recall Peter's reasoning
> > correctly. I think this check is better done in HAL than in pm-utils; it
> > doesn't make sense to make pm-utils call into HAL at all - Peter, is
> > this fine with you? 
> 
> But what if pm-hibernate is run directly from command line and not
> from hal-system-power-hibernate-linux ?
> Or do you forget about command line users in pm-utils?

I think a simple "hey HAL, the system has resumed from a suspend"-message to
HAL would be the best way for that. HAL knows what to do in that case anyway.
At least it should.

Otherwise we need to add such workarounds on a daily basis and the
plan to keep pm-utils "simple and straightforward" is doomed.

And people who use pm-utils "by hand" usually do it because they don't
like MCP^WHAL messing around on their systems.
-- 
Stefan Seyfried

"Any ideas, John?"
"Well, surrounding them's out." 


More information about the hal mailing list