Subject: Re: Bogus ACPI battery information in recent current
To: Juan RP <juan@xtrarom.org>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: current-users
Date: 12/13/2007 22:46:14
On Thu, 13 Dec 2007 23:28:03 +0100
Juan RP <juan@xtrarom.org> wrote:
> On Thu, 13 Dec 2007 22:18:21 +0000
> "Steven M. Bellovin" <smb@cs.columbia.edu> wrote:
>
> > The charge level has been over 40% the entire time since this
> > reboot. I have no idea why it shows several transitions. If the
> > AC adapter status is somehow subject to similar glitches, it would
> > explain why the machine frequently powers down when going
> > multiuser. (Aside: I changed the 'shutdown now'
> > in /etc/powerd/scripts/sensor_battery to 'shutdown +5', to give me
> > a chance to do something sane when the kernel gets it wrong.)
>
> This used to work before jmcneill-pm, I can't confirm now because I
> don't have a laptop but I suspect the new acpiec(4) code might be
> related to that.
>
> The code does that: finds all SME_CLASS_ACADAPTER and
> SME_CLASS_BATTERY devices registered in sysmon_envsys(9) and if the
> ac adapter is off and all batteries are in critical or low state,
> sends the 'low-power' event.
>
Yup, I read the code. While I don't agree with your criteria, clearly
even with them I shouldn't be seeing any problems.
--Steve Bellovin, http://www.cs.columbia.edu/~smb