yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] DirkStorck:
Hope you can help me....I have a new battery...my second new battery.

My old battery has normal readings but the phone shuts off at 10% so I bought a new one.

If I go to the LernPrep tab it shows "Current full 40" as 27306 mAh!

On the LearnMode tab at capa it shows 104856

If I open "Battery Monitor Widget" it shows the battery would have 3902 mv after a full charge.

Is my battery broken? Should I send it back?
[Nexus One Android Development] temasek:
Your battery is useable but not able to perform calibration.
[Nexus One Android Development] $omator:
not fully correct

i remember that other in some thread user had exact same issue (btw use search button)

drained that kind of wrongly reporting battery

on other phone

, and charged fully there. and that solved the issue for him

so

battery is ok

phone is ok

you are unable to calibrate it by yourself due .... i do not know, never had such issue =) but probably your knowhow is not good enought
[Nexus One Android Development] temasek:
Very simple to confirm.

If user can input values in the battery calibration app and the values stick, it is possible to calibrate. But if values doesn't stick then ..... no its not able to calibrate.

By means of calibration, I'm referring to the method and app as per this thread.

Your last statement rather strong. I'm sure you are right and idk anything pertaining to calibration as per this thread.

Have a nice day. :)
[Nexus One Android Development] DirkStorck:
What can I do about the problem that the discharging behavior is very strange?

How do I know if the battery can be calibrated before I buy it or can someone tell me where to by a battery that can be calibrated or at least that works normal?

Thanks!
[Nexus One Android Development] temasek:
U can't tell from the appearance of battery if it can be calibrated. To be on safe side is to buy original battery.

What this thread's method of calibration requires your battery eeprom to be editable. The battery drivers already in supported kernels and by using the app created by dvgrhl, you will be able to calibrate based on method as per this thread.

As per my earlier post, if u can't save values into your battery with the app, then your battery can't be calibrated as per thread's method.

For your new battery, see if the seller willing to replace giving reason that battery cannot be calibrated.
[Nexus One Android Development] DirkStorck:
It looks like to a an original HTC battery....it has the HTC Logo on it and the Part.No is almost identical. New one :35H00132-6M, old one: 35H00132-5M.

It looks like my old battery can be calibrated but for some reason it stopped at 83% and than jumped to 100%. I think I will try it again and kill all apps using the taskmanager before I start to calibrate it.
[Nexus One Android Development] mtw4991:
Killing apps with a taskmanager will not do ANY good. You need to put your phone into Airplane mode once you have achieved Learn Mode and not use the phone(go to bed) for at least 4 hours until it is fully charged and learn mode completes. Then unplug the phone and reboot it. Follow the instructions in OP exactly and you shouldn't have any problems. fyi, task managers are useless with android and cause more problems than they are worth. :D

@Temasek, when did you learn anything about batteries? :D:D;)
[Nexus One Android Development] temasek:
Apparently nothing :p

Perhaps I should retire entirely from N1 threads altogether. :)
[Nexus One Android Development] mtw4991:
LOL, you would be missed...at least get to 1000 thanks, then run..:p
[Nexus One Android Development] 7_michel:
I have got the same HTC battery part number i.e 35H00132-06M . The current , voltage and temperature data given are unrealistic ( see http://78michel.unblog.fr/htc-desire-battery-shutdown-analysis/)

Have you observed the same problem?
[Nexus One Android Development] mtw4991:
What you are observing is that "sometimes" you will buy a no-name, unbranded battery that is programmed correctly at the factory. Most are not. The original N1 and Desire batteries (identical btw) are incorrectly programmed, thus the need to re-program them with the Battery Calibrator app. It basically programs the chip inside the battery thru learning, thus teaching the battery where its' full40 point is and where its' empty voltage point is. Once learning is successfully completed, the battery will charge to 100% and die at 0%/3201mV.
[Nexus One Android Development] 7_michel:
As you may see on the records, the 35H00132-06M battery delivers its full nominal capacity to the phone. To my point of view , this is not a calibration problem.

The problem is with the false given % remaining capacity between the 100% and 0% points and , the most important, the battery temperature measurement which is not working and thus may have safety consequence.
[Nexus One Android Development] mtw4991:
Ah, I may have misunderstood the point you were making. Storage capacity varies with temperature, iirc, and yes, the measurement is a known issue, just not enough of one to warrant further development I believe. Since this thread began, I do not know of anyone who has had any safety issues with the original or replacement batteries, so idk. Feel free to delve into the code and try to correct the temp measurements, but I highly doubt the devs are going to do any more work on this.
[Nexus One Android Development] DirkStorck:
Wish I would never have tried to calibrate my battery...because something must have went wrong. Now my phone does not shutt downn at 15% like before...now it shuts down at 20% :(
[Nexus One Android Development] solidmac:
My phones battery drained this last weekend and ever since it lost its. Calibration. Will I have to Text calibrate every time the battery drains?
[Nexus One Android Development] mtw4991:
Unfortunately, if your battery auto-shutsdown then you will need to recalibrate the battery. An easier method (if you remember) is to take the batterys' age and just input it into the app and save it. You should be really close to the correct readings at that point.
[Nexus One Android Development] ReDeViL:
hi,

i just bought a new battery for my n1 and i'm experiencing weird problems with this app.

at 0%...my voltage is still as high as 4138.5mV, interestingly i noticed that this stays stagnant all the way from XX% battery all the way till 0%...

the phone simply shuts down at 0% w/o going into learning mode....

am i doing something wrong?

tried the steps provided in the 3rd post 3 times but experiencing the same symptoms repeatedly. i also checked that the "ACR adjustment" box is ticked as well...

appreciate any help!
[Nexus One Android Development] mtw4991:
What does your Full40 and Capacity say in the app? If it is some weird number like 25677mV then you have one of the batterys that can't be calibrated :(
[Nexus One Android Development] ReDeViL:
full40 shows 27307, capacity shows 104856......
[Nexus One Android Development] waylo:
Sorry you're out of luck. You got one of the crappy batteries without a programmable chip.
[Nexus One Android Development] ReDeViL:
Wow that sucks, thanks for the help guys.
[Nexus One Android Development] mtw4991:
:( yeah, bummer but it is still useable. You just can't reprogram it. Charge to full and drain it completely until it shuts down a couple of times and you should have a good idea where the empty point is.
[Nexus One Android Development] flacoff:
Followed instructions no problems here. Read most, but not all the thread. tips for readers just getting into this (in addition to READING the entire instructions before starting and FOLLOWING the instructions) all settings and preparations were exactly the same except:

I checked off the auto airplane mode and kept wireless, gps and bluetooth on and brightness at full, until voltage was around say 3.4 volts. I started with a battery that was already drained from a days use, this helps with the time it takes to drain to the empty point. Once I got close to 3.201 I watched it very closely and added 300 mAh (10 x 03), when my mAh got to no less than 230-250.

the phone shut off twice b/c I wasn't paying attention, below 3.4 volts it really started to fall fast. Once I felt the drain was getting close I manually turned airplane mode on and manually turned GPS on, which kept my current above -200 mA with GPS polling.

I sat with the phone in my hand and the charger ready to be plugged in (i also removed it from my otterbox defender case so that nothing would intefer with me plugging in the charger quickly).

Once learn mode was activated and the pop up box and the learn flag came up, I immediately plugged the charger in, then turned off GPS and lowered the brightness to the lowest setting (so that when i turned on the phone to check the current it would not lower it below +20 at the full point, just a precaution really, but do turn off GPS). after about 65%, I just left it over night and did not touch it.

The next morning, I unplugged the charger, and then just powered off (not reboot). once booted up I opened the app and age was 100%

This was performed on an original att ver battery, that had never been calibrated before (should have done it many many months ago, or wait, we are almost talking years here).

I plan to do the learn mode a few more times, (with review of the battery logs) and get the max full40.

Edit: I was thinking of other ways to drain your battery fast. brightness on high, obviously, turn on FM radio (if you have it), then leave the camera on and with longest interval of display timeout, turn on GPS and wifi. that should drain it pretty quick
[Nexus One Android Development] mtw4991:
Sounds like you got the hang of it pretty well!:p
[Nexus One Android Development] heinz gruber:
i it possible that a calibrated battery fogets the calibration?

I'm using for almost one year a perfect calibrated battery. loads to 100 and shuts down at 0. yesterday my phone shut down at 9%.
[Nexus One Android Development] :
Yes very easily. Just recalibrate.
[Nexus One Android Development] heinz gruber:
oh, no! that's stupid. thought it write it in the rom of the battery.
[Nexus One Android Development] waylo:
Well did the age reset (does this every time the battery gets drained and phone shuts down) or is the age it was determined just not right?

If it's the second, probably need to recalibrate. If it's the first, just reprogram the age again without recalibrate.
[Nexus One Android Development] pgr1979:
hi, i' m trying to perform the calibration for the battery of my N1 with stock battery (8 months usage).

First time battery age was 94%, I followed instructions of third post but the low level was 3416 mv and not 3201mV as decribed here (in fact also on Learn Mode tab it shows 3416 mV..) so the phone turned off.

I repeat the procedure, when voltage is close to 3201mV I closed all the running process except the permanent ones this and set setcpu to not underclock.

I plugged in the power supply immediately when the signal turns on (~ 3416 mV)

I left the phone to charge nighttime , reboot in the morning and now battery age from 94% is 84% :(

- did I make any mistake ?

- is it important the start Voltage level for LearnPrep procedure? :confused:

- is it normal that airplane mode is continuously automatically triggered and deactivated both during the learn prep and learn mode?? :confused:
[Nexus One Android Development] bassmadrigal:
That IS correct. 84% means that the battery holds 84% of its original capacity. This occurs because of natural degradation of the Li-Ion battery cells. If you get a 94% or 100%, then most likely it means that it did not properly complete its calibration.
[Nexus One Android Development] Dr Byte:
The first sign that you didn't follow the instructions is that it used the default AEV (3416) however, I recommend that you leave it there anyway. This leads me to suspect that you didn't set the age to 100 before starting the calibration either... which may or may not affect the final age that you get.

Yes. Read the instructions again. First change the AEV to 3201 and VERIFY that it is set by looking at the start-screen of the application (if you are changing it from 3416, which I don't think is a particularly good idea)

Yes (Allow at least 150-200mAh and 100mV margin) and yes.

If you repeat the procedure again, checking all the above, you might get a better result. To repeat:

Use the register-set function to apply the new AEV (if any) and confirm it is set on the home page

Set the age to 100% and confirm it is set on the home page

Start the procedure well before empty (as above)

Enable the ACR adjustment (indeed, all the boxes on the advanced screen)

Kill off anything that may draw current late in the calibration process, thus triggering the end-of-charge conditions.

If at all possible, charge using a PC USB port instead of the mains AC charger. A long, slow charge will give the best result.

Allow 7-10 hours for PC, 4.5 hours for mains - and NO PEEKING.

To put it another way, leave it for 2-3 hours after you see the green light for PC charging, and 1-1.5 hours for mains. The green light comes on at 90% but the last 10% of the charge takes a long time compared to the first 10%.
[Nexus One Android Development] theloginwithnoname:
One of the very essences of the project, my friend - that the battery learns but does not persist age correctly.

Looking back on it, I'm absolutely gobsmacked Google allowed HTC to use such a nasty/cheap battery...
[Nexus One Android Development] Dr Byte:
And I'm still gobsmacked that even today, HTC, Samsung and everyone else are installing such tiny batteries in all their phones, making us behave like actually turning on the phone and using it might 'hurt' it, and not last long enough to get to a charger.

Time for 2500-3000mAh batteries to become the norm!

I would much rather have a 12-15mm thick phone that lasts for 2-3 days of heavy use than one that needs a case on it to be thick enough to hold!

Designed properly, it could take the entire back of the phone and not only provide some RF shielding, but contain the antennae too.

Having said that, I've finally got mine to the point where my Desire is running at rather less than 1% per hour on standby (with everything still turned on: sync, wifi, 3g data...) Just checked it, at 24 hours, the battery was at 80% despite a 10 minute phone call yesterday :)
[Nexus One Android Development] theloginwithnoname:
Welcome to the Galaxy Note! My sentiments exactly, and why I bought one. 2500mAh and 2 days of usage, and that is sub-optimised (i.e. no CM, some Samsung bloatware still installed).

Niiiice. Never got my N1 to the nirvana that is 1%/hr drain!

</off-topic>:)
[Nexus One Android Development] mtw4991:
Glad to see you guys still around ocassionally :D Seems this thread is very persistant, lol, although it has taught me that many can't read.:p
[Nexus One Android Development] pgr1979:
thanks for your complete reply, I will try following these accurate steps.

So AEV 3201 , age to 100 and verification in the start screen.

One additional question: can I start the procedure with battery level at every % or have I to start at 100% and having all the battery drained?

everything clear except if it is possible to not check the airlplane mode on/off and having for all the procedure airplane mode always on manually in order to avoid call, input from data (something that can trigger some apps.. i.e. email or facebook ..)

thanks in advance for your help :)
[Nexus One Android Development] pgr1979:
Use the register-set function to apply the new AEV (if any) and confirm it is set on the home page

Set the age to 100% and confirm it is set on the home page

Start the procedure well before empty (as above)

Enable the ACR adjustment (indeed, all the boxes on the advanced screen)

Kill off anything that may draw current late in the calibration process, thus triggering the end-of-charge conditions.

thanks for your help and sorry for my English.

I repeated the procedure following 3rd post, so I set in the Learn Prep tab: registers , age to 100% and confirmed as described here:

attached a screenshot of the first page, it seems to me that nothing changes :confused:

what are the fields that should be updated after my settings? full40, battery age are still the same? what is aEvolts corresponding value?

after that unfortunately when I start to drain the battery it reached 1% and Nexus turned off well before 3201 mV (it was around 3500 mV). What is wrong in my procedure?

thanks again for your support! ;)
[Nexus One Android Development] Dr Byte:
Exactly. The screen grab proves that you aren't following the procedure. Min Chg Curr is still 80, Batt Age is 94 (not 100) and Empty Volt is 3.416 instead of 3.216 (assuming that you intended to change it, which I don't unless it's an old battery).

You are also starting too late in the discharge cycle. You need much more than 41mAh left for the auto adjustment (AEV) to cut in; I found that it didn't work unless I started at over 200mAh.

The procedure also tells you how to boost this "rubbery" 41mAh number by 100mAh (register 10). Since your battery is at 3654mV at this point, I would expect it to be around 300mAh - so fix that with the register.

I can only assume that you are not pressing "OK" and "Save" buttons in the prep screen, have not got a ROM that supports the calibration procedure (no battery driver), or just aren't reading the instructions.

The phone will power off when that 41mAh goes to zero, no matter what the % or mV shows. That's the whole point of this procedure: to have them all agreeing "empty" at the same time.

If you can't set "Batt age %" from 94 to 100 on the LearnPrep page, give up. You aren't going to work out the rest if you can't get that basic step right.
[Nexus One Android Development] pgr1979:
Ok, this is the point.

I am now with the last available nightly Cyanogenmod, probably I have to try after flashing a different rom? Or version 6?

Thanks for your patience :-)
[Nexus One Android Development] mtw4991:
fyi, most roms/kernels will NOT have the ds-2784 battery files for this to work. Look in /sys/devices/platform/ds2784-battery, if ds-2784-battery isn't there then this will not work on it.
[Nexus One Android Development] pgr1979:
very strange, I checked with root explorer and I have this dir with files inside (CM7 nightly 11 15 2011), but with battery calibrator seems that I am not able to modify anything... :-(
[Nexus One Android Development] bassmadrigal:
Is your battery a 3rd-party replacement? Some of them are unable to be calibrated.
[Nexus One Android Development] pgr1979:
no, it's original battery :(
[Nexus One Android Development] Dr Byte:
Just did a calibration run on my newish battery, because it was at least 9% off at empty. Yet another bust. Will see if it runs down below 9% this time.

ACR Adjustment is really hit-and-miss on my phone; it works about one time in 20 or more. Both batteries.

I tried pushing values into register 10 to compensate to make sure it ran all the way down to 3.416V, but this never registered on the first panel. Age, AEV, and Min.Charge.Current all changed properly.

On a whim, I tried pushing "10" into register 10, and lo! it did change the "remaining mAh", to about 1716mAh (from zero)... both times I tried it. One time, it stayed at zero but showed at 1716 after I restarted the calibration app.

Same result though as the other battery: resultant age was 100%, 1438mAh. Either my phone or BOTH my batteries have a data-path problem with writing to the chip. :(

I'll need to do another calibration run because the battery was quite hot when I started this one, and it took five attempts to get learn mode to trigger (because ACR adjustment didn't kick in, and register 10 didn't work with values <10). It simply powered off. :(

[19659.051849] batt: 91%, 4182 mV, 24 mA (24 avg), 31.0 C, 1307 mAh, CM=1
[19709.371520] batt: 91%, 4182 mV, 24 mA (24 avg), 31.0 C, 1307 mAh, CM=1
[19759.482940] batt: 91%, 4182 mV, 23 mA (24 avg), 31.0 C, 1307 mAh, CM=1
[19809.619445] batt: 91%, 4182 mV, 23 mA (22 avg), 31.0 C, 1307 mAh, CM=1
[19867.305145] batt: 100%, 4182 mV, 24 mA (17 avg), 31.0 C, 1440 mAh, CM=1
[19867.350280] batt: charging BATTOFF [FULL]
[19917.465301] batt: 100%, 4177 mV, 0 mA (0 avg), 31.0 C, 1440 mAh, CM=3
[19967.664306] batt: 100%, 4177 mV, 0 mA (0 avg), 31.0 C, 1440 mAh, CM=3
[20017.789123] batt: 100%, 4177 mV, 0 mA (0 avg), 31.0 C, 1440 mAh, CM=3

However, in CurrentWidget.log overnight, I am seeing values down as low as -1mA quite frequently now - possibly because this operation failed, but mostly because I now operate the phone in "3G voice only" mode while I sleep, reaching 5d 18h on the marathon run where it died at 9%.

Edit: No, the reason is that the app left the phone in Airplane mode, and that 'stuck' after a reboot. Still notable that it is recording 1mA where Airplane was 2-3 before. Hmmmmmm. However, "Overnight" mode is back to 3mA with an occasional 4mA. KNEW it was too good to be true :)

I don't think a 40ish-cycle battery used for about 80 days could possibly have aged to 90% already, let alone run for the better part of six days without a charge. Something is not right in the state of Denmark, as they say.

I know it's not the software, because plenty of others use the same .apk I do, so it must be something to do with my hardware... but damn, this phone is a pain to calibrate!

PS: anyone know of a "filter" program to convert the timestamps in a kernel log to time-since-boot or wall-clock time?
[Nexus One Android Development] boardlord:
Hello!

I'm one of the few unlucky whose replacement battery cannot be calibrated

(full 40: 27 306). As I surmised from this thread this doesn't necessarily mean that my battery is a knock-off (is there a way to check this definitely?).

However, the battery's charge is decreasing at a phenomenal rate (for ex: more than 12% in airplane mode in ~7 hours!). I wiped the battery stats when it was charged to 100%. This kind of drain does not happen with my 2year-old original battery...

So, either the reported stats are way off despite the wipe, or I have a knock-off, right?

The packaging seemed kosher to me (but that doesn't count anything in today's world...).
[Nexus One Android Development] 7_michel:
What is the part number of your new battery?

I have had a very bad experience with a HTC Desire battery P/N 35H00132-06M

I made some annalysis here http://78michel.unblog.fr/htc-desire-battery-shutdown-analysis/
[Nexus One Android Development] boardlord:
Hi!

Here it is: P/N 35H00132-05M.

Since the drain continued today (from 86% to 25% between 7am and 1pm with minimal usage) I decided to have it replaced. The new one will arrive next Tuesday or Wednesday and hopefully it will work as expected and it will be able to be calibrated...
[Nexus One Android Development] 7_michel:
In my opinion battery calibration is only necessary when the battery get old and has lost some significant amount of its original capacity ( like the xxx-01M and xxx.05M shown in my analysis). Normally a stock battery should be calibrated when its came.

As an example the ''unbranded battery'' I checked for comparison come calibrated too. I am using it without any problem since then.....