Subject: Re: envsys framework won't let my system stay up!
To: Juan RP <juan@xtrarom.org>
From: Michael Lorenz <macallan@netbsd.org>
List: current-users
Date: 07/17/2007 10:09:58
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Jul 17, 2007, at 09:58, Juan RP wrote:

> On Tue, 17 Jul 2007 09:48:23 -0400
> Greg Troxel <gdt@ir.bbn.com> wrote:
>
>> I think this is the right fix for now.  I'd like to commit this now to
>> spare others the same trouble - when do you think you'll have a proper
>> fix?  A long-term fix seems hard because it requires integrating all
>> batteries and the ac adaptor, and those events are already separated.
>> So the logic to decide what to do needs to have state, or query the 
>> rest
>> of the system.
>
> I'm going to holidays starting in August, and this fix doesn't seem to
> be too easy to implement. I'm starting to think that we'll have to use
> a common framework to handle events in the kernel to notify the drivers
> about what properties are available.
>
> For now I've disabled the shutdown call in sensor_battery. I still have
> to think how to fix these problems properly...

Hmm, have the sensors pass a flag like 'this sensor monitors part of 
system power', and have powerd shut down only if all sensors with that 
flag set are below threshold or off?

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBRpzNtspnzkX8Yg2nAQKdLQgAowxH3c1UzAPdBLpGeKii3atWG7wi3jSr
U5BG03GxRbSv/lydz3bQ8z6F8jgM45+OI3M1YjD921n0mrdEgPXQSLcjOniIUt1O
F1tgiUgUn2L8M2cbN+eD/rqoLT6LOKaRYpbHzXNm4TFe3zuXc/Xy1I5H0F4aIAeG
mUd7sLDFqBwoowPtYmCwWyoBH8wM7mizr5AW5G+Yhv2J86rMm2URZaKVclanuPkt
ztWRlUicvuJVLoqBBvakhquT4FU1vHlMfuzaUe+KCtCNIzLGanMdnktITCeL81cG
9bFqYo9T938/zK1VxLeJJKivYzQm5ic4gr0ZSoIcT5LPx15WRASi/Q==
=M7ZT
-----END PGP SIGNATURE-----