yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] :
Lol, how accurate is that considering deep sleep drainage is not even included
[BetterBatteryStats] lparcshinoda:
Hello, been an happy BBS user from some time on - I'm trying to track down any single battery usage on my Samsung Galaxy Nexus but this time I just can't figure out who is the culprit.

My phone is in airplane mode during night/sleep and I've noticed a strange 1%/2h usage in this mode. Checking the Android Battery Stats:

It shows that the phone was active for quite some time during sleep!

In BBS:

I can't see any partial or kernel wakelock that's consuming so much...

Anything I could try? Thanks :)
[BetterBatteryStats] gaui:
We need to see Alarms.
[BetterBatteryStats] chamonix:
Please post a dumpfile, the screenshots do not give the full picture
[BetterBatteryStats] lparcshinoda:
ok, I'm doing some more insight and precise testing tonight ... thanks for help
[BetterBatteryStats] Memphisto11:
Rebooting works! But here comes the other random battery draining problem, I mentioned earlier, right after the next full charge.

My phone can sleep like a baby but the battery just kept on draining unusually fast.

Please help to see if there is anything unusual going on?

Thank you.
[BetterBatteryStats] dannysmith43:
Hi,

I just purchased BBS today hoping to track down my battery drain but I don't have root...is that going to be problem when asking for assistance? I plan to unplug the phone tonight after a full charge and let it idle and then dump the stats.

Thanks
[BetterBatteryStats] Karpfenhai:
It depends :cool:

Sometimes we do need the alarm section of bbs..

But for a first shot out should work w/o root too.

The main problem is, some drain its caused by system apps, without root you cannot get rid of them.:mad:

Just post an idle dump and we well see!

Good luck.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Kira.Lawliet:
I recently updated to stock ICS and now I've got this problem: Android OS drains my battery. I didn't have it on stock GB. I almost have the same apps installed, I'm on stock with locked bootloader & attached are my screenshot *the wifi was recently turned on the screenshot, don't mind it, i only turn it on when needed* and log. I don't know though if this is considered normal in stock ICS :confused:
[BetterBatteryStats] ken2291:
Hi,

Can anyone help me to see what is causing my battery drain? Also, when I look up in "Alarms" com.android.phone always appear to have the highest wakeup count, is this normal?
[BetterBatteryStats] rhazahrd:
Hi,

Can anyone help me with my sgs2?

As you can see on log, network stats is the most active. Seems like there is something trying to sync, you can see that clearly on screenshot because there is a lot of active stats with the same update rate.

I already disable the account sync and data backup because i normally don't use any type of data transfer.

This wakelocks is wierd for me because my milestone has the same apps installed (my backup) and doesn't have any type of wakelocks, only on my sgs2.

Maybe (just maybe), can be something related with fast dormancy, but i can't disable this with aokp dialler.

View attachment BetterBatteryStats-2012-06-24_010149348.txt
[BetterBatteryStats] profjack:
Please click one of the Quick Reply icons in the posts above to activate Quick Reply.
[BetterBatteryStats] profjack:
Thank you mate. Installing the app now and will report after running.

:good:
[BetterBatteryStats] p107r0:
Guys, please, have some mercy on our sore thumbs, and try to avoid:

full quoting of long posts - remove non-essential parts by the means of a "Delete" button on keyboard, trust me, it is there, and it deletes

posting dumps in message body, use attachment or "Code" button in message compose window

Please.
[BetterBatteryStats] hisee:
kk sorry for that but can u help me out ?
[BetterBatteryStats] T4zDingo:
Hello xda Community,

I just installed Better battery Stats yesterday and iam quite impressed. Tried some other Battery / CPU apps before but i never felt so close to the solution of my problem ;)

Situation is:

I just wiped my Phone this Friday because my Battery lasted only about 8-9 hours. I'm kind of a heavy user, means screen on time is about 2 to 3 hours a day with lots of messages (SMS, Whats App and Facebook) and a lot of browser time, so i'm not expecting my phone to last 2 days :( but my real problem is the idle use. Before my factory reset my phone used between 30 and 40% of the battery over night. Means in 8 hours of completely no use. Now after the Factory reset this went down to 6% :victory:

But still i think i can improve that. In the attachement you find my over night dump file of Better Battery Stats. I already google searched some of the wakelocks but I did not found anything really useful.

I would really appreciate if you could look at my dump file and give me some tips on how to improve the Battery life of my Galaxy SII.

Thanks alot in advance and many Greetings

TazDingo ;)
[BetterBatteryStats] chamonix:
Before going into the next round (expect 3) let's keep track of the current situation:

Since 1 d 12 h 35 m 58 s
Deep Sleep (): 1 d 8 h 55 m 38 s (118538 s) Ratio: 89.9%
Awake (): 3 h 40 m 20 s (13220 s) Ratio: 10.0%
Screen On (): 1 h 33 m 40 s (5620 s) Ratio: 4.3%
Phone On (): 20 m 16 s (1216 s) Ratio: 0.9%

That would be 3 hours 40 minus 1 hour 33 minus 20 minutes -> 1 hour 50 minutes awake in 36 hours, or about 5% (compared to the 100% where we come from).

Looking at the wakelocks and alarms I believe that a lot of this overhead is caused by location and maps. As we know that behavior is amplified by wifi. What I suggest:

- make sure you are logged out of Latitude and have no auto-checkings enabled on maps

- make sure the maps cache setiings are wifi-only

- leave wifi completely off for the next reading

By doing so I expect following wakelocks (with huge counts) to be gone:

Checkin Service (Google Services): 5 s (5 s) Count:603 0.0%
NetworkLocationLocator (com.google.android.apps.maps.Maps): 5 s (5 s) Count:8 0.0%
NetworkLocationLocator (Google Services): 5 s (5 s) Count:12 0.0%
ConnectivityService (Android System): 2 s (2 s) Count:6269 0.0%
WifiStateMachine (Android System): 1 s (1 s) Count:1152 0.0%
GpsLocationProvider (Android System): 1 s (1 s) Count:876 0.0%
LocationManagerService (Android System): 1 s (1 s) Count:467 0.0%

.... as well as the wakeups related to Maps (alarms)

One other thing you could look at (separately) would be if disabling / enabling fast dormancy has an effect on the kernel wakelock "secril_fd-interface" (): 53 m 32 s
[BetterBatteryStats] chamonix:
Android OS is a placeholder. What drains your battery are a serie of kernel wakelocks:

"msm_otg" (): 2 h 33 m 37 s (9217 s) Cnt:(c/wc/ec)1/0/0 12.8%
"usb_bus_active" (): 2 h 33 m 37 s (9217 s) Cnt:(c/wc/ec)1/0/0 12.8%
"bq24185_watchdog_lock" (): 2 h 33 m 37 s (9217 s) Cnt:(c/wc/ec)1/0/0 12.8%
"msm-i2c" (): 45 m 17 s (2717 s) Cnt:(c/wc/ec)2800417/5/0 3.8%
"rx_wake" (): 40 m 45 s (2445 s) Cnt:(c/wc/ec)2192/0/2193 3.4%

The second one looks weird as it suggests your kernel believes that USB is connected and it's obviously not since you posted "since unplugged".

Have you checked the thread related to your kernel about that?
[BetterBatteryStats] chamonix:
The main cause of awake is that your wifi is always on. TUrn it off and repeat the reading. If that alarms is still high it's a sign of bad network coverage but it can also be related to your phone switching back and forth from wifi to grps.
[BetterBatteryStats] chamonix:
Does disbaling cell network location make any difference on that?
[BetterBatteryStats] chamonix:
Please attach your dump next time instead of pasting the text.

The biggest cause of drain in your case are wakeups (alarms) caused by:

ccc71.bmw.pro (): Wakeups: 838
com.facebook.katana (): Wakeups: 168
com.jb.gosms (): Wakeups: 154
com.handmark.tweetcaster (): Wakeups: 78

BMW pro: learn about the tools you are using, and reduce the update freq to 10 or 15 minutes.

Facebook: drop it, it's bloatware

GO SMS: revisit your settings, GO SMS should not wake your phone up

Tweetcaster: check if you need an update freq that high

You own a smartphone but it's your responsibility to understand the apps and the way they work, and finally configure it properly. You could easily have found out what I listed above by reading the how-to once and taking 5 minutes to understand the dump.
[BetterBatteryStats] chamonix:
Since 9 h 39 m 43 s
Deep Sleep (): 9 h 21 m 7 s (33667 s) Ratio: 96,7%
Awake (): 18 m 35 s (1115 s) Ratio: 3,2%
Screen On (): 56 s (56 s) Ratio: 0,2%

The deep sleep / awake ratio is pretty good indeed. The biggest cause of awake are:

"multipdp" (): 7 m 46 s (466 s) Cnt:(c/wc/ec)66/0/66 1,3%
"secril_fd-interface" (): 5 m 56 s (356 s) Cnt:(c/wc/ec)97/0/0 1,0%

The first one is network traffic, the second one is radio related: you may try the effect of turining fast dormancy on/off on the second one.

Unfortunately your phone is not rooted so we can not look at the alarms. AlarmManager does not show a huge count (307) in that period but this may give us a clue about the causes of data traffic (multipdp).
[BetterBatteryStats] chamonix:
I just released an new ALTitude version and am excited to start a new BBS iteration
[BetterBatteryStats] mariotme:
Chaminox any news regarding a new bbs icon? :D
[BetterBatteryStats] Szczepanik:
Recognized Contributor: Chamonix

Chamonix

I was proud to be able to recommend you for Recognized Contributor status in the xda-recognized-developer-program-expansion

It is not just BBS and AlTitude but all the 4 threads you have created on:

Better Battery Stats

CommandCenter

ALTitude

Virtual Appliance for Android App Development

Congratulations and keep up the Recognized Contributions

Cheers

Tom
[BetterBatteryStats] odub303:
Have you given any additional thought to a possible "wakelocks held while screen off" stat implementation?
[BetterBatteryStats] chamonix:
Sure, it's ready and will stay hidden till v2.0 :P
[BetterBatteryStats] chamonix:
That feature is definitely in the list for the upcoming release
[BetterBatteryStats] chamonix:
I feel honored and am proud to be recognized by my peers
[BetterBatteryStats] :
I'd say that recognised contributor is not the suitable title for chamonix, since he should be entitled as recognised developer. Because of his active and continuous support not only of his apps but also on the results and logs produced by BBS, I think he should have both titles, or maybe an higher one, if there is any.

Just my two cents :)

Sent from my SGS2 - SlimICS Rom & Fluxi Kernel
[BetterBatteryStats] lokhor:
For users of Better Battery Stats with Galaxy S3s:

If you have noticed secril_fd-interface wakelocks then check out this guide to disabling Fast Dormancy on the S3: http://www.androidnz.net/2012/06/at-your-own-risk-how-to-disable-fast.html
[BetterBatteryStats] Szczepanik:
Chamoix Recognized

cyberpunk627 - the XDA Recognized Developer Program (RD) is currently closed. You cannot nominate RD - they have to apply themselves and Chamonix is a modest guy who would probably not do so. I nominated him as a Recognized Contributor (RC) because it was the least and most I could do to have him recognized. RC also gives him useful benefits such as faster ad-free XDA template and free PREMIUM Developer Hosting from Dev-Host which could benefit all of us.

My two cents is that he deserves an award for patience :angel: - I particularly enjoyed this reply of his :)

On another topic, can I recommend the HIDE command in square brackets [] around the long dumps in this thread (followed by /HIDE in square brackets to end). Readers can click to show content:

Recognized Contributor to Wiki pages on xda-developers over the years including:

ANDROID

Android_ROM_Update

HTC_HD2/NexusHD2_ICS_CM9_FAQ

HTC_HD2/ParanoidAndroid_FAQ

HTC_HD2/Portadroid

Wakelocks

WINDOWS MOBILE

HTC_HD2/Android Loader

Xtask

HTC ARTEMIS

HTC_Artemis/Backup

Artemis_Resets

Cheers

Tom
[BetterBatteryStats] hisee:
still this coming

Alarms: 70, Intent: com.jb.gosms.goim.CANCEL_SLEEP

can u tell me setting for this as I search all I did nt got
[BetterBatteryStats] ahkow:
Hi, my battery level drops about 8% per hour over night with data sync on. It went to deep sleep in 58.8% of the time, seem to be is abnormal. Can anyone help to review whats wrong with my setting? Thanks in advance.

http://dl.dropbox.com/u/32021536/BBS%20Log/BetterBatteryStats-2012-06-25_072216747-over%20night-data%20sync%20on.txt
[BetterBatteryStats] Kira.Lawliet:
Thank you for the reply, I'm using stock kernel & stock rom (w/supercharger script) but I think I fixed the problem for now (rebooted & cleaned dalvik cache ). Will report if it happens again. Thanks again :)
[BetterBatteryStats] herng5417:
ICS

does it works on ICS?
[BetterBatteryStats] suku_patel_22:
Yes it does, read the Op and change log
[BetterBatteryStats] Karpfenhai:
really?

its not too hard, its GOSMS, just get rid of it ;)
[BetterBatteryStats] dannysmith43:
Hi,

I was wondering if you could help, my One X battery life isn't very good and I purchased BBS a few days ago, dumped the logs and noticed it never went into "deep sleep". I rebooted it yesterday and kept it off the charge and now it appears to be deep sleeping but the "AWAKE" time is over double that of my "SCREEN ON" time - which I think is causing poor battery life.

I accept that the awake time should be higher but I have set everything under (accounts & sync) to every 2hours....wondering if anyone could shed any light? Attached is my BBS dump log.

Many Thanks

**not rooted either
[BetterBatteryStats] ShannonAUT:
Greetings, I really hope some kind expert here can help me with my issue.

I own a SGS 3 (I9300XXALF2 Firmware). Over night I go into flight modus and still loose about 30% power within 6 hours. Now and then it is the expected 1% but I haven't been able to figure out why it is so damn high most of the time.

The usual culprits like latitude and backup are already disabled.
[BetterBatteryStats] Memphisto11:
Thank you for the detailed explanation! I just purchased your app to show my support!

I followed your suggestions and found Latitude was already logged out and Automatic Caching set at default Wifi only.

Is there anything else I can do?

I went into Location Services and turned off:

- Google's location service

- Location and Google Search

By doing these will help anything ?

I have also disabled fast dormancy. I will charge my phone tonight, let it sleep overnight and post my dump file tomorrow morning.
[BetterBatteryStats] Karpfenhai:
Pingchat (touch) is a known drainer, try to disable push notification,

Disable all location based services

Try to setup your gmail account to pull every 1 hour instead of push.

Next time provide an idle (overnight) dump with disabled touch!

Read the OP how to perform a good dump for reliable analysis ;)

---------- Post added at 11:18 AM ---------- Previous post was at 11:15 AM ----------

Ouch, you have the suspend backoff problem ;( Thats a tough one!

Unfortunately there is no general advice for a solution yet, but some voodoo ;)

1. turn off phone, take out battery for a while, (i know sounds weird but could help)

2. Try to find a custom kernel for your device, this particular problem is kernel related for sure!

3. Disable google cloud backup and other sync / backup functionality.

4. BTW, i have seen the suspend backoff problem goes often hand in hand with whatsapp, maybe you can freeze this app for a test?

5. Good Luck!
[BetterBatteryStats] elk2210:
I have the suspend_backoff-wakelock, too.

But for me it is related to the stock-browser and Chrome.

If I leave them with the back-button, they are still running, preventing my phone from going to deep-sleep. If I shut them down via the the task-manager all is working fine again. Not a good, and annoying solution, I know, but I can't get a proper solution for this til now.
[BetterBatteryStats] T4zDingo:
Thanks for your quick response chamonix,

Turning Fast Dormacy on/off has no effect on the second one (tested it). I know my provider doesn't support it so i keep it disabled now.

I also rooted my phone to look at the alarms, will post a new dumpfile tomorrow.

Another thing I noticed is that my phone never goes to sleep with wifi on due to wlan_wake and wlan_rx wakelocks. I already red the wiki pages about these two.

You mentioned using a sniffer to determine the cause of the permanent wifi use.

Can you actually recommend one?
[BetterBatteryStats] Karpfenhai:
Shark for root or wireshark for PC ;)
[BetterBatteryStats] ShannonAUT:
It most likely has something to do with an app running in the background.

If I open the taskmanager and swipe away all recent apps the "bug" disapears, but i can't pin it down to any specific app for now. But I'll try my luck with whatsapp / chrome for now and see if thats the weirdo.

thanks for the reply though.
[BetterBatteryStats] dannysmith43:
Thank you very much for assessment!

I'll leave it idling overnight tonight - although I did also in that log that I uploaded too. I don't do seen any option for disabling push notifications in Ping - I may just have to live with that! I'll also sign out of Latitude and I've already disabled gmail sync & notifications for email (never use it) - we'll see how it fairs tonight! Thanks!
[BetterBatteryStats] LegendZenify:
Does anyone have information on the TimeService wakelock?

Googled about it and yet unable to find much information about it.

This is a friend's bbs log which has TimeService taking up a huge chunk of wakelock time.

http://xdaforums.com/attachment.php?attachmentid=1141004&d=1340135197

Apparently it still occurs after disabling 'Automatic Date & Time' and 'Automatic Timezone', and without alarms.

Would appreciate it if someone could help me diagnose this wakelock, and suggest what causes it (just the TimeService wakelock)
[BetterBatteryStats] chamonix:
The two main reasons of awake are:

"multipdp" (): 2 h 13 m 5 s (7985 s) Cnt:(c/wc/ec)1064/0/1064 27.6%

"secril_fd-interface" (): 1 h 40 m 41 s (6041 s) Cnt:(c/wc/ec)1514/0/0 20.8%

The first one is data traffic caused by apps, the second one may be reduced by turning on/off FD.

The next thing to look at are wakeups:

AlarmManager (Android System): 4 m 48 s (288 s) Count:4926 1.0%

Unfortunately without root there is no way for you to get more details. You may want to give a temproot a try if you don't want to permanentely root your device
[BetterBatteryStats] chamonix:
Unfortuantely the dumpfile is gone, please repost.

I have searched grep code and weirdly enough I coundn't find this class in the android sources. One we have the dump I will investigate further
[BetterBatteryStats] LegendZenify:
Sorry, forgot to check the link.

Here is the log:

http://xdaforums.com/attachment.php?attachmentid=1141004&d=1340135197

Thanks
[BetterBatteryStats] chamonix:
Your friend should be more worried about this:

LocationManagerService (Android System): 2 h 44 m 42 s (9882 s) Count:365 22.4%

I see multiple causes to that and he will need to do some testing:

- GPS should be turned off when not used

- the caching settings of google maps should be set to "wifi"

- wifi should not be left on all the time

AlarmManager is also showing a very high activity (109606 wakelocks in 12 hours) so I suspect there is something else going on.

About TimeService: what is com.pansi.msg.transaction.ScheduleService?
[BetterBatteryStats] LegendZenify:
LocationManagerService is easy to diagnose and the impact isn't that great after taking the necessary measures.

He seems more concerned about TimeService, which we have no idea how to diagnose it.

'com.pansi.msg' seems to be referring to the Pansi Sms app.

https://play.google.com/store/apps/details?id=com.pansi.msg&feature=search_result

Do you think it could be the cause of the drain?

I would download the app to try, but Play Store is giving me errors at the moment.
[BetterBatteryStats] chamonix:
You should never skip a big cause of drain and focus on the next as it may easily be a side effect. Please fix #1 and get back with a dump.

Any yes I believe 'com.pansi.msg' may be the cause but as I said, first things first
[BetterBatteryStats] Memphisto11:
Hihi,

Here is my dump file after a good almost 7 hours of minimal usage.

I have followed closely to your suggestions:

- Back up my data is unchecked

- Latitude is logged out

- Latitude Automatic Caching set at default Wifi only.

- Fast Dormancy is disabled

I also turned off the following:

- Google's location service

- Location and Google Search

- Dial pad touch tones

- Touch sounds

- Screen lock sound

Please let me know what else can I improve on?
[BetterBatteryStats] itsLYNDZ:
I keep finding NetworkLocatorService for Maps is running in the background sucking my battery. I'm signed out of latitude. How do I keep it from running? I keep finding map running too. I wish there was a way to make them end when I am done using the app.

I tried unchecking all the boxes in location and security, but then I have to re-enable the top one to use GPS, so thats kinda pointless
[BetterBatteryStats] ahkow:
When I disable data package, I got good Deep Sleep percentage, but couldn't figure out which apps. Guess I need to root. Where can I get the link to temproot (without increasing the counter?)? Alternatively it will be good if someone can share their experience about which apps take too much data traffic. I suspect some of my apps such as LINE, Whatsapp, Viber, Wetchat, gTalk?

By the way what is FD? And how to resolve AlarmManager related? I disable alarm clock on my phone.

Thanks for the great help...
[BetterBatteryStats] LegendZenify:
I apologize.

The log and the problem is not mine, so getting another log might be slightly difficult.

I just found the TimeService wakelock particularly intriguing.

However I have tried Pansi SMS, and it seems that it should be the cause.

The behavior is pretty weird, the wakelock actually lasts for 4-10 minutes each time the app is opened (after being closed by a Task Manager).

I have attached a dump from my device for your perusal (though do note this is a dump from a different device)

Thank you for your analysis.
[BetterBatteryStats] itsLYNDZ:
Is there a way to make sure apps stop running when you close out of them? Like when I exit out of dolphin browser and go to running apps in settings its still running. Is there a way to kill the process right when I exit the app? Besides going into settings every time?
[BetterBatteryStats] gpz1100:
Any thoughts on this log? I've gone through and disabled anything and everything I could possible find that auto updates/syncs in the back, but yet there's still a good amount of hits in alarmmanager
[BetterBatteryStats] brar.arsh:
Best App..
[BetterBatteryStats] o0boiboi0o:
Google Map seems to be draining battery during and even after exiting from it. Thus I always remove Map. i guess one way is to manually force stop the services after using Map. I myself use other nav apps.

Did you exit properly ie menu>exit? not just press the back button? so far mine everytime i exited, when i checked the services, it is not running anymore.
[BetterBatteryStats] Karpfenhai:
Based on this dump the only thing you need to worry about is pansi sms, all other looks good!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Karpfenhai:
Mate, your dump looks good, disable haptic feedback and keyboard sound to bring down the audio_out wakelock.

But that's not a clean idle dump anyway, next time be more careful!

Thx.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Karpfenhai:
Get autostarts from market and disable

ALL

entries under maps, same for all talk /gtalk entries under google service framework (gsf)

Good luck!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] itsLYNDZ:
Would I have problems if I go to use maps or nav with doing this?
[BetterBatteryStats] elk2210:
+1

I have this problem with Chrome and the Stock-Browser. Preventing my device from going to deep-sleep...
[BetterBatteryStats] Karpfenhai:
Nope, it just prevents maps to AUTOstart, opening it manually works like a charm, just try it, it doesn't hurt, there's a set to default option :D

Tapatalked from my Samsung GT9100