Subject: Re: envsys framework won't let my system stay up!
To: Oliver Gould <ogould@olix0r.net>
From: Juan RP <juan@xtrarom.org>
List: current-users
Date: 07/17/2007 16:00:41
On Tue, 17 Jul 2007 09:56:25 -0400
Oliver Gould <ogould@olix0r.net> wrote:
> On 2007-07-17 09:48 -0500, Greg Troxel wrote:
> >
> > Juan RP <juan@xtrarom.org> writes:
>
> > > - Remove the shutdown call in /etc/powerd/scripts/sensor_battery.
> >
> > I think this is the right fix for now.
>
> > 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.
>
> Is it possible to determine whether there are other usable batteries
> from the powerd script (say, with envstat)? Would that be a reasonable
> interim solution?
Yeah, with some shell magic using envstat that might be possible to
implement (in the sensor_battery script, critical event).
--
Juan Romero Pardines - The NetBSD Project
http://plog.xtrarom.org - NetBSD/pkgsrc news in Spanish