yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] Alex-V:
sorry to buffer again...but i think one last question...the following is from this post:

http://xdaforums.com/showpost.php?p=23400262&postcount=2119

1180 is my example - you can find this out by copying the Capacity (mAh) value at the first page of the app, after the calibration is completed.

Another thing, don't set Full40 to 1180 (capacity value), but set it to 1180 / 0.94 - it should be slightly higher. (if your cap. is 1200; you should set it to 1200/0.94 = 1276.5 --> 1276)

You don't need to reset 65 and 66 again, but 62 and 63 - the values to write there is [ Capacity * 15 / 6.25 ]. You should convert this to hex and write to 62 and 63.

Example:

Say, I have 1452 mAh battery. I've calibrated it (exactly like described) and turned out my battery age is 75%.

Now, my actual capacity, then, turns out to be 1452 * 0.75 = 1089.

My new Full40 value becomes: 1089 / 0.94 = 1158.5 ~ 1159.

Now, we're setting the age back to 94% - it's because the phone does this when charged off anyway.

Now, setting Full40 value to our new Full40 -> 1159.

----------------------------------------------------------

so for full40 is the formular....?!?

a: 1200/0.94 = 1276.5 --> 1276

or

b: 1452 * 0.75 = 1089 / 0.94 = 1158.5 ~ 1159

(i know..the values are only a example...anyway full 40 cant be set to 1159...there is a range...between 1200-1XXX [the max i can not say at the moment because of calibration])

thx for answers :)

with kind regards
[Desire Android Development] theGanymedes:
Both formulas are the same actually. But "B" is more "all in one" solution, so I'd use that.

I know it has range; but 75% battery means it's dead already, so I've never thought that :)

If I were you (or the guy in this case) I'd write 1200 to Full40 and then try to never make my battery lower than 50 mAh (approx. 1% :) )
[Desire Android Development] Nidzo80:
First post is little confusing to me. I installed kernel and application. What next?
[Desire Android Development] bone069:
When I am using the ahmet kernel I am not able to start the facebook app. The phone freezes and I have to pull the battery. Using cfs svs version exp3/exp4.

Edit: Just flashed bfs-svs version and it is working again. So seems to be a bug with cfs-svs.
[Desire Android Development] erklat:
What is confusing? You have to read a enclosed guide on how to use the app and learn the values you need to calculate capacity from theGanymedes formula.
[Desire Android Development] ironjon:
No problems here with CFS-SVS kernel and facebook
[Desire Android Development] Nutterpc:
This phone must be a freak. After flashing the updated kernel (which worked), and calibrated it as specified, charged. Got off charge this morning, @ 100% (7am)

Its now 18:35, phones just hit 91% 0_o
[Desire Android Development] bone069:
Which rom are you using? Maybe it is a problem with the combination? It is a really strange error I never had before.
[Desire Android Development] Sally Mack:
Followed these steps, but my phone did something funny where the battery dropped to about 14% (which I haven't seen in quite some time), then raised back up to 18%. Before I could get it to 3201mV, I powered it off thinking nothing would happen (was losing my patience and needed to get to sleep- but needed to use my phone as an alarm clock so I wanted to stop the "learning").

Upon powering it back up, I was met with a bootloop, and have been stuck with it since. The only way to get out of the bootloop is to restore my nandroid backup that used an unmodified kernel. Reflashing the modified CFS kernel (which previously worked fine) only results in a bootloop now.

Any help how I can get my phone to boot again using a modified kernel so I can properly calibrate my battery? I noticed in this set of instructions 0x10 was set to 04, which no other posts refer to. Does this have anything to do with why my phone won't boot now?

Thanks!

EDIT: Also just noticed upon booting using an unmodified kernel that my battery % icon showed a red triangle very briefly. Never seen that before, but figured it might be relevant.
[Desire Android Development] ironjon:
Sense 3.5 rom but it's not here in xda
[Desire Android Development] Alex-V:
OK...just some tipps (for users like me...phone goes off...if it say plug charger)

if you near your mark to phone off...:

1. set airplain Mode

2. set display to never off...and brighness to low (so you will see if all goes right)

3. if it say plug charger...plug it...and push power button (so display is black) wait some min..make it on again..now the phone wont power off...and learn process will be ok now...

anyway...lol...i need a new battery...73 % age lol...its the price of everyday load... ;) :) only good that battery´s are not expansive :)

with kind regards..Alex

thx again ;) :) think thats why i had so many trouble...lol
[Desire Android Development] Alex-V:
the 14->18 % is normal...its set by the app.. just wait
[Desire Android Development] nomatterbv:
Bad news guys,the calibration lasted only 3days and a few hours,it went crazy again.

Any sugestions what to do further?it may be my batt already dead?

It shows that I have x% left but the real % is different and less than what it's shown on the display.

As soon as I'll get home I'll make a screenshot and post it.
[Desire Android Development] Alex-V:
it can be that you load your phone if it was off...or a similar situation....because it kill the calibration...but if you set full40 to your calibration value..it should stay

with kind regards
[Desire Android Development] nomatterbv:
The phone was charging while was on, Airplane mode activated, screen time-out set to never and screen brightness set to minimum.The calibration was successful, the learn cycle was ok but now it went crazy and I didn't do any changes like: ROM, kernel, restore or anything what it could affect it, everything is the same since the calibration.

Dunno what to do next, maybe I'll buy a new batt but till then I'll give it one more shot/chance and re-calibrate it.

I'll post back the changes and the screenshot too asap.
[Desire Android Development] Alex-V:
mmhh..but sure we meant both the same...i not say in calibration / learn mode...i mean did you charge the phone while it was off...eg. you reach 0% phone goes off...to power phone on...you put charger...etc...something or similar things...

if nothing off that...its very intersting...will see...i´m on day 1 :) anyway..i´m on 73 % age...so time for a new bat

with kind regards
[Desire Android Development] nomatterbv:
The screenshot is atached, please view it and tell me what you think, if you have any ideea what can I do regarding this issue, if I can say that it's an issue.
[Desire Android Development] nomatterbv:
The phone was on since the calibration, it didn't shut down, I didn't reboot it.It was permanently on, I took care to have it on always.

It's pretty strange to me too, it behaves weird, dunno what could hapen.

I have posted the screenshot, take a look and tell me your opinion.The difference now is only 20% but it was more than that some times, I saw it once today with a difference of 29%.Pretty strange, eh? :)

I think it's time for me too to buy a new batt :(
[Desire Android Development] Alex-V:
its very interesting...

only thing i noticed theGanymedes says...use only the calibration app on first page...mmhh

the point what i mean...is full 40 must patched to new value...if not done...it can be not a permanent cali...that was what i read in a other thread

with kind regards
[Desire Android Development] nomatterbv:
I use only that app for calibration, this script only to monitor the battery, it's % and current.

(the real current from the script is equal with what the calibrator app shows, there is no difference)

So, what do you say, what should I do next? :)

I'll drain the batt and re-calibrate it, let's see the result after that.
[Desire Android Development] Alex-V:
ok :) yes think the same

with kind regards
[Desire Android Development] Znuff:
How the hell do you guys get your battery down to below 3500mV?

Mine goes to 3589 then back to 3620... and again. Never goes below those 3500mV values.

And for some reasons it just started to shutdown at 2% now, which I find weird, as I always had that issue with 15% until I installed the fixed kernel.
[Desire Android Development] Alex-V:
i also had the problem in the past...but with this it goes now... :

http://xdaforums.com/showpost.php?p=23574119&postcount=134

also if you charged again to 100 (before you finished the cali) you have again the 15 %

ps: and have time too do this... :)

with kind regards...
[Desire Android Development] theGanymedes:
Wow, man, that's a freak show there! Apparently your battery was deeply miscalibrated.. Hope it all goes well ;)

I don't have any problems either. Maybe your ROM is not working well with CFS or something .. :/

READ THE FIRST POST COMPLETELY, DON'T JUST SKIM IT!
[Desire Android Development] Nidzo80:
No need to raise your voice. Turn off CAPS LOCK.. Save electicity ;)
[Desire Android Development] theGanymedes:
Well, there are some answers I think I should re-clarify and add to the previous ones:

1- You should calibrate with the app I published, if you're under a Sense kernel, and by using my kernel - or Droidzone's patched kernel (as I heard). Under AOSP, you can use Thalamus's or Tiamat's kernels with Jon Richards et. al.'s original battery calibrator available on the market.

Note this: AFTER THE CALIBRATION, YOU SHOULD NOT SWITCH INTO A SENSE KERNEL THAT DOESN'T HAVE MY BATTFIX, BECAUSE OTHERWISE YOUR CALIBRATION WILL BE REMOVED! If you're to use AOSP ROMS/kernels, you don't need to worry about this.

2- After the calibration, set your Full40 value accordingly for the "permanent" results: in the previous posts I've told how to make this. Here's the real link with example for that.

3- Full40 value sticks in only after one complete charge that's done when the phone is ON. So, after calibration, discharge your device at least until ~85% and then recharge completely if you want it to stick. This is the case whenever you change your Full40 value. Since CHGTF flag is not turned off until battery hits 89%, we need to make it turned off, in order to make it reset itself.

4- Don't use any other calibration tools that you're unsure what they are doing. Erasing batterystats.bin is complete useless operation in battery calibration - batterystats.bin file is already truncated whenever your battery is charged to full; but still we lived those issues, didn't we? Don't believe into rumors that much.

5- If you don't trust any software about your battery levels, currents etc. compare the values of the relevant files in these two folders (in my kernel):

--> /sys/class/power_supply/battery/ (there are many files here like capacity, full_bat etc.)

--> /sys/bus/platform/drivers/ds2784-battery/ds2784-battery.0/

If you're unsure about your battery calibration, check your full40 values (if you changed) or battery age here as well.

Sense ROM is communicating through first interface, whilst the second interface reflects the actual values in the battery register.

6- If your device has started to shutdown at 15% again: your calibration is screwed, redo it. Normally this shouldn't happen, but apparently you missed something previous time, or somehow managed to lose your calibration.
[Desire Android Development] emf12:
After complet calibration made yesterday , my Capacity (mAh) shows 1358.

My bat age shows 94% . So must made 1358/0.94=1444.68 and this value (1445) become my Full40 ?

But applying "B" formula means for my 94% age: 1452*0.94=1365 /0.94=1452.12 !?

I don't understand now which formula to use?!
[Desire Android Development] theGanymedes:
Use B. It more reliable.

BTW: Is your battery new? Otherwise, it shouldn't be possible to see 94% age. Were you sure that the calibration is successfully done? (At the third tab of the app, CHGTF flag should be set right away when LEARNF flag is off (when learning complete - Status Reg value should be 0x8* (can be 80 83 or 87) ). IF it doesn't your battery drain might fall to minus values because of usage) it means that your learning cycle is interrupted and you have to try again.
[Desire Android Development] emf12:
Yes ,is in the same way u describe .I attached the second and the third pages of the application, maded after a complete calibration .

My battery have 1,9 year old so it's not new!

So in these case i must to put my new Full40 to 1452 ? But It's the same with the first after first complete calibration!?

Or i must to try another complete calibration?

Thank u !!
[Desire Android Development] theGanymedes:
If your phone is 1.9 years old, I think you should retry calibration - evidently your calibration has failed. Don't touch your phone at all and make put your phone into airplane mode when you start learning cycle just when your voltage values approximate to 3400 mV
[Desire Android Development] marius.a:
Lool, guys, have a look at my chinese batt buyed from ebay. It suppose to be same as original. I can't change full 40 to 1450. Superuser permisions ok, input 1450, press save and nothing happens.

Lool 27306 mAh

EDIT: currentwidget constantly shows 44mA, doesn't change at all.
[Desire Android Development] ironjon:
The attachment is veeeery small, I can´t see nothing :rolleyes:
[Desire Android Development] NeoEpsilon:
@theGanymedes

My battery age is 86%... :D

Finished setting the Full40, 0x62, 0x63...

Now testing if it behave properly (shutdown @~1%)...

I noticed the new exp4 kernel...

What is the difference with the old exp3..?

Thanx...
[Desire Android Development] marius.a:
Sorry, so at full 40 value is 27360 mAh
[Desire Android Development] theGanymedes:
It happens because the EEPROM chip is sending useless info :) Everyone keeps saying that those batteries cannot be calibrated but, may you please try to calibrate it for me? Try writing 2500 mAh to full40 value yourself, does it change the value in the "General" tab? Because I kinda suspect that they can perhaps be calibrated - I even heard that some of them are sold as 1600mAh but turns out to be higher (like 2400mAh :) )

Well, it includes a Wifi Fix (in order to make it more tolerant to low signals) and also an Extended battery fix - a fix that enables you to use extended batteries without problem (sometimes they were not being recognized etc.)

Also, I wanted to offer variety, so put SVS and HAVS versions with BFS and CFS schedulers.

EDIT: Setting registers 62 and 63 turns out to be unnecessary, sorry for my misinforming you - I thought it was for some time :)

Well, check and please report the results - I personally don't have any shutdown problems anymore and I even charged my phone off ;) It was 7 am when I unplugged and about 11 pm it was 3% :) Wifi always on ,bluetooth always on. Not bad, huh?
[Desire Android Development] marius.a:
I tried, nothing is changing. I tried many values... nothing.

EDIT: i changed back to my old stock and very old batt. At least was cheap and free transport fron hong kong. Haha. Worth to try it for few bucs.
[Desire Android Development] nomatterbv:
Finaly, I can calibrate the battery now, the learn flag is on now, I couldn't reach at the flag cause the phone was shuting down so I had to play with the reg 66's value and now it's set to b9 (3611). Kinda strange cause last time I reached ~3300.

I hope my batt it's not dying, the age will be like 92%

Also, I played with the Full40 too and I set it to 1489.Now everything is working fine, no shut down, it's charging and learning, current state: 13%, Real-Time Voltage 3908800, Curr. (mA) 546.251, Capp. (mAh) 208, Battery Status Register: 0x37

EDIT: reg 62 and 63 are set to 3360, hex d20 (I have stock 1400mA batt).
[Desire Android Development] theGanymedes:
3611 is a lot I think. Maybe if you were to close applications and get the phone into Airplane mode, you might have gone lower. Alex says he did ;)

If you consider that we're having 3.7 Volt battery, 3.6 is really an overkill.
[Desire Android Development] nomatterbv:
No app is runing/was runing in background, just the calibrator app and I was using airplane mode too, the brightness was set to the lowest value but it didn't work like first time.

Lets see what will happen, I'll post back any news I have.

Thanks for the sugestions ;)
[Desire Android Development] bone069:
Just tried the bfs version and freeze when wating to start facebook application occured again. It works the first 5 mins then I am not able to use it anymore. I am using Sebs AIO like you, too. Just flashed the Droidzone Kernel in my signature and facebook is working well everytime. Very strange and don't know what to do to use one of your kernels. I have already flashed the Rom again but did not solve the issue.

Which kernel are you using?

Another question: Do I have to to calibrate the battery again everytime I flash/update the rom or only when I did a full wipe?

Changing kernel does not need to get a new calibration, isn't it?
[Desire Android Development] carlinho77:
Where is this .zip ?

There are nine files, which should I use? What is the correct order to follow?

This procedure works on MIUI ?
[Desire Android Development] PlayPetepp:
No, read the thread title please:

"[BATT Fix][GB SENSE Kernel] Calibration under Sense and solution for 15% shutdowns!"
[Desire Android Development] carlinho77:
Ok ! However the file named ahmet-exp3.zip there isn't !
[Desire Android Development] Nutterpc:
Well its goin well

To the point, coming up to 2 days now, just went under 50%

Directions were easy to understand as well :) , job well done Ganymede
[Desire Android Development] theGanymedes:
Weird, really. Using the same kernel, same ROM but no problems here :/

No, you need to calibrate, say, every 6 months or 1 year - whenever your desire starts to show weird percentage shows again.

Changing to a BATT-FIX Sense kernel or an AOSP kernel doesn't require calibration, changing to a normal Sense kernel screws up the calibration. You can use Droidzone's latest kernels, if you want to give another try.

Thanks, not everyone agrees with you I think: I still get questions for the answers written 10 times :D
[Desire Android Development] Nutterpc:
Not a worry man

Gunna see how long this charge will last for

So if I want to try to squeeze more out of it, which values do I need to change?
[Desire Android Development] Sally Mack:
I have some weird phenomenon going on where if I load one of your kernels, enter learn mode, then reboot without the learning completing, my phone will go on a boot loop.

The only way to fix it is to flash one of gingercakes' kernels without the battery fix code. Even if I switch to gingercakes', then back to yours, it won't boot.

This happened with your exp3 kernel, then again with your exp4 kernel.

Anyone have any idea what's going on here? I've tried to calibrate a couple times, but both times I ran into issues and can't try again.

Thanks :)
[Desire Android Development] sachin.02:
Can anybody get Me simple solution

I've downloaded battery calibrator app and svs kernel...

Flashing the kernel followed by calibration will solve the problem??
[Desire Android Development] theGanymedes:
I don't have a theory without any log or kmsg output; can you supply any of those?

Also, which ROM, storage config etc. are you using?
[Desire Android Development] theGanymedes:
I'd recommend flashing the kernel prior to calibration cos otherwise app won't show any values :)

The links are at the first post for calibration, please check them - they have the steps.
[Desire Android Development] Sally Mack:
I tried to get a logcat through adb but no luck (phone wouldnt get far enough into boot cycle to be recognized on my computer). Any other way to get it? I have never tried kmsg. I'll google it tonight and see what I can come up with.

ROM: Coolexe BravoS v10

Stock HBOOT, with 1gb ext4 partition

S-OFF
[Desire Android Development] theGanymedes:
I'm totally baffled now: really can't see any reason for that... This weekend I will try to reproduce the problem, maybe I can come up with something...

Weird thing is: Alex tried to calibrate many times and didn't complain about anything like this; me as well..
[Desire Android Development] emf12:
I don't understand one thing : why should i recalybrate my battery when my phone shut down when my battery have only 2% ? This situation happened two times - i descharged my battery from my first "failed "calibration two times and my phone resisted till 2% !

I now i don't seted till now the permanent Full40 because calculation formula and because my Bat age after first calibration is 94% .

So please tell me, do I really must to retry a new calibration?

Thank u!!
[Desire Android Development] SpideRMaN-17:
the problem I am facing after following all steps is that htc desire still powers off when application prompts me to plug in charger (which I plugs in immedietly)

what am I doing wrong ?
[Desire Android Development] theGanymedes:
I really don't understand your problem now; please refrain from using Google Translate English :)

Joke aside; I'm not stating anyone that you should calibrate battery - I'm just offering you a solution. It's up to you to try that or not. If your device shuts down at 2%, it's OK anyway - as long as it goes below 5%, I don't think you need calibration at all.

Note that:

If you charge fully

(it's crucial to do this) and yet when you discharge it goes down to 2%; all you need is a patched kernel - you don't need calibration. If it's dying before it hits 5%; you have to calibrate.

I think you don't understand what battery calibration is.

It's not your fault, but Sense's: Alex found the solution by putting the phone on the Airplane mode and decreasing the battery usage as much as possible when your voltage value gets closer to 3201 (say, at 3400).

It's happening because Sense doesn't put the charger to Fast-charge mode immediately, thus battery is still depleting a little bit even when you plug in your charger. When you decrease your usage to minimum, Sense realizes faster that you've charger in, thus not shutting down your device.
[Desire Android Development] SpideRMaN-17:
thanks a lot .. will plug in at 3400 and post reply . . your support is awesome !!

---------- Post added at 09:04 PM ---------- Previous post was at 08:15 PM ----------

@ theGanymedes

If i leave app to ask me to plugin charger (3201) desire shuts down.

If i wait for voltage to go 3400 or a bit below and plugin charger then desire won't shut down.

[Q] do i have to enable AEF, SEF, LEARNF manually after plugging in charger (3400) ?
[Desire Android Development] zukers:
ehh I don't know which zip to flash bfs, cfs, havs,svs??

I'm using Runnymede AIO 5.0.4 kernel is 2.6.35.10 from droidzone.
[Xperia Play General] tux880:
hi people

i need help acquiring, z steel soldiers psx game i cant find it anywhere there is a psx, sega saturn and dos version of the game i got the dos game but cant get it working in dosbox, and i cant acquire it anyware

can anyone help

PS: i don't mind paying for the game.
[Xperia Play General] LegionTHEFecalExcretion:
playing it right now using the pal psx rom and PSXPERIA, works flawless!
[Xperia Play General] jacklebott:
We're not allowed to tell anyone where to find roms/isos here so if that's what you're after, you're out of luck. Google harder