need kernal help .cant edit sys folder ? - HTC Vivid, Raider, Velocity

Ok this is silly .I ordered an andida 2000 mah battery and I can't edit sys/class/power_supply/battery/full_bat . I can't even access it in terminal with Su . I tried to Change the value from 1620 to 2000 and even tried editing subfolders to But it will not stick .I tried in es explorer changing permissions editing then changing them back so nobody can write but it still reverts back .
Is this kernal related ? If it is can kozmik make it avaible to change the value via aroma ?there is only these options 1620 stock .1800 .2000.or the extended at 3500 mah .
I fear this is kicking out and charging to full capacity and that's why most batterys suck in these phones .
Anyone have advice ?
Current setup .- unlocked HTC raider . Holics 1.3 . Kozmik beta 13 . S-off .Jupunbear hboot .TWRP recovery

raidrom said:
Ok this is silly .I ordered an andida 2000 mah battery and I can't edit sys/class/power_supply/battery/full_bat . I can't even access it in terminal with Su . I tried to Change the value from 1620 to 2000 and even tried editing subfolders to But it will not stick .I tried in es explorer changing permissions editing then changing them back so nobody can write but it still reverts back .
Is this kernal related ? If it is can kozmik make it avaible to change the value via aroma ?there is only these options 1620 stock .1800 .2000.or the extended at 3500 mah .
I fear this is kicking out and charging to full capacity and that's why most batterys suck in these phones .
Anyone have advice ?
Current setup .- unlocked HTC raider . Holics 1.3 . Kozmik beta 13 . S-off .Jupunbear hboot .TWRP recovery
Click to expand...
Click to collapse
I tried accessing the "battery" folder using Root explorer, and it caused Root Explorer to FC. (S-Off, pure velocity rom, bell raider)
I have the 2000mah andida battery also, and would like to ask: Is what you're trying to do necessary? What do you expect to happen if you can successfully edit and save the changes to that file?

Well it is part of the hardware files that controls LEDs and etc . What I believe is that it is sensing a full charge at 1620 mah and kicking off . With a green led indicating so. Just like you can leave you phone on the charger all night and it won't over charge it right . HTC has made it in the folders ad. Safety net . Where I'm sure other phones have N auto detect feature .just a thought

raidrom said:
Well it is part of the hardware files that controls LEDs and etc . What I believe is that it is sensing a full charge at 1620 mah and kicking off . With a green led indicating so. Just like you can leave you phone on the charger all night and it won't over charge it right . HTC has made it in the folders ad. Safety net . Where I'm sure other phones have N auto detect feature .just a thought
Click to expand...
Click to collapse
Neat. Interesting... I wish I could help figure this out more.

raidrom said:
Ok this is silly .I ordered an andida 2000 mah battery and I can't edit sys/class/power_supply/battery/full_bat . I can't even access it in terminal with Su . I tried to Change the value from 1620 to 2000 and even tried editing subfolders to But it will not stick .I tried in es explorer changing permissions editing then changing them back so nobody can write but it still reverts back .
Is this kernal related ? If it is can kozmik make it avaible to change the value via aroma ?there is only these options 1620 stock .1800 .2000.or the extended at 3500 mah .
I fear this is kicking out and charging to full capacity and that's why most batterys suck in these phones .
Anyone have advice ?
Current setup .- unlocked HTC raider . Holics 1.3 . Kozmik beta 13 . S-off .Jupunbear hboot .TWRP recovery
Click to expand...
Click to collapse
Not working here either...
EDIT: Let me play around and get back
---------- Post added at 03:20 PM ---------- Previous post was at 03:00 PM ----------
Maqical said:
Not working here either...
EDIT: Let me play around and get back
Click to expand...
Click to collapse
Found It!..... Files permissions are set for READ only change permissions and it saves fine

im trying as well now ..do a little research on some adb commands lol .im surprised no developer has helped us out . would love to maybe just have a script to run

raidrom said:
im trying as well now ..do a little research on some adb commands lol .im surprised no developer has helped us out . would love to maybe just have a script to run
Click to expand...
Click to collapse
I don't think we know if what the OP is suggesting is even necessary for using the 2000maH battery. It would be nice to know that first. Keeping an eye on this one!

LaZiODROID said:
I don't think we know if what the OP is suggesting is even necessary for using the 2000maH battery. It would be nice to know that first. Keeping an eye on this one!
Click to expand...
Click to collapse
I am the OP lol . I emailed HTC dev. But they said we understand your need to get better battery life .but please take a hike basically

raidrom said:
I am the OP lol . I emailed HTC dev. But they said we understand your need to get better battery life .but please take a hike basically
Click to expand...
Click to collapse
LOL woops!! My bad.

http://developer.android.com/reference/android/os/BatteryManager.html
i need a script to be made from this ? its in the android.os .
i did someones suggestion to flash a new battery using the android kitchen and it seems to be better lol .just have to learn a bit of java i guess.and the command isnt in adb .

Hopefully someone will correct me if I am wrong here. But you are right, the /sys/ folder is very kernel related. They are not files that can be modified like normal. I will leave you something to do for homework! Browse the /sys/ folder and find your vibe in a terminal. Now this stuff links to your hardware, you cant open and edit the file. But you can "echo 1 > vibe" replacing vibe with the "file" of your vibe and of course no quotes. Now with your phone vibrating push a 0 to it with ........ echo 0 > vibe. Welcome to an excellent question that delves into linux hardware hacking!!!!! As for the mAH with these newer batteries, I am a lot less clear. Unless the battery has the info encoded to it, it should calculate that value from charge/discharge rate, change in battery voltage & change in time.
edit, should be able to use cat to get info btw ie "cat /sys/class/power_supply/battery/full_bat" will show its full value

Neat.
Running
Code:
cat /sys/class/power_supply/battery/full_bat
produced a value of 1620. I assume that is mAh? I currently have an Andida 2000mAh battery in my phone. Does this mean the phone isn't identifying my battery like a 2000 mAh battery? Or.. does it mean I could be missing out on extra life that this battery could offer?

Again, my normal disclaimer. I am not a pro at these things so my info may be off. The battery life SHOULD be dependant upon the actual capacity of the battery - drain rate. The phone should just monitor the voltage of the battery and shut it off when it reaches a minimum level (Lithium battery tend to not like to take a charge if drained too low). Charging is a different story as it will monitor charging rate, battery V and battery temp (Lithium batteries like to explode when too hot). Back to draining, as the batter drains its voltage drops. Now I have no clue if the OS does some sort of tom foolery and crazy calculation using batter V, capacity & discharge rate to get the percentage, or if it just reports back what percent it is between Vmax and Vmin. If its the former, you should notice its seems to last a long time when its nearly empty. if its the former it should stay slope a little bit the opposite way.
Lastly its a really long winded way to say who cares if it actually lasts longer? If it does not last any longer & reports as 1620 you probably got ripped off.

lamebmx said:
Lastly its a really long winded way to say who cares if it actually lasts longer? If it does not last any longer & reports as 1620 you probably got ripped off.
Click to expand...
Click to collapse
Yeah, it was a cheap eBay battery anyway. Haha... I wasn't expecting too much from it.

In ES Explorer if you go into settings you can change it to explore root (after granting SU permission) and then mount the system as writable. The system file defaults to read only otherwise.

raidrom said:
http://developer.android.com/reference/android/os/BatteryManager.html
i need a script to be made from this ? its in the android.os .
i did someones suggestion to flash a new battery using the android kitchen and it seems to be better lol .just have to learn a bit of java i guess.and the command isnt in adb .
Click to expand...
Click to collapse
Unfortunately, this class just represents values. You can't modify anything in it (no field setters, and the values are all declared "final", which means you can't modify them.) This class gets populated from somewhere else, and is only accessed to get values.
Like lamebmx says, I'm not so sure that value actually matters. Whether or not the 1620mAh value is hardcoded somewhere, batteries charge capacities change over time (ie worsen the older they get), and they are still able to fully charge because the charging and charging rate are based on electrical feedback from the battery charging circuit.
The charger will provide a certain number of volts at a certain regulated current, and time and test the response of the battery. Charging slows as the battery reaches it's max charge. It's logarithmic. Once the change in battery voltage growth slows to below a certain threshold, the charger will kick off. I very much doubt that the software controls the charge sensing. It might control the min and max charge current available (ie fast charge or slow charge) but I don't think it can control when the charge stops.
I might be way off here, but I've never seen a battery charger circuit anywhere for anything that has a max charge dictated by anything besides the actual voltage feedback from the physical battery.

Related

Diamond battery voltage

In need to know the voltage across the diamond standard battery (900mAh) when the battery is fully charged and when the battery is fully discharged (the phone automatically switched off)
Could someone give me this information?
When my battery is low I read 3.2V
When my battery i high I read 4.1V
Is this correct?
That's about right, +-.1
Thanks, I've a lot of problems with the charging and discharging cicles, this information could help me to understand
While which is the charge current when the battery is fully discharged?
For my Diamond it can be very high, up to 800mA (I know it from BatteryStatus), it is a normal value?
wasm said:
While which is the charge current when the battery is fully discharged?
For my Diamond it can be very high, up to 800mA (I know it from BatteryStatus), it is a normal value?
Click to expand...
Click to collapse
Try a program, "PowerGuard", it's a very nice (and free) program developed by Muyz that will give you current and temp info, including graphs with a lot of flexibility in settings. You can get a good feel of where the current draws are. I think charge current is in the area of 700-800mA on initial charge.
Or another called Battlog. It,s better because it logs the measurements - on Powerguard it's difficult to see the actual (current, not in electrical, but in time sense ) measurement.
Thanks I'm going to try them
For now I'm testing Batlog...
This evening I'm going to make a full charging log, so I could post it tomorrow
Could you do the same? This could give me the possibility to compare them
I'm experimenting some problems with the charging circuit
mjaxa said:
Or another called Battlog. It,s better because it logs the measurements - on Powerguard it's difficult to see the actual (current, not in electrical, but in time sense ) measurement.
Click to expand...
Click to collapse
I agree with mjaxa, since your post I've found and installed Battlog. Works great on my Diamond. Very robust program and easy to read the log file or import into excel for analysis.
I have no idea why I didn't find this software when searching for a good battery monitor for my Diamond except I must have not used "log" in my searchs.
Thanx mjaxa.......
JRMX said:
Works great on my Diamond. Very robust program and easy to read the log file or import into excel for analysis.
Thanx mjaxa.......
Click to expand...
Click to collapse
I should, of course, also thank Palladium TD now that I've found the source for this fine program.
I'll also add that while the data logging is very good, I found that some of the functions do not work on my Diamond (US ROM 1.93). I know it's a beta program or maybe I just haven't figured it out yet. Using 0.2.3.130 beta I have noted:
No response on the help and other icon on the left side, battery temp read is off by a factor of 10 (noted on the Battlog thread) and cum use (mAh) does not display.
I'll post the comments on the correct thread.
In the following I reported the log of my battery charging cycle in txt and graphic format
If you can post comments or other logs, I'll appreciate
P.s. another bug in Battlog (I'think) is related to the sampling interval, as you can note observing the X axis on my plots: it is not constant in time
No one want help me with a charge/discharge log?
With the holidays I haven't had too much time to work with battlog and the phone use is not typical. I did run about 16 hrs of data and it does give some insight.
Charging overnight looked normal with current draw cycles at 2hr intervals for mail checks.
I was going to upload the excel file, but the format isn't permitted. The txt file is too large. I'll mess with it some more, but I didn't see anything that was unlike your data. 800ma on initial charges, -200ma on using various applications and phone calls, as much as -800ma on internet use and -9 to -20ma on locked standby. I did not see what I'm looking for which is an unexplainable deep discharge, overnight or during the day, I'll keep monitoring.

can this improve battery performance?

Change the registry entry as follow:
HKEY_LOCAL_MACHINE/Controlpanel/Power
FullSate=76,change to 99
HighState=52,to 68
LowState=6
MedState=34,to 26
I don't know, where did you get the changes from?
have you tried it yet?
Maybe the battery can be charged more fully by raising 'FullSate' .
I haven't try it.
probably not.
I dont know what it does, but my values are at 11, 26, 51, 76 so different to yours already..
fards said:
probably not.
I dont know what it does, but my values are at 11, 26, 51, 76 so different to yours already..
Click to expand...
Click to collapse
It really works.
I modified the values when battery is at 100%,
and it became 90% ater reset.
Now continue charging.
that sounds me like the standard winmobile battery indicator per-level threshold...
Perhaps FullSate is the level that WM considers battery is full.
So raising the value could make a deep charge.
have you seen this btw...
http://forum.xda-developers.com/showthread.php?t=463905
On further playing I think the values are for the power icon levels on the taskbar.
[HKEY_LOCAL_MACHINE\ControlPanel\Power]
"DynamicChargeicon"=dword:1 ; set to 0 for normal "plugged in" icon when on ac/usb power, set to 1 for blinking battery icon to indicate charging
setting this at 1 makes the plugged in icon flash on and off whilst charging.
avenger2005 said:
Change the registry entry as follow:
HKEY_LOCAL_MACHINE/Controlpanel/Power
FullSate=76,change to 99
HighState=52,to 68
LowState=6
MedState=34,to 26
Click to expand...
Click to collapse
i don't think so,
changing it to 200 will make the battery try to charge untill it's 200%?
so this means that easily someone can make a virus to make our batteries explode!
not that simple, it's stored in the battery
@avenger2005 can you get your phone to 100% now after charging? how long it's staying there?
anaadoul said:
not that simple, it's stored in the battery
Click to expand...
Click to collapse
Yep, that's it exactly. The charging control unit is either inside the battery or inside the phone's hardware. More likely it's inside the battery.
How would you charge the phone when it's switched off and Windows registry settings wouldn't work?
i think its work, used this method from last month and the battery can last 2 hours longer with extra charge reg edit
skycamefalling said:
inside the battery or inside the phone's hardware. More likely it's inside the battery.
Click to expand...
Click to collapse
for hardware devices that anyone can replace the battery it will be inside the battery it self for sure
it stores the information about the full capacity of the battery (which changes by the passage of time) so imagine if it's on the device itself and bought a new battery. you will get the performance of the old one
maybe iPhone have in the device it self as the battery is not accessable by the enduser
(-1) for iPhone
fards said:
probably not.
I dont know what it does, but my values are at 11, 26, 51, 76 so different to yours already..
Click to expand...
Click to collapse
the reason peoples values differ because, the phone is clever. if you charge it often, even when it isnt needed, it will use the battery carelessly because it knows a charge is on the way. if u only charge it 2-4 days at a time then it uses the battery more care full. adapting itself to the way the user uses it.
indy.89 said:
the reason peoples values differ because, the phone is clever. if you charge it often, even when it isnt needed, it will use the battery carelessly because it knows a charge is on the way. if u only charge it 2-4 days at a time then it uses the battery more care full. adapting itself to the way the user uses it.
Click to expand...
Click to collapse
this is not a human body!
it's a mobile device!
it's never that smart, but what you said was right with the NK batteries (the fact not the explaination)
recharging too often will make the calibration of the battery to be inacurate, while recharging when empty will improve it's performance.
that's it.
for Li-Ion or Li-Pol it's a different story.
cheers
so does this really influence the batterylife?

Power off at battery 15%

I noticed, a few others, but should be minority has the same problem as mine.
My N1 powers off itself when my battery shows around 15% or so.. sometimes 17% sometimes 14%, never lower than 10%.
I already tried to wipe battery data at recovery or deleting the battstat.bin file etc etc but it is still like that.
Is there a solution for this and any reason for this?
Majority of people's phone only power downs below 5%.
Many thanks
Use the battery calibrator, it's in the development section.
Sent from my Nexus One using Tapatalk
baseballfanz said:
Use the battery calibrator, it's in the development section.
Sent from my Nexus One using Tapatalk
Click to expand...
Click to collapse
thanks man..
there are two with the same name.. i'll try them one by one
Try bump-charging* then clearing the battery stats
*Charge phone to 100%, unplug it, turn it off, charge again till indicator goes green
Rusty! said:
Try bump-charging* then clearing the battery stats
*Charge phone to 100%, unplug it, turn it off, charge again till indicator goes green
Click to expand...
Click to collapse
actually this i have tried a few times already but it never helped.
My phone turns off at around 19% now after I played with the battery calibrator app. (I set the life at 100%, was lazy to run the full cycle calibration)
Its powerful and probably can fix your problem.
Link: https://market.android.com/details?id=net.jonrichards.batterycalibrator.ui
britoso said:
My phone turns off at around 19% now after I played with the battery calibrator app. (I set the life at 100%, was lazy to run the full cycle calibration)
Its powerful and probably can fix your problem.
Link: https://market.android.com/details?id=net.jonrichards.batterycalibrator.ui
Click to expand...
Click to collapse
i am trying to do this too.
so you are saying it wont help coz yours got even worse (turning off at 19%)?
britoso said:
My phone turns off at around 19% now after I played with the battery calibrator app. (I set the life at 100%, was lazy to run the full cycle calibration)
Its powerful and probably can fix your problem.
Link: https://market.android.com/details?id=net.jonrichards.batterycalibrator.ui
Click to expand...
Click to collapse
To calibrate your battery and have it reliably die at 0% every time, follow the instructions that I wrote in post #3 here:
http://forum.xda-developers.com/showpost.php?p=7850480&postcount=3
schizophrenia said:
i am trying to do this too.
so you are saying it wont help coz yours got even worse (turning off at 19%)?
Click to expand...
Click to collapse
He said he was too lazy to complete the learn cycle, which is part of the calibration technique. There is no sense in trying to pick "pieces" of the process and hope they work, they won't. Start with step 1 and follow the directions to the letter, don't skip anything. I would suggest reading the instructions a couple of times prior to starting and ask questions in the thread if you aren't sure. There are several of us that monitor the thread and will respond quickly...myself during US daylight hours and Temasek in the evening (he's in asia, I think).
mtw4991 said:
To calibrate your battery and have it reliably die at 0% every time, follow the instructions that I wrote in post #3 here:
http://forum.xda-developers.com/showpost.php?p=7850480&postcount=3
Click to expand...
Click to collapse
am doing this right now and hope I understand everything and it works.
thanks a lot
schizophrenia said:
i am trying to do this too.
so you are saying it wont help coz yours got even worse (turning off at 19%)?
Click to expand...
Click to collapse
It will work if you follow the steps and run the full calibration (long time)
mtw4991 said:
To calibrate your battery and have it reliably die at 0% every time, follow the instructions that I wrote in post #3 here:
http://forum.xda-developers.com/showpost.php?p=7850480&postcount=3
Click to expand...
Click to collapse
Thanks. Wish there was a quicker/easier way.
I'm currently testing a direct way using simple math:
If 1452mAh is 100% how much is 19% ?
i.e. 1452/100*19 = 275mAh (for me)
I've set "full40" to 1452-275= 1177 (the calibrator app's minimum is 1200 so I just set it to that.)
britoso said:
It will work if you follow the steps and run the full calibration (long time)
Thanks. Wish there was a quicker/easier way.
I'm currently testing a direct way using simple math:
If 1452mAh is 100% how much is 19% ?
i.e. 1452/100*19 = 275mAh (for me)
I've set "full40" to 1452-275= 1177 (the calibrator app's minimum is 1200 so I just set it to that.)
Click to expand...
Click to collapse
That may work as a guess-timate, but the stock battery comes rated at 1452mAh and stock age is set to 94%, so you would really be setting to 1128mAh unless you reset age to 100%. It really doesn't take that long to set up the application for learn mode...just a few minutes. It does take 31/2-4 hrs to fully charge the phone and complete learn mode if you set the min. charge current to <20mA. To speed things up, just set it to <40mA as you won't miss the little bit of extra juice.
britoso said:
It will work if you follow the steps and run the full calibration (long time)
Thanks. Wish there was a quicker/easier way.
I'm currently testing a direct way using simple math:
If 1452mAh is 100% how much is 19% ?
i.e. 1452/100*19 = 275mAh (for me)
I've set "full40" to 1452-275= 1177 (the calibrator app's minimum is 1200 so I just set it to that.)
Click to expand...
Click to collapse
hmmm good point, i never thought of that lower limit. we'll see if we can update the app.
but to answer this thread's question, the age register in your phone is now out of whack, and you need to set it accordinly to allow the battery to go down to 0%. the learn cycle determine's the proper "age" value and sets it accordingly.
you could also guess an age value, say 83%, would be close. but really there's no reason to not do the learn cycle and figure it out.
BTW all these values are stored in your battery's chip, and it needs to be updated to new value.
Quick question:
1) Sometimes even after I turned on the "Detect Learn Mode" my Current occassionally dropped below -200mA (e.g. 160mA) for a quick while... will it affect the result?
2) "Turn off" means turning off the Detect Learn Mode right?
3) where can I see the "Charging current"? Capa.?
Thanks
What if I rotate among three different batteries on a regular basis? I have an external battery charger too. Will the calibration be in any way useful or will it get confused by the changes?
I have my original January 2010 battery, a December 2011 replacement from HTC, and a MOMAX battery that also holds up a pretty good charge.
Sent from my Nexus One using XDA App
cmstlist said:
What if I rotate among three different batteries on a regular basis? I have an external battery charger too. Will the calibration be in any way useful or will it get confused by the changes?
I have my original January 2010 battery, a December 2011 replacement from HTC, and a MOMAX battery that also holds up a pretty good charge.
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
you can rotate batteries no problem. when you do a learn cycle, the age value gets written to the chip inside the individual battery. so you can swap batteries no problem. just make sure that the correct age value shows up when you swap, cause sometimes the age resets when removed from the phone. just set it manually back to your proper age if so.
we were trying to add "profiles" support to the app so you could swap batterys and it remembers the parameters for each and sets them accordingly when you swap the battery. but i dont know how long that will take...
Okay good to know. I bought this charger:
http://www.amazon.com/PowerGen-Mult...CAT6/ref=sr_1_3?ie=UTF8&qid=1295658169&sr=8-3
And it's pretty neat because I can just position the pins myself to charge any battery I want. I've tried it with camera batteries, Huawei U1250, Moto Milestone and RAZR, and Nexus One batteries. It works really well and it's somewhat future-proof because it will probably work with my next phone's batteries too =)

Battery Calibration

Having seen so many posts on calibration of battery, i have decided to make this thread so to make it easier and useful for you guys. This thread can also be used to share your experiences with calibration and usage of milestone's battery.
Note: This is done using a the motorola milestone 1. So if you're using any other phone, pls ask abt them in this thread b4 you do anything!!!!
Intro:
The calibration of the battery is needed when you want to switch/install roms. This will make sure that the battery is really fully charged, thus preventing the battery life from dropping too drastically in a matter of hours.
I know there are some other methods to help calibrate your battery, but this is the only one I am sure of the steps. Please inform me of the other methods so to share with everybody.
Steps:
1. Before flashing a new rom, use root explorer (with read/write set) to delete the file "batterystats.bin" stored in /data/system/.
2. Charge your phone with it being turned off.
3. After it is fully charged(100%), take out its battery without plugging off the power supply.
4. Wait for a few moments, and a ? sign will appear.
5. Put your battery back in. You should see that the battery percentage increases quickly to 60%. If it increases to 100% with seconds, please skip to step 6.
6. If it stops increasing at 60%, let the phone continue to charge until 100%(takes quite a while)
7. Once it reaches 100%, let it charge for a further 15-20 minutes.
8. Once that's done, you can boot to OpenRecovery and flash your rom!!!
Alternative way of calibration(thanks a lot zeppelinrox!!!):
http://forum.xda-developers.com/showpost.php?p=11803458&postcount=10
This method allows you to calibrate the battery and use ur phone at the same time!!!
I hope this helps you people, because it really helped me!!!!
Note: i m not responsible for anything bad that happens to ur phone. Perform the calibration at ur own risk!!!(though it should be perfectly fine, unless u do something wrong or extra)
Btw, i am just writing things that i assume to be correct, so if anything needs to be edited/added, pls inform me through this thread or sending me a pm.
Credits to everyone (especially pcphobic for his post in http://forum.xda-developers.com/showpost.php?p=11604143&postcount=740) who have written all these in your posts that made it possible for me to gather and get all this info!!!!!!
You should give credits to whom you copied this from.
oh yea i almost forgot.Thx fellow citizen!!!!
And it's good to remove/wipe the battery status data with the charger plug-in as the last step.
thx bnwg, but i don't get you. Mind if you make yourself clearer? Thx!!!!
nickrule1896 said:
thx bnwg, but i don't get you. Mind if you make yourself clearer? Thx!!!!
Click to expand...
Click to collapse
He's referring to deleting the batterystats.bin file from the /data/system folder.
Yup, got it thx!!!!
mount -a
rm /data/system/batterystats.bin
For this set of instructions, can the console in the OR be used to perform it?
mods should make this thread a stickie.
Calibrating Without Downtime!
Edit: If this doesn't work on your device, try the Die-Hard Battery Calibrator Script to ensure a proper charge
This is proven to work with Motorola Milestone so I would imagine the Droid as well.
It works with the Milestone 2 but you may need to get the phone booted up manually (step 7) instead of the easy reboot in step 6.
If you have a different phone and this works, please let us know!
You probably won't believe that this will work but try it anyway.
The big benefit of doing it this way:
It's great if you don't plan on changing roms and just want to calibrate your battery without downtime so that you can just use your phone as you normally would.
Note: Be sure that the phone isn't running hot (feel the back)
1. While in Android, charge up to 100% and leave the phone plugged in.
2. Delete /data/system/batterystats.bin
3. Remove back cover
4. Press Power and choose to reboot normally.
5. When the screen goes black and the lights go out, pull out the battery before you get the M logo. It will probably still work after the M logo shows up but that's how I do it.
6. Surprise: The phone will boot up without the battery! - Mine does - every time
Note: Batterystats.bin is recreated when you see the M logo - even though the battery isn't in the phone.
Go to Step 8 if the phone booted up as described.
7. If it doesn't boot up and you see the battery with the ?
..........a) Put the battery back in (you will see 60%),
..........b) Power off the phone (press power until LED light goes out)
..........c) Power on the phone (press power until you see the M logo)
..........d) Remove battery... and watch bootanimation...
8. a) After the surprise of seeing the boot animation without a battery, you will then see the lock screen along with a "No SIM card error" and no signal.
...... Put the battery back in - the SIM card error will disappear, you will get a signal, it will show 60% full and the icon will show the battery charging.
...... Go to Step 9 if this works as planned. If it doesn't, reboot (again without the battery) and use step 8b instead of step 8a.
... b) Put the battery back in during the bootanimation, but after the haptic feedback/vibration (and the buttons along the bottom light up).
....... On a normal reboot, you can actually slide and unlock the phone when you get the vibration during the boot animation. You knew that, right?
9. Use your phone normally while you calibrate the battery
10. Let it fill it up to 100% + 15 minutes or so. When it is truly finished charging, the battery should be cool.
11. If the phone is running hot, weird things can happen. For example, you may get no signal when you put the battery back in or the battery doesn't begin charging (the status bar battery icon doesn't change). Just let the phone cool off and it should work next time.
100% full is approximately 4200mV
As you can see in the cap below, it's showing only 60% at 4241mV (This was after booting up without the battery and putting the battery in)
A few minutes later, still plugged in, it showed 100% at 4225mV and then it went up to 4230mV.
Finally, I then unplugged the phone and I got a reading of 4196mV
Notes:
Now, when I charge it up, it will go up to 4230mV everytime. I leave it plugged in an extra few minutes after that.
I highly recommend Battery Monitor Widget
Batterystats.bin gets recreated if you unplug your phone and plug it in again. So don't do that. Let it get recreated on the M logo (Step 6).
Thanks to pcphobic for a couple of important tips and to pcphobic and sileshn both for confirming that my phone isn't possessed!
Azhad (one of the two Androidiani OR developers) said another way to wipe battery
http://forum.xda-developers.com/showpost.php?p=11715432&postcount=967
now i don't know what's the right one? delete batterystats.bin or battd folder's contents? with full or empty battery?
nickrule1896 said:
Credits to everyone who have written all these in your posts that made it possible for me to gather and get all this info!!!!!!
Click to expand...
Click to collapse
It would have been nice if you mentioned my name or put a source link to my posting dated 24th February 2011 at
http://forum.xda-developers.com/showpost.php?p=11604143&postcount=740
etoy said:
Azhad (one of the two Androidiani OR developers) said another way to wipe battery
http://forum.xda-developers.com/showpost.php?p=11715432&postcount=967
now i don't know what's the right one? delete batterystats.bin or battd folder's contents? with full or empty battery?
Click to expand...
Click to collapse
Recently I follow Azhad's way to wipe the battery.
When I delete the file (ie. cc_data) under that folder and go back in it, the file will be regenerated. And the batterystats.bin is updated according to the timestamp of the newly generated cc-data file. I don't know if this is the same as the step 6 from zeppelinrox's method.
etoy said:
Azhad (one of the two Androidiani OR developers) said another way to wipe battery
http://forum.xda-developers.com/showpost.php?p=11715432&postcount=967
now i don't know what's the right one? delete batterystats.bin or battd folder's contents? with full or empty battery?
Click to expand...
Click to collapse
Maybe that's the method for CM7? I don't know because I'm a die hard CM6er lol
He also mentions a file (/data/system/batterystats.bis) that I've never seen mentioned before.
bnwg said:
Recently I follow Azhad's way to wipe the battery.
When I delete the file (ie. cc_data) under that folder and go back in it, the file will be regenerated. And the batterystats.bin is updated according to the timestamp of the newly generated cc-data file. I don't know if this is the same as the step 6 from zeppelinrox's method.
Click to expand...
Click to collapse
I have that cc_data file too but it's blank when I open it with a text editor.
im just linking my post here: http://forum.xda-developers.com/showpost.php?p=11603675&postcount=736
the myth about the batterysoftware needs some real facts. payce from german forum did some measuring with real astonishing results.
I have seen that article before.. thanks to you of course
I'll quote the conclusion of the first post:
That is, the stone over-estimated the voltage at the battery is full by ~ 60 mV and underestimated the power of up to 100 mV with an empty battery. The intent is well-battery protection (which is good too). It is pretended that 3.0 and 4.2 volts to discharge until it is loaded. In reality, there are more 3.1 volts and 4.15 volts (which by the way of battery manufacturers also better unanimous opinion!).
Click to expand...
Click to collapse
So the reading I get via Battery Monitor Widget aren't that far off and perhaps exactly where they're supposed to be.
After fully charging (showing 4230mV while plugged in) and then uplugging the phone, it will ideally show between 4150mV and 4200mV vs the 4.15 volts (ie. 4150mV) quoted above.
My phone will power itself off between 3150mV and 3200mV vs the 3.1 volts (3100mV) quoted above. Actually, I just checked BMW's log and today it powered itself off at 3162mV after 19.5 hrs.
I found it interesting that you use less power while downloading overclocked versus downloading at stock speed lol.
ABC: Android Battery Calibration - Video Guide
youtube.com/watch?v=fwrZu0DKp2c[/url]
@zeppelinrox: wouldnt ur steps be the same as doing the calibration my way, just that instead of booting to OR for flashing new rom, we just reboot normally?
@pcphobic: sry cos it would be hard for me to go around checking who posted this kind of info before. well, since u said it, i will definitely do it
nickrule1896 said:
@zeppelinrox: wouldnt ur steps be the same as doing the calibration my way, just that instead of booting to OR for flashing new rom, we just reboot normally?
Click to expand...
Click to collapse
Of course it would calibrate either way.
The difference is that I found a way to do it more conveniently.
You can do it anytime, use your phone normally and actually monitor the voltage as well.
Sent from my Milestone using Tapatalk
zeppelinrox said:
Of course it would calibrate either way.
The difference is that I found a way to do it more conveniently.
You can do it anytime, use your phone normally and actually monitor the voltage as well.
Sent from my Milestone using Tapatalk
Click to expand...
Click to collapse
I am using MS2 and there isn't an option of "reboot" when pressing the power button. Can this be done by using the "quick boot" app? thanks
https://market.android.com/details?id=com.siriusapplications.quickboot&feature=search_result

Battery drain Problem [100% to 5, then shutdown]

I am trying to determine if I have a bad battery or it's the Android costing this issue. While using my Tilt I have wifi on and was using the apps (IE: Market, XDA, etc...) the battery indicated the full charge (or what I have left) drop to 5%. Sometime it will shutdown my Tilt first and when I boot it back up it indicated that I only have 5% or less battery power. That is within 5 minutes of use.
Do I need to get a new battery or is this problem with something else?
1. battery dead.
2. software problem. I have bought a tytn II with 30Euro because it had a problem with the battery. resoft and radio update made me happy. i have 2 tytn's working perfectly. one is for testing and the other one for every day use.
cabasse_tronic said:
1. battery dead.
2. software problem. I have bought a tytn II with 30Euro because it had a problem with the battery. resoft and radio update made me happy. i have 2 tytn's working perfectly. one is for testing and the other one for every day use.
Click to expand...
Click to collapse
That is what I am try to determine, if I need to go out and buy new battery.
Battery status in the setting stated that the battery is in good condition.
What did you mean by resoft and radio?
In Android there should be an app called "Spare Parts" in the app drawer. Find this app, open it then select "Battery Information". Leave this up while charging because we need to see at what point the phone says it's charged. Normal charge level for ANY single-cell Li-Ion battery is 4.2 volts, no higher.
Once charged, disconnect charger and watch the battery voltage number. It should drop a little once off charge (maybe 4.1-4.0 volts). If it drops steeply, say 3.8 or less, your battery is bad and needs to be replaced.
It sounds like your battery is dropping WELL below the "rest" voltage sometime shortly after charging, indicating delamination inside the cell, an indicator of over charging.
I've studied quite a bit on how Li-Ion batteries work over the past year so if anyone should know, I would...
Good luck!!!
resoft = new firmware = new OS = etc
radio = 1.70.xx. = that thing required so that your tytn II work with android on it.
PoXFreak said:
In Android there should be an app called "Spare Parts" in the app drawer. Find this app, open it then select "Battery Information". Leave this up while charging because we need to see at what point the phone says it's charged. Normal charge level for ANY single-cell Li-Ion battery is 4.2 volts, no higher.
Once charged, disconnect charger and watch the battery voltage number. It should drop a little once off charge (maybe 4.1-4.0 volts). If it drops steeply, say 3.8 or less, your battery is bad and needs to be replaced.
It sounds like your battery is dropping WELL below the "rest" voltage sometime shortly after charging, indicating delamination inside the cell, an indicator of over charging.
I've studied quite a bit on how Li-Ion batteries work over the past year so if anyone should know, I would...
Good luck!!!
Click to expand...
Click to collapse
This is what I see while charging.
Battery Status: Charging (USB)
Power Plug: USB
Battery Level: 69
Battery Scale: 100
Battery Healthn: Good
Battery Voltage: 4177mV
Battery Temparature: 32.7c
It currently at 70%, I'll report back once it fully charged.
cabasse_tronic said:
resoft = new firmware = new OS = etc
radio = 1.70.xx. = that thing required so that your tytn II work with android on it.
Click to expand...
Click to collapse
I think I have either 1.71 or 1.70 radio (can't really tell sicne I do not know where to look. I have tried different OS (IE: Scoot, Fat Free, etc...) Still the same problem.
One other thing, the phone keep shutting down in the middle of me trying to use it. So, I don't know if it is related to the battery issue I have or not.
Maybe simple solution will be the best solution Back to original system (win6.1) for one day and you will see what causing problems. If everything will be ok that you doing something wrong with android. If not-battery is dead or it is another hardware problem....
@ PoXFreak - After fully charged and the batttery voltage went from 4.2 (4217mV) to 3.9 (3990mV) in less than a minute. And it keeps dropping, after a few minutes it dropped to 3.8 (3808mV - 3855mV)
BeenAndroidized said:
@ PoXFreak - After fully charged and the batttery voltage went from 4.2 (4217mV) to 3.9 (3990mV) in less than a minute. And it keeps dropping, after a few minutes it dropped to 3.8 (3808mV - 3855mV)
Click to expand...
Click to collapse
Check it out friend .
http://forum.xda-developers.com/showpost.php?p=19304818&postcount=2
tomcug said:
Check it out friend .
http://forum.xda-developers.com/showpost.php?p=19304818&postcount=2
Click to expand...
Click to collapse
OK! I disabled the background updates per the link. I'll download the widgit in a few.
look http://forum.xda-developers.com/attachment.php?attachmentid=466379&d=1292559472
klm12 said:
look http://forum.xda-developers.com/attachment.php?attachmentid=466379&d=1292559472
Click to expand...
Click to collapse
So, what is this attachment? Kernel?
klm12 said:
look http://forum.xda-developers.com/attachment.php?attachmentid=466379&d=1292559472
Click to expand...
Click to collapse
What ever that file was broke my wifi.
BeenAndroidized said:
What ever that file was broke my wifi.
Click to expand...
Click to collapse
You need to reinstall distro after such flash, but this time without applying update.
tomcug said:
You need to reinstall distro after such flash, but this time without applying update.
Click to expand...
Click to collapse
OH! I'll keep that in mind. It's a little different than what I am used to. Thanks!
OK! I have flashed kernel 2.6.25. See if that will makes any different with this battery problem.
BeenAndroidized said:
OK! I have flashed kernel 2.6.25. See if that will makes any different with this battery problem.
Click to expand...
Click to collapse
I used 2.6.25 in the past, good one so give it a try . Also, check that app I've shown you few posts ago, it shows battery usage in mA, show me your results, for me it's around 200 mA.
It looks like the battery still drain fast, it just dopped down to 1% and shutdown on me, I will download that apps once I have a chance.
BTW! How do I tell what version radio I currently have? I cannot find that info anywhere. The place where it usually will show me (Baseband version) only said HTC.

Categories

Resources