reset batterystats the way that's worked properly for me - Optimus One, P500, V Accessories

I want to explain a method that actually gives me real results for resetting the batterystats after a ROM upgrade. I never thought a batterystats reset did anything and it's likely because I wasn't doing it this way. For this I use a conjunction of two things but really you could do the actually deleting of the batterystats.bin file in clockwork or by other means.
Reference Zeppelinrox's thread "Calibrating Without Downtime!" for the long version...
First, I use this Battery Calibration app from the market.
After a ROM upgrade I let my phone charge until a full charge. The Battery Calibration app helps because it'll ding which is nice.
Delete the batterystats file, and while leaving your phone plugged in, pull off the cover and reboot.
At the 2nd LG logo (i.e. - pink and white one or Backside's (?) IHO logo) pull the battery out. Sometimes I wait 5 seconds, 10 seconds 20 seconds or whenever before I pull it out- just make sure it's during that part of the boot sequence.
At some point later in the boot sequence it's recreating the batterystats.bin file in the background and presumes the battery is not charged since it's been removed.
Put your battery back in, keeping the phone still plugged in.
You may have to do this routine a few times before you can tell but what should happen is you'll have a 100% pre-reboot and after the last step it'll drop down to a lower number that will need to be charged back up.
You may want to read Zepp's post because it may help to read his instructions too.
If you see a 'please put the battery in' type message just put it in and try the instructions a few more times.
I'm regurgitating someone else's work a lot. Thank Zeppelinrox for his work. Some of my finds have been from trudging through some of his ginormous threads. I'm just trying to pull out the nuggets.

Right so, I've tried this quite a bit, and I can never get to the lock screen without battery before the phone complains that I need a battery. I've inserted it after the vibration during the boot sequence but it'll show up at 100% at the lock screen.
EDIT: OK so I did something different that netted results.
I fully charged, batterystats.bin, then reboot per normal instructions. I counted 4 bananas P) once the pink and white LG Logo came up and pulled the battery. Instead of reinserting after vibration, I let it keep going until it asked me to insert battery. I slid it in, and the phone rebooted. I left it there and once I hit the lock screen my phone read at 99% instead of the "Charged" reading I was getting. I charged for an extra 20 minutes and my phone topped off at 4199mv.
During my trials trying to get a non-charged reading at the lock screen, I looked into Battery Monitor and I was seeing 4160mv-4197mv readings, all of them varying. I did not top off at 4199 until I did it the way I just described.

I end up counting too. I guess I haven't found a perfect number so I just try pulling the battery out at random times during the 2nd LG logo. Sometimes when I go through the steps I get all the way to the Android boot screen with the message "connect your charger" for the battery status on the lock screen and I can even use my phone. I think at that point I know I've done it right since it's fully booted and had to have created the new batterystats.bin file.
Once I've put the battery back in I've seen it be as low as 91% after a reset when I've done it this way.
After reading your last sentence it looks like you're getting similar results to what I get. Now I know I'm not b.s.-ing so thanks for the feedback

Related

My G2 will shut itself off - any suggestions?

I'm looking for any ideas for the problem I'm having on my G2. I'm afraid it's a hardware problem and not much I can do about it.
I started having problems after upgrading from CM 7.1 to 7.2, but I don't think it was related to the upgrade. I started having battery draining problems, the phone took forever to get fully charged, and car mode would automatically start sometimes when plugging up or unplugging the charger. I cleaned the usb port with alcohol (with battery removed), let dry, and restarted. Now I don't have the car mode problem and the battery problem is somewhat better.
My problem now is that the phone will just die when I'm using it. Usually when I'm using the browser. I'll be scrolling on a page and the phone will just turn itself off. Like the battery died. I can turn the phone back on and it will start up, get all the way started back up, but while it is still loading the home screen widgets, it will go off again. I can repeat this several times. The only way to recover is to plug in the charger. I don't have to hit the power button again, just plugging in the charger will start up recovery mode automatically, I'll choose reboot and the phone will start normally then and stay on.
The phone never dies when I'm not using it. I'll carry it all day, making phone calls on and off, and it'll stay on with no problem. Mostly, I only have the problem when using the browser. Also had the problem while using my newsreader. Once during playing a game. But if I start up browsing the internet, it doesn't take long before it will turn itself off. A matter of a couple of minutes. I don't have the problem with reading emails with K9. Don't have a problem in downloading from the internet such as podcasts. Don't have a problem in sending text messages. Don't recall it shutting down while using the Facebook app. After putting up with this for a week, some troubleshooting and observations.
I never have this problem if the charger is plugged in. Only when it is running fully from the battery.
I've tried swapping to a different battery.
Turned down the overclocking with no difference.
I've changed to other recoveries, CM 7.2, CM 7.1, a CM 7.1 that I was running in May. No difference.
I've swapped memory cards.
I've reset battery stats.
No difference if running on wifi or just data.
Clearing caches made no difference.
So, I start thinking it must be a hardware problem, but then why does it only crop up when internet browsing. Must be power related since plugging in the charger makes it go away, but why does it not have a problem with using the phone in other ways?
Any suggestions on what I could try?
You could try to see if there is too much voltage drop when you start something power-hungry. Use a battery voltage logger and post the results. Start logging, let the phoneidle for a minute and then start browsing. Even if the phone shut off, the log should still be there after rebooting.
Thanks for the idea. I can't locate a logger that looks like it would work. It would have to capture a quick drop in voltage that is momentary. This problem happens even on a full battery and when the phone come back on (either momentarily or after a recovery reboot) the battery level is unchanged.
You might try as well an other way: first idle, then gradually step up to a more power hungry app to see when the problem actually happens. I have no other ideas...
Make sure that you dont have any contact with the battery and the door.
Normally batteries are covered with an aluminum wrap, and can cause short-cuts with the phone itself.
I searched it for a while with the galilio batteries.
You can try to put some saranhwrap around the battery.
I have the same problem with two different batteries. But I'm ready to try that too.
Battery graph
So here's a graph of my battery status. Long time to charge to 100%. Discharges pretty rapidly. Each downturn ends in the phone turning itself off. Notice that at 7:30 today, it turned itself off, I did a recovery reboot, then noticed it wasn't charging very well (green line turns to blue but doesn't increase), then I did a manual reboot and when the phone restarted, it showed the battery was at 100% charge (from about 60% before the reboot).
What do you think - hardware or software?
oVeRdOsE. said:
Make sure that you dont have any contact with the battery and the door.
Normally batteries are covered with an aluminum wrap, and can cause short-cuts with the phone itself.
I searched it for a while with the galilio batteries.
You can try to put some saranhwrap around the battery.
Click to expand...
Click to collapse
Well, I just took the cover off for awhile and tried it. Played crosswords (Shortz) for awhile with no problems. Started my newsreader (Newsrob) and it shut itself off in about 15 seconds. So, no short to the battery cover.
Same thing is happening to me. I use poweramp or the browser and the G2 just shuts off. Then I restart it and it tells me that the battery is low. Once I shut it down and reboot in recovery and wipe the battery cache it's back to it's normal battery level. I disabled data and set my phone for 2G networks only and it didn't shut off after. I'm assuming this is a wireless issue? I'm running mimicry 1.3.0 on my G2.
Had the same problem. Swapped out batteries and problem gone.
Sent from my HTC Vision using xda app-developers app
Did you swap the battery and immediately have no further problems? I tried swapping my battery already and still have the same problem.

Battery Issue on my G2

Im having a sudden battery issue with my G2 that started about 2 weeks ago. Im currently running 2.3.4 and have been for a while now. When using my phone at near full charge, it randomly shuts down. When it restarts it states I have less than 2% power and the red "x" is at the top. A few seconds later it shuts down again as it if it has no power. The only way to correct this is to remove the battery completely and reboot. Once I reboot, the battery level goes back to a normal state or it will read somewhere near 50%. Ive also noticed the following: the battery will charge VERY slowly. Sometimes overnight it still won't say fully charged. I've done the following to try to fix:
1. I replaced the battery with a brand new one. Same issues right off the bat.
2. Wiped my phone and reinstalled.
3. Checked to see if any APP was draining the battery or causing the issue. None are!
I've seen this issue reported by other G2 users on the Tmobile Support forum and none of them have gotten any solid results. I've browsed this forum some and couldn't find it either, unless i missed it.
Any help is appreciated!
Lou
louballs said:
Im having a sudden battery issue with my G2 that started about 2 weeks ago. Im currently running 2.3.4 and have been for a while now. When using my phone at near full charge, it randomly shuts down. When it restarts it states I have less than 2% power and the red "x" is at the top. A few seconds later it shuts down again as it if it has no power. The only way to correct this is to remove the battery completely and reboot. Once I reboot, the battery level goes back to a normal state or it will read somewhere near 50%. Ive also noticed the following: the battery will charge VERY slowly. Sometimes overnight it still won't say fully charged. I've done the following to try to fix:
1. I replaced the battery with a brand new one. Same issues right off the bat.
2. Wiped my phone and reinstalled.
3. Checked to see if any APP was draining the battery or causing the issue. None are!
I've seen this issue reported by other G2 users on the Tmobile Support forum and none of them have gotten any solid results. I've browsed this forum some and couldn't find it either, unless i missed it.
Any help is appreciated!
Lou
Click to expand...
Click to collapse
Power down and charge 'til it thinks it's fully charged (should be a green light). If it doesn't show a green light (like you said, it won't fully charge), just leave it charge for a while (overnight would be good). Boot into recovery, either by booting Android + rebooting recovery or by rebooting recovery through bootloader, go to advanced and select wipe battery stats... I think CWM 5 still has this option (don't know about 4EXT)
zeppelinrox has a battery calibrator script which is useful and can automatically delete battery stats once fully charged... I can't find it though. I'll attach / PM it if you need it.
BTW I'm not sure if this is the problem, it could be hardware related. I'd try it though, it might help.
If all else fails and you're sure it's not a hardware problem, I'd do a factory reset and /or reflash ROM.
HTCDreamOn said:
Power down and charge 'til it thinks it's fully charged (should be a green light). If it doesn't show a green light (like you said, it won't fully charge), just leave it charge for a while (overnight would be good). Boot into recovery, either by booting Android + rebooting recovery or by rebooting recovery through bootloader, go to advanced and select wipe battery stats... I think CWM 5 still has this option (don't know about 4EXT)
zeppelinrox has a battery calibrator script which is useful and can automatically delete battery stats once fully charged... I can't find it though. I'll attach / PM it if you need it.
BTW I'm not sure if this is the problem, it could be hardware related. I'd try it though, it might help.
If all else fails and you're sure it's not a hardware problem, I'd do a factory reset and /or reflash ROM.
Click to expand...
Click to collapse
Thanks for the tip. I had already deleted the battery stats bin file from the system and rebooted and received the same results (assume thats what your fix does). I've also reinstalled the rom and had no issues. Ive done searches and found that SEVERAL other people with the G2 had this issue. Kind of surprised it hasnt yet been addressed on this forum. Back in 2011 Tmobile was asking for people to volunteer some info in order to fix it. Apparently nothing was ever done and when i call in (several times), no one seems to know what im talking about even when i point them in the direction of their own forums. I'm really at a loss and don't feel like paying out the a$$ for a new phone when I know this is not something I did.

[Q] HELP! Battery Low Notfication CRAZY!

Hello all,
I recently updated my Galaxy Nexus to Bixie's stock 4.2.2 and my phone is going nuts. First of all it's draining battery really quickly, even though I'd wiped caches and essentially done a factory reset. When I plug it in to charge it takes a minute or so before the "charge" notification kicks in. The opposite occurs when I unplug it.
But, by far the CRAZIEST thing it does is once the battery hits 15% I start getting a battery low notification/popup like mad. It essentially spams the hell out of me to the point that the phone is utterly and completely unusable. I dismiss, 2 seconds later it pops up, rinse and repeat.
Oh also, the battery usage meter where it tells you how long it's been on battery and breaks down the apps that are using how much battery. That value never changes at all.
Please help!
Of course, thanks to all those that even attempt to give an appropriate solution.
ellimistx99 said:
Hello all,
I recently updated my Galaxy Nexus to Bixie's stock 4.2.2 and my phone is going nuts. First of all it's draining battery really quickly, even though I'd wiped caches and essentially done a factory reset. When I plug it in to charge it takes a minute or so before the "charge" notification kicks in. The opposite occurs when I unplug it.
But, by far the CRAZIEST thing it does is once the battery hits 15% I start getting a battery low notification/popup like mad. It essentially spams the hell out of me to the point that the phone is utterly and completely unusable. I dismiss, 2 seconds later it pops up, rinse and repeat.
Oh also, the battery usage meter where it tells you how long it's been on battery and breaks down the apps that are using how much battery. That value never changes at all.
Please help!
Of course, thanks to all those that even attempt to give an appropriate solution.
Click to expand...
Click to collapse
Okay so I reset back to factory. Unrooted, Locked, and installed a factory image from Google. Then it forced me to updated to 4.2.2. Now the notification issue is gone, BUT the phone NEVER SLEEPS. I press the power to turn off the screen and immediately it turns back on... anyone have any ideas?

What's up with the battery usage?

Up until last night, the battery tab in Settings showed me the breakdown of each process that was draining the battery, including screen. Now it only shows that Android OS is using 100% of the battery and that it's been on for 248 days? Tried restarting and it's still showing up this way. Any ideas how to fix? Thanks!
I don't own one of these devices(yet), but based on android knowledge I'll give some recommendations.
are you rooted or modified in anyway?
if so fix permissions and reboot. if that doesn't work clear your battery stats.
If not I'd try shutting it all the way off and plugging it in to charge. don't press the power button. If its like my other Samsung devices it should come on by it self when you plug in the cable and kick in to a battery charging mode just showing an animated battery in the middle of the screen. let it charge from there until full then turn it back on.
short from doing a full wipe I can't think of anything else to tell you.
You might want to contact Samsung or poke around the web see if anyone else have experienced a similar problem Ive never seen anything like that in a stock rom.
I'm assuming you have already tried taping the refresh button in the upper right hand corner.
when you tap on the graph at the top of the batter stats does it show you the time breakdown of the wifi and screen and such along the bottom?
oh also make sure your software is fully up to date.

HTC One X Powering Off Right After Booting

Hello all,
Let me start off the message by mentioning that I have been a (altogether) very happy user of cyanogen mods with my last 3 android phones.
The last and current (but it seems not for long) is an HTC One X, which is over 2 years old.
This poor thing has gone through so many ROMs that I have lost count.
It is currently running on a stable cm10.2.1, upgraded from cm10.1.3.
I have experienced sudden power offs when there were obvious battery drain, battery overheat, weird app installation issues, especially since moving to cm 10.2.1, which also caused the GPS to stop getting any satellite signals.
However, the phone has recently (a couple of weeks) leveled up into a bizarre mode:
It will power off all of a sudden, the battery levels are not low 65-75%, so I would assume it was just some process in the background, and go ahead and start the phone up again to go and check through the logs, or even disable/cleanup dodgy overreacting apps. But to my surprise, the phone passes the quietly brilliant screen, as well as the CM logo with the circling arrow and as soon as you can see the background it shows Powering off - the phone is shutting down.
For those brief couple of seconds I can see the battery indicator (top right corner) showing a small part of it in red, letting me believe the battery's status is critically low. So I let the phone charge for half an hour, and start it up again, with the same result, once the device goes past the logo and the background shows, the Powering off message appears again. The battery indicator is still showing a small red circulating section of the whole.
The next step was to go and check in recovery mode. The battery on the TWRP screen shows almost 70%, and this leads me to assume there is something wrong with the battery. But the phone is not turning off for as long as in recovery mode. I still haven't ruled out the battery issue, and will test it when I get delivered and replace the spare one I have ordered.
Reading through forums and other threads, there were people complaining that they had the same issues when the phone was trying to change from 2G to 3G and the other way around, so I removed the sim card and have restarted the phone, still the same result, powering off after boot.
I also reflashed 10.2.1 thinking that a clean installation will help getting rid of some new app/processes that might be causing this, but exactly the same powering off occurs after booting. The same happens even after a factory reset.
Usually, after half an hour of inactivity the phone would start up normally, but today it has been several hours and the behavior is not improving.
At this point I can't get into the phone other than on recovery, I can't copy from/into its storage anything, not even the nandroid backups I regularly do (and which stupidly I haven't copied over to an external storage). I could try reflashing some stock image, but even that I don't have on the internal storage.
So as you see, I am bit stuck. Phone will not stay ON long enough for me to connect to my machine and save my backups, or load any new stuff.
If you have any other suggestions other than this, or perhaps a workaround to what I have already tried, I would extremely appreciate it.
Cheers,
Mad
I have the same problem..
I have tried everything, but nothing helped me.
Now my battery is 0% and i cant do nothing - cant charge it, cant boot in bootloader.
Something heppened when you changed the bettery?

Categories

Resources