View Full Version : Upgrade to Panther but always 99%
ever since when I upgrade to Panther, my powerbook 12" rev.A never able to charge the battery to 100% always stop at 99% strange thing is, sometimes the battery does not get charge at 94% as well... anything believe there is problem with my battery or my power managment...
Frisco
Nov 7, 2003, 08:59 AM
My Ti Powerbook only charges to 99% after the upgrade.
I am going to try to reset the PRAM and PMU (http://docs.info.apple.com/article.html?artnum=2238)
bankshot
Nov 7, 2003, 10:19 PM
I'm pretty sure it's just a rounding/truncating error in the routine that calculates the percentage shown. In Jaguar, 99.5% and above was rounded UP to 100%. In Panther, the decimal portion is truncated. So even 99.999% will still show 99%.
I wrote a little perl script to show the battery charge from the command line. It always agreed with the percentage shown in Jaguar, and it's now often 1% higher than what's shown in Panther.
#!/usr/bin/perl
if (open(BATT, "/usr/sbin/ioreg -p IODeviceTree -n battery -w 0|")) {
while (<BATT>) {
if (/Battery.*"Capacity"=(\d+),.*"Current"=(\d+)/) {
$cur = $2 + 0.0;
$cap = $1 + 0.0;
$pct = int(($cur * 100.0 / $cap) + 0.5);
print "$pct%\n";
}
}
close(BATT);
}
Frisco
Nov 8, 2003, 06:40 AM
Thanks bankshot!
That makes sense.
RichP
Nov 8, 2003, 07:09 AM
interesting response; i have the same 99%, 94% thing too.
huntsman
Nov 9, 2003, 03:26 PM
My battery indicator only ever reached 99% too since I got my iBook G4 last week (Panther pre-installed). But after glancing at it a second ago, it appears to have finally reached 100%. Strange.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.