yashsingh1/xdaforums huggingface dataset:
[HD2 Android Q&A, Help & Troubleshooting and Genera] schlei:
Hi, i will try the procedure now.

after pretty nice battery life in darkstones roms i switched a few weeks ago to mdeejays roms, to became a few of the new benefits in my hd2 android.

i figured out that the battery life with the newer roms is not so good as in the older ones.

Only around 12 hours of slightly use within 8 hours at work.

now i fully charged my hd2 until green light booted up and installed battery life.

It shows me 4199mV.

My Question is now, is 4199mV ok to delete the batterystats file, or should i put the phone on charge the whole night ?

Is there a chance to get more than this 4199mV out of my 8 month old battery.

thx :confused:
[HD2 Android Q&A, Help & Troubleshooting and Genera] pspknightx:
Mine last night also 4199mV and now dropped to 39xx ~40xx mV. However, the battery now is showing 82% since last night 11pm. Using sms and call only.
[HD2 Android Q&A, Help & Troubleshooting and Genera] fischerben:
hi

can't find batterystats.bin file. have looked in the sdcard/android/data/ and can't find system there. then i have tried sdcard/android/root/system/ and there is nothing batterystats
[HD2 Android Q&A, Help & Troubleshooting and Genera] dan138zig:
wrong location, man. you have to use root explorer.
[HD2 Android Q&A, Help & Troubleshooting and Genera] schlei:
Hmm yesterday i fully charged my HD2 until green light appears. ( 4199 mv )

deleted the batterystats file and drained it until its shut down.

Shut down was at 3720mv !

and now only re charging and the procedure is ready ???

( atm it is charging 20 % @ 3970mV ! )

now charging 61% @ 4175mV , looks good ??

hmmm now sitting 86% @ 4195mV doesnt seems to get higher......
[HD2 Android Q&A, Help & Troubleshooting and Genera] fischerben:
thank you for that
[HD2 Android Q&A, Help & Troubleshooting and Genera] gfurr:
using this method on other phones

with this method being as simple as giving a good charge-up and using adb to delete the batterystats.bin file, wouldnt this method work the same on all android phones regardless of rooted or unrooted, android version, phone manufacturer, or service provider? seems like as long as there is a Li-ion battery in the device and access to that batterystats.bin file, it should be like a universal fix! has anyone else tried this on any other native android phones with any luck? ;):D
[HD2 Android Q&A, Help & Troubleshooting and Genera] StephanV:
Yes, this calibration is being used on other Android devices too, but they do have to be rooted. Without root you don't have access to the batterystats.bin file.
[HD2 Android Q&A, Help & Troubleshooting and Genera] gfurr:
i didnt think about needing root to do the shell commands in adb. i guess its been a while since i was not rooted.
[HD2 Android Q&A, Help & Troubleshooting and Genera] gfurr:
what now??

so after doing this method and draining my phone all the way till dead (and rebooting just to make sure) is there any specific way we need to charge it? like charge it back up without turning the phone on, or just plug it and and reboot immediately? is the calibration done?
[HD2 Android Q&A, Help & Troubleshooting and Genera] schlei:
Hi i had the same question yesterday. ;)

i booted up the phone with power cable plugged in and charged it till full.

I have to say i am know at 15h and still 83% of light usage and over night in flight mode ( 3ma ).

Standby is ( 5ma - 9ma data enabled )

But i am not clear with the point, that on first pages is written that the power down voltage is round about 3v.

My first power down ( without calibration ) was at round about 3,7v and i would like to see that the power down voltage is know at 3v but i dont think so ??? :confused:
[HD2 Android Q&A, Help & Troubleshooting and Genera] t1h5ta3:
power down voltage is kernel dependent.

idealy phone shuld be charged while off, but most will achive 4.2+v while powered up.
[HD2 Android Q&A, Help & Troubleshooting and Genera] camit34:
So looks like my V's are in a good range after going with the Carbon Froyo ROM and no calibration. It was at 4.19 @ 100% and at 3.46 @ 1% just before it died.

Doing the calibration tonight.

Thanks for writing this up!
[HD2 Android Q&A, Help & Troubleshooting and Genera] rr5678:
On this subject.....Can't you just use ES File Explorer or some other explorer and navigate to /data/system and delete the batterystats.bin?
[HD2 Android Q&A, Help & Troubleshooting and Genera] Unconn:
Yes, if you have root. Best to delete while phone is 100% and still on charge., I think.
[HD2 Android Q&A, Help & Troubleshooting and Genera] camit34:
No /data/system/batterystats.bin...

Question...maybe dumb but...what if I don't have a /data/system/batterystats.bin...??? I checked both under WinMo & Android. In WinMo there is no /data and in Android there is a /data but nothing in it. Thoughts?
[HD2 Android Q&A, Help & Troubleshooting and Genera] dan138zig:
make sure it's /data in root, it means you can't see it in windows. just use an app called root explorer just to be sure
[HD2 Android Q&A, Help & Troubleshooting and Genera] carhigh:
I tried this and it doesn't seem to have done anything. I would like it if my LEDs worked correctly. Only turn green when 100% is reached. Now it turns green around 90% but still charges. Not complaining though, happy it just charges all the way
[HD2 Android Q&A, Help & Troubleshooting and Genera] StephanV:
Had the very same problem (and yes, I wasn't browsing in /sdcard/). Just use terminal emulator to delete it:

su

rm /data/system/batterystats.bin

If you don't get a message that file couldn't be deleted, it's been successful!
[HD2 Android Q&A, Help & Troubleshooting and Genera] Unconn:
this is probably because you are not browsing with full read/write priviledges. you may have root, but the 'system' file system needs to be remounted read/write before you can see the files. Look in teh Root options in ES File Explorer settings.

As said above, ADB (adb remount, adb shell, cd..., rm...) will work too as you have root as soon as you connect.

Unconn
[HD2 Android Q&A, Help & Troubleshooting and Genera] Macelangelo77:
Hi t1h5ta3,

First of all, thanks for this info.

I decided to give it a try. Left it charging over night (while my phone was shut down) and removed batterystats.bin this morning while still plugged.

The only thing I'm wondering about (and yes, I've read the entire thread) is: does it matter how fast the battery is drained untill power off? Or is calibration just about determining 0% and 100%? I'm not sure if I make myself clear, but what I actually mean is: does it matter when the phone is heavily used, after batterystats.bin is removed or is better to let it discharge by itself without using it? I read you used it lightly as it is your second phone, but I'm just curious whether this would make a difference for calibration. (I can't imagine myself not using my phone for 50 hours :o)

Thanks in advance

Sincerely,

Mac
[HD2 Android Q&A, Help & Troubleshooting and Genera] dan138zig:
what do you mean by not using the phone for 50 hours? by draining the battery it means that you use it until the battery is empty.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Macelangelo77:
Hi dan138zig,

Thanks for your reply.

See post #7 by the OP. He stated he was @10% after 50 hours "sick of waiting for it to die" and then decided to drain it rapidly. That's why I was wondering, can I just used it as normal (quite heavily) or do I have to let it at rest, so let it discharge at standby without use.

Sincerely,

Mac
[HD2 Android Q&A, Help & Troubleshooting and Genera] StephanV:
Usage can be as heavy or light as you like, doesn't matter.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Macelangelo77:
Ok, thanks for your reply.

Sincerely,

Mac
[HD2 Android Q&A, Help & Troubleshooting and Genera] Macelangelo77:
Ok, so I ran the whole procedure and waited for my device to power off automatically. I waited for a few minutes and switched it back on (power still unplugged), but there wasn't enough juice left to boot into Android. So it switched off during booting into Android.

I connected it to the wall charger and started charging again. Around 88% things slowed down. To my surprise, when around 90% it just "jumps" to 100%. Is this normal? See screenshot of SystemPanel for an illustration of what I mean...

With this build, it's the first time, it charged until 100%, so apparently something has changed, I'm just wondering about the last 10%, why the jump?

Sincerely,

Mac
[HD2 Android Q&A, Help & Troubleshooting and Genera] Unconn:
I think this may be an HD2 thing (meaning they still have to fix it somewhere). I notice that mine (and many others) will charge to 90% and the light will go on (meaning something thinks it is charged) but will only show 90%. It will keep charging until it hits 100%. There is a disconnect between things somewhere. I am not sure where.

FYI, if you battery really took the milliamps in that quickly to go from 90 to 100% it would probably puff and maybe even burst. I imagine it is just the way System Panel is choosing to display the information.

Unconn
[HD2 Android Q&A, Help & Troubleshooting and Genera] t1h5ta3:
easy way to tell.. look @ voltage... 100% = 4.2+v

if its not above 4.2v its not fully charged.

no, it does not matter how fast you drain it.

side note: my hd2 is gone, lost it some how @ the casino... no more bigscreen android fun for me... stuck with the vib now.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Macelangelo77:
Well, it charges up to 4.201v and then falls back to 4.199 and stays there. Currentwidget shows 0mA, so I guess that's the max.

Aaaargh, that sounds like my worst nightmare. If I loose my HD2 I'd probably feel like I have to miss one of my body parts. I can't imagine life without it anymore. Sad actually, isn't it....:o

Anyway, thanks for your thread and your guidance. It has been most educational :)

Sincerely,

Mac
[HD2 Android Q&A, Help & Troubleshooting and Genera] fishdonotbounce:
Hey guys. I've read this thread three times to make sure that I didn't miss anything before posting questions. I have the Darkstone v3 ROM with the hastarin 8.5.1 kernel. I bought Root Explorer and used it to condition the battery as told in the first few posts. I also installed curvefish's battery app and currentwidget to show me the current draw.

Here is my progress thus far.

100% - 4.187 V

80% - 3.882 V

40% - 3.779 V

31% - 3.757 V

30% - 3.691 V

1% - 3.394 V

The GPS, wifi, and background data are all turned off.

Currently, the currentwidget is showing a 3-5 mA draw when idle. When I unlock the screen and check the value from when screen was locked, it is 5 mA.

When the screen is unlocked, the draw stays at 3-5 mA for 10-15 seconds and then jumps up to anywhere from 100-300 mA, usually staying around 150.

When playing Angry Birds, the current draw shot up to 519 mA. This is all done with the brightness at the lowest setting.

My question is if these values match up with what the rest of you have and if they seem reasonable. I've seen a few numbers from other people but what draws are you getting and how long was your battery able to run from 100% down to 0 or so?

Thanks so much for this thread and the support.
[HD2 Android Q&A, Help & Troubleshooting and Genera] arodhr13:
Im just wanting to know the same thing can i reboot the phone right away or should i let the phone charge till the green light comes on than reboot?

thanks in advance this forum rocks;)
[HD2 Android Q&A, Help & Troubleshooting and Genera] DjSkoolboi:
So if I'm understanding this correctly.. If I were to wipe my sd card, go into windows and fully charge my phone.. then re-flash android. I would get good battery performance?

and battery level during initial flash is the reason why ppl using the same build had such varying battery levels..?!?.

makes sense...
[HD2 Android Q&A, Help & Troubleshooting and Genera] casemandan:
Correct. I even plug the phone as soon as android starts booting for the first time to make sure battery stays at 100%
[HD2 Android Q&A, Help & Troubleshooting and Genera] simax:
since first post doesnt say anything about rebotting after deleting batterystats and i heard someone saying i have to reboot... whats correct now?

i though after deleting i have to stay in android till my battery drains completely, without rebooting

edit: and what if phone turns off at eg 5% ? is it calibrated?

my phone hardly turns itself off at 0% just goes suddenly off at various low percentages...
[HD2 Android Q&A, Help & Troubleshooting and Genera] DjSkoolboi:
ok so i decided to give this a try but I have a question.

I'm on droid explorer looking at my data/system directory.

soo when i try to delete the battery stats file i get an error saying

rm failed for data/system/batterystats.bin no such file or directory exists.

I'm looking at the file so it's there and its not going away.. any ideas??

does the file actually go away when you delete it or is it just wiped out?

UPDATE!!.. file is gone but my battery is still draining like crazy.. :\
[HD2 Android Q&A, Help & Troubleshooting and Genera] DjSkoolboi:
tried deleting batterystats file as well as re-flashing at 100% but battery still sucks.......
[HD2 Android Q&A, Help & Troubleshooting and Genera] t1h5ta3:
battery life will still suck if you have a ton of wigets, live wallpaper poor signal levels etc.

what rom? what kernel? what are you seeing for full charge voltage? shutdown voltage?

are you asking for help or just complaining....?
[HD2 Android Q&A, Help & Troubleshooting and Genera] Life Engineer:
Those are unreal values that doesn't say much if you are using the phone!

As far as i understand the original OP and adopted it; the voltage values change to higher values which is better for drain; what i mean is:

When i'm continuously using the phone, at 90% i have let's say 4.0 V; but when i stop using it and let the phone on stand by for 30 min let's say, the voltage will get to 4.11V and the cycle continues with each battery percentage!

That's why i can't judge the numbers you gave; however if you are having this behavior that means that you are good to go! :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] dan138zig:
do i need to do this after changing kernel?
[HD2 Android Q&A, Help & Troubleshooting and Genera] simax:
my phone always turns off on 5% instead of shutting down at 0% wiping stats doesnt help, what can i do?

i cant finish conditioning since it doesnt shut down itself at 0%. it goes suddenly off at 5%
[HD2 Android Q&A, Help & Troubleshooting and Genera] Geatre:
What data does batterystats.bin contain, exactly?

like only when the phone is to be judged 100% charged or are there more (like when it is to be considered empty)?

I guess the "s" in stats indicate several data?

Sorry if it has already been brought up, did a quick-search and didn't find anything.
[HD2 Android Q&A, Help & Troubleshooting and Genera] StephanV:
I believe it stores the voltages at which your phone is fully charged and should shut down. I'm not sure either, so I would appreciate some more info too!
[HD2 Android Q&A, Help & Troubleshooting and Genera] Geatre:
I downloaded baterystats.bin from the net and opened it in notepad. Made no sense, seemed to contain names of different applications (maybe didn't look through thoroughly enough).

But I should be able to pull the file via adb right?

(kinda new to adb, never used commands before in my life. Maybe i should learn some basic commands :P, well well guides do the trick!)
[HD2 Android Q&A, Help & Troubleshooting and Genera] Shriac:
same question as above...
[HD2 Android Q&A, Help & Troubleshooting and Genera] dan138zig:
hi, i've found a different method of calibration: http://hemorrdroids.net/battery-calibration/

why is it different? which is more effective?
[HD2 Android Q&A, Help & Troubleshooting and Genera] Macelangelo77:
I'm not sure, but I guess if you're upgrading a kernel from the same dev (with no changes to the battery driver, check changelog), there shouldn't be a need to repeat this sequence. However, if you're replacing a kernel made by another dev, it would be probably wise to do it again.

Sincerely,

Mac
[HD2 Android Q&A, Help & Troubleshooting and Genera] StephanV:
In theory, adb pull should work yes. Currently haven't set it up though so can't say for sure. If it doesn't work, just use an Android file manager to copy it to your SD card root and then you're good to go too.

Keep me posted when you find anything interesting!
[HD2 Android Q&A, Help & Troubleshooting and Genera] DjSkoolboi:
it was darkstones original kernal causing the drain. I had full charge at 4202mV and shutting down around 3700mV. I changed my kernal to hastarins 8.5 kernel and saw a change immediately with only wifi on - no widgets, live wallpapers.

I haven't tried reconditioning since the initial recondition but since I'm having decent battery life I'm guessing it either worked and there is no need to recondition after updating the kernal or darkstone's builds are the ones causing the drain, since darkstone froyo v2 was the best battery life I've ever had @ 12% throughout an entire day with only wifi on.

currently on darkstone hd2froyo v3
[HD2 Android Q&A, Help & Troubleshooting and Genera] t1h5ta3:
thats based off of charge info on the evo and some other htc devices that go to trickle mode above 80%
[HD2 Android Q&A, Help & Troubleshooting and Genera] m2shakiba:
is it possible that instead of all these works of deleting that file we just flash a new build with the battery fully charged?

and make sure that it is 4.2 mv?
[HD2 Android Q&A, Help & Troubleshooting and Genera] Mike4101:
people should know that if you are charging when the power is on and the light is green to say it is done if you leave it on the charger it runs off the battery and no longer charges. so if it is pluged up and you are using it at full charge and you take it off you will see the % drop. So charging with the phone off makes sence when you want to get a full charge cause there is nothing draining it back down after it is done charging. Now if you take it off as soon as it os 100% while it is on of course you will get full life. My evo hits 3.59 at 0% so it is not even close to the voltage to mess up the battery if they are saying 2.5 is circut shut down. I do let it run down to 0% every month and turn it off and let it charge overnight. I have not checked the voltage at full charge but will and will also try the clearing of the stats to if it makes a charging differance. I like the info I recieved on this and hope this helps out also. I believe that this is why it is told to turn off and not keep on when you are trying to get a full charge makes sence

PS...Cool little app bat stat in the market lets u know temp volts and percent takes no memory it is a widget

EVO 4G ROOTED Sprint Lovers Rom
[HD2 Android Q&A, Help & Troubleshooting and Genera] Mike4101:
Thats what i do makes sence to me
[HD2 Android Q&A, Help & Troubleshooting and Genera] t1h5ta3:
search the evo forum, there is a kernel thread discussing the way htc made the evo charge, this fix's the 80%+ trickle charge and a bunch of other issues.

a buddy just rooted his evo, and got 40+ hours on his first charge conditioning the battery, i havent heard back in a couple days...
[HD2 Android Q&A, Help & Troubleshooting and Genera] Mike4101:
Ok So I drained the battery phone turned off at 3.59 pulled it out waited a min put it back in booted again it made it back to 3.61 it then turned off 5 min later so i booted into recovery and let it sit till it turned off I pluged in the charger using usb on the computer for a slow charge it took like 4 hours till gren light i removed the batter waited a min put it back in and then plugged it back up charged for 15 min. when it was done i booted into recovery cleared the stats and rebooted. Here is the strange part It booted green light on to say it was charged i was showing 4.130 took the charger off and it dropped to 4.080 it has been on for 11 min with a wake time of 5 .. cause i was answering emails and text i had missed ant it is at 90% 4.043. so i said lets see what it does if i put it back on the charger. It charged for 30 min to get back to 100% but now it is at 4.21 volts i pull the cord and 4.139 so i will see what happens now.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Mike4101:
Thanks I will check that out
[HD2 Android Q&A, Help & Troubleshooting and Genera] dan138zig:
my phone still dies at 12% after reconditioning. what should i do?
[HD2 Android Q&A, Help & Troubleshooting and Genera] simax:
if youre using superram by darkstone then its his builds fault.(maybe because of his custom kernel) its unhealthy when your battery "dies" itself. so you should try to avoid that.

carbon remix has excellent battery management and almost every nand build now too.
[HD2 Android Q&A, Help & Troubleshooting and Genera] satyamsit:
as per the tutorial i have charged my phone full while switching off and currently @ 4.19v ..is it safe to wipe the battstat.bin??

i am rooted and having root explorer installed. can i use that to delete batterystat.bin in stead of droid eplorer and all.. i have already found it through root explorer..

in the tutorial after deleting it is said to "drain the battery fully, untill it powers down. wait a min or two and reboot it to completely drain it.".. it shud be drained in unplugged stated or plugged?

plz answer as i am doing this for first time..
[HD2 Android Q&A, Help & Troubleshooting and Genera] chudak25:
@satyamsit

You can use whatever you want to delete it as long as it works for you! As far as draining while plugged it?! How are you going to draint eh battery if it is plugged in and charging?! Come on think about it!!!
[HD2 Android Q&A, Help & Troubleshooting and Genera] satyamsit:
for the time being i have wiped the battery stat from the tutorial given on xda.. and experiencing significant change and no false notification, now i ma on 30hrs of usage with 40% left .. seems the meter reading also proper for the time being... i have used GPRS quite aggressively.. around 15 hrs.. calls are low tho... thanx :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] satyamsit:
Damn... so foolish the Q was :( .. out of the frustration over my phone .. anyway thanx a lot ...
[HD2 Android Q&A, Help & Troubleshooting and Genera] Easemypain:
does this work for nand build as well? i'm asking because i don't know if i can delete the batterystats.bin because it is saved on nand flash. if i check my batterystats.i got 4.174ma. You mentioned that my bettery must have 4.2-3ma
[HD2 Android Q&A, Help & Troubleshooting and Genera] lubenst:
Yes it is working wih nand builds. I have done this 30 hours ago and now my batt shows 54% which is amazing. I have to say that this is "must do" for everyone with an android build. Greatings!
[HD2 Android Q&A, Help & Troubleshooting and Genera] Kazz88:
MAGLDR

What about the bug in magldr that prevents the phone turning

on

when booting once its charged with the phone off. Do i charge, un plug, pull batt out then in, turn on and stick the cable in stright away as it boots up? or is it ok to just let it boot up then delete file and put the cable back in once the battery is drained again.
[HD2 Android Q&A, Help & Troubleshooting and Genera] lubenst:
Personaly i did it like this:

1. Charge to 100 % with phone turned on.

2. Shut down the phone

3. Charged for 10 more minutes, just to be sure that it is really 100 % charged

4. Unplugged

5. Pulled batt out and then in

6. Turned the phone on

7. Plugged immediately after pressing the turn on button and after i have assured myself that the phone is actually started booting.

8. Deleted the data/system/batterystats.bin

9. Depleted the battery with movies, wifi, bluetooth, auto synch, max brightness, GPS, and random programs.

10. When the phone goes off I have started it 3-4 times just to be sure that there is no more power in it.

11. Plugged again and charged to 100 %.

I am around 50 hours use and with 20 % battery left.
[HD2 Android Q&A, Help & Troubleshooting and Genera] paul211b:
Having just tried this due to losing -229mA with just data enabled.

I get error "permission denied" when I try to delete the batterystats.bin file?? Anyone?