Rate guessing code
Danny Kukawka
danny.kukawka at web.de
Wed Nov 2 13:05:41 PST 2005
On Wednesday 02 November 2005 21:32, you wrote:
> The code in my patch is only run when chargeRate is 0.. I'm not sure
> what changed to that respect in your patch?
My changes prevent to calculate anything (needless) if chargeLevel is < 0 (if
you get such values the ACPI implementation in your BIOS is more than only a
littlebit broken!).
In this case and if the battery reports 'isDischarging && isCharging' you
should do nothing and return -1. And this is what my patch do: check first
all bad cases and then do something.
Cheers,
Danny
More information about the hal
mailing list