I'm running MIUI 1.9.2, and it's not that my battery is draining ridiculously fast, but the awake stat in the battery stats is basically one continuous line, indicating to me that the phone is always awake....How can I tell definitively if I have a wakelock, and how can I get rid of it if I have one? I searched the forums, and couldn't find anything definite.
Spare parts gives you more specific usage statistics.
I also use watch dog which watches cpu usage for apps.
Today's myth debunking:
"The battery indicator in the status/notification bar is a reflection of the batterystats.bin file in the data/system/ directory."
No, it does not.
This file is used to maintain, across reboots, low-level data about the kinds of operations the device and your apps are doing between battery changes. That is, it is solely used to compute the blame for battery usage shown in the "Battery Use" UI in settings.
That is, it has deeply significant things like "app X held a wake lock for 2 minutes" and "the screen was on at 60% brightness for 10 minutes."
It has no impact on the current battery level shown to you.
It has no impact on your battery life.
Deleting it is not going to do anything to make your more device more fantastic and wonderful... well, unless you have some deep hatred for seeing anything shown in the battery usage UI. And anyway, it is reset every time you unplug from power with a relatively full charge (thus why the battery usage UI data resets at that point), so this would be a much easier way to make it go away.
Click to expand...
Click to collapse
https://plus.google.com/u/0/105051985738280261832/posts/FV3LVtdVxPT
Already threads on this..
Sent from my Galaxy Nexus using xda premium
i've known this for like 2 years. wiping batterystats.bin does nothing whatsoever. i just never have the energy to post it around the forum since you see so many people saying to wipe batt stats.
i tried to open the stats file one time and all it looked like to me was the same info you see in the battery settings menu with the list of apps used on battery, and wakelocks etc.
glad this is finally getting out there!
I also suspected this was the case but as I got what I expected from my battery I never really looked in to it although I have read the nonsense calibration posts etc.
Thanks for posting mate its confirmed my thoughts!
I had a normal phone time on battery before (24h with 2,5h screen time).
And now my battery goes to almost zero in 12h and 1,5h.
I must have installed something which drains the battery. Maybe mail sync or smth.
1. Could you please, who have 24h and 3,5 screen time post your Android system keep awake, cputime and other parameters?
2. Could you provide explanation what is "keep awake" and other similar words used in battery stats screen?
Maybe answers would give me a clue where to search for battery drainer.
Thanks!!!
battery
i would recommend getting cpuspy and seeing if your phone is going in to deep sleep. If it isn't than something is keeping the phone awake. You can dl betterbatterystats and find out what processes are draining your battery along with wakelocks which is waking up your system.
bullka said:
I had a normal phone time on battery before (24h with 2,5h screen time).
And now my battery goes to almost zero in 12h and 1,5h.
I must have installed something which drains the battery. Maybe mail sync or smth.
1. Could you please, who have 24h and 3,5 screen time post your Android system keep awake, cputime and other parameters?
2. Could you provide explanation what is "keep awake" and other similar words used in battery stats screen?
Maybe answers would give me a clue where to search for battery drainer.
Thanks!!!
Click to expand...
Click to collapse
Just keep in mind many folks who get good battery life like that are Rooted running different Kernel and ROM setups.
As mentioned, CPUSpy is a great tool to get a better idea of whether or not your phone is buzzing along at 350 MHz when you're not using it, this is what turns your full day phone, into a half day phone.
Better Battery Stats is also indispensable in my opinion, it can help you diagnose why your phone is staying awake, the majority of the time you can do something about it since user apps tend to be the culprit.
Free on XDA, paid on the Market (and worth every penny).
Hi,
On my One-X battery meter is completely inaccurate. Sometimes it sits for hours on one value (e.g. 90%) and then suddenly drops (with no CPU/data activity whatsoever) to for example 80%. This results with very jerky battery use graph (attached mine). I am on 1.29.401.7 and done multiple full discharge/charge cycles, but it does not make any difference.
I have never seen such bad battery meter behavior on any other Andoid phone. Have you got similar problem?
I have the exact same problem actually.
Same here. It's as if it doesn't update the battery meter when it's in sleep (fifth core running). I suspect it's because of the T3 architecture and power management. As soon as you wake it, after maybe a minute, it updates the battery status...
Mines does it. Can sit on a %age for an age then with little use it will plummet.
@Op,
No I didn't notice such a problem on a unrooted One X and with no modifications running the latest OTA update 1.29.401.11.
Did you play with battery apps or did you modify something yourself which could cause this issue? Did you investigate what could cause it?
How long do you have your device, did you install apps? Can you provide more info about it maybe? Do you softreset your device?
Did the problem exist when you bought the device?
Thanks.
So it must be general problem then. It happens to me not only in sleep mode, but when browsing the web, etc.
I think these sudden percentage jumps and meter inaccuracy also contribute to all these battery life complains from various people. I was personally shocked when after a few minutes of web browsing battery dropped instantly from 30 to 20%. It looks like crappy battery, but in fact seems to be just dodgy meter...
Laurentius26 said:
@Op,
No I didn't notice such a problem on a unrooted One X and with no modifications running the latest OTA update 1.29.401.11.
Did you play with battery apps or did you modify something yourself which could cause this issue? Did you investigate what could cause it?
How long do you have your device, did you install apps? Can you provide more info about it maybe? Do you softreset your device?
Did the problem exist when you bought the device?
Click to expand...
Click to collapse
I have got the phone for almost a week now and I am pretty sure this problem has been there from the very begining. I initially though this is because a couple of full charge / discharge cycles are required to calibrate the meter, but it did not make any difference. My phone is not unlocked, no mods or battery apps. I did not try soft reset though.
It looks to me that meter is somehow not updating during the sleep. When device wakes from sleep, after a couple of minutes value drops significantly. This problem is probably a reason for various false claims that One X does not consume a single percent of battery during the overnight sleep.
Yeah, i have the same thing. Sometimes my battery drops about 2 or 3 percent at once, sometimes 10 percent...pretty annoying.
Thanks for your reply.
I'm new to Android but I do have some Windows Mobile experience.
It's weird to me seeing people having such problems because I realy don't experience it.
My battery meter is constant, also after a night sleep.
Maybe it's because I use my device different as others I don't know, it's strange to see all these reports in XDA forum as the One X to my opinion is a very cool device.
Maybe you could try some battery percentage apps and see if it realy is that insufficient?
aszu said:
I have got the phone for almost a week now and I am pretty sure this problem has been there from the very begining. I initially though this is because a couple of full charge / discharge cycles are required to calibrate the meter, but it did not make any difference. My phone is not unlocked, no mods or battery apps. I did not try soft reset though.
It looks to me that meter is somehow not updating during the sleep. When device wakes from sleep, after a couple of minutes value drops significantly. This problem is probably a reason for various false claims that One X does not consume a single percent of battery during the overnight sleep.
Click to expand...
Click to collapse
No problems with the battery monitor whatsoever (unrooted) 1.28.161.9
Laurentius26 said:
Thanks for your reply.
I'm new to Android but I do have some Windows Mobile experience.
It's weird to me seeing people having such problems because I realy don't experience it.
My battery meter is constant, also after a night sleep.
Maybe it's because I use my device different as others I don't know, it's strange to see all these reports in XDA forum as the One X to my opinion is a very cool device.
Maybe you could try some battery percentage apps and see if it realy is that insufficient?
Click to expand...
Click to collapse
I used your excellent ROMs on my HD2 in dark WM6.5 ages . I am glad to see you here with One X!
I installed Battery Meter Widget and (if the readings are correct), my One X consumes about 10-15mA during the sleep with Wifi and 3G on. I will keep an eye on the percentage.
Don't get me wrong - besides of erratic GPS and dodgy battery/power management problems, I really love this device.
I really wished that international One X version was based on S4 SoC (superb GPS with GLONASS and great power management as S4 is a 28nm chip). It is such a shame that dodgy Tegra 3 ruins this excellent device...
Hello, maybe this behaviour is only due to the voltage sampling/display ...
Someone here says the native battery app was only at 5% precision at display
and it looks like it updates in long time samples too ( 5 minutes ? ) ...
Knowing that Li-Ion goes from 3600 mV ( 0% ) to 4200 mV ( 100% ),
it means 600 mV of voltage variation from empty to full, with 1 mV precision.
So 1 millivolt is 0.2% of battery charge.
The display should be really more precise if all voltage precision was used.
aszu said:
Hi,
and then suddenly drops (with no CPU/data activity whatsoever)
Click to expand...
Click to collapse
looking at that screenshot you have posted the sudden drops appear to be perfectly aligned to the 'screen on' or 'awake' periods so the most likely (and obvious) cause is that using the phone causes most battery use. I have seen this with many phones, I think its normal. Being in standby doesnt use much power at all but lighting the massive 4.7" screen and running a quad core processor does, so when you use the phone it uses loads more juice... thats my analysis anyway
f_padia said:
looking at that screenshot you have posted the sudden drops appear to be perfectly aligned to the 'screen on' or 'awake' periods so the most likely (and obvious) cause is that using the phone causes most battery use. I have seen this with many phones, I think its normal. Being in standby doesnt use much power at all but lighting the massive 4.7" screen and running a quad core processor does, so when you use the phone it uses loads more juice... thats my analysis anyway
Click to expand...
Click to collapse
No, this is different. Drop in fact seem to be related to wake up from deep sleep, but the point is that this drop is massive and instant i.e. battery instantly drops from 30 to 20, bypassing all other percent states in between. Also, I am sure battery state does not update properly in deep sleep in many cases. At some point I left my phone for almost a day alone (wifi, 3g, Gmail and exchange sync, etc) and it did not lose a single percent, but as soon as started using it I observed instant 20% drop.
Same problem here even after hard reset
Sent from my HTC One X using XDA
d33f said:
Same problem here even after hard reset
Sent from my HTC One X using XDA
Click to expand...
Click to collapse
+1
And I have even worse problem, can anyone help me?
Take a look at my thread (not highjacking yours, just want some help too), my current widget never reads a real value AFAIK.
It stay with -850 for more than an hour at times...
And my battery life is dismal...
So this means that seeing no battery discharge throughout the night in sleep mode isn't due to excellent power saving feature of the companion core but is in fact poor battery meter?
And yes, my One X shows fast and huge discharge (3-5% at once) when I use after being in long sleep mode
samuelong87 said:
So this means that seeing no battery discharge throughout the night in sleep mode isn't due to excellent power saving feature of the companion core but is in fact poor battery meter?
And yes, my One X shows fast and huge discharge (3-5% at once) when I use after being in long sleep mode
Click to expand...
Click to collapse
I think it too. Phone on sleep with data and sync on for 1 or 2 hours and % don't change. Use it for 2 min. and it suddently goes down by 5/10%
In my opinion the battery meter lacks of accuracy. This brings to inaccurate real time current calculations and wrong information about what's consuming power when we use it. That's bad!
I'm also seeing these big drops. For me it seems to happen between 100%-60% battery, battery level will drop anything from 5%-10% chunks at a time. After 60%, it does seem to be more stable and drop in 1-2% increments.
I've recalibrated the battery through CWM a couple of times but still get this issue.
It almost seems like there's a bug in the code that is causing the fuel gauge to not update.
I can tell you this, I modified other HTC phones battery driver. The nexus one driver for example updates volt, percent, temp, every 50 seconds while the screen is on. When off the sample poll changes to 10 minutes per update. This is real easy to see in the driver code, and you can filter dmesg log for "batt" and see the time stamps do in fact match this.
But the one x looks to be getting hung up on that part. Anyone know if kernel code has been released yet?
I just got one of these extended 3600mAh batteries for my i927, and now i wonder if there is any way to tell the phone/android when/if i am swapping batteries and therefore changing capacity of the battery.
So far, the only thing i found was a way in CWM to reset the battery stats. I now try to train the phone to the new 3600mAh battery, but if i ever should even just temporarily swap it against the older 1800mAh battery, then the stats will get totally screwed up again, right ?
So, any app to maybe store and recall the battery stats ? Then it would be possible to train the phone independendly for each battery, store the stats, and accordingly use the app to recall the battery stats after swapping it.
Thanks
It's not the phone that gets trained, but an IC in the battery itself. Each battery has an embedded processor that tracks current charge levels using a semi-predictive algorithm. That's what the third conductor is for -- it's a one-wire serial connection between the phone and the IC inside the battery. So when you switch batteries, you're also switching the IC that's tracking the battery's charge.
The batterystats.bin on the phone is just statistics tracking for what is using power, how much, and how often. These are the stats you see in Settings -> Battery and have nothing to do with current charge levels, actual or displayed.
tl;dr: It doesn't work that way. Swap your batteries freely and don't worry about it.
Brightness taking the battery?
Is there an app or tweak that will let me turn down the "ambience" on my captivate? I mean, on my old iPod (I know, right ) there was a Cydia app that allowed me to set a certain time for when the brightness would kind of "lower the hue" and made it look kinda like a old style fleurescent light. Kind of amber in color.
In my battery manager, the screen takes up MORE than 50% of my battery life, and I was wondering if there was a way to do that, instead of having to manually turn up the brightness when I need to. It's currently all the way down, and yet STILL ueses a bunch of battery.
Anyone?
I use the Lux app from the app store and it does this. At a certain time it will transition to a warmer color that you set and it also has many settings for light dimming based on a number of factors. You can also set the output to sub zero.
Sent from my SGH-I927 using xda app-developers app