[Q] Battery stats resetting after reboot? - Samsung Infuse 4G

Unplugged from charger this morning and all was well, after about 12 hours I rebooted and now have stats that are acting like I just charged the phone (back to counting from 0.
Any idea what would cause this or how to fix it?
Should I delete the battery stats file and go through a full up charge cycle?

i dont really know what you are talking about but if the battery meter is acting like it is on a charger ie the icon show a battery filling up every couple seconds then it is likely a problem with the usb port. there may be some trash in there. could also be just some random bug and a power down and battery pull will reset the battery meter.
if you mean something else by "counting from zero" please explain. also this phone and samsung galaxy s phones have a standalone battery meter. it has some mapping that is preset but doesnt actually use "battstats" all those recal procedures that "helped" people in the galaxy s forums is plecebo effect. the battery life tends to appear to get better within a couple days after flashing a rom. throw a recal in the middle of those couple days and people naturally connect the better battery life with the recal.

Dani897 said:
i dont really know what you are talking about but if the battery meter is acting like it is on a charger ie the icon show a battery filling up every couple seconds then it is likely a problem with the usb port. there may be some trash in there. could also be just some random bug and a power down and battery pull will reset the battery meter.
if you mean something else by "counting from zero" please explain. also this phone and samsung galaxy s phones have a standalone battery meter. it has some mapping that is preset but doesnt actually use "battstats" all those recal procedures that "helped" people in the galaxy s forums is plecebo effect. the battery life tends to appear to get better within a couple days after flashing a rom. throw a recal in the middle of those couple days and people naturally connect the better battery life with the recal.
Click to expand...
Click to collapse
What I mean is that lets say for example the battery stats show that the phone has been on battery for 1 day and when I reboot the counter is reset to 0 days (like if I had just pulled it off the charger). Twice now I have had the phone reset the time on battery counter along with the signal, awake, wifi graphs by only rebooting. this should not happen, i.e. the stats should not reset until charging is done. Hope that helps explain what I meant. Thanks.

bradld said:
What I mean is that lets say for example the battery stats show that the phone has been on battery for 1 day and when I reboot the counter is reset to 0 days (like if I had just pulled it off the charger). Twice now I have had the phone reset the time on battery counter along with the signal, awake, wifi graphs by only rebooting. this should not happen, i.e. the stats should not reset until charging is done. Hope that helps explain what I meant. Thanks.
Click to expand...
Click to collapse
What ROM are you on? From what I know, what you said happens on Froyo based ROMs. GB ROMs should not reset counter until phone is charged to 100%.

I have the exact same problem. On every reboot, battery use starts counting from 0 seconds. Anyone has a solution?

bradld said:
Unplugged from charger this morning and all was well, after about 12 hours I rebooted and now have stats that are acting like I just charged the phone (back to counting from 0.
Any idea what would cause this or how to fix it?
Should I delete the battery stats file and go through a full up charge cycle?
Click to expand...
Click to collapse
I had the same issue or should i say have. kinda. I'm on Zeus build 3 and when my batt gets to 100% i unplug...then maybe a cpl hours go by and i do a change and reboot..say three hours in. after reboot my "time on battery " resets to 0!!!!!!!!!!!!!! NOt supposed to.
What i did and do still cause NO ONE else knows they have the prob or don't have it. so i don't have a sure fix..
charge to 100. go into recovery and wipe battery stats. let it boot. wait a cpl minutes. reboot...usually it will reset but sonce it;s only been a cpl minutes who cares. then go aobut your business...after some time..hours... try rebooting. shoud stay.
Best i can offer until i guess someone else says they have same issue...
THEN going forward after i re charge to 100 i reboot right then. and it seems to be good from there.
Pain In The Ass. I asked other on Zeus to check but not sure they get it.
---------- Post added at 04:09 PM ---------- Previous post was at 04:05 PM ----------
Dani897 said:
i dont really know what you are talking about but if the battery meter is acting like it is on a charger ie the icon show a battery filling up every couple seconds then it is likely a problem with the usb port. there may be some trash in there. could also be just some random bug and a power down and battery pull will reset the battery meter.
if you mean something else by "counting from zero" please explain. also this phone and samsung galaxy s phones have a standalone battery meter. it has some mapping that is preset but doesnt actually use "battstats" all those recal procedures that "helped" people in the galaxy s forums is plecebo effect. the battery life tends to appear to get better within a couple days after flashing a rom. throw a recal in the middle of those couple days and people naturally connect the better battery life with the recal.
Click to expand...
Click to collapse
go into settings/about phone/Battery use.....That is what resets ..supposed to change of course when you upplug but try it...wait a few minutes..look at how much time on battery then reboot...it the "time on battery" starts over..you have the issue

I thought that was the normal behavior on Android, it resets the battery stats on every boot because while it was offline it might have been put in a charger and thus the battery stats might not be correct (or you could have changed batteries).
I for one don't see the problem with battery stats reseting on reboot, i reboot very rarely and when i do i usually do it to install firmwares or patches.
On the other hand now I've found an article by one of the Android developers and there it says :
This file (batterystats.bin found in data/system) is used to maintain, across reboots, low-level data about the kinds of operations the device and your apps are doing between battery changes. That is, it is solely used to compute the blame for battery usage shown in the "Battery Use" UI in settings.
Click to expand...
Click to collapse
So, it says "across reboots" so it shouldn't be reset by a reboot, that means that i thought wrong that the file is reset on each reboot
P.S. maybe the ROM that's on the phone does something that either deletes the file or forces a reset on the battery stats.

Try changing/setting permissions (through that option for permissions, can't recall the exact wordings) in CWM and see if that helps.

Related

Strange battery behavior...

Today when I woke up, the battery was 40%. Not TOO strange (I am not very sure how much I left it last night) but strange.
That is not the problem though. The problem is that 3 minutes later while I was playing some backgammon on the device (don't ask), the power was already 37%.
Since daylight savings today, must have confused a couple of apps in my device (notably Klaxon - will post in its thread for that), while I was playing klaxon I got some delays so what do we do? Soft reset of course.
This is where the strange thing happened... After soft reset, just a few minutes after the 40%... I got... 23%!
Anybody noticed something like that?
I usually don't let my batter go so low (li-ion batteries don't like low numbers), so I don't know if this is a known issue.
This is a common problem, check out the other battery threads. The battery maagement on this device is a little suspect. A soft reset usually results in a different battery level - some people including me sometimes find chargin stops around 87% however a soft reset will give 100%.
Hopefully a new rom update will provide better drivers.......but only if people are telling htc about it.
A full discharge in every 20 charge cycles is recomended as posted in other threads, in order to calibrate the battery indicator.
ok thanks man
That capping at 87% thing happens on my Elfin. When I softreset, it's 100%. Though it doesn't always happen.

Does battery status read accurately on your device?

In the Raphael Radio thread(http://forum.xda-developers.com/showthread.php?t=439566), someone said:
Antzor said:
Try soft resetting the device and see if the charge holds.
I was impressed mine was only down to 50% by the end of the day, but then i did a soft reset and afterwards it read as 28%
Click to expand...
Click to collapse
I also have this kind of problem on my device, but not it doesn't occur every time on these situations. In further research, I find out only some of the batteries (I have 3 original batteries for the device) can't read accurately. Does anybody else experience this problem?
I also have this problem.
HTC support seem a bit oblivious to it however and gave me no help.
seems that after a few reboots, once the loss of charge seems to settle, ie only going down by say a few percent each boot, then it is stable, and once given a full to 100% charge, which can take more than overnight (if you leave the phone on - which it seems you have to, for this to work) then it holds a charge well.
Yep, same problem here as well. It seems to have started with me over-loading the battery. Afterwards it showed a bit of variation before and after a cold boot. However the differences are not that extreme (+- 5%). Also I noticed that temperature plays quite an important role.
Maybe also the battery % tweak has something to do with it, but I cannot confirm this.
Jouke74 said:
Maybe also the battery % tweak has something to do with it, but I cannot confirm this.
Click to expand...
Click to collapse
I've also noticed this. But I think that the battery reading is never fully accurate and never was on earlier devices either. It's only the detailed percentage reading which is now possible on the VGA screen that makes us noticing it.
DeepThought said:
I've also noticed this. But I think that the battery reading is never fully accurate and never was on earlier devices either. It's only the detailed percentage reading which is now possible on the VGA screen that makes us noticing it.
Click to expand...
Click to collapse
I always use other utilities to view battery status in percentage for years. On my previous devices, from Magician to Kaiser, percentage was going down all the time, but on Raphael, sometimes the percentage just freeze - It means, the percentage stayed on like 73% for serveral hours but after I soft-reset the device, the percentage reads 49%. So this problem is more than inaccuracy, actually it may be a hardware bug.
I've noticed that after charging my TP for around 2-3 hours the battery will be fully recharged, even though my TP is reporting it only being as low as 50 % charged. If I just unplug it at this point, and start using it normally, the battery reading is highly inaccurate and often freezes for several hours just to take a ~20 % dive later. However, if I do a soft reset after charging (no matter if it's fully charged or not) I feel I can get fairly accurate and consistent battery readings. Also, if I've been charging for ~3 hours, the battery reading may well say it's only 80 % charged, but after a soft reset it's gone up to 100 %.
So, for me, a soft reset after every charging period keeps the battery reading quite accurate.
I've been noticing the same problem with the soft resets from all my ROM flashing. I've also noticed that it pccurs sometimes when texting or using the internet. I'll send like one or two texts and my charge drops 5%. I guess the thing that calculates the battery charge uses some weird algorithm that doesnt work correctly when the phone is essentially idle.

losing about 5-10% battery on reboot

so why exactly am i losing battery life on a reboot. its happening on every rom ive used so far.
I think its because your battery is not properly calibrated with the rom. Are you bump charging each new rom you put on and wiping the battery stats?
This happens to me. I am stock currently, but I have been through two phones and they both lost 5 - 10% on reboot.
It's normal for the phone, it takes a bit to "power" up the phone. Don't stress out that much over it. The battery % isn't 100% accurate anyway.
I'm losing ~10% on each reboot too. Its definitely not just from the reboot and I don't think its accurate. Yesterday, as an example, I was at 43%, rebooted and came up at 32%. Then my phone sat 32% forever, just flat lined in the battery stats for hours. It finally started reasonably dropping again hours and hours later as if the battery level had finally caught up with what was being reported.
Have you ever bump charged and battery wipe stats before?
Cuz mmy battery doesn't drop like that.
I don't think I lose a full 10%, but I definitely notice a significant, if not excessive battery drop when rebooting. It seems unlikely that the battery could have discharged that much, so it's probably a reporting issue. Not something that really bothers me, but just pointing out that I noticed it as well.
IDroidThere4Iam said:
I'm losing ~10% on each reboot too. Its definitely not just from the reboot and I don't think its accurate. Yesterday, as an example, I was at 43%, rebooted and came up at 32%. Then my phone sat 32% forever, just flat lined in the battery stats for hours. It finally started reasonably dropping again hours and hours later as if the battery level had finally caught up with what was being reported.
Click to expand...
Click to collapse
This was similar to what I experience. More evidence that it is a mostly harmless reporting error. The reporting "corrects" itself once the phone is booted. Interesting behavior, but harmless.
Download Battery Calibration from the Market.
Sent from my ADR6400L using XDA Premium App
Your battery gague isn't telling you the truth.
I don't even get a 100% charge. It sits at 97 for like 3 hours and then drops. Reboot usually only takes <5 for me though. I'm thinking ROM issue.
Sent from my robot vacuum smartphone using black magic and goat blood
funkybside said:
Your battery gague isn't telling you the truth.
Click to expand...
Click to collapse
This really explains why you drop rapidly after unplugging your pone from charging to "100%". I believe the OP is referring to a step function-like decrease in battery level between reboots. That is what I'm referring to anyways. That link does have some interesting info though.
I've been having the same issue. Reboot sometimes drops the battery by 5%, and the battery gauge seems to get stuck after that. I've also noticed that sometimes if I reboot while it's charging, the % will jump something ridiculous like 20%. Just now, it was at 45% while charging, I rebooted, and now it's at 57%.
This has been happening on both BAMF and CM7, though I've always been using Imoseyon's kernels.
Same problem here. Bump charge and battery stat wipe is the fix but it's definitely a pain. Especially, since I am flashing a new rom everyday.
to bump charge does my phone have to be off or when it reaches 100 unplug and plug a few times? will that do. i hate having to shut the phone off especially for a number of hours.
Bump charge> charge the phone on till light turns green. > turn phone off> charge phone until light turns green> unplug and reconnect several times> boot into recovery> wipe battery stats. > done. Use the phone all day and let it die on that charge. Then charge over night turned on. And you are now calibrated.
magicriggs said:
Bump charge> charge the phone on till light turns green. > turn phone off> charge phone until light turns green> unplug and reconnect several times> boot into recovery> wipe battery stats. > done. Use the phone all day and let it die on that charge. Then charge over night turned on. And you are now calibrated.
Click to expand...
Click to collapse
Damnit, I always forget that last step
qman66 said:
so why exactly am i losing battery life on a reboot. its happening on every rom ive used so far.
Click to expand...
Click to collapse
because rebooting entails the re-starting of operating system, services, background apps, internet connectivity, and initial data sync. it's just the nature of restarting an operating system.
lect1984 said:
because rebooting entails the re-starting of operating system, services, background apps, internet connectivity, and initial data sync. it's just the nature of restarting an operating system.
Click to expand...
Click to collapse
I think the question was meant to be something like, "why do I lose 5-10% of my battery after a reboot?" Of course rebooting using a little power, but that's not the issue here.
johnclevenger said:
I think the question was meant to be something like, "why do I lose 5-10% of my battery after a reboot?" Of course rebooting using a little power, but that's not the issue here.
Click to expand...
Click to collapse
Because the battery gauge isn't reading it right. Solution. Bump charge and battery wipe stats.

Incorrect battery reporting w/ Sense 3.5

Has anyone realized this or is it just me, every sense 3.5 that I've tried the battery indicator is incorrect.
For example, I just had 41% battery life before resetting my phone and now I have only 4%. Is it not charging the battery correctly? I also turn the phone off after it says 100% and then charge until the green led comes on but still it is either draining too fast and phone doesn't detect it until a reset or the battery isn't be charged completely because the rom thinks it's 100. I have caliibrated and erased the batterystats.bin file so many times and it's still the same. any insight on this? I have a brand new battery from htc as well.
Same problem
Constantly "calibrating" or deleting the battery stats is the exact reason this happens. You dont have to do that, regardless of what people say.
This will happen until the battery has been charged/discharged a few times and will slowly stop happening.
No issue here, got my new anker battery.. Flashed BP 2.1.5 and since then, my battery has been normal and amazing!
the_scotsman said:
Constantly "calibrating" or deleting the battery stats is the exact reason this happens. You dont have to do that, regardless of what people say.
This will happen until the battery has been charged/discharged a few times and will slowly stop happening.
Click to expand...
Click to collapse
This. When I flash ROMs I don't really do anything in relation to the battery. I just use my phone like normal. The first day or two you might get a little more drain than usual, but after that it will be completely normal and you don't have to do anything like wipe battery stats or calibrate or run it down to 5% and charge it all the way up or whatever.
Yes, constantly resetting battery stats is bad. Should only occur right after flashing the new ROM. Ideally you'll have charged your phone to 100%, flashed the new ROM, and immediately putting it through 5 discharge/charge cycles.
My battery life was horrendous when I didn't properly calibrate the battery. Going through the process now and its lasting a significantly longer time compared to not going through the process. I'm talking about getting like 6 hours of light usage compared to like 15.
Or it could be just ARHD. I really didn't like that ROM. Anyways, I'm running Bulletproof 2.1.5 with 3.5 Sense on an Anker battery and its doing great.
Sent from my HTC Sensation
nrvnqsrxk said:
I'm gonna have to disagree with you on that. My battery life was horrendous when I didn't properly calibrate the battery by going through at least 3 full discharge and charge cycles. Going through the process now and its lasting a significantly longer time compared to not going through the process. I'm talking about getting like 6 hours of light usage compared to like 15.
Sent from my HTC Sensation
Click to expand...
Click to collapse
+ 1 my battery was shocking, im on my second full cycle currently at 2% lol and already i've noticed improvements by like 20%
Sent from my CM7 Sensation XE using xda premium
I've done everything, calibrated the battery numerous times with and without wiping the batterystats.bin and it's still acting up. Say this morning I wake up, take the phone off charge at 100%, go out, and restart the phone for any reason when the phone's battery meter is at 95%, after the restart the meter will jump down to 70%.
This is with a new battery, new rom, totally wiped device, I even used the ruu to get me back to the stock rom.
Anyone have any idea what's the problem? The battery life is ****, and doesn't seem to get any better with calibration.
xdviper said:
I've done everything, calibrated the battery numerous times with and without wiping the batterystats.bin and it's still acting up. Say this morning I wake up, take the phone off charge at 100%, go out, and restart the phone for any reason when the phone's battery meter is at 95%, after the restart the meter will jump down to 70%.
This is with a new battery, new rom, totally wiped device, I even used the ruu to get me back to the stock rom.
Anyone have any idea what's the problem? The battery life is ****, and doesn't seem to get any better with calibration.
Click to expand...
Click to collapse
This is your culprit. Let it bed in a few days, and performance should stabilize.
Go through 5 full charges/discharges, uninterrupted. Yes, it's a pain in the ass, but you signed up for it when you flashed a new ROM.
Everytime you wipe your battery stats, you have to go through the 5 cycle process again. Uninterrupted.
EDIT: Had a lil too much rum and misspelled a few words. I even misspelled mispelled
Alright dude, I'm going to take you up on your word, I'll give you another update within 5 days.
This is a problem with all Sensation ROMs, even with S-On and Stock ROMs. I get a problem like this one too. If I have 60% left, and I restart the phone, it goes up to 69% and I don't know why. Also very slow charging from the original wall charger, but if I reboot when it's charging at 70-75%, when it finally boots, it says 100% charge. This must be some bug from HTC or something. :S
Hi,
Same problem (with Sense 3.0/Sence 3.5 and different ROM),but is there a fix for that?
I saw this:
Batt Jumping hopefully solved (Beta) = Done
Click to expand...
Click to collapse
The thread: http://forum.xda-developers.com/showthread.php?t=1287129 .
Probably a way to fix the issue?
Should be asked about this in the ROM thread?
Me too same bug since first day, I think it's a battery sensor fault
It's not a hardware fault...it's not a battery fault...it *may* be a ROM/kernel issue...but I suggest you give your battery a few discharge/charge cycles and you'll see it should go back to normal.

[Q] Power Issue.. Please Help!

Hi all,
There's this problem with my phone that everytime I charge it, it takes an elongated time to do so. This issue first emerged when I was on stock GB after a minor OTA update which added the power saver toggle to the quick settings menu..The problem is that it takes about 4-5 hours to fully charge the phone, and if I rebooted in the middle of charging when it's about 70% or 80%, it suddenly shows that the phone is fully charged, and the indicator becomes green! But afterwards the battery drains as quickly!
Now I have S-Off and using ARHD 6.6.3 ROM, but it seems the problem persists ..I wiped battery stats as soon as I flashed the ROM as well..Although it's not a problem I cannot live with, it's annoying enough when it happens.
Can someone please help me? And suggest me what to do?
Prabash said:
Hi all,
There's this problem with my phone that everytime I charge it, it takes an elongated time to do so. This issue first emerged when I was on stock GB after a minor OTA update which added the power saver toggle to the quick settings menu..The problem is that it takes about 4-5 hours to fully charge the phone, and if I rebooted in the middle of charging when it's about 70% or 80%, it suddenly shows that the phone is fully charged, and the indicator becomes green! But afterwards the battery drains as quickly!
Now I have S-Off and using ARHD 6.6.3 ROM, but it seems the problem persists ..I wiped battery stats as soon as I flashed the ROM as well..Although it's not a problem I cannot live with, it's annoying enough when it happens.
Can someone please help me? And suggest me what to do?
Click to expand...
Click to collapse
its common thing...the battery calibration is not proper that's all...
also you need to wipe stats once you charge your phone to 100%
then battery will try to calibrate ...and after 3-4 full complete cycles (100-0 and 0-100)
the battery will settle..
the battery drain will be there ...whenever you flash a rom or flash a kernel....battery only settles atleast after 2 full cycles
EDIT: also download currentwidget from market..as the name says its a widget..so you will see it in widgets once you installed it...this will give you more proper reading of battery...when you plug your phone to charge...and when current widget reads 0mah then your battery is charged completely...(it might take a long time to read 0mah...but charge it until you see 0mah)..then wipe the battery stats...so after this battery calibration will be proper
Also the sudden jump of battery percentage is due to improper battery calibration
so dont worry you got no problem
So
I read somewhere that you are not supposed to let the phone go to zero because it could cause your phone to not power back on anymore..is this fact. I couldn't find where I read it to back and read again. Mine has been doing some weird things as well...the led turns green before it is 100% and it goes from 100% and drops to like 89% out of no where.
toreone said:
I read somewhere that you are not supposed to let the phone go to zero because it could cause your phone to not power back on anymore..is this fact. I couldn't find where I read it to back and read again. Mine has been doing some weird things as well...the led turns green before it is 100% and it goes from 100% and drops to like 89% out of no where.
Click to expand...
Click to collapse
when i meant 100%-0% means until your phone turns off due to less power..it might not(or won't be) be 0% then
as i told you that kind of jumps are common ...in my case it went to 60% to 100% when i rebooted ...also the dropping used to be in large scale too
ganeshp said:
its common thing...the battery calibration is not proper that's all...
also you need to wipe stats once you charge your phone to 100%
then battery will try to calibrate ...and after 3-4 full complete cycles (100-0 and 0-100)
the battery will settle..
the battery drain will be there ...whenever you flash a rom or flash a kernel....battery only settles atleast after 2 full cycles
Click to expand...
Click to collapse
Thanks mate! I will try this out! cheers!

Categories

Resources