yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] Nutterpc:
ok what I need to work out now, so I can properly calibrate this battery (its taken a while)

Watching the phone as it trickle charges, and keeping an eye on the capacity (mAh) so i can set the Full40 as needed, Im currently sitting @ 99%, and have the following values:

1419

1420

1422

1425

1427

My current Full40 is as per original post (1452), so based on that, what would I need to ideally set the Full40 to in hex to be able to properly calibrate it?

EDIT: Would I be correct in assuming to change the Capacity once it does hit 100 to the full40? as I think thats why my phone still shuts down at weird times. Its going up very slowly too, just hit 1428

EDIT2: Seems its settled at 1427, so now I need to be able to find out how to stamp this as the final Full40
[Desire Android Development] rafithegreat:
Thank for the reply, but my problem is that I'm under Oxygen with _thalamus' kernel.. So if I flash a new ROM, then, say, decide to go back to Oxygen, I'd have to re-do the process, correct?
[Desire Android Development] theGanymedes:
no, unless you don't use ahmet-exp kernels if you're to use Sense ROM (nothing to do if you're to use AOSP).
[Desire Android Development] rafithegreat:
Ah, i see. So, if I flash a sense rom, i need to flash your kernel before initial boot? And just so I'm clear, flasing any aosp rom keeps my current calibration. Right? Sorry for all the questions, it's just now I have a properly calibrated battery I'd hardly like to repeat the process... :rolleyes:
[Desire Android Development] theGanymedes:
Yes, that's the case.
[Desire Android Development] rafithegreat:
Many thanks for your time :)
[Desire Android Development] nomatterbv:
ok, lets see who can help me out or advise me what to do.

I flashed LeeDroid's HD v3.3.3 ROM, ahmet-exp5_cfs_svs.zip and installed the battery calibrator app.

I bought a new battery, 1600 mAh and I have the same problem as marius.a, I can't calibrate the batt, whatever value I set it resets to these values:

General tab:

Voltage (mV): 4138,45 (it's "stuck" on this value, even after reboot and kernel and/or ROM flash)

Current (mA): 1631,49

Batt Age (%): 199

Full40 (mAh): 27306 lol :))

Min Chg Curr (mA): 20

Min Chg Volt (mV): 4977

Empty Curr (mA): 3400,0

Capacity (mAh): 104856 :)) lol

Aged Capa (mAh): 27306

LearnMode tab:

Real-Time Voltage (uV): 4138442 (also "stuck" on this value, it doesn't change)

Curr. (mA): 1631,4

Capa. (mAh): 104856

What can I do in this case, is any chance to callibrate the batt? no matter what ROM or kernel I use these values are the same (if the kernel is compatible with the app). in recovery it shows me the real value, it shows if it's charging/discharging but when the phone is booted the battery indicator also "stucks" on a value/% until I restart the phone or enter into recovery.

I'm currently using CM7 r2 hboot, I could try to change it and give it a shot, maybe it'll help.

What do you say, advise me guys in this situation?I realy don't wanna go back to my old batt which it lasts only 6 to 8 hours.
[Desire Android Development] theGanymedes:
Sad news: Your battery cannot be calibrated because it doesn't support calibration (that weird Full40 value indicates that).

Apparently, your battery is not supported by DS2784.
[Desire Android Development] bookerok:
wtf, my phone all time power off when battery drops to >=3600mAh:mad:

which register can to moved 3201mAh?
[Desire Android Development] ironjon:
I don't know what I have touch but I have the same problem, my phone shutdown at 1% but is at 3.600 mAh :rolleyes: ... And before gets at 3.300 mAh.... Any idea?

Tapatalking
[Desire Android Development] theGanymedes:
Try making the calibration with Oxygen or CM Roms - make a nandroid backup of course - and then see if it goes below 3600.. If it doesn't; you have to set aEvolts value - I guess they were 62 and 63 (but not sure - you must check them from DS2784 spec sheet, which is available at the forum page that the link is given).
[Desire Android Development] BeatB:
does it work if im on redux 2. with an aosp rom and thalasmus mod8 kernel?
[Desire Android Development] imnamak:
Works..!

Thanks to thread author, it works, but using Calibrator app. The only strange thing was that app doesn't display any info about my battery (and I thought it is not working), but it works and I get 1% battery before it goes down :) ...using Runnymede AIO V6.0.4.3 on my Desire (Bravo).
[Desire Android Development] man4714:
pls explain which all steps u followed..

im also on Runnymede AIO V6.0.4.3 on my Desire (Bravo)

with #11 kernel

thanks in advance..
[Desire Android Development] MattBooth:
I'm ruinning this ROM: http://revolutionrom.com/index.php/revolution/about-revolution

How do I apply this fix? I'm willing to try to compile the kernel myself I just need to know what I'm doing first.
[Desire Android Development] zaize:
Seems i bricked my battery as it dies now instead of 15% at 60-70%.

Even after reflashing the rom.

My second - aftermarket battey works as it used to.

On calibration i made some changes in registry because phone switched off before it achived pointed learning voltage.

Is there any rollback option?
[Desire Android Development] kostelo:
@St4hli: Worked like a charm. Excellent post. Please make it sticky so that anyone can find it easily.
[Desire Android Development] Robi959:
When calibrate completed, can i go back to my stock kernel of Sense ROM, or its better to stay on that kernel ?
[Desire Android Development] St4hli:
I would stay on this kernel (if there are no problems with it), because the sense kernel always resets the calibrated values and your calibration is gone..
[Desire Android Development] theGanymedes:
Follow the values in calibration and then try to make another learning cycle.
[Desire Android Development] Robi959:
I have a problem, when i get 3201 i pops up message for charger and i plug in , after 10 seconds, desire shut down ??? WTF
[Desire Android Development] gmangm:
This is the tricky part... next time, plug in your charger and immediately turn off the screen with the power button. There's a delay when you plug in your charger before your battery starts charging. Turning off the screen will save whatever last bit of juice your battery has left before it dies.

After a minute you can turn your screen back on to see if you're in learn mode. If it worked, LYPTFA. If it didn't work (and you have some patience left) try again.
[Desire Android Development] WatsonDue:
If after many tries you don't succeed, then you may try calibration with an aosp rom. I did it with cm7! :)
[Desire Android Development] Robi959:
I did it, tnx ! :)
[Desire Android Development] mitch_55:
I've succeed in the calibration of my battery, but I get some questions :

What will happen if I uninstall "Battery calibrator? Or if I change ROM?

Does this calibration change register values ?

And an other question ( :) ) : Why the calibration uses as the full42 1452, whereas the original capacity of my battery is 1400 mAh?
[Desire Android Development] theGanymedes:
As long as you don't change your kernel (changing ROMs are ok if you flash this kernel) you can remove Battery Calibrator; change ROMs etc.

Your battery is actually not 1400; it's 1393 mA. Due to battery manufacture phase; some batteries turn out to be 1400, some 1395, some 1405 etc - that's the production is not completely precise. Because of this, battery manufacturers set their full capacity yo 1452 and the age of the battery to 90-95% out of the factory to allow some "smoothing out".

If you read about Li-ion battery internals online, you shall find out more about this ;)
[Desire Android Development] theGanymedes:
Common answers to common questions are added to the second post with FAQ header (why didn't I thought of it at the first place? :S)
[Desire Android Development] ahac85:
Hi in using snq 181111 I am able to read and edit all reads using battery calibrator app on op, my question is that does this mean it includes your battery patch, oh is snq using a different method to edit these values?
[Desire Android Development] erklat:
No, snq hasn't maintained his kernels long before this patch was introduced.
[Desire Android Development] ahac85:
I realise that to, however no other kernel released before the patch am I able to read values in the general tab, but with this kernel I can and I've also been able to calibrate my battery properly aswell
[Desire Android Development] t-pip:
Cm7 doesn't populate the fields in the calibrator app. Any suggestions on what to do?
[Desire Android Development] bgumble:
cause you used the calibrator app for sense,

with cm7 you should try this battery calibrator
[Desire Android Development] WatsonDue:
Strange. Try with Tiamat kernel, I used that one without any issue.
[Desire Android Development] t-pip:
Will give it a go.
[Desire Android Development] t-pip:
OK

Can now see values in app but same problem as in Sense. Phone sts down at about 5450 mv so never activates learn mode. Is there any way to change the trigger voltage for auto learn?
[Desire Android Development] Robi959:
Well , my calibration is finaly completed. Now my battery goes to 1 % and than shut down. Battery now on 52 % after 1 day 2 h 28 min :D Niceeee. Thanks to everyone !
[Desire Android Development] Ronok:
I have got the same problem. But I'm using a Sense kernel so I don't know if it was meant to work in the first place.

But I'll try the screen-off solution next time.
[Desire Android Development] NoobMonkey:
Does this trick work also, if the phone shuts down at 22%? Mine is doing that and its annoying cause I don't remember this "feature".
[Desire Android Development] St4hli:
Of course it should work. Even if it shuts down at 60% or so, the Calibration App recognizes when the battery REALLY is empty. ;)
[Desire Android Development] NoobMonkey:
Thnx. Have to try this on weekend :)
[Desire Android Development] Sui77:
Hi!

Could someone be so nice and mod this kernel for me: http://www.elelinux.se/desire/2.6.37.4@Desire-Kernel-CM7-35.zip

I am not a genius in the android-stuff and i think it would end in a bad way if i would try that on my own.

Thanks

Thomas
[Desire Android Development] NoobMonkey:
I did this calibration, but somehow it didn't work. Earlier the phone died at 22%, and after the calibration it dies at 18%.

Just have to do it again. Any ideas what went wrong? I followed the instructions on this thread and everything went well.
[Desire Android Development] WatsonDue:
You have to recalibrate. Maybe you did something wrong, and calibration failed for that reason.;)
[Desire Android Development] NoobMonkey:
Everything is possible :) Although it said Calibration successful etc.
[Desire Android Development] Sui77:
Tried the modified Kernel on ELELINUX CM7.2, but the preview of the cam and the Bluetooth did not work.
[Desire Android Development] erklat:
Seems to me that is not the only thing not working in your case. I'd start from either eyes or brains.
[Desire Android Development] Sui77:
Ok, i have not taken into account, that this fix is ONLY for SENSE, sorry for that.

If you want to support a noob: How may i fix the issue by using the ELELINUX Rom?

THX
[Desire Android Development] NoobMonkey:
Should the learnflag be light all the time until the calibration is done?
[Desire Android Development] theGanymedes:
Yes, it should be on until CHGTF flag is on.
[Desire Android Development] theGanymedes:
I don't know about that ROM but if it's AOSP based, it supports the calibration already.
[Desire Android Development] aardappel12:
By the way theGanymedes,

I just wanted to say thanks for everything you've done and making this possible! Loving my new battery live, wouldn't say it's necessairily longer but atleast now I know what to expect..

I've tried doing the calibration on runnymede aio rom but that wouldn't take, so after the 7th or 8th time I tried doing it on cyanogenmod and after the first try it was done! So I do recommend people to just do the actual calibration on i.e. cyanogenmod if it doesn't work after the second or third time..

And after being done with the calibration, I just flashed the runnymede aio back with droidzone's kernel #22 and it's still working perfectly! Shutting down at 0% :)

I'm lovin' it <3

So, once again, thanks a lot! :)
[Desire Android Development] unnamednm:
Tutorial

HEllo

For a noob, can anyone make a tutorial.

explain everything, because i don't know how to flash the kernel, or what values i have to put the the baterry callibrator.
[Desire Android Development] St4hli:
Check my signation!
[Desire Android Development] rraaka:
Im currently using runnymede 5.0.4 and it takes just as long to charge from 99% to 100% as it does from say 40 to 99 % or even less

does this feature prove my rom is batt calliberated ?

which i havent
[Desire Android Development] theGanymedes:
No, charging from 99 to 100 is supposed to take long. It's a little long to explain, but this is the nature of Li-Ion batteries.

Calibration is necessary if your device shuts down at higher percentage than 2%.
[Desire Android Development] unnamednm:
Hello, as i said early, i'm a noob and until now i can't understand what to do to callibrate my battery, i'm using Runnymede AIO V6.1.1.

Reading the first page, i see i have to install a new kernel, Thats what i have to do?

Please can anyne make only the instructions, without all the the details to get to that.

will be easier.

Thanks
[Desire Android Development] Robi959:
Can anywone tell me what Kernel to download ? I have Mildwild 4.6 CM7 , what you suggest for Battery Calibrator ?

EDIT: i found solution :)
[Desire Android Development] DasGensu:
Hi, im using MIUI, can i just flash the kernel and follow your instructions?
[Desire Android Development] erklat:
Let's go over it again. Read carefully:
[Desire Android Development] kartnite:
Hi folks, I went through the first few posts but I am getting really confused (each time I re-read).

I am running the RSK ROM (cm7r2 HBOOT), with snq kernel. I guess I shd flash one of Droidzone's kernels before proceeding.

(1) I've downloaded the re-worked battery calibrator app. Now which zip file from the list do I flash?

(2) And... When does that "HOW-To" (from this thread) come in the picture?

Thanks. Sorry for the trouble.
[Desire Android Development] ahac85:
Is there a simple way to make all values go back to stock ie min volts and empty volt etc
[Desire Android Development] DasGensu:
well thank you, but i was wondering if i really needed a sense rom, since im not gonna switch to one of those just to get the 15% battery life :/
[Desire Android Development] erklat:
aosp kernels support calibration too. Check whether the app works, but you should used the original one, not the one modified by theGannymedes.

You won't get 15% battery life, don't give yourself in to misconceptions. All you're going to get is 0=0 and not 0=15.
[Desire Android Development] ahac85:
My batt age is 77 which gives me a full40 of 1189 should I right 1200 instead? Also if I change min current from -20 should I recalibrate again, or dont I have to?
[Desire Android Development] kartnite:
From the Battery Calibration thread,

"2. In the Learn Prep tab:

a. set your aEvolts to 3201 (type on each line: Register:0x 66 Value: a4 and press save)

b. set your stop charging current to <20mA (Register:0x 65 Value: 06 and press save)"

I don't see specific fields in the app that has been attached in this thread (in the OP). I see only two fields - titled register & value - following the Full40 field.

So, do I enter those values (66/a4; 65/06) and save them in that same field?

And yes, all these are under the "LearnPrep" tab.

---

My new age reduced from 94% (what was earlier) to 79%!!!

Suggestions, please?
[Desire Android Development] gmangm:
you got it... and 79% battery life sounds about right if your phone used to shut off at around 20%.
[Desire Android Development] kartnite:
My battery would give up around 16%.

But I still can't find the specified fields where I'm required to fill values for "stop charging current" (0x65/06)

When I ran the app for the first time, my battery age was 94%. I attempted to calibrate and after rebooting, the age was shown as 79%

Edited life to 100% again and charged to full power.

Let's see when it shuts down this time.

6 hours use so far- camera and wifi, primarily - 65% left.

- Desirously swyped. $xda$
[Desire Android Development] gmangm:
it sounded like you had it...

in the field "Register 0x" enter "65", and in the field "Value" enter "06", then save.
[Desire Android Development] kartnite:
Thank you...

I was puzzled because in that field I had entered the first set of values (66/a4, for "aEvolts") and I was wondering how "stop charging" values could be entered in the same field.

- Desirously swyped. $xda$
[Desire Android Development] ahac85:
Hi ive followed all the instructions yet my battery still shuts down at 2 or 3%? Any one can help me?
[Desire Android Development] kartnite:
Dude! 2% still is an improvement from 15%!

- Desirously swyped. $xda$
[Desire Android Development] ahac85:
It certainly is, however 0% would be even better lol

P.s I have left empty volts @ 3.416 and min chg @ 80mA both which are stock values, I did notice changing them to op values it gave me an extra 1%
[Desire Android Development] kartnite:
Ha ha, true that. I remember a time when mine would shut down at 3% and I wouldn't bother, but now I'd take it any day! ;)

Hmmm, I'm yet to drain my battery since calibration, so I'll check when it shuts down before checking those values you've mentioned.

- Desirously swyped. $xda$
[Desire Android Development] kartnite:
Nope, still unsuccessful...

Will try a fourth calibration tonight.

- Desirously swyped. $xda$
[Desire Android Development] borsa1994:
hey everyone.

Can I calibrate my battery even though i'm actually using the ICS rom by sandvold?

thank you :)
[Desire Android Development] erklat:
Most likely not.
[Desire Android Development] borsa1994:
This guide is only for the rom sense with the kernel given us in the first post?

Or i have just to follow the guide with a random rom and then, when battery calibration is completed, flash my ICS?
[Desire Android Development] live_0978:
I would imagine you can use the app as is since you are using an AOSP rom and kernel.
[Desire Android Development] erklat:
This app will work with the kernel from the first post, or any other kernel with theGannymedes tweak only. For aosp roms you'll need the unmodified app found on market. Too many things don't work with ics for developers to bother with this at this stage. Download the app and see if it gives numbers on the main screen?

You have to be mindful if kernel supports calibration. You flash the one that doesn't and your calibration will be lost.
[Desire Android Development] kartnite:
Try as I might, it shuts down however quick I am with plugging in the charger when the flag turns on... Frustrating.

- Desirously swyped. $xda$
[Desire Android Development] erklat:
Calibrate on aosp then. Flash back sense with compatible kernel before you allow it to boot for calibration to stick.

Anyone thought of the possible downsides of this procedure? I did this the day this tutorial was published and I'm pretty sure my battery is at it's end. The day I did this it had 83% age reported. Now it uses about a 1% per minute of screen use. I can't get moar than 20hrs my regular usage pattern anymoar whereas I'd get no less than 30 before. My routes remain the same, my phone gets GSM signal from the same masts, I keep number of apps at a minimum to ensure the least number of processes running. I think about what I install and how it does and how often sync.

Anyone else maybe with similar insights to share on possible rapid deterioration of the capacity recently?
[Desire Android Development] island3r:
The percentage dropping faster is completely normal. That's because the phone counted down to 15% before calibration, whereas now it counts all the way down to 0%. So, considering the battery capacity didn't actually change, the countdown to 0% will go a bit faster now.
[Desire Android Development] erklat:
That is self explanatory, but you didn't understand what I said. Whether it is 100-15 or 100-0 matters not to me. What does is that before, and even after the procedure I was getting anywhere between 27-32hrs. Now to get the picture when I was writing the previous post I was at 64%. Now I'm at 47. 0 calls, 0 texts, no social stuff, 3 minutes maps w/o gps.
[Desire Android Development] island3r:
Yes, and that's because you calibrated your battery and it reports percentages more accurately now. You are at 47% now, but the phone will shutdown at 0%.

If you hadn't calibrated you would probably be around 60-55% but your phone would shutdown at 17%. It's simple really.

OR, your battery really is busted and needs replacing.
[Desire Android Development] Tuborg68:
My desire dies before it reaches 3201mV everytime I try running the learning procedure. Anything I should do or try.

Kind of a noob on this so I´m not sure Ive understood the intructions correct. Is it same for N1 and Desire?

I run Sandvolds ICS rom.
[Desire Android Development] AndyBury:
I guess your not running a GB Sense Kernel then.
[Desire Android Development] charlie-zulu:
Hey guys, I don't understand this part of the procedure. Everything else seems to work so far, but what values do I have to calculate?

"REAL Capacity = "Real" Full40 Value (1452 in Stock etc.) x Age Percentage (0.XX)"

In the BatteryCalibrator / General Tab, it shows me "Batt Age (%) 100" and Full40 (mAh) 1452"

I'm a bit confused about this "Real and Fake Capacity"-stuff :)
[Desire Android Development] t-pip:
Help please.

I can't calibrate my battery as the min voltage required for learn mode is above my fully charged voltage see attached.

Any ideas?

http://db.tt/UH8iG5q5
[Desire Android Development] island3r:
Why is your battery age set at 199% ?!

Set it at 100% and your full40 at 1452 if you have a stock battery.
[Desire Android Development] t-pip:
It's not a stock battery. Setting to 100% makes no difference, it changes back to 199.
[Desire Android Development] island3r:
Then I'm afraid your battery doesn't support calibration. It is a known issue with non stock batteries.
[Desire Android Development] Metzeler:
Hi, my desire also shuts down at 20% and I want to fix this. I am currently running Runny Rom 6.1.1 and installed the Battery calibrator on my desire. Unfortunately its not showing any battery values when I open the tool, so I think it does not work. Do you have any instructions, what I have to do in order to fix the battery issue running this rom. Thank you
[Desire Android Development] erklat:
Which calibration app you installed?
[Desire Android Development] Metzeler:
I have installed the BatteryCalibrator.apk from the first post of this thread.
[Desire Android Development] aardappel12:
Have you also flashed the right kernel?
[Desire Android Development] nlooooo:
I flashed the right kernel and have the right app from the thread, but my phone turns of before battery depletes to value required by the application.
[Desire Android Development] WatsonDue:
It happened to many users, me too. The better solution is nandroid, do the calibration in an aosp rom, like cm7, and then reflash your backup. Be careful to use always a fixed kernel after this, or the calibration will screw up. :)
[Desire Android Development] erklat:
I agree with this as I did it like this too. Upon reaching 3201mV you plug it in, but Sense roms don't register it immediately and they shut down. Tried three or four time even before deciding to do that on aosp.
[Desire Android Development] skilqki:
aaaagghhh... sorry for the noob question but ... i can`t find the kernal taht i have to flash for the batt fix .... i only see some files that when i click on them they open in other window of my browser .... can someone give me ling for flashable kernal with the fix or atleast tell me step by step what to do cuz i`m a bit noob, or atleast tell me witch ahmet ext4 zip to get for my device ... cuz there are alot cfc svs havs atc. and don`t know which one is for me ( stock batt ) :( :D:victory::victory: I`m using super nova extreme GingerBurst rom sense if this is in any use for u :D