batterystats.bin - G1 Q&A, Help & Troubleshooting

http://wiki.cyanogenmod.com/index.php/Troubleshooting
most people know about the fix for the battery going flat quickly
my question is
when you go to recovery>wipe we normally wipe top 3 options
will this wipe the batterystats.bin file without selecting the 4th option
if so why are we not told to have a fully charged phone before we wipe and install new roms??
this could be the main problem with people saying this rom is a battery drainer not using this anymore!!!!!!!!

BatteryCalibrator.apk
Hey guys,
I quickly threw together this battery calibration app - enjoy!
Please note: for ROOTED phones only and use at your own risk.
hxxx://rapidshare.com/files/432721855/BatteryCalibrator.apk

Related

wipe battery and rotate stats

Just wondering what the benefit of wiping the battery and rotate stats are?
Ive seen them for awhile under recovery but have never done them.
thnks
dont use it believe me, i just have a big issue and my battery its draining really fast just with turn off my phone, DONT USE IT!!!!!!!!!!
digitaljeff said:
Just wondering what the benefit of wiping the battery and rotate stats are?
Ive seen them for awhile under recovery but have never done them.
thnks
Click to expand...
Click to collapse
Not sure about rotate stats, but battery stats wipe is useful when getting a new battery or re-calibrating your old one.
from the thread where you got the recovery image:
* [Alt+3] Wipe battery stats : Wipe the battery stats in /data
* [Alt+4] Wipe rotate settings : Wipe the sensor settings in /data
Simply deletes these files. It's thought that if you fully charge, delete the battery data file, use your phone completely, recharge fully that your phone's battery stats are changed and helps battery life.
Not sure about screen rotation.... never had an issue with it. Obviously it just deletes a file which is recreated on boot.
older roms would have problems with the accelerometer working. clearing those got it to work again
sorry for digging out this old thread...
but what file will be deletet regarding the accellerometer/rotate settings?

Battery Calibration

Having seen so many posts on calibration of battery, i have decided to make this thread so to make it easier and useful for you guys. This thread can also be used to share your experiences with calibration and usage of milestone's battery.
Note: This is done using a the motorola milestone 1. So if you're using any other phone, pls ask abt them in this thread b4 you do anything!!!!
Intro:
The calibration of the battery is needed when you want to switch/install roms. This will make sure that the battery is really fully charged, thus preventing the battery life from dropping too drastically in a matter of hours.
I know there are some other methods to help calibrate your battery, but this is the only one I am sure of the steps. Please inform me of the other methods so to share with everybody.
Steps:
1. Before flashing a new rom, use root explorer (with read/write set) to delete the file "batterystats.bin" stored in /data/system/.
2. Charge your phone with it being turned off.
3. After it is fully charged(100%), take out its battery without plugging off the power supply.
4. Wait for a few moments, and a ? sign will appear.
5. Put your battery back in. You should see that the battery percentage increases quickly to 60%. If it increases to 100% with seconds, please skip to step 6.
6. If it stops increasing at 60%, let the phone continue to charge until 100%(takes quite a while)
7. Once it reaches 100%, let it charge for a further 15-20 minutes.
8. Once that's done, you can boot to OpenRecovery and flash your rom!!!
Alternative way of calibration(thanks a lot zeppelinrox!!!):
http://forum.xda-developers.com/showpost.php?p=11803458&postcount=10
This method allows you to calibrate the battery and use ur phone at the same time!!!
I hope this helps you people, because it really helped me!!!!
Note: i m not responsible for anything bad that happens to ur phone. Perform the calibration at ur own risk!!!(though it should be perfectly fine, unless u do something wrong or extra)
Btw, i am just writing things that i assume to be correct, so if anything needs to be edited/added, pls inform me through this thread or sending me a pm.
Credits to everyone (especially pcphobic for his post in http://forum.xda-developers.com/showpost.php?p=11604143&postcount=740) who have written all these in your posts that made it possible for me to gather and get all this info!!!!!!
You should give credits to whom you copied this from.
oh yea i almost forgot.Thx fellow citizen!!!!
And it's good to remove/wipe the battery status data with the charger plug-in as the last step.
thx bnwg, but i don't get you. Mind if you make yourself clearer? Thx!!!!
nickrule1896 said:
thx bnwg, but i don't get you. Mind if you make yourself clearer? Thx!!!!
Click to expand...
Click to collapse
He's referring to deleting the batterystats.bin file from the /data/system folder.
Yup, got it thx!!!!
mount -a
rm /data/system/batterystats.bin
For this set of instructions, can the console in the OR be used to perform it?
mods should make this thread a stickie.
Calibrating Without Downtime!
Edit: If this doesn't work on your device, try the Die-Hard Battery Calibrator Script to ensure a proper charge
This is proven to work with Motorola Milestone so I would imagine the Droid as well.
It works with the Milestone 2 but you may need to get the phone booted up manually (step 7) instead of the easy reboot in step 6.
If you have a different phone and this works, please let us know!
You probably won't believe that this will work but try it anyway.
The big benefit of doing it this way:
It's great if you don't plan on changing roms and just want to calibrate your battery without downtime so that you can just use your phone as you normally would.
Note: Be sure that the phone isn't running hot (feel the back)
1. While in Android, charge up to 100% and leave the phone plugged in.
2. Delete /data/system/batterystats.bin
3. Remove back cover
4. Press Power and choose to reboot normally.
5. When the screen goes black and the lights go out, pull out the battery before you get the M logo. It will probably still work after the M logo shows up but that's how I do it.
6. Surprise: The phone will boot up without the battery! - Mine does - every time
Note: Batterystats.bin is recreated when you see the M logo - even though the battery isn't in the phone.
Go to Step 8 if the phone booted up as described.
7. If it doesn't boot up and you see the battery with the ?
..........a) Put the battery back in (you will see 60%),
..........b) Power off the phone (press power until LED light goes out)
..........c) Power on the phone (press power until you see the M logo)
..........d) Remove battery... and watch bootanimation...
8. a) After the surprise of seeing the boot animation without a battery, you will then see the lock screen along with a "No SIM card error" and no signal.
...... Put the battery back in - the SIM card error will disappear, you will get a signal, it will show 60% full and the icon will show the battery charging.
...... Go to Step 9 if this works as planned. If it doesn't, reboot (again without the battery) and use step 8b instead of step 8a.
... b) Put the battery back in during the bootanimation, but after the haptic feedback/vibration (and the buttons along the bottom light up).
....... On a normal reboot, you can actually slide and unlock the phone when you get the vibration during the boot animation. You knew that, right?
9. Use your phone normally while you calibrate the battery
10. Let it fill it up to 100% + 15 minutes or so. When it is truly finished charging, the battery should be cool.
11. If the phone is running hot, weird things can happen. For example, you may get no signal when you put the battery back in or the battery doesn't begin charging (the status bar battery icon doesn't change). Just let the phone cool off and it should work next time.
100% full is approximately 4200mV
As you can see in the cap below, it's showing only 60% at 4241mV (This was after booting up without the battery and putting the battery in)
A few minutes later, still plugged in, it showed 100% at 4225mV and then it went up to 4230mV.
Finally, I then unplugged the phone and I got a reading of 4196mV
Notes:
Now, when I charge it up, it will go up to 4230mV everytime. I leave it plugged in an extra few minutes after that.
I highly recommend Battery Monitor Widget
Batterystats.bin gets recreated if you unplug your phone and plug it in again. So don't do that. Let it get recreated on the M logo (Step 6).
Thanks to pcphobic for a couple of important tips and to pcphobic and sileshn both for confirming that my phone isn't possessed!
Azhad (one of the two Androidiani OR developers) said another way to wipe battery
http://forum.xda-developers.com/showpost.php?p=11715432&postcount=967
now i don't know what's the right one? delete batterystats.bin or battd folder's contents? with full or empty battery?
nickrule1896 said:
Credits to everyone who have written all these in your posts that made it possible for me to gather and get all this info!!!!!!
Click to expand...
Click to collapse
It would have been nice if you mentioned my name or put a source link to my posting dated 24th February 2011 at
http://forum.xda-developers.com/showpost.php?p=11604143&postcount=740
etoy said:
Azhad (one of the two Androidiani OR developers) said another way to wipe battery
http://forum.xda-developers.com/showpost.php?p=11715432&postcount=967
now i don't know what's the right one? delete batterystats.bin or battd folder's contents? with full or empty battery?
Click to expand...
Click to collapse
Recently I follow Azhad's way to wipe the battery.
When I delete the file (ie. cc_data) under that folder and go back in it, the file will be regenerated. And the batterystats.bin is updated according to the timestamp of the newly generated cc-data file. I don't know if this is the same as the step 6 from zeppelinrox's method.
etoy said:
Azhad (one of the two Androidiani OR developers) said another way to wipe battery
http://forum.xda-developers.com/showpost.php?p=11715432&postcount=967
now i don't know what's the right one? delete batterystats.bin or battd folder's contents? with full or empty battery?
Click to expand...
Click to collapse
Maybe that's the method for CM7? I don't know because I'm a die hard CM6er lol
He also mentions a file (/data/system/batterystats.bis) that I've never seen mentioned before.
bnwg said:
Recently I follow Azhad's way to wipe the battery.
When I delete the file (ie. cc_data) under that folder and go back in it, the file will be regenerated. And the batterystats.bin is updated according to the timestamp of the newly generated cc-data file. I don't know if this is the same as the step 6 from zeppelinrox's method.
Click to expand...
Click to collapse
I have that cc_data file too but it's blank when I open it with a text editor.
im just linking my post here: http://forum.xda-developers.com/showpost.php?p=11603675&postcount=736
the myth about the batterysoftware needs some real facts. payce from german forum did some measuring with real astonishing results.
I have seen that article before.. thanks to you of course
I'll quote the conclusion of the first post:
That is, the stone over-estimated the voltage at the battery is full by ~ 60 mV and underestimated the power of up to 100 mV with an empty battery. The intent is well-battery protection (which is good too). It is pretended that 3.0 and 4.2 volts to discharge until it is loaded. In reality, there are more 3.1 volts and 4.15 volts (which by the way of battery manufacturers also better unanimous opinion!).
Click to expand...
Click to collapse
So the reading I get via Battery Monitor Widget aren't that far off and perhaps exactly where they're supposed to be.
After fully charging (showing 4230mV while plugged in) and then uplugging the phone, it will ideally show between 4150mV and 4200mV vs the 4.15 volts (ie. 4150mV) quoted above.
My phone will power itself off between 3150mV and 3200mV vs the 3.1 volts (3100mV) quoted above. Actually, I just checked BMW's log and today it powered itself off at 3162mV after 19.5 hrs.
I found it interesting that you use less power while downloading overclocked versus downloading at stock speed lol.
ABC: Android Battery Calibration - Video Guide
youtube.com/watch?v=fwrZu0DKp2c[/url]
@zeppelinrox: wouldnt ur steps be the same as doing the calibration my way, just that instead of booting to OR for flashing new rom, we just reboot normally?
@pcphobic: sry cos it would be hard for me to go around checking who posted this kind of info before. well, since u said it, i will definitely do it
nickrule1896 said:
@zeppelinrox: wouldnt ur steps be the same as doing the calibration my way, just that instead of booting to OR for flashing new rom, we just reboot normally?
Click to expand...
Click to collapse
Of course it would calibrate either way.
The difference is that I found a way to do it more conveniently.
You can do it anytime, use your phone normally and actually monitor the voltage as well.
Sent from my Milestone using Tapatalk
zeppelinrox said:
Of course it would calibrate either way.
The difference is that I found a way to do it more conveniently.
You can do it anytime, use your phone normally and actually monitor the voltage as well.
Sent from my Milestone using Tapatalk
Click to expand...
Click to collapse
I am using MS2 and there isn't an option of "reboot" when pressing the power button. Can this be done by using the "quick boot" app? thanks
https://market.android.com/details?id=com.siriusapplications.quickboot&feature=search_result

[Q] (Q) phone battery life poor after update

hello guys
updated my phone to 2.3.6 using this guide
http://droidangel.blogspot.com/2012/01/i9000xxjvu-android-236-upgrade-for.html
but phone only lasts half a day now
could you guys point me in the right direction to were i can get a better rom please
i just play the odd game and then use the web/
im a bit off a noob so i need a guide were i can just download the 3 files put them in odin and off it goes.
if you guys could help me i would be eternal great full
Just keep using your phone for a couple of days... it'll get better...!!!
mnm9994u said:
Just keep using your phone for a couple of days... it'll get better...!!!
Click to expand...
Click to collapse
How?
The phone is not new. Been no this Rom for about a week
I used this quide and all OK...
After the update:
In recovery mode, select options Wipe data/factory reset and also you need to select Wipe Cache partition and also you need to select the option of “Clear Dalvik Cache” after which you need to reboot your device by selecting reboot system now after which all the cache files will get deleted.
You already tried calibrating the battery? And when you install a new ROM you generally have to wait a few days for the battery reaches its normal duration.
the best battery life i have ever had was on MIUI. It was like two days ... no problem. i heard for some guys it was even up to four days.
you are on a gingerbread bootloader, so its no problem to flash MIUI with a *.zip file in recovery. just search the forum here for a good version.
to do:
-glitch kernel
-download a governor ("conservative" or "ondemand")
-two apps from the market: CPU tuner, CPU spy
-search for tutorials for CPU tuner
=> fixed your problems
if you have flashed yout rom with your battery not fully charged, you have to calibrate your battery
And also doing 3-4 full charge
yes, u need to do full discharge recharge cycles 2-3 times... wipe battery stats after that from recovery mode on full 100% charge.
Hope this helps
I have two phones. Both running same Rom but i only use one phone. The other i charge the battery in
only just had to do that since the update.
So the batterys are always fully discharged and recharge.
I didn't know about calibrating the battery ill look into that now.
Thanks for the advice.
Just calibrated the battery fingers crossed this work. Half a day for a phone to last is poor.
Was thinking this is like the iphone
when you guys have fully charged your phones and you go into better status how many how's does it say it has left.
Is it random?
Mine says 40 hours
edit lol now it says 7 mins 40 seconds but battery is still full
koooowweeee said:
Just calibrated the battery fingers crossed this work. Half a day for a phone to last is poor.
Was thinking this is like the iphone
when you guys have fully charged your phones and you go into better status how many how's does it say it has left.
Is it random?
Mine says 40 hours
edit lol now it says 7 mins 40 seconds but battery is still full
Click to expand...
Click to collapse
You still didn´t gave the time battery needs to settle down. In a couple of days you will see that battery will again last for 2 days easly.
For a better rom that you ask on the first post find it on i9000 development forum. There you have roms with different specs. Choose and test them for yourself and see wich fits you best.
I should say for you to test the Hybrid.
http://forum.xda-developers.com/showthread.php?t=1200177
Turning off most app synchronizing (settings » account & synchronisation settings) is making a big difference as well, at least to me. Just disable automatic synchronisation (keep background synchronisation on), and turn it off for all apps. Saves me quite some hours of battery. I'm assuming the update reset all your synchronisation to ON. I'm never using the word synchronisation again, pfft.
hello koooowweeee
Try BatteryCalibration (market) or.
1. Connect the charger to the phone while it is on, and let the load be up to 100%.
2. Unplug the charger and turn off the phone.
3. Reconnect the charger while the phone is off, and leave the task until it shows 100% again.
4. Unplug the charger, then turn the phone, wait for it to boot completely, then turn it off
5. Reconnect the phone to the charger (always off) and wait until it returns to 100%.
6. Disconnect the charger, turn on the phone with flight-+ power to access the Recovery.
Once in recovery, go to Advanced, and make a Wipe Battery Stats, then reboot the phone.
or flash CM7 7.0.2 Kang!
@ +
Well been using my phone all day and battery has lasted so far. Its on 13% now which is better than it was
ill try the method above tomorrow morning and see if that's better
the guide i seen on here was to charge battery to 100% then take the charger out and battery for 90 seconds then put it back in.
Seems to have worked

[Q] Phone will not charge above 79% running GingerDX

Hi, I'm so sorry if this is been answered already but I can't find it.
I am running GingerDX on my X8 with stock kernel.
Everything is completely functional apart from when I charge my phone it stops charging at 79% and wont go any further, another related problem is that sometimes the phone doesn't realise when it has been plugged in to charge. The second point isnt such a major problem but it may be related.
I will be very thankful if someone could tell me how to fix this, I think it may be a software thing but i am not sure. I am a bit of newbie to this whole rooting thing.
Thanks
Assuming you have a certain version of CWM, you can try to recalibrate the battery by wiping the battery stats (Get into CWM by pressing the "Back" key at the SE bootlogo and navigate to advanced > wipe battery stats).
This resets the scale the battery uses to meassure the voltage that's left on it.
The loader might be a problem of some dust in the contact points of your phone.
I hope i've helped any bit
Sent from my E15i using XDA
Okay i will try it and see how i go
Hi coopaar,
Welcome to the community.
Please take some time to Introduce Yourself and read FORUM RULES.
Hope you enjoy your stay here, and help others in the future.
TimeWasterNL said:
Assuming you have a certain version of CWM, you can try to recalibrate the battery by wiping the battery stats (Get into CWM by pressing the "Back" key at the SE bootlogo and navigate to advanced > wipe battery stats).
This resets the scale the battery uses to meassure the voltage that's left on it.
Click to expand...
Click to collapse
Thanks for this i reset the battery stats then it charged to hundred percent and now i have used the battery calibration app. Hopefully everythign should be okay

Battery of my I9000 acting weired after few flash

Hi, i dont know if i am on the rightt topic but anyway i hope i will get an answer here, my galaxy S after few custom roms installed & reinstalled & with battstat reset few times now after i came back to stock rom 2.3.6 & even before the battery sustain good, but just when i try to play a game or use it on store for while (few minutes) the phone turn off, & when i bk it on it says battery low put in charger despite it is 100% full & after a while it increase & level up to the original status, so my question is, is the phone need calibration or anysort of bug fix or it is hardware problem; thnx cheers
Have you checked the contact points between the phone and the battery, maybe just give them a clean, and yes there's no harm in calibrating the battery, just boot into recovery and wipe battery stats.
(don't charge the battery until the battery turns off your phone)
1. charge the battery FULLY
2. boot device to CWM Recovery
3. advanced/Wipe Battery Stats
4. reboot device

Categories

Resources