Subject: Re: reboot due to critical battery level
To: Dieter Baron <>
From: Sverre Froyen <>
List: tech-kern
Date: 12/20/2007 07:22:44
On Thursday 20 December 2007, Dieter Baron wrote:
> hi,
> yesterday my notebook shut down twice ``because the battary is
> critically low''.  Never mind that A/C was connected and the battery
> fully loaded.
>   So my question: Can I disable that shut down?  If not, where in the
> sources is it, so I can comment it out.

Comment out the shutdown command in /etc/powerd/scripts/sensor_battery.

>   Once I can rely on my computer continuing to run, I'll try to debug
> why it thinks the battery is empty.
>   Any idea why it ignores the connected A/C?
>   For the record, this is NetBSD/i38 with a few day's old -current
> (post jmcneill-pm merge) on and IBM Thinkpad T42p, ACPI and acpi_bat
> are enabled.

You need src/sys/dev/acpi/acpi_ec.c rev 1.4.