No APM yet for AMD?

John Baldwin jhb at freebsd.org
Tue Jan 10 06:34:02 PST 2006


On Tuesday 10 January 2006 08:06 am, Bruno Ducrot wrote:
> > # acpiconf -i 0
> > Design capacity:        6000 mAh
> > Last full capacity:     4000 mAh
> > Technology:             secondary (rechargeable)
> > Design voltage:         14800 mV
> > Capacity (warn):        207 mAh
> > Capacity (low):         125 mAh
> > Low/warn granularity:   10 mAh
> > Warn/full granularity:  25 mAh
> > Model number:           JM-6
> > Serial number:          0046713127
> > Type:                   LION
> > OEM info:               Hewlett-Packard
> > State:                  discharging
> >                         ^^^^^^^^^^^
> > Present rate:           unknown
> > Remaining capacity:     91%
> >                         ^^^
> > Voltage:                unknown
> > AC line:                off-line
> > # sysctl hw.acpi.battery
> > hw.acpi.battery.life: -1
> > hw.acpi.battery.time: -1
> > hw.acpi.battery.state: 7
> > hw.acpi.battery.units: 1
> > hw.acpi.battery.info_expire: 5
> >
> >
> > At least I know when to plug in back my ac connector :)
> >
> > Well, I don't know much about FreeBSD ACPI. But at least, this
> > patch / fix / workaround does indeed help me and few others.
> >
> > Of course if the dsdt can be hacked to give accurate remaining battery
> > time, that would be better :)
>
> There is no way to get the remaining time from control method batteries
> other than by computing it.  At this time, it's derived from the present
> rate and the remaining capacity IIRC.
> The smart battery is able to give it via smbus (time_to_empty and
> time_to_full).
>
> I think we may want to rewrite the acpi_battery driver and the low
> levels acpi_cmbat and acpi_smbat to handle all of those situations.
>
> (removed freebsd-amd64 btw)

It would be nice if we could add the ability to guess the rate based on the 
amount of power lost in the last interval (i.e. check the battery 
periodically, and if we lost X mAh since the last check and are discharging, 
assume that is the discharge rate for time calculations) for broken BIOSes 
(like both of my laptops, a Dell Inspiron 5000e and an Alienware Area-51m) 
that don't report a valid rate.   I've wanted to add this for a while but 
haven't gotten around to it.

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the freebsd-acpi mailing list