Reset Battery Guage! - Xperia Play General

Reset Battery Guage!
What Does it do?
It basically resets ur Devices Battery Guage to Get rid of False Battery Info, therefore Giving Proper Battery Life so Your Device wont shut down when "3% Battery Remaining" When its probably 13% Remaining
Isnt This calibrating the Battery?
Im Not to Sure, :?, But i think That Calibrating deletes a file, Where as This Changes a Value in a File
Tweak:
Code:
echo "1" > /sys/devices/platform/i2c-gpio.9/i2c-9/9-0036/power_supply/fuelgauge/fg_reset_soc
Just put that into a .sh file and run it, and hopefully their will be no errors , then reboot and leave ur device for 1-2 Hours, (BTW i havent Tested yet!)

You copied my sig didnt you?
Anyway im gonna try this, does it work for ICS?

Lol, I knew ud notice,
Sent from my R800i using xda app-developers app

Haha lol
And i dont really see any difference with the mod now, but ill still keep it
Sent from my Xperia Play

CyberScopes said:
Haha lol
And i dont really see any difference with the mod now, but ill still keep it
Sent from my Xperia Play
Click to expand...
Click to collapse
ok kool, , let it settle it, Ps i did it to and i dident see anything different, but i think im gonna leave it to for a while (im running cm10...)

Related

[Guide]Optimizing your battery. (A guide for all of us)

"please read any comments as some are useful"
Before you start doing this make sure you have time on your hands.
Follow it step by step...
Read the entire set of steps and comments first.
Do not deviate.
If you are having issue's with it not charging fully. "70% to 90% and no further." then begin at step 7
If you have Xrecovery installed wipe battery stats first to reset the battery cache to the defaults.
This post will not talk about apps or any odd mods.
It's here to clear up on how to properly optimize the battery in your phone.
The battery has a cache file used to set the top and bottom battery level.
Today i am gona teach you how to set it correctly using nothing more than your phone and charger.
While doing this it will also properly "cycle" the cells.
This leads to the final part of my guide.
Damaged batteries.
If your life on the battery when using only airplane mode.
Is very bad.
Then you should be careful.
1. Check for any swelling or deformation on the battery.
2. Battery gets very warm while charging on standby in airplane mode.
If found Discontinue guide and replace with new battery.
And calibrate again from step 1.
-Enjoy
1. Charge your phone fully to 100%
2. Plug out your charger & switch off your phone.
3. Remove the battery and plug in the charger.
4. Re-insert your battery
This is sets the top end battery parameter to a higher state allowing for further charging.
Should read 88% now.
5. Keep a eye on your phone as it charges!!!
Remove the back plate and feel if it's getting hot "it should not be a issue"
6. Repeat steps 1 to 5
Repeat this no more than 2 to 5 times till the battery will not charge further
A few extra may be required...
The battery may get stuck at 70% to 99% "most of the time 88%"
The cells have now reached full potential
IF in the case that it keeps charging after the 4th time your battery is fully optimized Enjoy, Continue with step 7
7. Let your phone run down it's battery
Don't use the phone aggressively
Leave it till it switches itself off
Now it has marked the very lowest point of the cell in the cache
8. Don't leave the battery empty, begin charging as soon as possible.
If your phone does not switch on right away.. relax.
Just leave it on charge for about a hour "will switch itself on"
9. Repeat steps 7 and 8 a few times.
You will notice each time that the battery may charge just slightly bellow 100%
Getting closer to 100% each time
10.Soon it will read 100%
It has now marked the top charged point for the cells
If step 7&8 does not bring the battery to 100% use the battery calibration app from the market.
Don't rush.. take it calm and easy.
Enjoy your properly set, fully optimized battery.
If you are planning on flashing a new rom you can copy "data/system/batterystats.bin"
And copy it back once you are done flashing.
This way you don't lose the optimization.
The battery does have over current protection it should be just fine.
Still be careful.
This knowledge is based on direct experience building electronic projects for over 23years that require rechargeable cells and the nightmares i had with a bad x10 chipset..
REMEMBER THAT I'M NOT RESPONSIBLE IF YOUR PHONE BLOWS UP ETC.
:- final edit 2011/9/12 -:- 3:09PM
Added extra on damaged cells.
Found a few more mistakes and required details... edited.
Added a line for Xrecovery users. <<< removed this.. it's crap.
Thank you xcxa23 for showing me where the battery stats file is.
LET me MAKE this 100% CLEAR... wiping stats = nothing
This guide cycle's your battery, by correctly setting the upper and lower parameters of the cell.
[GUIDE] X10 Battery Calibration arent this the same? if you wanted to do it manually, u can go to data/sytem and delete the batterystats.bin file. but of cos u had to wait till 100% before u delete the file
nice one OmegaRED^....
ahaks..i already read it somewhere at Development Section..but never try it..
xcxa23 said:
[GUIDE] X10 Battery Calibration arent this the same? if you wanted to do it manually, u can go to data/sytem and delete the batterystats.bin file. but of cos u had to wait till 100% before u delete the file
Click to expand...
Click to collapse
Not a full cycle.
He missed the discharging cycle.
And a few other details.
xcxa23 said:
[GUIDE] X10 Battery Calibration arent this the same? if you wanted to do it manually, u can go to data/sytem and delete the batterystats.bin file. but of cos u had to wait till 100% before u delete the file
Click to expand...
Click to collapse
yeah it's the same but this one is ultimate lol
You may have noticed i take the time to explain exactly why you do something.
making this look less like voodoo and more like science.
Wooo... made alot of edits to this.
Same thing here...
wrong post
sorry for the inconvenience....is there a way to remove my own posts?
OmegaRED^ said:
Not a full cycle.
He missed the discharging cycle.
And a few other details.
Click to expand...
Click to collapse
So it was necessary to create a whole new thread instead of lets say, PM'ing me so that I can add the missing information? Either way, this really works to improve the battery life, and the more people know about this, the better. Going to thank you anyway.
ooidort said:
So it was necessary to create a whole new thread instead of lets say, PM'ing me so that I can add the missing information? Either way, this really works to improve the battery life, and the more people know about this, the better. Going to thank you anyway.
Click to expand...
Click to collapse
Oh.. sorry dude.
Really did not mean to steal your thunder or anything.
If you want i can have the mods delete this and you can add anything you need from here.
OmegaRED^ said:
Oh.. sorry dude.
Really did not mean to steal your thunder or anything.
If you want i can have the mods delete this and you can add anything you need from here.
Click to expand...
Click to collapse
Haha, no it's fine. Yours is more comprehensive than mine, plus you seem to know what you're talking about so I have no problem with this.
ooidort said:
Haha, no it's fine. Yours is more comprehensive than mine, plus you seem to know what you're talking about so I have no problem with this.
Click to expand...
Click to collapse
I'm thanking you. cuz you are such a good sport.
OmegaRED^ said:
I'm thanking you. cuz you are such a good sport.
Click to expand...
Click to collapse
mmmh, i like the feeling in here!
Performed as said in the OP along with a full discharge and recharge and I'm getting a lot more use out of my phone now. Use it a lot for listening to music so the battery drained quickly but not any more.
tomgus1 said:
Performed as said in the OP along with a full discharge and recharge and I'm getting a lot more use out of my phone now. Use it a lot for listening to music so the battery drained quickly but not any more.
Click to expand...
Click to collapse
Glad to be of help.
OmegaRED^ said:
Glad to be of help.
Click to expand...
Click to collapse
Will post more later once I've spent some more time with it and put my phone under more processing.
does it work with costum kernel? or it doesn't matter? i'm having some nasty battery problems..7% down it 30 minutes
Ipy219 said:
does it work with costum kernel? or it doesn't matter? i'm having some nasty battery problems..7% down it 30 minutes
Click to expand...
Click to collapse
Nope.. it does not matter.
This is not a hack or a trick.
It's simple li-ion battery science.
If it still has problems then your battery is already optimized and your problem is completely different.
This 7% in heavy usage or light usage or standby?
Ipy219 said:
does it work with costum kernel? or it doesn't matter? i'm having some nasty battery problems..7% down it 30 minutes
Click to expand...
Click to collapse
it's because u wiped battery stats on the low battery charge and didn't make a battery calibration. I had the same problem until the calibrating using another method (for me is easier, but this topic shows another way, which can probable be very effective )
Thx OP, although it was stated in another thread like noticed
Someone on XDA also done an Android app, Battery Calibration, easying the process of battery calibration/wiping.
I don't use it for calibration, just to get battery health in mV (even if you can grab it from Android System Info, Android Assistant, etc).
Still using the good ol' method of xrecovery

need your best batterystats.bin for best battery life

hey, i'm currently running cyanogenmod #21 came from bionix 1.3.1, got really ****ty battery life, i have deleted batterystats.bin when i was running bionix, and i deleted it when my phone wasn't in 100% battery, so now with cm7 i still got the same problem,i searched the batterystats.bin in system but i couldn't find it,then i wiped battery stats from CWR after full charge and drained it, but still got ****ty battery life, btw can you guys provide me your best batterystats.bin for this lonely poor guy
I delete my battery stats with sgs tools. Maybe u have a bad battery
Sent from my SGH-T959 using XDA Premium App
I'm getting great battery life, i don't know why people keep complaining about it. Let your phones battery die, then fully charge it without any use.
Sent from my SGH-T959 using Tapatalk
nasgadth said:
hey, i'm currently running cyanogenmod #21 came from bionix 1.3.1, got really ****ty battery life, i have deleted batterystats.bin when i was running bionix, and i deleted it when my phone wasn't in 100% battery, so now with cm7 i still got the same problem,i searched the batterystats.bin in system but i couldn't find it,then i wiped battery stats from CWR after full charge and drained it, but still got ****ty battery life, btw can you guys provide me your best batterystats.bin for this lonely poor guy
Click to expand...
Click to collapse
I don't believe batterystats.bin works that way. It's a file that is automatically generated by the Android system so just putting someone else's file on your phone isn't going to give you great battery life.
The file is in /data/system. Check again and if it's not there and you are not plugged into power then you may have an issue. Reboot and see if it shows up and if not try odin back to stock and flashing CM7 again.
Also the app Battery Calibration is very good calibration program.
Sent from my SGH-T959 using XDA Premium App
jneal9 said:
I don't believe batterystats.bin works that way. It's a file that is automatically generated by the Android system so just putting someone else's file on your phone isn't going to give you great battery life.
The file is in /data/system. Check again and if it's not there and you are not plugged into power then you may have an issue. Reboot and see if it shows up and if not try odin back to stock and flashing CM7 again.
Also the app Battery Calibration is very good calibration program.
Sent from my SGH-T959 using XDA Premium App
Click to expand...
Click to collapse
i'm using battery calibration now, but still the same, other android phones forums got the batterystats.bin file just replaced and their battery life just get better
One thing that was mentioned in the CM7 vibrant threads was to manually delete battstats.bin because it seemed cwm wouldn't actually delete it sometimes.
Using either terminal emulator (em /data/system/battstats.bin) or root explorer, delete the file.
Also, turn off data when your don't need it or aren't using it, use wifi when you can (uses less power).
Sent from my SGH-T959 using XDA App
The correct process is to fully charge your battery, wipe the stats file, then use the phone normally (without plugging it in or otherwise charging it) until Android shuts itself down.
Basically Android needs to start with a blank slate and see what your battery life looks like with normal usage, otherwise your meter will always be incorrect, it will jump around unpredictably, and will probably auto-shutdown at the wrong times. Keep in mind that your phone is essentially a small PC; you want a clean shutdown if possible, instead of the battery-equivalent of just yanking the power plug.
As others have said, you shouldn't use someone else's files, and unfortunately you really shouldn't ever swap in other batteries as they will perform differently. The battery profile also tracks information about application power consumption, which is why you should use your phone normally -- and the stats should get slightly more accurate over time.
geoffcorey said:
One thing that was mentioned in the CM7 vibrant threads was to manually delete battstats.bin because it seemed cwm wouldn't actually delete it sometimes.
Using either terminal emulator (em /data/system/battstats.bin) or root explorer, delete the file.
Also, turn off data when your don't need it or aren't using it, use wifi when you can (uses less power).
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
This gentleman's got it right on the bulls eye.
on CM7, and possibly MIUI...
You MUST delete it manually.
through CWR or the Clibration app, it won't work.
manual = best.
Sorry for posting in an old thread but...
Calibration is a myth, and does not improve battery life whether indirectly or directly...
read this:
hxxp://plus.google.com/u/0/105051985738280261832/posts/FV3LVtdVxPT
Click to expand...
Click to collapse
That was a post by a Google engineer. It also has a long conversation involving other engineers.
Short summary of the page in points:
batterystats.bin does not store data about the battery itself.
batterystats.bin's only purpose is in settings>about phone>battery use
batterystats.bin gets renewed each time you charge your battery.
Calibration does not exist. It is a myth.
The best way is to charge to 100% , root explorer, data/,system/,batterystatsbin and delete it and reboot.It will create a fresh bin shortly after boot.Drain it about 2-3% and charge fully
I have been running bionix with bail uv and I'm getting a day and a half with heavy web and talk for 3 months without one freeze.
Sent from my SGH-T959 using XDA App

Battery stats show as always awake, why?

Hey I was at work today nd noticed tht not only was my phones battery lower then usual but it was kinda hot too it was in my ba ck pocket nd I was walking around alot so there was ventilation I had to put it in airplane mode so it wouldn't die one the ride home and I just checked the stats and it shows my phone as awake 100% of the time but that can't be right am I reading it wrong or something.
Thanks in advance for any help.
Sent from my Atrix-4G, stock 2.3.4 (now rooted)
You might be in Wake-lock hell....get better battery stats from the market and see whats keeping your phone running that way
There were two apps tht said wakelock above it poweramp nd psn hermes app tht shows my friends list for my playstation
Sent from my Atrix-4G, stock 2.3.4 (now rooted)
Yea that means those apps are what keeps running in the background.Also power amp has an option under settings where you can have the service run even when you're not using it maybe you highlighted that check box,if you un-check it it might take care of poweramp.
I noticed things like facebook and other apps are huge memory hogs and need to run in the background so if you like using them then you will have to leave them unless you want to remove them.
Go to battery setting on your phone and set it to battery saver.Also screen brightness is important.Task killers also help shut down apps that you leave open and try advanced task killer by re child.
I deleted tht app nd I think I might delete poweramp too everything else I've either been doin or did but im thinking of unlocking the bootloader which in turn will delete all the apps its always good to restart from fresh so u know wary didn't really need in the first place nd my brightness is always on 0 lol even at that ll its brighter then my friends inspire
Sent from my Atrix-4G, stock 2.3.4 (now rooted)
DopeHack said:
I deleted tht app nd I think I might delete poweramp too everything else I've either been doin or did but im thinking of unlocking the bootloader which in turn will delete all the apps its always good to restart from fresh so u know wary didn't really need in the first place nd my brightness is always on 0 lol even at that ll its brighter then my friends inspire
Sent from my Atrix-4G, stock 2.3.4 (now rooted)
Click to expand...
Click to collapse
If you're rooted, try installing superdim. It'll lower your brightness further.
Sent from my MB860 using xda premium
paravorheim said:
If you're rooted, try installing superdim. It'll lower your brightness further.
Sent from my MB860 using xda premium
Click to expand...
Click to collapse
I have no problem with the screen brightness nd even at max the battery lasts a while battery wasn't a issue up until a bout a week nd a half ago but I deleted the app that was keeping my phone awake. Damn psn hermes
Sent from my Atrix-4G, stock 2.3.4 (now rooted)

Did I just brick my phone ?

So I was being curious (which is what killed the cat , I'm afraid) and I clocked the processor to ~1.5Ghz , everything was going fine until apps like Play Store started closing a few seconds after being launched - I tried resetting the phone but the power off menu took too long to show up so I just took out the battery (I know ...) ... and now the phone won't start.At all.
Is there anything else to do except mourn ?
AychDeeToo said:
So I was being curious (which is what killed the cat , I'm afraid) and I clocked the processor to ~1.5Ghz , everything was going fine until apps like Play Store started closing a few seconds after being launched - I tried resetting the phone but the power off menu took too long to show up so I just took out the battery (I know ...) ... and now the phone won't start.At all.
Is there anything else to do except mourn ?
Click to expand...
Click to collapse
Keep the battery out, wait about 20 minutes, and try booting again. You might need to reflash another kernel if you had the auto boot option set on whatever app you used to overclock. It should be ok.
Sent from my SGH-T889 using xda app-developers app
pyraxiate said:
Keep the battery out, wait about 20 minutes, and try booting again. You might need to reflash another kernel if you had the auto boot option set on whatever app you used to overclock. It should be ok.
Sent from my SGH-T889 using xda app-developers app
Click to expand...
Click to collapse
Luckily , I was not that stupid.I'll wait and report the results.
AychDeeToo said:
Luckily , I was not that stupid.I'll wait and report the results.
Click to expand...
Click to collapse
Um ... nope , waited 30 minutes , no luck.Any other suggestions ?
AychDeeToo said:
Um ... nope , waited 30 minutes , no luck.Any other suggestions ?
Click to expand...
Click to collapse
Are you sure your battery isnt dead ? Try plugging it in and waiting a bit. Most processors have a thermal shut off as a safety precaution well below max temp. Havent heard of someone bricking a phone from overclocking in quite a while.
Sent from my SGH-T889 using xda app-developers app
pyraxiate said:
Are you sure your battery isnt dead ? Try plugging it in and waiting a bit. Most processors have a thermal shut off as a safety precaution well below max temp. Havent heard of someone bricking a phone from overclocking in quite a while.
Sent from my SGH-T889 using xda app-developers app
Click to expand...
Click to collapse
Well , the battery has been performing quite badly since I installed HyperDroid 6.0 , so hopefully it is what the problem is.I just plugged it in and will keep it in for a while ... in the meantime , I'm gonna go play a round of TF2.
AychDeeToo said:
Well , the battery has been performing quite badly since I installed HyperDroid 6.0 , so hopefully it is what the problem is.I just plugged it in and will keep it in for a while ... in the meantime , I'm gonna go play a round of TF2.
Click to expand...
Click to collapse
Nope , it has been plugged since the last time I posted and still no luck.

[Q] Note 3 Overheating and Fast Battery Drain!?

Okay aside from me not having a computer to be able to develop on I still use my Note 3 and yes I am a flashaholic so I do continue to test other developers ROMs and find something that works for me. I am having some really bad battery drain issues on my Note 3 and it gets VERY hot.. i mean like really hot! First off let me say that I don't have warranty on it so i can't send it back to get another one. Whenever I use the phone for pretty much anything it starts to get hot and then battery drains like 20% every 20 min or so. I've tried flashing multiple ROMs and even using stock.. yeah STOCK. But each and everything that I have tried just doesn't help. I am at the point of like smashing my phone on the wall or something lol. Please if you guys have any suggestions please let me know. If i can't get this thing fixed then I will no longer be a Samsung Fanboy (that's a lie) lol. But thanks in advanced!
Droid Premium said:
Okay aside from me not having a computer to be able to develop on I still use my Note 3 and yes I am a flashaholic so I do continue to test other developers ROMs and find something that works for me. I am having some really bad battery drain issues on my Note 3 and it gets VERY hot.. i mean like really hot! First off let me say that I don't have warranty on it so i can't send it back to get another one. Whenever I use the phone for pretty much anything it starts to get hot and then battery drains like 20% every 20 min or so. I've tried flashing multiple ROMs and even using stock.. yeah STOCK. But each and everything that I have tried just doesn't help. I am at the point of like smashing my phone on the wall or something lol. Please if you guys have any suggestions please let me know. If i can't get this thing fixed then I will no longer be a Samsung Fanboy (that's a lie) lol. But thanks in advanced!
Click to expand...
Click to collapse
I had this problem with my old razr, it didn't get as hot as you say but the battery did drain really fast. If I were you I'd buy a new battery and see if you have the same problem. It's not uncommon to have a shot battery. Although, I'm not exactly sure what could be causing the overheating. You could possibly try putting it back to stock, calling Verizon and explaining to them that your battery is dying really fast and the indicator will jump percentages really fast. They may replace it...."may". Tell them you have done nothing to do it and have tried everything on the internet to fix it. What's the worst that can happen, they say no? Good luck man.
Droid Premium said:
Okay aside from me not having a computer to be able to develop on I still use my Note 3 and yes I am a flashaholic so I do continue to test other developers ROMs and find something that works for me. I am having some really bad battery drain issues on my Note 3 and it gets VERY hot.. i mean like really hot! First off let me say that I don't have warranty on it so i can't send it back to get another one. Whenever I use the phone for pretty much anything it starts to get hot and then battery drains like 20% every 20 min or so. I've tried flashing multiple ROMs and even using stock.. yeah STOCK. But each and everything that I have tried just doesn't help. I am at the point of like smashing my phone on the wall or something lol. Please if you guys have any suggestions please let me know. If i can't get this thing fixed then I will no longer be a Samsung Fanboy (that's a lie) lol. But thanks in advanced!
Click to expand...
Click to collapse
If you have an sd card installed, take a look at that first. Make sure there aren't any corrupted files on it.
Sent from my SM-N900V using xda app-developers app
Logan3824 said:
I had this problem with my old razr, it didn't get as hot as you say but the battery did drain really fast. If I were you I'd buy a new battery and see if you have the same problem. It's not uncommon to have a shot battery. Although, I'm not exactly sure what could be causing the overheating. You could possibly try putting it back to stock, calling Verizon and explaining to them that your battery is dying really fast and the indicator will jump percentages really fast. They may replace it...."may". Tell them you have done nothing to do it and have tried everything on the internet to fix it. What's the worst that can happen, they say no? Good luck man.
Click to expand...
Click to collapse
warriorpluto said:
If you have an sd card installed, take a look at that first. Make sure there aren't any corrupted files on it.
Sent from my SM-N900V using xda app-developers app
Click to expand...
Click to collapse
Before I made this post I did some research and found that the sd card may be the problem. I have had it removed for around 2 weeks. I also took the sim card out and still nothing works. If Samsung doesn't send me another one then I will switch to Moto.
Running apps have a factory Mode running? That's what used to make my phone hot.
warriorpluto said:
If you have an sd card installed, take a look at that first. Make sure there aren't any corrupted files on it.
Sent from my SM-N900V using xda app-developers app
Click to expand...
Click to collapse
Make sure your SD card didn't get killed. My battery got VERY hot too & drained very fast
http://forum.xda-developers.com/showthread.php?t=2560780
It seems the Note 3 "eats" SD cards after a few months
My SD card is completely dead. Can't read it with my laptop & other cards are fine in same SD Slot
It happen when inject virus or Chache data So, Before reset check this fix Note 3 getting overheat -14 Reasons and answers

Categories

Resources