yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] theGanymedes:
Seems like my battery after one year...

It seems like your battery has successfully been calibrated. Now, unless you change your Full40 value manually - YOU SHOULD NEVER PLUG IN THE CHARGER WHEN YOUR DEVICE IS OFF; ergo you should never deplete your battery completely..

IF you want the freedom to charge when your device is off, too; you should tweak the Full40 value. In order to do that, you should go to the second tab of the battery calibrator application and write Full40 value as (1400 * 0.82 (this is your battery age calculated) = 1148) and then save it. After this, deplete your battery to some level lower than 89% (say, 80%) and then recharge to full WHILE YOUR DEVICE IS ON.

And voilâ. Now you can charge your phone off too, because you've proven that you like to do some geek stuff in order to achieve what you wanted. Kudos to you :)
[Nexus One Android Development] Drapsthomas:
shud be multiplying it with 1452? or 1400?

also the app says set to a value between 1200-3700, cant set it to 1148

EDIT

Just read ur post.. so I multiplied 1452 by .82 and then divided by.94 and got 1266.6... I'm guessing that's the value I should enter? And then charge to full?
[Nexus One Android Development] black_eagle5000:
After doing exactly what @mtw4991 said, my batter age reduce from 94% to 82% after restarting (Not 100% like @mtw4991 said :( ) . But my phone shut down at 0 - 2 %. It has been acttually worked for 2 days.

Until day 3, my phone reverted back to normal, shutdown at 17%, battery age went back to 94%. N now it takes very long time to charge, about 5 hours, from 0 - 90 % very fast, but from 90% - 100% is very long, takes about 2.5 hours :(

I am using MIUI 2.3.30. When finish, register status show 0x81, i restarted my phone then above problem happened. Did I do anything wrong?
[Nexus One Android Development] Drapsthomas:
Fake full 40 and no discharge

So I changed my full40 to 1267 and recharged to 100% and after ten minutes of 3G with torch and what not.. Charge still showing 100 % ..oh ho?

Update

Still showing 100 % at 25 minutes.. Tried rebooting.. No effect

Update2

Started discharging at around 35 minutes.. and it's running now.. 90% at 50 minutes
[Nexus One Android Development] Drapsthomas:
Anyways, one last doubt, planning to change partition using black rose, will this do anything to my current calibration

This is not the end, Nexus One will be back.
[Nexus One Android Development] taodan:
When you change the partition layout, you will have to format all partitions that means your calibration will also erased.
[Nexus One Android Development] Drapsthomas:
even if I do a a full backup and restore?
[Nexus One Android Development] theGanymedes:
Don't worry, your calibration won't reset - the calibration is done on Battery Chip itself; as long as you don't do some rewriting on it, it won't change (charging when phone is off is resetting the chip's "age" variable to factory default - it's why charging when your device is off is a bad thing; but partitions has nothing to do with batt. calibration).

As I said in paranthesis, charging when phone is off is resetting the battery chip's "age" variable's value; it's why we change Full40 value accorgingly - to compensate for the age variable using Full40 manipulation - since that value is never overwritten if we don't change it ;)

And another point, I said 1400 in a few posts ago - it should have been 1452
[Nexus One Android Development] skilqki:
callibration problem !!

ok so i installed the kernal with the bat fix the latest version from the posts I installed batt callibrator and sett all the needet info but i can`t callibrate my batt cuz my phone shuts down at 16 15 % but the voltage (mV) is more then 3201 as in the guide ..... can anyone help me ?
[Nexus One Android Development] Drapsthomas:
This is a bit tricky, you should switch off almost everything when you reach 15 and it will take sometime to reach 3201.. also note that one out reaches 3300 it goes rapidly to 3201..

This is not the end, Nexus One will be back.
[Nexus One Android Development] skilqki:
well i managed to drop the numbers to 3242 befor phone shutdown and made the calibration i hope it`ll work roght for now the batt is good lasting longer then befor from 5 pm till now using the phone on wifi nonstop dling programs setting the rom and so on ... and its bout 62% atm :) which is good i hope i made all right :)
[Nexus One Android Development] Drapsthomas:
Will under locking the processor increase the battery life.. I searched the forums and got contrasting views..
[Nexus One Android Development] Logic_:
In theory, yes your CPU will consume less power. In practice, you might keep your screen open longer, waiting for your CPU. And in the end the screen consumes the most.
[Nexus One Android Development] hgmichna:
Even that is questionable. The CPU will use more power when overclocked, but it will also get the job done in less time. The first, raw guess is that the two effects cancel each other out.

Conversely, the CPU will use less power when underclocked, but it will have to run longer to get the job done.

I believe that a CPU under heavy load should run as fast as possible without overheating and without errors. After all that is its purpose.
[Nexus One Android Development] Drapsthomas:
is it normal to get 100% batttery age after a cycle? its 2 years old
[Nexus One Android Development] theGanymedes:
No, it's definitely not calibrated.. Try again.
[Nexus One Android Development] Drapsthomas:
yup it was, set it to 81..

now i hav set my fake full acc to 1452x 0.81 /0.94.. it came to 1251.2.. shud i enter 1251 or 1252?
[Nexus One Android Development] theGanymedes:
It's no big deal, but I usually round up.
[Nexus One Android Development] Drapsthomas:
drain

after my last calibration i found that my battery staarted drianing fully after 5 hrs.. 80% was the recalibrated percentage, 5 hrs seem short for 80%, uninstalled the calibration program and the abttery life has imporved, anybody else seen this?
[Nexus One Android Development] wild_oscar:
The same thing happens to me - I've tried this around 10 times now.

I've followed the procedure after finding this thread from http://xdaforums.com/showthread.php?t=1534892 but can't seem to do it.

Any ideas on how to proceed? Phone always dies after 20 seconds of having inserted the USB plug.
[Nexus One Android Development] theorist16:
Great thread - have used this now to calibrate my battery (HTC Desire). It took 2 goes to get this right but it now reports an age of 77% (battery more than 2 years old). I now want to make this change stick in case I want to charge when off. So I follow the thread and compute:

full40 = 1452 * 0.77/0.94 = 1189

Now the trouble is when I go to edit full40 with this value it only accepts values greater than 1200.

I have put 1200 in as it is pretty close to the value I want, but why this restriction?
[Nexus One Android Development] RogerPodacter:
Ah sorry, I think we put a hard limit to not go below 1200 if I remember correctly. Your option is to write the value manually rather than using the app. You'd have to use root explorer and input into tgr actual files via hex numbers, like we discussed way back in this thread. Or use terminal to do it. Sorry.
[Nexus One Android Development] amibumping:
Can anyone explain me when to put this value? I don't understand it.

Thanks.
[Nexus One Android Development] meechto:
If I am not wrong, the steps you are referring to are:

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)

After you have input the values mentioned in step a, press save. Upon pressing save, both the boxes in which you had input the two values in step a will become empty. You can now use these boxes for entering the values mentioned in step b

Hope that helps ;)
[Nexus One Android Development] amibumping:
Helps a lot, so many thanks.

:good:
[Nexus One Android Development] Neo.Collin:
Does this not work with Sense ROM's? Its not reading any battery settings!
[Nexus One Android Development] tommert38:
If the Sense kernel doesn't support this, you're out of luck.
[Nexus One Android Development] Neo.Collin:
Here's my situation. 3 weeks back, I was contemplating battery replacement and was flashing multiple ROM's to decide on which one to use for few months without going back and forth between MIUI GB & JB ROM's. One day my battery decides to give me ONLY 8 hrs backup. The previous day I was getting 26-28 hrs backup. Since then I have tried all ROMS out there for Nexus one, same result! 8 Hrs. The battery jumps from 80% to 100% while charging and shuts off @ 20%. This was like I was on a ROM the previous day with proper backup (The battery used to jump from 80% to 100% while charging and shuts off @ 20%.) since almost 5-6 months with still 26-28 hr backup (minimal use).

I thought battery is bad and ordered an after market battery capacity 2450. I received it 2 days back and with 3 different ROMS it gives me 12 hr backup on minimal use.I'm trying battery calibration, but with no luck, the low value the learn tab shows is 3416 rather than 3201 and full40 shows 27306. Voltage is 4138.45 and current 428 and both are constant and doesn't change at all..

I forgot to add - charging 15 mins bumps the charge in new battery to 30%!

With my old battery i'm able to achieve learn mode and do a full charge for 4 hrs 30 mins. The battery shows still 100% (post restart) but again, I get 8hrs backup.

Any help would be greatly appreciated!
[Nexus One Android Development] nAFaNyA99:
Good day, sirs.

So, I have HTC Desire with FCR MIUI R63.9 firmware on board and native battery.

I have tried differently, but Nexus One Battery Calibrator 1.3.0 drops with error. Most of all it drops when I'm charging (usually 2-3 minutes after starting the charge). But sometimes it drops in discharging time.

I have tried enable\disable ACR adjustment, GPS, etc - ineffectually

When program was dropped, I have to turn it on again and continue to charge. But also no result, cuz phone would been uncalibrated soon. (by reason of dropping program i think)

What should I do, sirs?
[Nexus One Android Development] bassmadrigal:
When you say dropped, what do you mean? Does the program exit? It shouldn't exit unless you maybe brought it to the background.

When you do this process, you can't be doing anything else on your phone. You want to exit all background apps along with putting the device in airplane mode (to prevent getting a call or text and screwing everything up). Basically, you want to minimize the power draw on the device while it is doing the calibration. When I used to do this (I no longer use my N1 consistently), I would enable the option to keep the screen on while charging, and I would exit every single app on the phone and then start the process.
[Nexus One Android Development] nAFaNyA99:
bassmadrigal, I mean...when app drops, it says "Application (battery calibrator) has stopped unexpectedly. Try again." or something like that.

When calibrating is in progress, I hadn't tought the phone. All background apps was cleared and closed. Phone was in airplane mode.
[Nexus One Android Development] t-minik:
Hi all

I just bought a new mugen 1600mah battery cause my old was dead.

after some charge/discharge cycles i installed Battery callibrator to see how it works and you can see in pictures what i get just before it shut down.

I can see a "min charging volt" at 3.006v but my phone shut down around 3.750v.

full40 is set to 1452 but it should probably be 1650.

do you think a callibration could be good for me ?

Best regrads.
[Nexus One Android Development] abaaaabbbb63:
Hi.

What do I do if my phone shuts down at 20%, when it didn't reach the right voltage for learn mode to start?

I mean, I try to drain my battery, but it doesn't go lower than 3550mV, and learn mode starts at 3201mV.
[Nexus One Android Development] elartista3390:
battery repair and battery calibration:good:
[Nexus One Android Development] hmuboy:
what app did you use in the picture attached ? I have been looking for an app which show me the mAh of the battery for a long time :D
[Nexus One Android Development] abaaaabbbb63:
Like, are you kidding me?!

That app is kind of one of the purposes of this thread... Read the op.
[Nexus One Android Development] hmuboy:
sorryf for this stupid quétion :D.

Thatapp 's so greattttt !!!
[Nexus One Android Development] vadimgutu:
One question gentlemen: Does the battery have to be fully charged before doing the Learning Cycle?

Thank you.
[Nexus One Android Development] django k:
What does status register 0x87 after a learn cycle mean?

Sent from my HTC Desire
[Nexus One Android Development] psychosonic:
OEM battery. CM 7.2.

Learn mode is on, phone shuts down at 3.34 mv

what do
[Nexus One Android Development] jukyO:
Is this a bit strange? New battery, declared capacity is 2430 mAh:
[Nexus One Android Development] Akram-aat:
Hello I've problem if I charge from PC or laptop and using phone while charging it got 100℅ suddenly !!???
[Nexus One Android Development] j3di:
Yes I'm root. I used su first. Thanks, didn't know about whoami.

Still getting [cannot create setreg: read-only file system]
[Nexus One Android Development] RogerPodacter:
if you really were doing echo 10 1 i dont think 1 is enough as it might actually lower your voltage, i havent tested lately. i've always done echo 10 3 or higher.

echo 10 03 bumps to about 330mAh

echo 10 04 bumps to about 400 mAh

echo 10 05 bumps to about 500 mAh

so you obviously only want to use those if your actual mAh is lower than any of those, otherwise you are bumping yourself down a notch. i just use them in case i'm gonna run out which you obviouly see now how it works. maybe just dont try 1.
[Nexus One Android Development] BakaPhoenix:
i have a problem with the batterycalibration app, when i go into learn mode my nexus one died before the learn flag activate, shoul i activate manually before the nexus shut down?
[Nexus One Android Development] RogerPodacter:
yeah i usually just type SU when i start my terminal session to grant privaledges. cant remember if its needed or not, but it probably is;).

you can also use a file explorer such as root ex.
[Nexus One Android Development] RogerPodacter:
well then are you sure you have navigated to the location of the setreg file which is in sys/devices/platform/ds2784-battery/?
[Nexus One Android Development] j3di:
Many thanks! I knew I was miles off! I was in sys/devices/w1*/32-* for some crazy reason!!
[Nexus One Android Development] RogerPodacter:
interestingly has anyone ever messed around in that w1 bus master folder and seen those files? anything that can be done with those?
[Nexus One Android Development] theloginwithnoname:
To contradict myself, you only need to be root to write to it (as the permissions on the virtual files are 644).

A bit of *nix filesystem 101:

file permissions are broken into three digits. The 1st is owner, the 2nd is group, the 3rd is other/anyone. 6 refers to read-write (rw), 4 is read. Therefore 644 is rw-r--r--

ls -l shows permissions. it also shows owner and group (the two columns after the permissions). These files are owner:root, group:root

if we changed the code to create the files as 666, anyone could write to them. Which we won't be doing as it's a very bad idea!
[Nexus One Android Development] RogerPodacter:
it "should" be resolved after a learn cycle, but i'm not so sure considering i dont understand why your problem is there to begin with. are you saying your mAh just suddenly drops from 200 to zero in an instant? or are you just running out of mAh? you should check what your full40 value is set to. and i guess post a log the next time you are entering this situation so we can see exactly what is going on. anytime you shut down at 3.5volts before empty volt is reached means you are not using all of your battery's capacity and something isnt right.
[Nexus One Android Development] RogerPodacter:
you know there's one more thing i completely forgot to consider for those of you who do not see the learn flag turn on, and that is the AEcurrent. the data sheet says that the empty point is reached when AEvolt is crossed with 2 consecutive readings above AEcurrent. so our AEcurrent register is set to -200mA. so what this means is that if you are waiting for learn and the current is only pulling down -130mA then only the AEF and SEF will be tripped but the learn flah will never go off. i never considered it because my current is pretty much always above 200mA when i'm doing all this.

but as a test i jacked up my AEcurrent value to something unattainable like 1200mA (which is near impossible for our phones to ever pull down) and sure enough only the AEF and SEF ever go off no matter what i do. so maybe for those of you who dont see the learn flag are under the AEcurrent threashold of 200mA.

i think another feedback for the app is we should add current and mAh to the learn mode activity so we can see all this in real time.
[Nexus One Android Development] RogerPodacter:
yeah i think using the phone while learn is in progress can increase chances that it will fail in the middle. certainly if you are using it and hammer it enough to drop the current going into the battery low enough it could potentially interrupt the learn cycle. for example i've tried learn cycle on USB connection and the current is low enough that if you hammer the battery it can actually pull the current down low, even though you are plugged in. but using A/C wall charger puts out a much more stable and higher current feed, so its not as easy to interrupt it. nonetheless its probably still possible to mess with it.

besides i like to leave it alone during learn because once it approaches near the full point, the current becomes very sensitive to loads placed on the battery. and i've actually been able to artificially set CHGTF and indicate a full charge just by using the phone when it was approaching the top. for example if its only pulling 90mA and getting close to finish, open up google maps and scroll around, you could drop that current to below 20mA (or whatever your setpoint is) temporarily and thus set off the full charge flag. now you've not gotten the full range of the learn cycle as it was artificially "limited" in a way by placing a high load on the battery.
[Nexus One Android Development] zdiamant:
Thanks for your reply...

My mAh slowly drops until it hits <20mAh, then the phone shuts off. At that time, I still have >3.5V left on the voltage meter. Last night I set 0x01 to 3 and was able to set the learn flag, I plugged in, but batt status register almost immediately went to 0x73 then 0x33 while charging. I just left it over night, and it's still at 56% today with mild use. I currently have 3.8V with 764mAh left.

Also, the 0x01 register still reads 03, and didn't reset to 0---is that a problem?

Full40 is set at 1452, without manual setting. I did set 0x66 to a4 to see if that helps.

Anything else I should do?
[Nexus One Android Development] temasek:
Did you set your age to 100? Your mAh cannot die before your voltage to start a learning cycle.
[Nexus One Android Development] mtw4991:
That would explain it, as the first (and only) time I hit learn I had the torch on to drain the battery and the rest of the time current was around 120-130mV and I couldn't get the damn learn flag to set no matter what I tried. I'll test next time also.
[Nexus One Android Development] shorza:
Same thing happened to me also.
[Nexus One Android Development] k3vink3vin:
thanks for the update, just wondering has anyone been able to reach learn mode thus receive the learn mode alert with the most recent version of the app?
[Nexus One Android Development] samarium:
twice in 2 attempts. see my post below for how i was poking 0x10.
[Nexus One Android Development] mtw4991:
what about this: if learn is hit, set to airplane mode and end all apps to minimize the chance anything opening up and pulling excessive amperage near the end. Shouldn't be an issue if we need to not use the phone during this cycle anyway, right?
[Nexus One Android Development] j3di:
Frustrating after noon, Batt Age set to 100%, kept getting down to 3.42/3.41v had AEF and SEF flags on but just powered down at the final second. Tried 0x10 03/04 but had the same result each time. Had radio and Wifi on to keep current draw at a decent level.

Fingers x'd you can make some more inroads with the software to automate this ;-)
[Nexus One Android Development] mtw4991:
getting close to trying again...does age need to be set to 100% for an accurate learn? I've currently got it at 1558@81%=1260mAh. The 1260 is my last full40 jump point. Advice...quickly, lol?
[Nexus One Android Development] j3di:
Definately Age@100% !! That's all I can offer!
[Nexus One Android Development] RogerPodacter:
It's better with age set to 100, but it really won't matter if you're getting close to try right now. So just leave it as is.

Age at 100 but then you would need to charge to full once to line up your newly set age with the full40 value. Since you're half way thru, you can prob go either way setting age or not.
[Nexus One Android Development] mtw4991:
mv is currently at 3649, 11% remaining with 139mAh, ae 3201, full40 1558, age 81%....

gonna need to bump up the mAh or it will die prior to mV reaching 3201 probably...

EDIT: just hit 10% with 126mAh remaining, which is exactly 81% of 1558 with 3654mV left...wonder if it might actually make it to 0%???
[Nexus One Android Development] RogerPodacter:
you definitely will probably make it to zero, especially since your age seems to be close to your correct actual age. but you definitely will probably run out of mAh before reaching empty volt, or they will likely hit together at the same time, meaning the learn flag may or may not turn on. having the volt reached first guarantees it will turn on though (well, most of the time!).
[Nexus One Android Development] mtw4991:
definitely probably....I love science:D stay tuned...;)
[Nexus One Android Development] RogerPodacter:
i love the fact that we are actually hacking the battery of all things:D...3 months ago i'd never even think that was possible!
[Nexus One Android Development] mtw4991:
so true, crazy ****e! had to 0x10 03 cuz just now got under 3600mV, lol. damn slow!
[Nexus One Android Development] mtw4991:
HOLY ****!!! Finally hit the effing learn mode again! Gonna try killing all apps, then go to airplane mode and do an on-charge to full. WOOT!:p:D

Edit: not gonna kill all, leaving the battery app active, airplane and silent both on, screen off....lunchtime for the next 3 hours, lol. The key was really keeping current draw above -200mV. I kept flashlight and wifi hotspot on, fyi.
[Nexus One Android Development] j3di:
Think I got more charge now after the playing this afternoon even though I didn't get into Learn mode.

Capacity 1432/Full40 1452/Age 94.

Will try again when I've used a few coulombs!
[Nexus One Android Development] mtw4991:
quick question, now that I'm at 0x31>>0x11 in learn mode, can I reset age to 100 and full 40 to 1452 to get a truer idea of age to set it to after full on-charge? this is assuming learn completes to 100%.

Also, what is the code to reset full40 to 1452? Thanks!

EDIT: nm, I reset age to 100 and left full40 at 1558 since I'm just trying to calculate a truer capacity/age.
[Nexus One Android Development] RogerPodacter:
Well I'm not sure what happens if you change the age value in the middle of a learn cycle. Probably nothing and it will just change to your new age upon completion of the learn. But it will use your altered full40 value during this learn. So you may have to change full40 back to stock and re do the learn cycle. Not really sure...