Subject: Re: Bogus ACPI battery information in recent current
To: Steven M. Bellovin <smb@cs.columbia.edu>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: current-users
Date: 12/15/2007 20:54:45
On Sat, 15 Dec 2007 18:42:24 +0000
"Steven M. Bellovin" <smb@cs.columbia.edu> wrote:

> On Sat, 15 Dec 2007 10:59:30 -0700
> Sverre Froyen <sverre@viewmark.com> wrote:
> 
> > Hi,
> > 
> > After a cvs update this morning, envstat reports sensible values for
> > the battery and the delays are gone (fixed perhaps by acpi_ec.c
> > revision 1.46).
> 
> I think I'm still seeing some delays, though I haven't monitored that
> closely.  I did run 'envstat -i 5' for about 45 minutes, with no
> failures of battery charge level or state.

In a 2 hour test, polling battery state every 5 seconds (envstat -i 5),
I'm still seeing some failures, though not as many as before:

$ sort  /tmp/battlog | uniq -c
 868 
   3         charge:     64.480 Wh (95.81%)
 297         charge:     65.610 Wh (97.49%)
 563         charge:     65.630 Wh (97.52%)
   1         charge:    412.640 Wh (613.14%)
   4         charge:    417.760 Wh (620.74%)
 819   charge state:     NORMAL
  49   charge state:   CRITICAL

Also note that it only did 868 polls; in two hours, it should have done
1440 of them if each poll took 0 time.  
> > 
> > There is a (minor) remaining issue in that the AC adaptor is
> > reported as ON (present) even when I disconnect it.
> > 
> Hmm -- does estd notice that it's disconnected?
> 
On my T42, powerd does notice AC adapter disconnects.



		--Steve Bellovin, http://www.cs.columbia.edu/~smb