yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] mtw4991:
Ok, I hit learn again and I'm set at 100/1452/3201...let's see if we can complete the cycle this time! not gonna put any load on it at all while charging. I just don't understand why learn failed in airplane mode/sound off/kill all apps yesterday.

I suspect that I'll see another jump point this time around due to changes made in mid-charge yesterday. If so, I'll drain again leaving these settings unchanged and try again...some combination has to work for a full learn cycle!
[Nexus One Android Development] chowlala:
Ok. Will link it up once I get to the office. Let me just spam this so that it stays somewhere on a more current post. Haha.
[Nexus One Android Development] lojden:
Set age to 100 and drained battery, charged with phone off in 8 hours
[Nexus One Android Development] theloginwithnoname:
Unfortunately I doubt you hit learn - worth re-iterating: ** 94% usually = failed to learn **
[Nexus One Android Development] RogerPodacter:
yeah people around the web are calling that method "bump" charging. the thing i dont understand is HTC said the green light means the battery is full. but we all know that the nexus one green light comes on at 90% when it is being charged. and it still has another 10% to go to 100%. so why would they say that? OF COURSE if you immediately take if off the charger when it turns green then it will still be able to take more charge, cause its only at 90%!!!!
[Nexus One Android Development] knightnz:
Would there be any benefit to wiping the battery history before/after using HTC's method?

I'm running mine to near-empty now for a decent cycle, at this rate I'll have eked about 44 hours out of a charge with a couple of (short) phone calls a bit of web browsing and a bunch of texting, yay! (It goes into airplane mode from midnight until 6:30am which would help a lot)
[Nexus One Android Development] rori~:
Well, seems like this "bump" charging works :)
[Nexus One Android Development] JoelOFH:
WOW. The HTC rep was 100% correct. I run Cyanogen which dumps 10% of the battery within 15 minutes (literally). However, after doing this calibration, I have a 99% battery 45 minutes into the day! SCCCOOOOREEE! :D:D:D:D
[Nexus One Android Development] knightnz:
I just drained mine down to about 3% and it turned off, I used HTC's recommended charging procedure and it got the phone to 4157mV @ 1460mAh. Usually it drops to 99% almost immediately after booting, so far it's been sitting on 100% for about 5 minutes which is promising.

I also reset the battery stats on the 1st reboot which may help things.

Will be interesting to see how long it lasts. Running CM5.0.8 with JuiceDefender putting it into Airplane mode from Midnight-6:30am, running a 925mV kernel @ 883Mhz (yes, underclocked). Should be good for a couple of days at least, charging every day is a pain. Unfortunately 2G is not an option, my network is 3G only.
[Nexus One Android Development] MTGap:
So far the posted method has worked well! Is this typical with lithium ion batteries or just the Nexus One?

However it didn't seem to work exactly as the instructions said. After I turned on my device and shut down and plugged the charger back in, the LED was green so I don't think it charged anymore. I didn't exactly watch it to unplug it when it turned green right away at each step.

Still good results.
[Nexus One Android Development] Marine6680:
Yes I know that. ;) (read some of my earlier posts about how Li-ion charges) I was meaning that when charging with the device on, the green LED turns on around the 90% mark; if the device is off, its good just to make sure the same sort of situation is not happening.
[Nexus One Android Development] Marine6680:
This bump charging may cause the battery stats to be corrected somehow.

It could also be that the last few charges, are done at the slower (lower amp) phase; a bit like forcing several trickle charges into the battery to max out the pack. This repeated power on then off then charge, may force the battery to truly take in those last few mAh and really peak the battery voltage. (fully charged a Li-ion battery will sit around 4.25V at least)

Actually it is probably both of those reasons, the charging forces the battery to peak out as high as it can; the battery stats file then reads this as the fully charged state, and can charge a bit more aggressively afterwards.
[Nexus One Android Development] theloginwithnoname:
Good points Roger - especially the last steps (when fully charged when off, disconnect, turn on, turn off, then charge until light green) - I can pretty much guarantee it will *always* be green if it's been charged on then charged off!

However, there maybe some must-do's in there. For example, fully charging (to green light or to 100%? I'd say 100%) whilst on will help recalibrate the battery stats. Then, because we know it doesn't fully charge, turning it off and charging to full will really top the battery up. The last steps (as above) are probably in case people were a bit hasty on the previous steps and can probably be discounted if the off-charge is done overnight?
[Nexus One Android Development] theloginwithnoname:
Good question and a bit of a tricky one, as it depends on what is held in the batterystats.bin file (which is a bit of a mystery to me - post URLs if you have definitive info please); is it for tracking application usage or for battery calibration. (I refer here to Chowlala's idea on an app for dissecting this file!)

Assuming the latter, I would guess the OS either a) constantly updates the file as the battery level changes, or b) updates it when powering down from lack of battery and when battery charge is completed whilst on. Likely (a).

Therefore I would say the battery stats need to be wiped before doing the on-charge.

Comments?!
[Nexus One Android Development] theloginwithnoname:
Battery charge after "bump" charge

After on-charge then off-charge - 4153mV and 1392mAh (highest ever seen)

After power on, power off, then off-charge - 4148 and 1390

I suspect I had to leave the final off-charge for longer than I did (20 mins or so) - a couple of hours may likely have got it up to 1400...

still, I think the on-charge then off-charge is looking like the way to go.
[Nexus One Android Development] RogerPodacter:
Well I am pretty sure that the only reason Google makes the green light turn on at 90% is just to give a visual indicator to users with some room to breath. I don't think it has anything to do with over charging worries. It's just a message saying "hey, you've got a close enough to full charge." Also, if they enabled it only exactly at 100%, then it would only ever be seen at that exact full point, rather than currently we get a full 10% to see its near full charged.
[Nexus One Android Development] waylo:
No reason this would alter RATE of battery discharge, right?

Ever since switching over from the iphoney 3g, I've been investigating ways to extend my N1 battery life. Currently trying out Wildmonk's 800mv BFS kernel in my latest attempt to maximize.

I've just recently started bump charging and have found some subjective improvements (i.e. stays at 100% for longer after taking it off the charger).

My question here is, there wouldn't be any reason a higher/fuller initial charge would affect the rate at which the battery is discharged during the day, assuming it is used similarly, correct?
[Nexus One Android Development] Marine6680:
No it will not affect discharge rate, but it will help get the most out of the battery.
[Nexus One Android Development] waylo:
Makes sense, thanks.
[Nexus One Android Development] theloginwithnoname:
Full on-charge with an hour or so at "charged", then unplugged and powered off. Full off-charge overnight.

4148mV and 1416mAh! wow.
[Nexus One Android Development] theloginwithnoname:
4% down in 4.5 hours - 4089mV, 1292mAh - idle apart from a couple of push emails and some reading of twitter.
[Nexus One Android Development] yg107:
which rom version are you using ?

EDIT: never mind... I missed the writing on the bottom of your post :)
[Nexus One Android Development] theloginwithnoname:
as per sig!
[Nexus One Android Development] rookie1082:
I did a full battery calibration... (used phone until turned off, powered on a few more times until it wouldn't power on anymore... removed battery, put back in, and powered on once more until phone wouldn't power on. Charged with phone off until green light + 2 hours).

I did this on Saturday evening and took it off the charger around 6pm. I finally had to charge my phone yesterday around 730pm. 2 days worth of battery on moderate use. 2 push email accounts, some internet browsing, a few phone calls, constatntly updating twitter, facebook, etc.

Not bad!
[Nexus One Android Development] lojden:
I think i did hit learnmode yesterday, my phone died at ~15% before and after success? it died at 1%/7mAh. I did not manage learnmode after i set age to 100 becuase it died before i reached 3416mV...
[Nexus One Android Development] samarium:
No, I meant <= 40C, I don't like running batteries hot, but I don't think I've seem my battery temp < 25C anyway.

With torch bright, maps, full screen brightness, radios etc, I've seen > 1700 mA draw. Needless to say voltage droops.
[Nexus One Android Development] mtw4991:
Just hit learn again and doing another learn cycle today, but I have a question..

Yesterday, I got a phone call just before learn completed on its' own and artifically shut me down at 27mA instead of <20mA and I want to prevent that from happening again.

Now that I'm in learn mode, can I turn the phone OFF to prevent any disturbances as I approach full or do I need to leave the phone ON so it learns on its's own???

Reason tells me to leave it on, but I'm not sure. 100/1452/<20mA/3201 fyi
[Nexus One Android Development] theloginwithnoname:
In a room with ambient temp around 19.5c, my battery is oscillating between 22.5-24. The reason I suggested 40 or 41 is 1) 40 is the "optimal" in terms of capacity etc and 2) any more and it becomes HAAAAAT!

WOW :eek: :cool:
[Nexus One Android Development] theloginwithnoname:
Me and RP both debated this a while back. Only way to know for sure with the app is to do it, then reproduce it ;)

On the one hand, getting learn mode just before shutdown (and then it shutting down) means it should be fine; on the other hand, having learn and turning it back on cancels it (PORV or whatever kicks in).

RP: nice idea for the app? checkbox "shutdown when charger connected after learn mode hit" - i.e. pseudo learn-mode/shutdown.
[Nexus One Android Development] RogerPodacter:
i dont know but i think shut down makes the battery reset itself, or at least on power back up it might. the best you could do is turn on air plane mode once you hit learn mode if you dont want any interruptions...

so today again i had the weird charging while draining when still plugged in this morning when i woke up after all night charging.
[Nexus One Android Development] RogerPodacter:
yeah i'm open to put whatever anyone wants into the app. i think someone should test it first though by hitting learn mode then shutting down, and in a few hours see if they can boot up with an updated age, or maybe catch the status register still in learn mode so we know for sure.
[Nexus One Android Development] RogerPodacter:
that's awesome that you definitely read most of those PDFs! yeah its counter intuitive to some people but the battery performs better, i.e. has more usable capacity, as the temperature increases. but there's a plateou at around 40C so there arent much gains higher than that for the increase in temperature. hence why all our batteries are baselined at "full40" cause its full point at 40C.

so we all should run our batteries hot! its only when you store them for long term do you want them cool...
[Nexus One Android Development] mtw4991:
Great idea Login....with the caveat, "leave on charger for 3.5-4 hrs to ensure full charge"

Just gonna turn on airplane mode this time I think. Question: as learn mode cycles thru, it goes from 0x71>>0x31>>0x11>>??? anything else? I ask because yesterday it was only 7mA away and changed to 0x01 which I assume is learn mode LOST, right?

PS. Any way to disable phone calls/text messages too?
[Nexus One Android Development] RogerPodacter:
doesnt airplane mode disable all communications? anyway i dont think we see much else in the status register other than what you just posted above. if your UVF and PORF are on then those numbers will be a little different, but a similar progression occurs. nothing else that i know of!
[Nexus One Android Development] mtw4991:
That's what I thought but wanted to make sure, especially when you see 0x01 during the learn cycle=learn has been lost. Correct? If so, then if it happens at an early point like 40%, there is no need to continue to 100%--just drain and try again.

EDIT: btw, I'd be happy to test the "turn phone off on learn" part of the app or maybe next time just try it and see...now that I have learned how to learn every time(no pun intended)
[Nexus One Android Development] samarium:
ACR: I use "echo 10 2 > setreg; echo 11 0 > setreg" and expect to see charge > 100 mAh. If you don't get at least 100 then increase 2 to 3 etc. If charge drops below 70 mAh, then do it again as necessary.

Full40: for a 1400 mAh I would use 2100 mAh, and see how you go. You can always reduce it later.
[Nexus One Android Development] mtw4991:
Samarium, if I'm set to 1452 and complete learn cycle at 86% / 1248mAh, what good is setting full40 to 2100 or higher? Is it to try and get the battery to "learn" it can put more into it and lower age, thus increasing capacity? And if so, how does this differ from bump charging?
[Nexus One Android Development] chowlala:
I've updated the first post with the datasheet details.

Also, for those of you who are newer and want to get "learn mode" I think an easier method would be for you to "artificially" do it.

What I mean by this, and we can talk bout it, is that you set your battery age to 100 then watch the % jump in the OS Monitor, then simply change your battery age details to reflect the jump point.

Not sure if everyone understands, but heck, just thought I'd throw it out anyways.
[Nexus One Android Development] theloginwithnoname:
Well said that man.

Point to add, probably best to do a full discharge before charge - reason I'm saying this is, I've done a partial charge, disconnected, then reconnected and charged to 100% before, and there's been a jump - even though my battery is calibrated.
[Nexus One Android Development] lojden:
Hm, i've tried to hit learnmod four times now but my phone always dies at ~10mAh/3580mV/1%... what should i do?
[Nexus One Android Development] temasek:
Hmm, I think you again still have some more juice on your voltage. Did you set age 100 and charge to full? If yes then possibly your full40 should be raised.

Say if your full40 now is 1452mAh, maybe raise to 1550 or 1600mAh. Set your Empty Voltage to 3201mV and end charge to 20mA (0x65 06).Then do a learn cycle again.

Good Luck :D
[Nexus One Android Development] lojden:
When i type 1600mAh on full40 nothing happends when i save it. Is Empty Voltage = voltAE in sys/devices/platform/ds2784-battery?
[Nexus One Android Development] temasek:
When you change your full40, your battery % should fall. I always charge to 100% before I actually start to perform/prepare for a learn cycle. 100% success rate.

Yes, Empty Voltage is in that folder. I use "setreg" to change any registers. Enter 0x66 a4 to get AEV 3201mV.
[Nexus One Android Development] lojden:
Thanks. But value should i write to raise full40? :o
[Nexus One Android Development] temasek:
You can input into the battery app. But if you wish to do manually, key into "setreg" as follows:-

0x6a 0e

0x6b 88

For full40 1550mAh

0x6a 0f

0x6b 00

For full40 1600mAh
[Nexus One Android Development] lojden:
Thank you sir! I'll charge to 100% and try to reach learnmode tomorrow :D
[Nexus One Android Development] temasek:
Its a waste not to use your voltage to its fullest. :)

Good luck.
[Nexus One Android Development] lojden:
12/03/2010 14:56:20 [INFORMATION] batt: 73%, 4177 mV, 0 mA (-36 avg), 31.2 C, 1216 mAh
12/03/2010 14:57:10 [INFORMATION] batt: 73%, 4182 mV, 24 mA (0 avg), 31.0 C, 1216 mAh
12/03/2010 14:58:00 [INFORMATION] batt: 73%, 4182 mV, 22 mA (22 avg), 30.7 C, 1214 mA
12/03/2010 14:58:50 [INFORMATION] batt: 73%, 4182 mV, 21 mA (21 avg), 30.6 C, 1216 mA
12/03/2010 14:59:41 [INFORMATION] batt: 73%, 4182 mV, 17 mA (21 avg), 30.5 C, 1216 mAh
12/03/2010 15:00:31 [INFORMATION] batt: 73%, 4182 mV, 20 mA (20 avg), 30.3 C, 1216 mAh
12/03/2010 15:01:21 [INFORMATION] batt: 73%, 4182 mV, 19 mA (20 avg), 30.2 C, 1216 mAh
12/03/2010 15:02:11 [INFORMATION] batt: 100%, 4182 mV, 19 mA (19 avg), 30.2 C, 1649 mAh

Hm, strange :confused: Stuck on 73% in 45mins then bump to 100%
[Nexus One Android Development] temasek:
Its normal for the big jump. But wow u set full40 beyond 1600mAh. Nvm. You can start to drain and monitor. I believe u will hit empty voltage before your mAh dies aprox 20% ++ battery level. So take note.

Your objective is to go as close to your empty voltage before your mAh dies. Remember that. :)
[Nexus One Android Development] lojden:
Well i entered

0x6a 0f

0x6b 00

In setreg and that gave me 1650mAh :o

Well nvm in case it's not harmful for my battery. I'll do a drane over night and try to hit learnmode tomorrow :)
[Nexus One Android Development] temasek:
Doh....must be my calculations. My bad :( Still learning how to convert.

Good luck to your learn cycle.

I will perform yet another one myself as I just received my new 1600 mAh battery.

Edit: eh....redo my sums and it suppose to give u 1600 instead.of 1650. Funny......
[Nexus One Android Development] mtw4991:
Completed learn yesterday and after 17.5 hrs I have 24% left at 296mAh and 3723mV. Loving the format of the new batt app btw.

My goal today is to drain until shutdown at which point I will still have a couple of mAh's left when aEvolt(3201) is reached and the phone shuts down.

Then I am going to get back into learn mode and test with the phone OFF-charging to see if it stays in learn mode when powered off...think it will or not? If it does, then maybe that would be an option to add to the app.

Opinions?
[Nexus One Android Development] temasek:
Its a go...........
[Nexus One Android Development] mtw4991:
Got another 3 questions...if I'm calibrated at 86% with full40 at 1452 and I then raise full40 to 1550/1600etc:

1) will my age be lowered accordingly?

(example: 1452>1600 is a 10% increase, so age of 86% gets lowered to 77%)

2) will I gain capacity?

(if age is lowered as in #1 above, wouldn't mAh's decrease thereby negating the gain?)

3)after calibrating, if I run out of mAh's prior to hitting 3201 should I lower age a bit or increase full40? Or just do another learn cycle and see if anything changes and adjust accordingly? just trying to "dial it in" as close to 0% as possible.
[Nexus One Android Development] mtw4991:
what is ????
[Nexus One Android Development] temasek:
Your plan to hit learn cycle and power off charging. - its a go.
[Nexus One Android Development] mtw4991:
Oh..duh, my bad....not enough coffee yet:o
[Nexus One Android Development] temasek:
After your learn cycle if u change your full40, upon next full charge you will probably lose the calibration. You might have to redo learning again.

Your actual capacity does not raise much using any kind of trick, not even lowering empty voltage cuz between 3201mV and the default 3416mV its a pretty fast drop.

Whenever I wanna start learn cycle I set age to 100 and charge to full. It should have plenty of mAh to last till my empty voltage. If insufficient then raise full40. ------- my opinion
[Nexus One Android Development] mtw4991:
Yeah, I agree completely. The whole goal of this thread, in the beginning, was to find a way to go from 100% down to 0% without dying out early. However, in that endeavor, Roger and Jon have went way further than anyone had thought possible...hacking into the battery and controlling it, far out and groovy man!
[Nexus One Android Development] mtw4991:
ummm.. watching mAh drop to 118 but voltage seems to be staying around 3650 while idle with app screen on. wonder if mV will drop before capacity reaches zero? would like to see 0-1%, then shutdown:p

edit: 89mAh, 3649mV and 7% remaining. I assume if I hit 0% and mV are above 3201, I should raise my age from 86>87% and try again? or should I lower it?

edit2: 32mAh, 3513mV and 2% remaining....SEF has been on since 105mAh,fwiw.

edit3: got down to 9mAh and 3312 with 1%, then turned on the flashlight to try to get mV above -200, but it hammered down, lol.
[Nexus One Android Development] mtw4991:
Learn mode w/power-OFF result

My test was a bust! Powered off after learn mode was set, charged for 3.5 hours, powered on and age was 94%!!!!!!! Unless you guys can figure a way to work this out, learn mode while off is #fail
[Nexus One Android Development] temasek:
Just charged my new 1600mAh battery. Found out that it was reported as a 1452mAh age 100% battery. Damn am I cheated? Lol

Anyway I changed the settings to full40 1600mAh and next step is learn cycle. Lets see if this piece of battery is really 1600mAh battery.

Cross fingers. :)
[Nexus One Android Development] RogerPodacter:
no i dont think you were cheated since every other after market battery, even the 3200's, came with full40 set to 1452! all of them wrong! but that's the big question, is this 1600 battery, which fits in the stock cover, actually larger capacity? you need to do the full test for us and see. i'd set full40 to 1650, age to 100, and drain that sucker from full to empty and see how much mAh you can run through. <anxiously waiting!>
[Nexus One Android Development] temasek:
Okay settings changed to full40 1656mAh age 100. See this sucker bleed to death.

Edit: my my still charging now at 97% with a capacity of 1574mAh

Edit 1: my mah almost finished but voltage remains above 3750mV. Had to pump 0x10 03 (twice) still hovering above 3700mV
[Nexus One Android Development] chevy chase:
my phone usually shuts down at around the 8% - 12% mark so I decided to calibrate.

I ran the program and hit the button that set the battery age to 100% and then discharged the phone. once is got to around 8% a dialogue box popped up asking me to plug in so I did that and I watched the battery level change from 8% to 0% and then it starting to charge.

I went to sleep and woke up with the phone charged to 100% so I rebooted and went back into the program. I'm a little lost as the battery age is still set to 100%. is this normal as I'm not sure if I've achieved anything?

cheers.
[Nexus One Android Development] RogerPodacter:
Your learn cycle. Likely failed, it happens sometimes. If successful your age would have updated on a reboot. Soon we'll add to the app tracking the learn cycle so if it fails the user gets alerted as such rather than guessing.
[Nexus One Android Development] chevy chase:
ok thanks for your help, is there anything I can do in the future to help for instance in the settings
[Nexus One Android Development] temasek:
My results of new 1600mAh

Full40 1650

Age 100

Empty voltage 3201mV

Min 20mA

After learn cycle (rebooted )

Age 100

Full capacity 1617mAh

Woohoo!!! Another successful learn cycle.
[Nexus One Android Development] chowlala:
Naiz! Makes me want to get a 1600 mAh battery now too! =P
[Nexus One Android Development] mtw4991:
Nice...where did you get the 1600mAh? too lazy to search:p

Next time bump up capacity 10% maybe to 1760/1800 and see what it can hold...just a thought;)
[Nexus One Android Development] temasek:
I doubt my new 1600mAh battery is good cuz its so cheap - less than US 10. Anyway will try drain to 1% to verify.

I was there during the whole learning cycle till the end. LEARNF lit throughout the charging cycle till 100%. Then rebooted. :)
[Nexus One Android Development] RogerPodacter:
Dude! Those are shockingly good results! Someone email the batteryboss guys who did the tests who concluded the 1600 battery was identical to a stock battery, actually they said a stock battery was better. And this sucker fits with the stock back cover:-). Time to buy one of these, where did you get yours?