Subject: ENVSYS 2 and multiple batteries [fixed]
To: None <>
From: Juan RP <>
List: current-users
Date: 09/02/2007 21:55:28

I've committed some changes to HEAD minutes ago, that makes
it easier to fix the problem with the /etc/powerd/scripts/sensor_battery
script and multiple batteries (acpibat(4)), calling shutdown when
a new critical event is received.

It's now fixed if you update your kernel and envstat(8) with the
following revisions:

$NetBSD: sysmon_envsys.c,v 1.54 2007/09/02 19:36:59 xtraeme Exp $
$NetBSD: acpi_bat.c,v 1.55 2007/09/02 19:38:32 xtraeme Exp $
$NetBSD: envstat.c,v 1.44 2007/09/02 19:36:59 xtraeme Exp $

and the following patch:

The new sensor_battery script will _only_ shutdown if the AC adapter is
OFF and _all_ batteries available in the system are in LOW or CRITICAL

Please test and let me know how it works...

Juan Romero Pardines 	- The NetBSD Project 	- NetBSD/pkgsrc news in Spanish