yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] nobnut:
Hmmmm difficult to be definitive from that. I have a sneaking suspicion that it may be Tasker causing the issue. Well, not Tasker exactly, but whichever task you have running... possibly in a loop.

I am a heavy Tasker user but rarely see it reported in BBS and even when I do it is so low it is worth ignoring. I will have a think about your post and come back tomorrow. When you get a moment, could you have a think about your profiles and tasks. Make sure none loop and all are resolved.

To test my theory, you could disable Tasker from the main screen (uncheck the button in the bottom right hand corner)... reboot to make sure and see what BBS and Android's battery usage say after and hour or two with the screen off.

We'll get to the bottom of it ;)

Sent from my HTC Flyer
[BetterBatteryStats] XlAfbk:
there's no task active in Tasker (well, there is right now cause I'm in my wifi now, but during those 3h there wasn't), that's just Taskers monitor (Tasker.UserAbsentWakelock) waking up every 2 min or so.

Problem really is that it's not really repoducable but only happens every few days which makes test like disabling Tasker quite hard (guess as a Tasker user you know that living without it for days is quite hard).

My guess is that some OS thing is keeping the phone awake but not by using wakelocks (as none show up) but some other way?
[BetterBatteryStats] Hawkeye1103:
Sorry about that couldn't find a method in Tapatalk to attach it. Thanks for the translation on the dump
[BetterBatteryStats] Karpfenhai:
To the guys with wifi problems.

I've wrote this several times before, just search for beacon to find more related information.

Some steps to adjust your wifi:

1. Set a static IP within your router and mobile device, don't worry, dhcp will work anyway in other networks.

2. Increase your beacon interval. Within your routers network settings find the beacon interval (usually 40 msec) and raise it to 100-150msec instead.

3. Disable / freeze these 2 "apps"

This should help to bring down a lot of wifi overhead! But there its no guarantee, unfortunately..

Next screen shows my wifi related wl from the last 6 hours:

Tapatalked from my Samsung GT9100
[BetterBatteryStats] electricpete1:
mmc_delayed_work

I consistently see that mmc_delayed_work is the largest cause of wakelocks on my phone.

What is the cause of mmc_delayed_work?

For info I have attached an example dump file from 15 hours of light use.

This mmc_delayed_work kernel wakelock accounts for 30 minutes of wakelock during that period

I read that it may possibly be related to sd card problem? I have 16gb external sd card installed, it reads fine, never had any errors. How to check it?

By the way my phone is Samsung Infuse, rooted with GB 2.3.6 and custom kernel.

(also, if any other suggestions for low-hanging fruit to improve standby battery life based on the dump, I'd be interested to hear)
[BetterBatteryStats] superleeds:
Morning

Here are my overnight figures. I left wifi off but data on and it appears alarm manager is at the top again.

Any ideas?
[BetterBatteryStats] valsacar:
Please help... system update service and check in handoff are keeping my phone awake all day and I can't figure out why.
[BetterBatteryStats] chamonix:
Release 1.11RC4

New RC s up. Changelog is in post #2
[BetterBatteryStats] kingofcomedy:
Thanks. I did a factory reset this morning. Maybe this changes my battery-life (I have frozen some apps before the reset which might have been a bad idea). :)
[BetterBatteryStats] bataya:
Hi, is there way to terminate app after exit? Last 2-3 version continuo to run in background like service after exiting app. Is there some new options in settings that i miss?

Sent By tT.
[BetterBatteryStats] bonanza123:
Maybe a stupid question, but is it see only those wakelocks that wake up the system from deep sleep? Because I see the RiLJ wakelock also increasing when screen stays on, but then it's hard to see which program keeps my system off from deep sleep.

Thanks
[BetterBatteryStats] kvv515kvv:
i did some changes in my settings

is there anything to improve?

thanx

ps gmail has to be on push always
[BetterBatteryStats] chamonix:
The service is required as there is no other way to listen to "screen off" events. The service does nothing but registering an event handler that processed screen off and saves this reference. Previously this service was only started if you had ticked the watchdog but this generated additional support requests as users did not understand why "since screen off" wasn't being populated.

Do you feel the need to add an additional prefer to turn off the service (and accept "since screen off" being unavailable) ?
[BetterBatteryStats] alexinna:
BBS will show all of them. That is why recommendation is to leave phone idle for 1-4h and only after that do the dump for research purpose.
[BetterBatteryStats] chamonix:
Just to clarify : wakelocks do not wake up the phone but prevent it to go sleep. Wakeups are caused by interrupts and alarms.

Now to your question: there is no way to determine what wakelock were held while you were using the phone except if you have a siyah kernel with the discrete wakelocks patch as this info comes from the kernel
[BetterBatteryStats] bataya:
It would be nice if you can add options to enable/disable run like service. Or just add exit button that terminate app. I use low ram phone, so i prefere to have minimum posible services that run in background.

Sent By tT.
[BetterBatteryStats] Karpfenhai:
Actually your dump looks pretty good.

"multipdp" (): 6 m 18 s (378 s) Cnt:(c/wc/ec)51/0/51 1.3% This means your phone was awake due to background Download activity.

"battery-monitor" (): 4 m 43 s (283 s) Cnt:(c/wc/ec)280/0/281 1.0% Some Wakelock / Wakeup was aquired, therefore the Battery status monitor kicked in, that happens quite often, one possible reason is --> AlarmManager (cloudtv.hdwidgets.HD Widgets): 15 s (15 s) Count:97 0.1% and AlarmManager (net.dinglisch.android.taskerm.Tasker): 3 s (3 s) Count:119 0.0%

So, reduce sync, disable data / WL hungry widget, read my guide for GSF related autostarts, maybe you can bring down this one too -> Alarms: 49, Intent: com.android.server.LightsService.action.UPDATE_SVC_LED

In general, well done, enjoy your smartphone!
[BetterBatteryStats] chamonix:
https://github.com/asksven/BetterBatteryStats/issues/283
[BetterBatteryStats] superleeds:
Hey guys

Could someone please shed some light on this? Left my phone overnight with wifi off but data on. Sync was off too.

Cheers
[BetterBatteryStats] Karpfenhai:
Ohh cmon, 5% lost in 9h 20 mins?

What do you expect? A self-charging perpetuum mobile?

15 Mins out of 9 hours are brilliant, just enjoy your phone!

:cool::cyclops::cowboy:

BTW, this dump is incomplete,please grant root and check the alarms..
[BetterBatteryStats] xelra:
What Karpfenhai said.

It's close to perfect. 97% deep sleep.

297 wakeups from alarms. It's really low. If you want to see which alarms, you need to root your phone. But I don't think that you can improve on that.

So your prior problem actually was wifi. Like I said, if you really want wifi, you can improve your home network. At work, there's nothing you can do about it.

If you really need wifi at work, you could try an AOSP based rom. It really might be the case that Samsung opened up the firewall for broadcasts.

.... I'm gonna check on the patch and let you know.

EDIT:

Got the patch from Entropy512. Check it out here.

It's for the I9100, but it's valid for the I9300 also. Bad decision from Samsung, when they introduced ICS and onwards.
[BetterBatteryStats] superleeds:
Haha I was so focused on that damn alarm manager and didn't realise. So... all I did was disable wifi which seems a little weird. Still 5% with power hungry data on, not bad :D

---------- Post added at 09:14 PM ---------- Previous post was at 09:08 PM ----------

Haha thanks. Its just the geek in me wants wifi to work as it should since that should use less juice as it does on my desire s - i know totally different everything! :) will investigate my home wifi and go through your advice. My router does have custom firmware on it so any setting should be possible.

Look forward to hearing about the patch.
[BetterBatteryStats] Lebenita:
The simplest and most user-friendly way might be to enable/disable both the service and the "Since screen off" option in the dropdown menu depending on the watchdog settings in the preferences. The watchdog should probably be enabled by default.
[BetterBatteryStats] xelra:
Check my edit.

For the geek in you. :p
[BetterBatteryStats] superleeds:
The geek is strong in me, but not that strong. Could you please point me in the right direction on how I apply that patch? All I can make out is I may need root and replace my existing dhd_linux.c with the one in the link.

Either that, or I need an Entropy ROM?

Thank you for your help so far!
[BetterBatteryStats] kvv515kvv:
thanks a lot.

have a beer (werners gruner :) )

Confirmation number: 4R2722364J8836518
[BetterBatteryStats] bgdave:
I have been battling wakelocks ever since coming to JellyBean and have only found a hanful of ROM/Kernel combos that give me the battery life I am used to, which is 10-12 hours with 2 hrs screen on. In the last week or so I have been on CM10 nightlies, AOKP, CNA, Affinity, and Bugless Beast and saw excessive wakelocks on each. I am currently on the CNA 9/19 nightly. It runs smooth as can be but the wakelocks are just relentless.

I have noticed that NetworkLocation alarms destroy my battery, regardless of settings and location reporting options I disable. The same happens with Exchange it seems. I can set exchange to sync only email (No calender/contacts) and turn off Push and set it to sync every 30 minutes... go back in and check my Partial wakes and exchange will have woke my phone 50 times in 60 minutes.

Verizon LTE Gnex

Codename Android 9/19 Nightly

Franco r264 Nightly

*Experienced same problems across mutliple JellyBean ROM/Kernels

Attached are my BBS Logs. If anyone can provide some insight it would be much appreciated.
[BetterBatteryStats] xelra:
The patch is applied to probably any AOSP based ROM available for the I9300. CM10, ParanoidAndroid, etc..

Custom kernels for Samsung based ROMs might also have it integrated. But I'm not sure about that. Check your favourite kernel's thread, if you don't want to use AOSP based ROMs.

I can only recommend ParanoidAndroid though. It's CM10 plus "per app dpi".

P.S.: You can't just apply it, you need to build your own ROM if you want to apply it yourself.
[BetterBatteryStats] superleeds:
Thanks, xelra. I'm hoping to stay Stock to be honest since most of my research led me to believe its most stable or rather all the features work. I may be wrong and slightly ignorant but if I really need to use wifi, I may need to look into them. Will definitely try rooting soon since it seems pretty straightforward.

What a shame Samsung have done this!!
[BetterBatteryStats] xelra:
Check out post #3 about how to reduce wakelocks from Google Maps.

Maybe get rid of that clock thing you have.
[BetterBatteryStats] gorgeto:
what's draining my batt. here's the dump file

i need a little help can you help me guys
[BetterBatteryStats] Lebenita:
Package view FC in RC4

On an Xperia GO with stock GB 2.3.7 and BBS 1.11.0.0RC4, I'm consistently getting FCs every time I tip on an application symbol (see attached logcat, I hope I've done it right), in particular:

E/AndroidRuntime( 2904): Caused by: java.lang.IllegalStateException: You must use Theme.Sherlock, Theme.Sherlock.Light, Theme.Sherlock.Light.DarkActionBar, or a derivative.

E/AndroidRuntime( 2904):	at com.actionbarsherlock.internal.ActionBarSherlockCompat.generateLayout(ActionBarSherlockCompat.java:1007)
[BetterBatteryStats] itsLYNDZ:
With the newest version of Maps, I dont think you can sign out of Latitude anymore..
[BetterBatteryStats] bgdave:
Yup, that's where I got stuck. It's bundled with Maps. Should i freeze Maps and proceed to the other steps?? Will Google Now still give me the full features if I turn off all those auto-runs? I have had older ROMS in the past that I didn't do this workaround on and my wakelocks were fine but it just seems like the last month no matter what I flash there are wakelock issues. I'm hoping there is another way because I really don't want to lose the niftiness of Google Now's location awareness. .
[BetterBatteryStats] Karpfenhai:
Thank you very much!

I'll have a scotch tomorrow for yours sake.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] ETW11:
I have reverted back to Google Maps 5.7 because it seemed each successive version was getting worse and worse on the battery and I was getting tired of it. I only need the most basic features so it's perfect for me. I don't need all the bells and whistles that they add.
[BetterBatteryStats] Karpfenhai:
Imho this heavy drain cannot be explained by your wakelock and usage alone, what happens on flight mode?

Do you have a bad network coverage?

I know the nexus its not very battery friendly but this seems to be to much. :confused:

Was the sun bright or the phone to cold?

Exchange plus maps... Disable all maps autostarts and try to replace exchange with k9 set to pull.

Good luck!

Tapatalked from my Samsung GT9100

---------- Post added at 01:41 AM ---------- Previous post was at 01:39 AM ----------

Your dump looks not to bad, but its not an idle one, please take another reading during a period with no usage (over night) and repost it here.

Tapatalked from my Samsung GT9100

---------- Post added at 01:47 AM ---------- Previous post was at 01:41 AM ----------

Not true, i can't find any location related wl on my device!

View attachment BetterBatteryStats-2012-09-21_014320618.txt

Tapatalked from my Samsung GT9100
[BetterBatteryStats] bordikun:
i need help guys. here's mine overnight for 10 hrs and battery drain is 20% :(

data on, sync on. everything else are off

Sent from xda premium powered by GT-I9300 :D
[BetterBatteryStats] alexinna:
Please provide BBS dump file as described in post #1.
[BetterBatteryStats] bordikun:
sorry I can't attach files other than image in the XDA app. here it is.

that "l2_hsic" seems to be the culprit I think that is for the mobile data stuff right? And my Fast Dormancy is Enabled and I'm pretty sure my carrier supports it.

SYNC on, MOBILE DATA on. else are OFF. But when I turn OFF Mobile Data. drain overnight is only 4-5%
[BetterBatteryStats] mzaur:
Hey guys what would explain lower deep sleep on data than Wi-Fi? 86 vs 95 about. Same apps running. It seems to be mostly multipdp and secril fd interface. I know this is related to data activity but shouldn't it be same whether or not it's Wi-Fi or data?
[BetterBatteryStats] bordikun:
If "secril_fd-interface" wakelock is in the top of your list. then you must disable Fast Dormancy on your phone cause your Carrier don't support it.

here's the app to disable Fast Dormancy -> Fast Dormancy by Gokhan Moral

and everything to know about Fast Dormancy -> LINK
[BetterBatteryStats] Karpfenhai:
because your wifi connection usually is way faster then your mobile, therefore the same amount of data is transferred in less time = more sleep period..

Tapatalked from my Samsung GT9100

---------- Post added at 08:46 AM ---------- Previous post was at 08:41 AM ----------

Your overall wakeups are too high, therefore your device was awake more than 2 hours, what is lightflow?

Try to reduce your sync activity.

Check the count amount in your dump and try to reduce them.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] bordikun:
I never had problem with lightflow. when no internet connection either wifi/mobile data battery drain overnight is only 4-5%

I can see the TOP 1 wakelock is:

"GTALK_ASYNC_CONN_com.google.android.gsf.gtalkservice.AndroidEndpoint (Google Services): 16 m 43 s (1003 s) Count:1801 2.7%"

but I signed out my Google Talk or not even logged in. so why does it drain my battery?
[BetterBatteryStats] chamonix:
I'd like to hear your feedback about RC4 and the fully charged fix
[BetterBatteryStats] Karpfenhai:
Because its the google name for all google related activities.. that's not cool but its their design.. GSF stands for Google Service Framework.

So, read some pages back for my guide how to disable lots of gsf autostarts without loosing major functionality.

Per example your playstore is handled by gsf too.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] bordikun:
in short. google talk is not the culprit here?
[BetterBatteryStats] Karpfenhai:
Since i didn't charge my phone yet i cannot tell you.. :D

But replugging at almost 99% looks promising!

Good weekend mate.

Tapatalked from my Samsung GT9100

---------- Post added at 09:33 AM ---------- Previous post was at 09:31 AM ----------

Yep, you got it :D

Tapatalked from my Samsung GT9100
[BetterBatteryStats] bordikun:
is this directed to me? sorry but i'm using the one which is the latest on Google Play which is 1.10.5.0

could you please guide me what page? Because I don't always read this thread that often pretty please:)
[BetterBatteryStats] shadowcaster31:
guys, SignalCollector.ScannerThread is giving me a significant amount of partial wakelocks. I believe this comes from the Latitude app.

I've recently updated to Maps 6.12.0 and there seems to be no way to sign out of Latitude anymore.

any ideas how to circumvent this?
[BetterBatteryStats] Karpfenhai:
Search is your friend...

http://xdaforums.com/showthread.php?p=31493588

Tapatalked from my Samsung GT9100
[BetterBatteryStats] oxman:
Does BetterBatteryStats can show the battery usage of PGM ?
[BetterBatteryStats] bordikun:
thanks! followed your guide and disabled the ones to be disabled via autostars. hope nothing goes wrong :)
[BetterBatteryStats] kevindd992002:
Is it possible to put all significant guide posts in one post so that people may find them easier? Just suggesting.
[BetterBatteryStats] Hilmesh:
hi can someone check the attached dump and advise if any improvement is possible. Thanks :)
[BetterBatteryStats] Karpfenhai:
This dump is almost useless in terms of

Idle usage only but does not show any uncommon results, well done, enjoy your phone!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] mrjayviper:
is there on how to use this? I downloaded it but seems I need to set a baseline. not sure what to do after installing. thanks! :)
[BetterBatteryStats] vNa5h:
Thanks
[BetterBatteryStats] chamonix:
:) 100% must be reached to be sure as the counters making the problems when retrieved from the cache are reset only at 100%.

But at least it seems that I didn't break anything.
[BetterBatteryStats] chamonix:
No the question was directed to the guys who had been testing and found the bug
[BetterBatteryStats] chamonix:
http://code.google.com/p/android/issues/detail?id=34458
[BetterBatteryStats] chamonix:
In short no because android is a multitasking linux based system so there is no way to attribute ressource consumptions to apps.

BUT BBS is the best option around I know of if you want to get info about what parts of your systems do not run optimally and cause battery drain.
[BetterBatteryStats] chamonix:
See posts #1 to #3 and use search, if you don't find what you are looking for ask. Digesting this thread (look at the post counter) to a Wiki would be far too complex and time expensive task.
[BetterBatteryStats] Dennis.se.foon:
V1.11 RC4

I loaded RC4 yesterday and have gone through the remainder of yesterday's discharge, last night's charge. I also experimented a bit with plugging and unplugging the phone.

My feedback on this version, using a Galaxy Note N7000.

- Calculations seem to be just fine. The negative values are gone, for "since unplugged" and "since charged"

- Widgets are displaying the information correctly. This includes the battery icon that refused to work on previous versions after the first re-charge.

In summary, this version seems to be working great. :laugh:

Thanks for a fantastic app that really does help to identify wayward battery drainers.:good:
[BetterBatteryStats] Hilmesh:
Thanks. Have tried and followed all the posts as mentioned in this thread from you, Chamonix, & others. :)
[BetterBatteryStats] It_ler:
Since unplugged values working fine at 100% on my phone :good:
[BetterBatteryStats] drahmed86:
+1
[BetterBatteryStats] mzaur:
Thanks! I honestly didn't even know about this. I'm on AT&T and apparently FD should be disabled!
[BetterBatteryStats] Karpfenhai:
Im currently charging, especially for you! ;)
[BetterBatteryStats] jjwatmyself:
Oops, wrong thread
[BetterBatteryStats] kvv515kvv:
hi guys. did another dump

2% by 7hours during night. i consider it very good.

q.

1. what is this- - --- Alarms: 171, Intent: android.intent.action.TIME_TICK----

2. in my dump there is no Wakelocks... why?

in dump, which i did 3-4 min later i have them... it looks like BBS does not write Wakelocks right away after night, wheni do first dump

i will attach 2dump - 1st(without Wakelocks) and second (with Wakelocks)
[BetterBatteryStats] superleeds:
Hi guys

Just wanted to say "thank you" for this thread and the support (kick up the arse) given. I disabled wifi and now my battery life is amazing. 8% used in 12.5 hours and all I've done is disable wifi and leave data on - sync is still on. This was worth the price of the app alone :D

Now the battery life is sorted.... is there anything available for my se... :confused: :good:

Leeds
[BetterBatteryStats] alexinna:
BBS shows correct stats after full re-charge. No issues so far :)
[BetterBatteryStats] Karpfenhai:
You did a great job, looks pretty good, time_tick is just the embedded system time , every time an app is asking the system "Whats the time mate?" this alert is triggered, you know most apps are doing specific stuff based on the time (Sync, Alarm Clock, updates et cetera) Or if a log is written it needs a timestamp and so on., so thats normal, nothing to worry about!

Your HD widgets are still .... :D:cyclops:

---------- Post added at 04:18 PM ---------- Previous post was at 04:17 PM ----------

20 % left, then can i say this too! ;)
[BetterBatteryStats] NunoPitbull:
chamonix, Can you please add this feature on your next version?

1- Make BBS not disapear after a RAM clean(when you long press middle button, and go to RAm management and click on cleaning it)

Then it cleans the stats and we need to charge/uncharge again to have the stats...
[BetterBatteryStats] chamonix:
Sorry but I don't understand what you mean. First why should I try to do something to prevent an app from being closed by a mechanism desgned to close apps (not on the side android does the same im mem gets low)?

Second there should be no effect on doing this as BBS works based on references and does not collect any data. Could you please be more specific about what problem you have encountered?
[BetterBatteryStats] NunoPitbull:
When I clean the RAM, the BBS "Since unplugged" stats disapear... Thats the problem i encountered :)
[BetterBatteryStats] Karpfenhai:
I cannot confirm this and i clean my ram once in a week, i hate reboots..;)

BTW, Sven, charged to 100, unplugged, all is working fine, so +1 from my side!
[BetterBatteryStats] NunoPitbull:
Well it did happen to me and im running a stock GB 2.3.5 :)
[BetterBatteryStats] Rob2222:
Same here.

However to be honest, I didnt even know what the 100% bug was?!

What was the problem? I don't use since charged very often.

BR

Rob
[BetterBatteryStats] Karpfenhai:
Is described in the bug history and the apps change guide, however, charging to 100 % and unplugging leads to no values for Awake and screen on, the reference was set but the calculation didnt start, finally its fixed, some cache operation might have been the culprit, im pretty sure sven will give you some explanation if youre interested in.

Nice Weekend!