yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] jeremysherriff:
OK, losing 8% in 10 hours is not "keeping my phone awake".

Your main drain is indeed the connection to the data network, which is mostly because of the 4.0.4 and IMM76I (and 76D) known issues. Downgrade to 4.0.2 if this much drain is a problem for you. But it is never going to result in "no drain" while you have a google account and/or Whatsapp - your phone connects to the data network, because you have asked it to with those apps.
[BetterBatteryStats] antonyfl:
was wondering if anyone could take a look at my battery usage. My Android OS usage is pretty high, even on standby which is odd. I can't make sense of some of the kernel wakelocks

I am running latest nightly of CM9, galaxy s2 i9100
[BetterBatteryStats] chamonix:
Most of the behavior shown in this reading can be attributed to bad connectivity to the google services (syncloop, gtalk reconnects). As your stats does not show much of bad signal I'd attribute that to problems on google's side. So you should take another reading as those events may have been a one time effect.
[BetterBatteryStats] chamonix:
About the alarms: the figure 476 you mention is not wakeups but wakelocks. That is not the same and that's also the reason why the sum of the wakeups do not match up to the wakelocks. One example: if by code I add an alarms and delete it afterward the chances are high the there would have been two wakelocks hold by alarm manager while there was no wakeup.

The activity of alarm manager puzzles me a lot lately as I have found that some apps (gsf, maps, go sms, etc.) suddenly have dozens of alarms queued, some at almost the same time +/- a a few ms. This picture is related to high activity (partial wakelocks) from AlarmManager.

And suddenly the wakelocks stipped as did those queued alarms.

Now I don't have any proof about this but I am convinced that this behavior is somehow related to the gprs stall problem that many users suffer from.

I am experimenting with different radio versions now because I can't find a way to reproduce the conditions where the AlarmManager activities dissaper.

I next version of BBS there will be the feature to display the alarm queue: https://github.com/asksven/BetterBatteryStats/issues/171
[BetterBatteryStats] chamonix:
10 minutes awake in 10 hours is not that bad but your phone would be better if you would turn off wifi when not using it
[BetterBatteryStats] chamonix:
The main causes for awake/wakeups from what I can see:

- google could backup with a huge number of wakelocks

- facebook: this app has always been crappy and causing huge amounts of wakeups

- wifi: the overhead of keeping wifi on when not needed are huge: check-in, dhcp state machine, location sniffing thanks to google
[BetterBatteryStats] skinner12:
Sorry, I don't understand what kind of dump you need.. In airplane mode?

Nocerino's Rulez with RAScarlo's ROM features TriNitY ;-)
[BetterBatteryStats] mzaur:
My awake time isn't bad at all (16 minutes with 10 minute screen time) but my deep sleep is not good (73%). I just recently wiped and flashest latest AOKP and Siyah kernel. Could there be a bug? Or could it be an app? gprs data stall and TIME_TICK are killing my deep sleep ratio

http://pastebin.com/RvbjpK6X

Hmm this doesn't make sense

Deep Sleep (): 5 h 57 m 23 s (21443 s) Ratio: 73.9%

Awake (): 16 m 29 s (989 s) Ratio: 4.4%

Maybe my math sucks but shouldn't that be 95% deep sleep ratio? 21443/22432= 95.5%

---------- Post added at 09:11 AM ---------- Previous post was at 09:10 AM ----------

No. Just do it over night. Charge your phone. Unplug it. Leave it on overnight and then in the morning grab a dump.
[BetterBatteryStats] chronophase1:
I think TIME_TICK is related to automatic time zone or automatic time based on carrier. I disabled those 2 for experimentation a while back and TIME_TICK wasn't even on my list. I noticed no change in battery though, so I doubt it'll make a difference if you actually disable those things. I did however notice my time didn't update half the time unless I went to to time section in settings and refreshed it. lol
[BetterBatteryStats] virus786:
So here's my over night BBS log: http://dl.dropbox.com/u/24776411/Forums/BetterBatteryStats-2012-05-12_080215305.txt

And here's mine at the end of the day: http://dl.dropbox.com/u/24776411/Forums/BetterBatteryStats-2012-05-12_182916735.txt

Anything I should take care of?

EDIT: stopped using GO launcher for now. Using Nemus Launcher for now to see.
[BetterBatteryStats] xelra:
There is a Tasker and Locale plugin for that. It even comes with little app if you don't want to use Tasker.

It's called Toggle2G and should run out of the box with cm based Roms.
[BetterBatteryStats] mzaur:
Here is another dump, this time much more significant.

http://pastebin.com/eKZpjcWC

Deep Sleep (): 5 h 17 m 52 s (19072 s) Ratio: 61.5%

Awake (): 3 h 18 m 54 s (11934 s) Ratio: 38.5%

I see the following:

Alarms: 374, Intent: android.intent.action.TIME_TICK

Alarms: 85, Intent: com.android.internal.telephony.gprs-data-stall

SyncLoopWakeLock (Android System): 2 s (2 s) Count:943 0.0%

Not sure if there's anything else significant in the dump? Could anyone help me out with what's going on?
[BetterBatteryStats] Ra7manoof:
That is great. it works fine for me : galaxy S+ gingerbread
[BetterBatteryStats] mzaur:
Nm
[BetterBatteryStats] mzaur:
I don't really see a lot of drain. According to my calculations, you have about 95% deep sleep ratio. I think it's only reporting 74.5% because you were charging when you took this dump which screwed up the deep sleep ratio? Otherwise not sure why it says 74.5%. Numbers don't add up.
[BetterBatteryStats] asdfzz:
@mzaru can u check my log? Some post before.
[BetterBatteryStats] iovaniorgovan:
I recently changed my kernel and I did an overnight test. With just GSM sevice and without any data connection, it drained 10% in 9h, and screen on time was only 16 sec. My surprise was connectivityservice, it held the phone awake all 100%.

Does this mean a kernel bug?
[BetterBatteryStats] refresz:
No, I took the screenshot and dump without any charging. I've charged it to 100%, left on desk, checked the mail twice, got one conversation (~2mins) and at the end of day, after 11 hours, did the ss and dump.

Well, it looked strange to me, because before my phone could live 2 days (40-60 hours) like this.

Also sorry for not including pastebin instead of code block, but I'm not yet permitted to post any outside links.

Later in the day I will add ss and BSS dump, where half of the time phone was connected to wifi, and the rest of the time not.
[BetterBatteryStats] skinner12:
Hi,

I've recharged phone and then I go sleep but I left my phone on with all on (synch, GPS, wifi)

Here is the dump:

http://pastebin.com/74SwkJ04

Can anyone tell me why it consumes 20%? I've received only 6 email that night..

Thanks

Nocerino's Rulez with RAScarlo's ROM features TriNitY ;-)
[BetterBatteryStats] steve austin:
First, thank you for your reply I really appreciate how responsive you are as well as everyone else that contributes in this thread. As for your assessment, I have used juce defender since forever. I have it set for when the screen is off it only allows access to the internet (or it should only be awake) once every 2 hours and allow only 30 seconds of connectivity. So, theoretically, if my phone is in a deep sleep for 7 hours JD should only have 3 wakelocks. Am I wrong in that? I don't know why the activity is higher than this.

As for the 23 minutes of activity. therein lies my biggest problem. I think that day, when I dumped the file, I may have sent one mms in the morning and then immediately put the phone back in sleep mode. Once I break sleep, for whatever reason, the phone just begins to eat up the battery for a sustained period - well after I have interacted with it - and then it then slows up again. But a 5-10% drop off happens usually occurs on it way to deep sleep even after extreme minimal activity.

Faulty partition - How would I fix this? Is it a matter of reformatting the disk (and erasing everything :mad:)? Or can I go into recovery and format the partitions there and not loose data?

Music Player - I do use Double Twist. It is designed to stay awake and connect to the internet. I have stopped this with System tuner. Do you think there is a conflict going on in the background somewhere?

I also have a lot of pics on my phone. I switch in between the stock gallery and QuikPic to send mms messages. Would either of these apps stay active well after i have selected a pic to send? This mediascanner (and mediaserver) thing is very irritating because it accounts for so many broad services and to date, there is no app (that I have found) that can pinpoint what action is being executed at the time of its logging.

You mentioned other tweaks. What would they be? Thanks in advance.
[BetterBatteryStats] Rdogg112:
Pretty nice, thanks.
[BetterBatteryStats] chamonix:
More important in your case:

"wlan_rx_wake" (): 1 h 20 m 51 s (4851 s) Cnt:(c/wc/ec)4669/0/4669 15.6%
"wlan_wake" (): 57 m 42 s (3462 s) Cnt:(c/wc/ec)25015/4032/0 11.2%

wifi left on causes lots of wakeups. Turn wifi off when you don't use it
[BetterBatteryStats] chamonix:
These is nothing wrong with this stat: 28 minutes awake in 11 hours is pretty good and can in no way be the explanation for a quick drain as you refer to.
[BetterBatteryStats] chamonix:
There is no way your phone woul drain 10% in 9 hours of awake. Can you post a dump of this behavior?
[BetterBatteryStats] chamonix:
I won't argue whether 20% in 10 hours is good or not but:

- leaving GPS on is a bad choice

- leaving wifi on is a bad choice and the main drain in your case

- there are some other potentials but they are masked by wifi being on all the time
[BetterBatteryStats] chamonix:
That is exactly the problem of JD. You have a smartphone and it does stuff even when the screen is off. Now JD regulating the connectivity when apps are trying to access the internet in the background leads to those apps doing error handling and causing overhead.

I suggest you take the SD out, copy the content to your PC, reformat it there and copy the data base.

Obviously there are side effects in doing that if we assume Double Twist is the root cause. Aren't there any preferences in DoubleTwist to do that.

As long as those issues are not resolved it's not worth looking into the other ones.
[BetterBatteryStats] skinner12:
But is any app that drain battery? I know that wifi, data, GPS take resources and drain battery.. But I'd like to use all features of my phone, like gmail synch.. Although I'll buy one simple nokia :D

Is it better if I test again with wifi off? Also, do I need to turn off synch in that test?

Thanks

Nocerino's Rulez with RAScarlo's ROM features TriNitY ;-)
[BetterBatteryStats] IVAN-ICE:
apps

The best apps on info bettery
[BetterBatteryStats] chamonix:
No you should turn off and leave the rest on. The problem with wifi is not that it consumes power by itself but the fact that being present it "distubes" apps and start causing unwanted overhead. Example for that:

- wifi causing wakeup in reaction to packets sent by your AP

- the fact that gmaps does location sniffing (correlation between wifi hotspots and location) while wifi is on and you can't turn that crap off
[BetterBatteryStats] Karpfenhai:
Regarding the guy who dropped his phone, maybe the impact produced a shortcut into your wlan antenna?

So the phone needs more power to reach the access point? Just an idea if anything else works as expected.

Can you put your phone right beside your router for a while to see if the issue persists?

Sometimes the antenna is embedded in the phones backcover, check whether the connector is out of shape!

Good luck!

Swyped from my GT-I9100 using XDA App.
[BetterBatteryStats] p107r0:
Using Autostarts from the Market, I've managed to completely disarm gmaps (and fb and all other unnecessary apps), so it is not active until I turn it on... Estimated current in standby - with wifi off - is below 10 mA.

Never managed to leave my Note in standby for long enough time to see if it would really survive 250 hours though...
[BetterBatteryStats] refresz:
No changes, still the same drain.

no, my phone doesn't have an antenna in the backcover, but nice idea though ;)

Well, I guess something hardware-related happened. As far as I'm outside I live most of the time with wifi turned off so that'll be no big problem, but in house I'd need to probably charge the phone everynight.
[BetterBatteryStats] glennkaonang:
What if we have a crappy network?

I see many wakeups from apps that use push notifications when on 2G/3G.

But when on wifi, the wakeups are much less.

My question is, with my situation here, which causes the battery to drain more? 2G/3G or wifi?

Thanks.
[BetterBatteryStats] JoeSyr:
Glanced at my battery history today and noticed that it's been awake since last night. There's a partial wakelock named "audioln_19" that seems to be the culprit. In android battery stats, Mediaserver comes up as the corresponding program, with about 13hours of cpu time and 55% battery usage(~10% over 12 hours).

Any info on audioln_19? I was using google maps in my car w/ the phone plugged in right before this all started. I've observed a bug in google maps before where if I'm letting the phone sleep and waking it up while using the app, the gps function goes on the fritz. And maps has a lot of wakeups in my dump log. Seems like the likely culprit, any thoughts?

Also included a logcat, partially because it mentions betterbatterystats errors. I think they're the same as something I reported a while back but it's here for reference. I think the JavaBinder( 209): !!! FAILED BINDER TRANSACTION !!! lines are related to the wakelock but not really sure.
[BetterBatteryStats] :
Many mant location wakeups

Hi,

Probably I should stop worrying about battery life at the point where I am now.

But I am interested in why the com.google.android.location wakes the phone up almost every minute.

Dump is from overnight, phone is almost not used. I turned location access off in browser. Anything else I can do to lower the wakeups?

Dump is here:

http://dl.dropbox.com/u/29477809/BetterBatteryStats-2012-05-13_073554670.txt
[BetterBatteryStats] chronophase1:
Any ideas as to why my phone ends up waking up multiple times when I disable data or put it in airplane mode? Checking my stats, nothing out of the ordinary in terms of wakelocks, which has me confused. So I'm thinking there must be some application that needs internet service and keeps pinging for it and not getting it. None of my installed games are doing it....I should probably do another experiment in the next few days and post it so you guys know wtf I'm talking about.
[BetterBatteryStats] p107r0:
get Shark or some similar app to monitor data traffic, you might find the guilty app with a bit of luck
[BetterBatteryStats] chronophase1:
Thanks. I'll give it a shot.
[BetterBatteryStats] virus786:
I am so happy for my little SGS2 now.

A while ago when I just got my SGS2, I got 6-7 hours screen on time with Tapatalk/Browsing/Facebook. That "went away" and i did not know why. Now I remembered I had changed modems and tweaked (so I thought) my CPU up-scaling and down-scaling methods.

So I changed back to stock modem (KL1) and reset my Kernel's CPU scaling values. My phone is set to run between 200-800mhz. SIO + smartassV2. totally smooth for everyday things. I bump it to 1200mhz when I game.

PS. I though GO launcher was at fault, turns out i was wrong (yay! :) )..

These are my results after a lazy sunday:

ALOT of Tapatalk, Some youtube + Facebook, Short call and some normal browsing with Dolphin.

Mostly used WiFi, except when I watched youtube (believe it or not my home internet is much much slower than my sgs2's internet).

Still has 11% battery left, Of and I tested this also today just before I charged my phone. I get just shy of 6 minutes Screen-On time per 1 percent battery.

BetterBatteryStats-2012-05-13_185615683
[BetterBatteryStats] demonte21:
Hello all! I have a Galaxy Note (From Bell Mobility) and I got a lot of usage (it's actually the highest!) in my Partial WakeLock : "SyncManagerHandleSyncAlarm"

it's the First time I see this process in and Android Phone. Can someone point me out what this might be ?

Thank you
[BetterBatteryStats] chamonix:
BBS shows no special awake times and the different graph when wifi was on and off confirms that the drain is not caused by kernel or userland.
[BetterBatteryStats] iovaniorgovan:
My previous statement was: "My surprise was connectivityservice, it held the phone awake all 100%. Does this mean a kernel bug?"

The BBS log for the test I mentioned in my previous post is attached. Is this sufficient "proof"?
[BetterBatteryStats] chamonix:
As I said before the wakeups are not caused by apps but by the fact that wifi is on and the AP sends wakeup packets. This would happen even without no apps running and is the main cause of drain in the dumpfile you had sent
[BetterBatteryStats] chamonix:
Turn wifi off and I bet it will be gone.
[BetterBatteryStats] chamonix:
Please provide a dumpfile so we can have a look at it
[BetterBatteryStats] chamonix:
Your analysis is correct, AudioIn_ is keeping your phone awake all the time.

Now I don't know exactly what it is but you should look for following:

- have you frozen anything related to audio (player, recorder)

- does that wakelock survive a reboot
[BetterBatteryStats] mzaur:
Maybe you need a new battery. I don't see much drain
[BetterBatteryStats] mzaur:
Your drain is excellent. Seriously. Look at awake time vs deep sleep. 96% is awesome.

About how much % do you lose overnight? Like 8 hours with that drain should be 2 to 4% drain
[BetterBatteryStats] mzaur:
6 to 7 hours of screen time?? Wow. that's some extended battery!
[BetterBatteryStats] :
Wifi was on for less than twenty minutes...
[BetterBatteryStats] HosainH:
Anyone have any idea what modem_ip_rx is? It's my highest kernel wakelock and wondering what function does it serve..
[BetterBatteryStats] Karpfenhai:
It could be incoming traffic from wlan, on our GS2 it's called wlan_rx_wake, what phone do you have?

It seems, your phone is getting an IP or IP related traffic, probably from your router, try to set an static IP instead of dhcp. If it happens on mobile data too, then your network seems to be pretty bad. (signal)

Rx = incoming

Tx = outgoing

Just for the records :-)

Swyped from my GT-I9100 using XDA App.
[BetterBatteryStats] xelra:
I checked a bit into things and this is not related to DHCP. It seems more like a problem with the access point not being able to use certain powersave features. This happens for a fact with wifi chips using the ath9k driver. Especially in 802.11n mode.

There is no solution to this problem.
[BetterBatteryStats] HosainH:
Good to know :o
[BetterBatteryStats] steve austin:
congrats

Those are great stats my friend. Plus you are using the stock battery?!?!? I have a sensation with a 1580 mA battery (i believe). On stock, with the screen at 50% I could barely manage 2 1/2 - 3 hours on screen time. Now I have a 1900 and I still come nowhere close to the 6 plus you are posting. that is why I am in this thread now. There has to be something that is seriously wrong with my configuration, battery or phone. If i get 4 - 5 hours on screen time I am pop'n bottles. But 6, good deal.
[BetterBatteryStats] NoSpamDan:
Thanks for the reply, jeremy. I just am seeing this post because I think of the multi-quote. I normally get reply notifications...

I have the Llama controls disabled, and I am going to uninstall JD even though I have stopped using it. I do have the purchased version, but I had some unresolved connectivity issues so I tried Llama, which is MUCH more technical but I'm an engineer and like that level of control. I am no Android expert and fairly new to it... that's why I posted here. I'm learning though ;)

Anyway, I think this might indeed be a one-off thing because I removed the widget, put back the 4x2 Beautiful Super Clock and battery has been much better. I have tried but don't really like the HD Widgets. I have the BSC weather updates set to every 2 hours but it updates upon phone wake-up too, so I'm not sure I even need updates that often... think I'll change it to the highest number or turn the updates off if possible. I plan to run another dump tonight to check again, but my battery today was great!

I'm not opposed to rebooting my phone, but it seems that my BBS stats get wiped when I do. I still get Android's total battery info, though.

Thanks for the reply too, chamonix. I plan to leave the phone unplugged (freshly) overnight tonight for a new dump. Life was much better today :)
[BetterBatteryStats] ThiaagoFelix:
Can someone help with my stats?

I really dont know how to read it.

This log was taken in the end of the day, with 14% of battery.

I am using CM9.

Regards.

https://docs.google.com/open?id=0B8JdhIa1GOrwRVhqYzdNSXRoa0E
[BetterBatteryStats] Karpfenhai:
Sorry my friend but you have to take an idle dump, best shot would be overnight doing nothing.

But only one hour and a bit overhead during a day is not bad either!

Post a fresh dump and you will get some more detailed analysis by us :)

Swyped from my GT-I9100 using XDA App.
[BetterBatteryStats] shaq1907:
My battery's consumption is too high. Do you know why? I uploaded screenshots of drain and BetterBatteryStats:

It drains 3% or 4% while one hour sleep. It drains full charge about 12 hours.

I am using Neat Rom LP9 with CF-Root LP8 kernel.
[BetterBatteryStats] Karpfenhai:
First, you have 1 hour 26 mins overhead.

Second, this is not an idle dump!

Your problem:

-get rid of exchange, it consumed 1 hour 12 mins alone, producing 902 wakeups. Use K9 mail.

- wlan_rx_wake is your second culprit, try to set up your phone and router to static IP, don't worry, dhcp will work anyway in other networks.

-you had almost no network at all, have you been on flightmode during this time?

-use another modem / kernel, ki4 modem and if you are on a vanilla ROM (cm9?) try abyss kernel.

-lower your display brightness, use screenfilter and relinquish auto brightness if possible, turn of haptic feedback sounds and auto rotation if not needed (sensor overhead)

Post another dump after a certain sleep period (overnight)

Good luck!

PS: we don't need the screenshots, the dump is way enough ;)

Swyped from my GT-I9100 using XDA App.
[BetterBatteryStats] Karpfenhai:
@Sven, got a small feature request.

Could you implement a function to store the battery series?

It might be useful for later comparison between different kernels/settings.

Thx in advance!

Swyped from my GT-I9100 using XDA App.
[BetterBatteryStats] skinner12:
Hi,

Here is my dump on idle phone this night

http://pastebin.com/reWZVfQ8

How is it?

I add graphic of use this night

Thanks

Nocerino's Rulez with RAScarlo's ROM features TriNitY ;-)
[BetterBatteryStats] Hawkeye1103:
after reading what cpuspy said in 1 hour of standby my phone went 8 minutes in deep sleep tought it would be a good idea to post this .... Hope someone can clarify my situation and help me. The dump is done after taking my phone off of charge and letting it sit for a few hours in the morning.

Thanks a lot
[BetterBatteryStats] shaq1907:
Thanks for answers.

-I deleted exchange hotmail account. I couldn't set up K9, so installed Hotmail app.

-I don't have static Ip, so I won't change it (also don't know hot to change these)

-It wasn't in flight mode, network were on but wi-fi were enabled and connected all the time.

-I tried another modem (LP6), almast same drain. But didn't try ant other kernel. I will try then.

-I disable auto brightness and auto rotation, disable live wallpaper.

I will post another dump file after 3-4 hours sleep time today. I hope that this will help. If they don't I will do it overnight and post result tomarrow.

I was using phone same way before (auto brightness, exchange mail...) LP9 firmware. I suspect LP9 but most users happy with it with LP8 kernel.

To delete exchange account fixed most of problems. Thanks a lot.
[BetterBatteryStats] tangcla:
SyncLoopWakeLock is the biggest culprit, :( what is it?