yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Vlad_z:
@marosige,

Like I said before batterystats.bin is a serialized class which contains power usage information by various modules - that how Android OS derives statistics for battery usage screen.

Android power system is based on underline Linux power control system and information goes ONLY in one way from Linux battery driver up to Android OS...

And Linux battery driver gets its information from battery's fuel gauge chip.

There is NO WAY Android OS will register 4.2V as 100% and say 3.4V as 0% withing a fuel gauge chip which calculates, keep track and reports SOC (state of charge) of battery.

So, wiping batterystats.bin file is kind of woodoo magic in attempt to recalibrate that fuel gauge chip... I'm not attacking anyone but just sharing knowledge how it works, so no hard feelings.

Question how to do proper calibration? It all depends on what fuel gauge chip is used.

As an example my Galaxy Tab 10.1 is using bq20z75 fuel gauge chip by TI and proper calibration procedure is outlined here:

http://xdaforums.com/showthread.php?t=1215182

PS: speaking about having spare battery... if battery has build-in fuel gauge chip then there is no problem but in case of external chip there might be a problem.

bq20z75 chip stores charge/discharge cycle information internally and use it to adjust calculated capacity, probably no biggy if two batteries are the same capacity and the same age but it would completely through calibration Off in case if they are substantially different.
[Android Apps and Games] marosige:
It does the same
[Android Apps and Games] clouds5:
Is it necessary to drain the battery to 0 everytime? I've read numerous times that draining the battery to 0 is not all that healthy for it^^ It can reduce maximum capazity.

Does anyone here know what actually happens and the exact reasons for the draining?
[Android Apps and Games] clouds5:
So i guess no one actually knows but everyone's doing it :D Interesting.

Anyway dont overdo it with draining your battery to 0 all the time. Li-ion based batteries dont like that and may lose capazity if you do it too much.
[Android Apps and Games] Vlad_z:
It depends on fuel gauge chip... Old one which was simply tracking current in order to calculate SOC (state of charge) indeed required full cycle to calibrate and get rid of accumulated error.

New ones are using math model. They allow to derive SOC from say open circuit voltage when battery at rest and internal resistance, such models do not accumulate errors (at least in theory) and do not required full cycle. Full cycle usually wears battery more then shallow charge/discharge one.

Battery life usually counts in full cycles. If typical lipo will lasts 200 full cycles then 50% cycles might be 500 till battery will be at 80% of its rated capacity.
[Android Apps and Games] XuserJM:
@Vlad_z, interesting comments you put in. Thx for sharing :)

But honestly I am a bit confused about all this battery calibration.

Say we are only talking about new Desire S batteries (assuming they use the math model) is there any way/trick to get more "juice" out of them using either a software calibration method or one of the "plug/unplug methods" mentioned in other threads in this forum?
[Android Apps and Games] rvanavr:
Thanks a lot!
[Android Apps and Games] TheGodson:
Great tips!

Here are some wonderful tips when dealing with a Lithium Ion battery:

http://batteryuniversity.com/learn/article/charging_lithium_ion_batteries

The knowledge at that site is invaluable. It debunks a lot of myths (discharge helps, always drain your battery and then recharge, etc).
[Android Apps and Games] rialsi6:
I use three batteries but would like to get better life out of each one. Would this app be useless to me? I'm guessing that calibrating all batteries would be senseless right? How should I go about using this app to my benefit?
[Android Apps and Games] prboy1969:
Awesome app, recommend it all the time.
[Android Apps and Games] x Taz x:
I used it the other day and it works great. Thank you for the app.
[Android Apps and Games] Vlad_z:
You can read my recommendations on how to calibrate fuel gauge chip here:

http://xdaforums.com/showpost.php?p=16771651&postcount=41

Speaking about your Desire S, if you can provide me with dmesg log file I probably can tell which chip it is using.
[Android Apps and Games] XuserJM:
Thx for the reply. :)

Will check out the thread.

Then to the noob question... (and I did not google it) what is the dmesg log file and how to find it?
[Android Apps and Games] BrNoMen:
Ok, after reading about it, I got a little bit MUCH confused ahaha.

Should I charge to 100%, then "calibrate battery" then drop it to 0%, then charge it for around 8 hours with the device off ?

Or After drop it to 0%, charge it normally?

Thanks
[Android Apps and Games] bestjsg:
thanks for the app ...here is what I have done ..charged to 100% click the calibrate button then use the phone until it drained shut off then charge it with the phone off then this morning switched on the phone, I only got 90% even before I unplugged the phone was 100% ..any thing I have. done wrong ?..

I am using the milkys rom for sgs and lots if ppl report 2-3 days of use but I still have to charge every night...I noticed basically if th phone is on stand by it only drops 1% an hour then as soon. as I start using it the battery drains very quickly.
[Android Apps and Games] biasquez:
on my lg o2x i have some issue with battery: i did full charge and battery calibration, i used phone and after 13 hours i have this value:

14% battery left and in battery calibration app i read 3680 mv...
[Android Apps and Games] marosige:
Use the phone till it shuts off. Then charge to 100% while your phone is on.
[Android Apps and Games] marosige:
Try to use the phone for some days normally. Then report me if it still got the problem.
[Android Apps and Games] NET1028:
Manny thanks

excellent
[Android Apps and Games] MrBeOTP2:
Have anyone can help me :(

I dont know what is happening to me >_<

1. Changing battery to : 100% and have 4200V ( PRESS Battery Calibration ) I think its OK!

2. When unplug. Just few second . my battery go down 98% imediately and have 4175V

? What is my issue ?
[Android Apps and Games] fr4nkr0c:
Hello hello!

I read some topics around the various forums about my problem that I did not understand (at the end lol) if it is normal / abnormal / can be solved

in practice they list:

if I put the phone on charge (whether USB or charger at home)

the charge can not exceed 96/97% even with the phone turned off,

tells me that the battery is fully charged, but if I go to turn it on I see that the charge is not 100% but more than 97% ..

I thought it was because I had to calibrate the battery, but with the special software for calibration xda battery, why can not I run it however he wants to charge 100% but I can not get there with my terminal.

I do not understand what may be due.
[Android Apps and Games] GT247:
I have a long standing personal theory regarding getting a battery to complete 100 percent charge..with the device turned on connected to a charger cable, as the device is on it is consuming power, I've never owned a device I could run plugged in, with the battery removed, therefore, I am pretty much left to presume that even when plugged in, the device is powered by the battery...that being said, it is evident that while the device is indeed being charged, it is also draining battery, and quite possibly the device drains enough of the battery that the charging will only keep it at a steady level of charge...and if it's being charged from the usb to computer, it is a lesser charge and depending on what youre doing with the device (like tethering, for example, with the screen on the entire time) you can actually drain the battery to empty and the device will turn off.....so....my theory is that the only true way to get a completely fully charged to capacity battery is to remove the battery from the device and put it in a battery charger for about 8-12 hours and then insert it into the device..with the batteries having built in overcharge protection and a device's operating system having built in shut-down protection, it is really not expected (by me) that we will ever get true 100 percent fully charged/exact empty calibration...I'm satisfied knowing I am getting as close to that as possible within the parameters the batteries and devices limits will allow...try to remember everything has built in protection from overcharging and overdraining so getting as much out of things within the protections parameters is really all we can do...I think it's obvious that without these protections in place we would ruin our devices and batteries ourselves, lol...my point being..I don't think we should be overly concerned if we have 4205mV when we disconnect the charger, only to find it immediately drops to 4172mV...nor be overly concerned the device shuts down consistently at 3600mV instead of 3200mV...we;re getting as much out of the battery as the device and battery are designed to give us and forcing more out of them is overriding the protections in place that are designed for us to get years out of them

Every device can have a different point at which it tells itself to shut down too
[Android Apps and Games] GT247:
PS...I don't believe we are necessarily calibrating the battery, but rather calibrating our devices
[Android Apps and Games] GT247:
lol, I'm not sure why I failed to include this in an earlier post but...to those who calibrated and immediately started to inquire why things were going as they are and started asking questions (which btw, asking questions is good)...it's necessary after calibrating to allow the battery and device to go through a few charge/discharge cycles
[Android Apps and Games] javak810i:
Samsung i9100 enhanced battery kit

Hi!

I'm very interested in this app and I'm going to recalibrate my battery. I use Samsung Galaxy S2 with the Samsung's enhanced 2000mAh battery kit. Now I have about 20% and charging (waiting to 100% for calibration). But theres something strange to me. The current voltage shown in your app is 3800mV for 20%, isn't it too much? Shouldn't it be less (like 3500mV or something?).

Thanks for any helpful reply
[Android Apps and Games] marosige:
Try to ask someone with a SII. But it can be normal.
[Android Apps and Games] javak810i:
Thanks for quick reply! Well, someone with successfuly recalibrated Galaxy S2 would be great.

Anyway, now I've 94% and it shows 4187mV. I hope it will charge to 100% and cca 4200mV, then I try to calibrate it. Most of all I really want the phone used the full capacity of the 2000mAh battery istead of the 1650mAh original one.

Edit: Calibrating done. I did it with 100% and 4195mV, which seems ok to me. Anyway the voltage dropped almost immediately to 4092mV and 99%... So, now I'll drain it until the phone will switch off, then charge to 100% again and use normaly.
[Android Apps and Games] kulparsan:
maximum and min. voltages?

Thanks for cool app.

i'm using galaxy 3 (i5801) and wanted toknow the max. and min. voltages i.e fully charged and complete discharge??

Is it 4200mV and 3200mV??

i'm getting only 4200mV to 3560mV.... (after calibration)

plz help
[Android Apps and Games] GT247:
I believe we will all have different "empty" capacities...my Dell Streak shuts off at 3600mV

As far as getting exact full capacities of 4200mv to 3200mv start to finish, I doubt you're going to get it...those numbers are not specific to every device manufactured under the sun
[Android Apps and Games] marosige:
If you want to do a perfect calibration, install current widget. When the charging current is 0 mA that's means that your battery is full. Cause it just stopped charging. Then calibrate.
[Android Apps and Games] bestjsg:
thanks I have just installed current widget but only thing the widget shows is the % remaining and as I scroll thro the menu it just says no data...any idea why that is ?

I have the SGS with Milkys rom rooted installed. Thanks.
[Android Apps and Games] hello00:
How can you find out if your battery has been calibrated or not?
[Android Apps and Games] Anon9mouz:
Has no one used thus yet on the cdma version of the evo 3d
[Android Apps and Games] Anon9mouz:
What's better current widget or battery monitor widget? ? Bc I used to use the second one all the time on evo ESP.when using SBC kernels and ur app to calibrate
[Android Apps and Games] imakul8:
I just tested both recently while charging my Seidio 3500mA battery. I am using the Tiamat 4.0.7 sbc kernel. They both ran all the way down to -2mA at an almost identical rate. Battery Monitor Widget sounded the alarm at -0mA indicating battery was fully charged. One thing though..when you reading the logs for either app, Current Widget always reads alot higher compared to Battery Monitor. I think Battery Monitor reads better and is much more useful in features. You can delete battery stats for example..plus more..
[Android Apps and Games] marosige:
You can set it in the "Views" screen.

I use current widget and I like it.
[Android Apps and Games] hausmanis:
awesome ap thx
[Android Apps and Games] pinolaura:
i

Hello, I am the owner of a motorola Xoom purchased in America and taken to Italy. I had problems with the battery from the first day. I mean charge the battery and when it comes to pass in an instant 21% to 100%. All this causes me problems because they use the charge lasts up to an hour and then turns off. I found that actually using battery calibration The battery and charging to 100% because after having calibrated the device is turned on for seve

problem comes back to one charge and then whenever I am forced to wait for 100% charge of the device and calibrate the battery otherwise just unplug the power from the network by 100% goes directly to 21% Thanks in advance

Translated by google

Ciao sono possessore di un motorola xoom acquistato in america e portato in italia. Ho avuto problemi con la batteria dal primo giorno. Mi spiego ricarico la batteria e quando questa arriva al 21% passa in un attimo al 100%. Tutto questo mi crea problemi di utilizzo perche la carica dura al massimo un'ora e poi si spegne. Ho scoperto utilizzando battery calibration che in realta la batteria e carica al 100% in quanto dopo averla calibrata il device resta acceso per parecchi giorni. Il problema pero si ripresenta ad ogni ricarica e quindi tutte le volte sono costretto ad attendere la carica al 100% del device e calibrare la batteria altrimenti appena scollego l'alimentatore dalla rete da 100% passa direttamente al 21%

Grazie in anticipo

Tradotto da google
[Android Apps and Games] EABonney:
Giving it a shot on my EVO with MIUI 1.9.9. Phone was already charged to 100% when I installed so used it and will see what happens. Anything that could possibly fix my battery issues is extremely welcomed!
[Android Apps and Games] tallguy75:
thank you for sharing
[Android Apps and Games] TheV:
I have a question regarding this statement. I have just started the calibration process and I'm currently discharging the phone (normal usage, so it will take a while still).

Am I supposed to use the phone until it powers down by itself?

Does "charged to 100% without break" imply that the phone needs to be off or on during the first recharge, or does it not matter?

Any info regarding this would be appreciated as I would like the make the most of the calibration procedure.

Thanks for the awesome app btw :)
[Android Apps and Games] marosige:
I charge it while it's on.
[Android Apps and Games] TheV:
Thanks for the heads up :)
[Android Apps and Games] jayjl3:
Hi,

When letting the phone discharge from 100% to 0%, would it be ok to turn the display on full brightness, and NOT let the screen time-out, and also have a memory intensive app running at the same time?

THis way, the discharge would be quick, but would it still correctly calibrate the battery?
[Android Apps and Games] cowboy_bebop:
thanks, great app !
[Android Apps and Games] kandaq:
Thanks man! This is my first post just to thank you for creating this app. Previously my battery would show 20% after 9 hours of use. Now after the same ammount of time it's showing 40% left. I am confident that i can go till end of today without needing to top up charge.

Regarding the critics who complained, here're my thoughts:

1) complains bout discharging damages battery: maybe it's true, i don't know. But i'm sure it won't happen rite after 1 complete discharge. It'll prob only happen after many times doing this. So i have no qualms bout doing this dischange.

2) complains bout how one can achieve the same thing by deleting the batterystats bin file: I am no developer, nor am a I an expert in typing commands. I had much trouble just to root my Evo 3D, and i'm sure i'll have bigger headache figuring out how to delete this file. Your tool helped make things easier by simply waiting for the 100% alert, and clicking a button to begin.

I will give this app a 5 star in the market.
[Android Apps and Games] okaiuz:
tested yesterday on my motorola atrix after rom flash!
[Android Apps and Games] zljk:
Didn't work for me - rooted

The tool didn't work for me - reported I must root my phone first. As I'm rooted I just mounted \data folder and deleted batterystats.bin manually. But I'd be interested in knowing why this tool didn't recognize this - since it's not the only app I had this problem with.
[Android Apps and Games] marosige:
I think that it's better to use it normally.
[Android Apps and Games] khaadu75:
Why does it ask me to ROOT my phone .... ??
[Android Apps and Games] jose.celestino:
Because the app needs root permissions, as is written is the 1st post.
[Android Apps and Games] margram:
I've installed cyanogenmod in my Lg Optimus me p350, and now whenever y plug the phone it turns on, so i cant charge being off.... does this affect the calibration???
[Android Apps and Games] ykrug:
100% battery, but the mV is 4...

I'm using Galaxy Ace and this ROM .

You said that we should wait for the battery to be at 4200mV, but mine is stuck at 4mV. The percentage indicator says 100%.

The battery is running out fast... what should I do?
[Android Apps and Games] marosige:
Some phone's sensor reports V not mV. So it's not 4mV it's 4000(and something)mV.

Calibrate when it's fully charged.
[Android Apps and Games] stonebear:
What can I do if battery reading never reaches above 98% when charging please? Should I try calibration when battery is at the 98%?
[Android Apps and Games] sordup:
Never reaching %100

I know this is a very common issue for new users, but I can find no place that deals with it concisely:

My brand new Nexus S 4g battery has never charged to %100 (I'm lucky if it gets above %90). What is the correct process to condition this battery before using your calibration tool (which needs a %100 reading)?
[Android Apps and Games] sordup:
Didn't work

... and un-checking "Wait to %100" and calibrating at %95 (the highest it would go) did not work apparently.

How do I deal with a brand new battery the refuses to charge to %100?
[Android Apps and Games] trsix:
BEEP BEEP

I have a rooted shift so can reset stats using recovery.

What i was looking for was a program that beeps

when charging gets to 100%. I tried this beeped

once or twice at 100 but the other 20 times no

beep. Is there a program that jst does this?

Beep or alarm at 100% charge. :confused:
[Android Apps and Games] ssauger:
New Battery

Hi, thx for this usefull tool. Now i decided to buy a brand new stock battery for my HTC Desire cause the voltages on my old jumps up and down (current widget) since a few days.

What is the best way to use the new battery when i got it. First load to 100% then use Battery Calibration and let it run out of juice? Thx in advance
[Android Apps and Games] BenEadir:
Hi,

I'm on a Samsung Galaxy S2 with CheckRom installed and since installing this app I've noticed two annoying problems

1. The phone now beeps when 100% charged. I set the toggle option to not beep but it doesn't seem to make any difference. I even uninstalled the app and the phone still beeps and pops up a green battery symbol to the left of the notification bar when 100% charged. I really need to stop this happening as it's waking me during the night when the battery gets fully charged. On silent it vibrates!!!

2. My battery will suddenly drop from approximately 30% to 15%. I'm not talking about rapidly descending over an hour or two I'm talking about one minute being 30% and instantly dropping to 15% with a beep to warn low battery etc.

Any ideas how to fix these two problems?

Ben
[Android Apps and Games] hack1131:
Very useful.
[Android Apps and Games] marosige:
Install CurrentWidget Place the widget to your home screen turn ot logging. Charge your phone. When you see 0mA charging current that means your battery is full. Calibrate your batt. that time.

I would like to put a charging current meter to my app but it's not as simple and I don't have time :(

The app notifies the user the first time the batery reached 100%. If you exit the app by the back button and restart it it will beep again. Also the app should be in the front if you want notification.
[Android Apps and Games] cubexg:
Ok, so I could definitely use some help here. I have a Motorola Photon and recently bought a Seidio 3500 MAh battery. I get GREAT battery life, but the phone will sit at 1% for about, oh, 8 hours or so. My first battery I thought that it was something with the battery (I tried this app, unrooted the phone as per Seidio, wiped to stock, etc.) and nothing worked. I had them send me a new battery which I now have in my phone. Technically my phone has not run with a stock battery since the last reimage.

Point is, no matter what I do, I can't seem to get the phone to recognize the battery properly. Is the issue with the battery and it not sharing correct info with the phone? Or is it the battery stats? If it is the battery stats, I've tried this app - done a charge to 100%, run a drain software for a full day (because if I don't the phone will be live for two-three days over a weekend and I can't have it dying on me in the middle of a work day) and then when it dies (and yes - let it 0% and die as I have no idea how much actual time is left on the phone any other way) and recharge. When I do this, I try to turn the phone on as soon as I can to make sure it's getting the battery stats.

I assume this is the correct method? Am I missing something? The ROM is stock on the phone as the bootloader on this device is still locked.

Maybe I should be deleting some files manually?

Any help would be GREATLY apprecaited. I know the phone will last me the whole day, but walking around with 1% charge sucks.
[Android Apps and Games] hermanchb:
Rooted permission ~
[Android Apps and Games] Just_s:
Marosige, can you comment on this thread? [TIPS] The Best Way to Calibrate our S2' Battery ! I am skeptical of what is being claimed and am testing now, but would like your take.