|
Discharge Rate
|
|
02-07-2010, 10:57 PM
Post: #11
|
|||
|
|||
|
RE: Discharge Rate
Please look at the submited log. May be the battery is changing id (switching) at 50%?
|
|||
|
02-25-2010, 06:42 PM
Post: #12
|
|||
|
|||
|
RE: Discharge Rate
Your battery is only reporting capacity changes of exactly 1%. The problem is in the math. BatteryBar divides the capacity remaining by the max capacity to get the percentage. I round that value DOWN to the nearest whole number to detect when a full 1% has discharged. In your case, 51% was being calculated as 50.99%, which was being rounded down to 50% and the 51% wasn't being detected as 51%. Still, it wouldn't actually affect anything because the timer would keep running and the next percentage would contain the average time remaining for the previous 2 percent.
Still, I made a minor adjustment where capacity values will first be round to 1 decimal point, so that 50.99% rounds to 51.0% and then I pull the whole number from that value. |
|||
|
02-26-2010, 03:35 AM
(This post was last modified: 02-27-2010 05:41 PM by Zyxmon.)
Post: #13
|
|||
|
|||
RE: Discharge Rate
Quote:I round that value DOWN to the nearest whole number ... May be it is better to use something like floor(value + 0.49999)? |
|||
|
02-27-2010, 05:51 PM
Post: #14
|
|||
|
|||
|
RE: Discharge Rate
I still have the feeling (after some more laptop usage) that BB 3.3.3 estimates of remaining time on battery are less adequate then in previous version. The records in the xml profile file look correct.
BTW In the previous version when I've changed the number of decimal digits in %% display, I have always got the whole number. In BB 3.3.3 I can get 62.992%. Probably it depends on charge level - in BB 3.3.2 it was different from that in 3.3.3 when I tried to change the settings. |
|||
|
02-28-2010, 06:57 PM
Post: #15
|
|||
|
|||
RE: Discharge Rate
(02-26-2010 03:35 AM)Zyxmon Wrote:Quote:I round that value DOWN to the nearest whole number ... No, because most batteries report much smaller changes in capacity. For example, my battery reports values 99.9%, 99.8%, 99.7%, etc. If I always added .5% to that, it'd be way off. |
|||
|
02-28-2010, 06:59 PM
Post: #16
|
|||
|
|||
RE: Discharge Rate
(02-27-2010 05:51 PM)Zyxmon Wrote: I still have the feeling (after some more laptop usage) that BB 3.3.3 estimates of remaining time on battery are less adequate then in previous version. The records in the xml profile file look correct. 3.3.3 doesn't include any changes to the code that reads the data from the battery. The only change I made with regards to the battery is a method to estimate discharge rates if the battery doesn't supply the rate. Still, if want to generate a debug log for me to review, you're welcome to do that. |
|||
|
03-01-2010, 03:57 AM
(This post was last modified: 03-01-2010 03:58 AM by Zyxmon.)
Post: #17
|
|||
|
|||
|
RE: Discharge Rate
I have sent debug log. I do not know what is sent besides my comments, BatteryBar.log and BatteryStatus.log.
The BatteryBar.Profiles.xml file does not have records with 98% and 97%. The log should contain info on these %%. The last lines in the profile are Code: <PercentTime Percent="95" Time="274" Samples="5" /> |
|||
|
03-01-2010, 04:51 AM
Post: #18
|
|||
|
|||
|
RE: Discharge Rate
What is probably happening is your battery is immediately dropping from 99% down to 97.x% percent. The log you sent me starts after the issue already happened, so you'll need to turn on logging when you're still on A/C power at 100% charged capacity, then unplug and let it run to 95%.
The little bit of the log that I did get shows 0 seconds being added to 97% in the profile "3658QSANYO PABAS024". So you should now see an entry of 0 in that discharge profile. |
|||
|
03-01-2010, 03:34 PM
Post: #19
|
|||
|
|||
|
RE: Discharge Rate
I've started the log when BB showed 99%. The capacity 99% was displayed by BB for several minutes after the log started.
Му battery drops from 100% to 99% immediately after power adapter is unplugged. So the record PercentTime Percent="99" Time="0" Samples="1" is correct. But BB shows 99%,98%,97% for several minutes (I'll recheck it in a few days). There is a short log file (I think You've received it) probably for Discharge Rate estimation. I have not guessed what the numbers are in it. But it has very similar records for 99%,98%,97%,96%. |
|||
|
03-02-2010, 02:41 AM
Post: #20
|
|||
|
|||
|
RE: Discharge Rate
Turn on debugging BEFORE you disconnect the power then send me the log.
|
|||
|
« Next Oldest | Next Newest »
|






