Subject: Re: NOTE: ACPI update
To: Patrick Welche <prlw1@newn.cam.ac.uk>
From: Charles M. Hannum <abuse@spamalicious.com>
List: current-users
Date: 11/02/2003 17:49:32
On Sunday 02 November 2003 05:40 pm, Patrick Welche wrote:
> On Sun, Nov 02, 2003 at 05:11:11PM +0000, Charles M. Hannum wrote:
> > On Sunday 02 November 2003 04:13 pm, Patrick Welche wrote:
> > > On Sat, Nov 01, 2003 at 09:02:25PM +0000, Patrick Welche wrote:
> > > > Something changed.. I never saw 100% charge before..
> > >
> > > To be more precise:
> > >
> > > NetBSD 1.6ZE (HP) #71: Sat Nov  1 20:52:48 GMT 2003
> > > % envstat -r
> > >     acpiacad0 connected
> > >        acpibat0 present
> > >     acpibat0 design cap:      4.000 Ah
> > >  acpibat0 last full cap:      2.764 Ah
> > >     acpibat0 technology:          1
> > > acpibat0 design voltage:     14.800 V
> > >       acpibat0 warn cap:      0.320 Ah (11.58%)
> > >        acpibat0 low cap:      0.200 Ah ( 7.24%)
> > >        acpibat0 voltage:     16.635 V
> > >    acpibat0 charge rate:      0.000 A
> > > acpibat0 discharge rate:      0.000 A
> > >         acpibat0 charge:      2.764 Ah (100.00%)
> > >     acpitz0 temperature:     54.050 degC
> > >
> > > NetBSD 1.6ZE (HP) #69: Sun Oct 26 15:55:21 GMT 2003
> > > % envstat -r
> > >     acpiacad0 connected
> > >        acpibat0 present
> > >     acpibat0 design cap:     59.200 Wh
> > >        acpibat0 lfc cap:     40.907 Wh (69.10%)
> > >     acpibat0 technology:          1
> > > acpibat0 design voltage:     14.800 V
> > >       acpibat0 warn cap:      4.736 Wh
> > >        acpibat0 low cap:      2.960 Wh
> > >        acpibat0 voltage:     16.643 V
> > >          acpibat0 power:     -0.001 W
> > >         acpibat0 energy:     40.907 Wh (69.10%)
> > >     acpitz0 temperature:     51.050 degC
> >
> > Wow, I would *not* have expected it to change from Wh to Ah.  I suspected
> > you might be using a different machine or battery, but the numbers work
> > out the same.  Very wacky.
> >
> > What model machine is this?  I'd like to look at the DSDT and see WTF
> > it's doing.
>
> It's an hp pavilion zt1141s. I didn't know the units came out as part of
> the acpi query!

Aaah.  The HP DSDT returns a different unit depending on which OS it thinks 
you're running.  The latest ACPI-CA code was changed to report a Windows name 
because of issues like this.