yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] albsat:
@crxed

Thanks. Well this Downloadmanager which I found out in the program has been for about 3 minutes active and in 40 minutes I am 90% on battery. I am following your advice and post a full log after one day.

Thanks again
[BetterBatteryStats] RensoreK:
Can someone please help? I've searched everywhere and cannot find out how to see the graphs and settings on screen shot #3,4,5 of the OP. I'm on 4.0.3 on a Galaxy Nexus. Only graphs I see are bars below the processes such add the first screen shots...
[BetterBatteryStats] wadokai:
Here are the files i got...

I think they have the kernel wake locks and alarm wake locks?

I just selected kernel wake locks in the list and the dumped the file.. hope this is right..

btw i turned off touch sound and screen lock sound, and there still is wake lock with audio
[BetterBatteryStats] nam3less:
================
Kernel Wakelocks
================
No reference since unplugged set yet (): (0 s) Cnt:(c/wc/ec)1/1/1 100.0%
======================
Alarms (requires root)
======================
No reference since unplugged set yet (): Wakeups: 0

Did you give BetterBatteryStats Superuser?

Reboot your phone, plug it in and unplug it and see if you get those to show up. If they're not showing on your phone, they're not going to show in the log.

Take an idle dump. Charge your phone, unplug it before you go to bed, and dump to file in the morning, then charge it before you leave the house back to full.

From the partial Wakelocks, I see this to start with:

fullsync (com.whatsapp.WhatsApp): 10 s (10 s) Count:42 0.0%
backupdb (com.whatsapp.WhatsApp): 8 s (8 s) Count:2 0.0%
*sync*_com.android.contacts_Account {name=user.hiral.b.1326384597303_52410644, type=com.voxer.account} (com.rebelvox.voxer.Voxer): 8 s (8 s) Count:1 0.0%

Do you need you contacts syncing frequently? do you need whatsapp backing everything up frequently?

SyncManagerHandleSyncAlarm (Android System): 1 s (1 s) Count:340 0.0%
*sync*_subscribedfeeds_Account {name=bhatth09@gmail.com, type=com.google} (Google Services): 1 s (1 s) Count:411 0.0%

Lots of wakeups due to what i'm assuming is your RSS reader syncing. Maybe change the sync time or change it to manual.

Information about the syncmanager can be found here: http://xdaforums.com/showpost.php?p=15943437&postcount=71

Finally for the AudioOut you need to turn off the dial pad touch tones as well. Not sure if you did that. EDIT: if you turn your phone on silent, this should go away. Furthermore, phone ringing or any ring tone notifications will cause this.

Again, an idle dump (phone unplugged over night) would help us the most. Then we can see things like AudioOut over night while the phone isn't in use. I suspect that you may have changed this setting in the middle of use and so the wakelocks happened before you turned it off. Otherwise, it's most likely a dial pad sound issue. It could also be caused by whatsapp and handcent if those have sound settings. So check that as well.
[BetterBatteryStats] McDastardly:
Here are my full battery stats. Any idea why my alarm is constantly waking up my phone?

Thanks!
[BetterBatteryStats] nam3less:
Good job on such low awake numbers!

I presume you mean this regarding your question about your alarm?

"alarm_rtc" (): 7 m 32 s (452 s) Cnt:(c/wc/ec)1106/945/157 1.4%

Read this post:

http://xdaforums.com/showthread.php?t=1462020

Facebook is causing *some* wakeups. Nothing really of note unless you are willing to turn off notifications. If those wakes happened during the screen on time, then there really isn't anything you can do. If the screen's on, and you're using an app, it's going to show up as a wake.

com.google.android.location (): Wakeups: 717
Alarms: 717, Intent: com.google.android.location.ALARM_WAKEUP

Do you need location enabled? Are you signed into Latitude? Disable location and toggle your GPS. Disable location in your browser(s) as well for location based searching. This should go away.

Tasker is causing some of your wakeups. if it's being used, then nothing to worry about. If you don't use it, uninstall it.

com.google.android.apps.maps (): Wakeups: 19
Alarms: 0, Intent: com.google.android.location.ALARM_WAKEUP_CACHE_UPDATER
Alarms: 0, Intent: com.google.android.location.ALARM_WAKEUP_LOCATOR
Alarms: 1, Intent: com.google.android.location.ALARM_WAKEUP_ACTIVE_COLLECTOR

This still happens to me despite location off and GPS being toggled when I need to use maps. I have frozen Maps and unfreeze it when I need to use it. Despite that, I STILL get some maps related wakes. I suspect something else in the GSF uses a wakelock that falls under this category. So I can't help you there. It's nothing really of note. Doesn't do too much damage. If someone else wants to chime in here, I'd like to get to the bottom of this as well, if possible.

You have a lot of Deleted wakelocks. I suspect if you fix some of the above, this number will go down and/or away.

15 minutes in 9.5 hours of awake time isn't bad at all :) especially when you're checking email and tasker is doing things.
[BetterBatteryStats] McDastardly:
Well that is the problem. I didn't use my phone at all in this time. I turned the WiFi off and went to bed.
[BetterBatteryStats] nam3less:
Wifi != location, unless i'm missing something about your wifi statement. My "checking email" comment was related to the phone pulling or pushing email to your client. Not you opening your email and reading it.

Go to your settings and search for something like "Location and Security" if anything is enabled there, background apps could be using it.

I just took a second glance, realizing I forgot to mention this:

*network-location* (com.anddoes.fancywidgets.Fancy Widgets): 29 s (29 s) Count:718 0.1%

It *appears* as though fancy widgets is causing a polling of your network location. I assume this is for a weather widget or something of the like? Use Android Weather rather than fancy widgets.
[BetterBatteryStats] McDastardly:
I only meant that I turned the WiFi off before I went to bed, hence it only being on for a few seconds. The phone was setting idle the whole 9hs. I've turned on Facebook notifications and manually entered in my location into fancy widgets so hopefully this helps.

Have you tried freezing apps like gtalk?

Thanks for your feedback!
[BetterBatteryStats] nam3less:
Me? Yes. I've frozen everything Google except Calendar, Music, Docs, and Youtube.

Any time on the feedback. Let us know how the changes work out :)
[BetterBatteryStats] nldxda:
*delete*
[BetterBatteryStats] cheezzzz:
hey guys, i just did a dump of my phone idling over night. im getting mmc0 mmc1 mmc2 which are kernel wakelocks of triumph, when my phone is an Mi410, we are of the ssame variant though but triumph is the CDMA version.

any advice? also im getting a lot of alarms on android.gtalk reconnect thing as well as twidroid(ubersocial)

any advice wud b rly appreciated! thanks guys!
[BetterBatteryStats] scottspa74:
How ironic. I'm on evervolv ICS on Evo 4g and last few days have had excessive battery drain. So, I went to my SD, installed better batter stats. Closed file explorer, opened xda app, and lo and behold....better battery stats is the very top thread looking at me in the Latest queue.

Just thought I'd share the synergy.

I'm sure the version on my SD is pretty old, I needed to find/check the thread to see if there's a newer, and boom,..there it is. Just though I'd share. Sorry. :eek:

Edit: yup so nuf, my version was 1.0.0 lol.

I don't see a reason given in OP for there being both 1.6 and 1.7 available. I looked at changelog, but still don't know why. ?
[BetterBatteryStats] Nightshadow931:
Is everything alright here.. ?
[BetterBatteryStats] mathewgx:
Here are my stats. Do you see any problem or any way I could increase battery life ?
[BetterBatteryStats] nam3less:
Before anything else, I see this:

Awake (): 7 h 43 m 53 s (27833 s) Ratio: 100.0%
Wifi On (): 7 h 43 m 53 s (27833 s) Ratio: 100.0%
Screen On (): 16 m 1 s (961 s) Ratio: 3.5%

It appears that you have wifi set to never turn off when your phone is sleeping, therefore it is keeping your phone awake the entire time it is running. Fix that by setting "keep wifi on during sleep" to "never".

Then take another dump and post it, ideally with even less screen on time (let your phone sit idle over night, unplugged, without use). Some of your other alarms may go away because your phone isn't awake and polling over wifi constantly.

__________________________________________________________________

Uhm, please post a dump file where you phone is idle (charge/unplug it before you go to bed, post a dump file in the morning).

It's hard to sift through usage vs idle.

However, the one thing I can tell you is to get rid of 3g Watchdog. It's a known battery drainer. If you need to monitor your network get a packet sniffer like Shark for Android.

Also, this:

*sync* (Google Services): 45 s (45 s) Count:216 0.1%

Turn off google syncs you don't need in your phone settings (do you need to sync calendar, contacts, books, music, etc or can you do it manually when you need it?).

_________________________________________________________________

Wow, nice job. 1 minute of awake time in 3 hours is very good! There isn't much here.

com.google.process.gapps (com.google.android.gsf.gtalkservice.service.GTalkService)
Active since: 45 m 2 s
Last activity: 4 m 45 s
Crash count:0

Are you signed into google talk? Can you freeze it? If the answer is no to being signed in, then it's another app using the gtalk service. I wouldn't worry about it too much.

Finally,

GpsLocationProvider (Î£ÏÏƒÏ„Î·Î¼Î± Android): 1 s (1 s) Count:87 2,0%

If you have GPS on the entire time or you have location enabled in your apps (for instance, in the browser, you can have "enable location for searching" checked) this count will go up. by toggling your GPS and disabling it in individual app settings, you can make this go down.

From seeing this, my initial impression is that one of your google apps is causing location polling, so check settings in each app and your phone settings. Toggling GPS goes a long way:

com.google.process.gapps (com.google.android.location.internal.server.NetworkLocationService)
Active since: 29 s
Last activity: 6 m 11 s
Crash count:0
[BetterBatteryStats] mathewgx:
I'm not logged into gtalk. How can I find which application is using it ?

As far as GPS is concerned you were right. I had enabled location for searching in browser (didn't even see this option before) , so I unchecked it.

I will set custom references and I'll leave my phone idle all night. I'll post again in the morning , to see if something changed.

Thank you.
[BetterBatteryStats] McDastardly:
Seems to be much better, but I'll let you judge. I noticed that mail is keeping my phone awake quite a bit. Anyone have other apps to suggest? I don't have my email set to sync automatically.
[BetterBatteryStats] trace5454:
well I am having the same issue with the com.android.mail thing. over 1500 alarms in 4 hours. I dont know how to fix it.
[BetterBatteryStats] nam3less:
By not having mail sync automatically, do you have it on pull (syncs every xx minutes)? You can try fiddling with that number. Do you have a setting that lets it sync over wifi by chance? Did you actually open your email app often during the day?

You can use K9 as your mail app. You'll just have to make sure you remove your accounts from your stock mail app and if you can freeze the stock app, that would be good too.

Wifi On (): 4 h 21 m 55 s (15715 s) Ratio: 18.1%
Wifi Running (): 4 h 21 m 27 s (15687 s) Ratio: 18.1%

Do you have wifi set to never sleep? You should change this to never keeping wifi running when phone is sleeping.

The only other thing is this:

E (net.dinglisch.android.taskerm.Tasker): 33 s (33 s) Count:541 0.0%
M (net.dinglisch.android.taskerm.Tasker): 9 s (9 s) Count:476 0.0%

Which is tasker doing its thing, as before. Might be good to go back through your settings and strip out some of the tasks.

If you can, please post another completely idle dump file. That would be most helpful to be able to figure out what was wakelocks vs what was actually usage. There are two hours of awake time vs screen on time so there is quite a bit we can still get ironed out but I can't really help you further without the idle file unless you wanted to write me an essay of what you did with your phone and for how long :P.

EDIT: the rest of the stuff we discussed previously seems to have helped quite a bit.

And I forgot to mention. Your first file seemed to have really low awake numbers for the 9 hours of your phone being (mostly) idle. Are you actually closing your apps after using them (using the back button until you're at the home screen or closing them through the app manager) or are you tapping home to "close" them? The latter leaves them running and could attribute to keeping the phone awake.

__________________________________________________________________

Do you have you mail set to push? Do you have multiple email accounts set up on your app, each set to push or a fast pull time? If you don't have it on push, what is the new mail pull time? In other words, how often does it go fetch new mail? Every 5 seconds? 5 minutes? an hour?

Post an idle dump file (leave phone unplugged over night with no usage and dump to file in the morning). We can help you further.

___________________________________________________________________

If you want, you can Google each gapp installed and see which services they run. To my knowledge, there's no real definitive list of apps that use the gtalk service. The fact that you only have 1 minute of wake time over 3 hours is reason enough for you to not spend too much time on it and just use your phone.

You can start disabling google apps one by one and see if your numbers go down. But again, nothing really to worry about or spend lots of time and effort on. :)
[BetterBatteryStats] dpaine88:
Could anyone help me out here? Galaxy Nexus LTE, 4.0.4
[BetterBatteryStats] nam3less:
First, Post a complete dump file.

Second, uncheck "Back up my data" from settings > backup. You shouldn't need to back data up to google's servers save for things like contacts. You should be using Titanium Backup or the GNex toolkit to back up your apps and settings anyway.
[BetterBatteryStats] jbdeq:
Gave it a go and hasn't done much for me either.
[BetterBatteryStats] Kira.Lawliet:
With this app, I found out that GpsLocationProvider is causing my phone awake, I don't have any idea what app is causing this (it shows android system); my auto-syncs are off, gps/wifi location off. The fix I did was to reboot the phone, any idea how to find that app?
[BetterBatteryStats] nobnut:
@Chamonix

A week or two back you asked for icon suggestions. I am not (NOT) any kind of graphic artist but was bored and made this...

Please feel free to ignore it, I won't be offended.

256x256, 128x128 and 76x76 versions attached.
[BetterBatteryStats] Plopz:
I didn't even notice. Thanks for that...

I'm going to see if it does it again while I'm sleeping over the next few days. The only app that I've installed lately is My Data Manager, but I don't think it'd be that. In any case, I'll report back in a few days.

Cheers.
[BetterBatteryStats] nobnut:
Could be a number of things but the first bet would be Google Maps and/or Latitude. Are you signed in to Latitude?

If not, do you have any other apps or widgets which seek your location?
[BetterBatteryStats] chamonix:
I would have a closer look (see dump in thread a few days ago) that 6200+ AlarmManager do more harm than the time in sum. Compare it to starting your car's engine 100 times and running it for 10 seconds compared to let the engine run 1000 seconds.

A few in this thread have addressed AlarmManager but unfortunately I have got no feedback on the suggested dumpsys
[BetterBatteryStats] chamonix:
I do like it a lot! For two reasons: it suggests what bbs does and it was created by a peer from xda together with the incubation of the tool. Could you send me a version without text for the icon and one without asksven for the splashscreen on the about dialog. I'd be happy and proud to integrate it with proper credits if it's OK for you.
[BetterBatteryStats] nobnut:
Excellent. I will make a higher res version with Photoshop when I get to my PC. I'll send it over tomorrow or on Friday.

Glad you like it.

EDIT: PM sent.
[BetterBatteryStats] nobnut:
Yes, I believe it is Gtalk. I use Gtalk and sometimes it shows up with very low partial wakes, other times it doesn't show up at all. Once in a while it goes mental and causes loads of wake.

I cannot control it. As you say, by freezing it, you still suffer wakes.

Other users have reported the same.

:confused:
[BetterBatteryStats] nobnut:
Here is an idea for a future release?

A widget...

Not a live widget that constantly updates, that would defeat the purpose and thinking behing BBS.

What I am thinking is maybe a widget that is updated only

after

a minimum period of sleep and then remains static until after the device wakes up from sleep again (minimum sleep period perhaps 30 minutes). This way it will not cause any wake time as it only updates after the device wakes up ;)

Similar to the BBS main app, the widget could display:

- Top 3 or 5 apps/services causing wakelock since screen off

- In ranked order

- Perhaps the apps could be colour coded if certain thresholds are exceeded (e.g. > 30% of sleep potential prevented is Red... > 20% is Orange... < 20% is Blue)

- The user can perhaps specify the thresholds and colours via the in app menu

Click on the widget and... whatever you want (open BBS/open battery statistics/open Manage Applications etc).

This might be easier for users than going in to the main BBS app to see the 'worst offending apps' and would present an ongoing glimpse into what causes wake on their devices.

I know I would certainly love this feature and would be more than happy to pay for it via the Market, which I fully intend to do even if there is a free version on XDA ;)

Now... am I mad or is this an idea with some potential? :p:confused::):eek:
[BetterBatteryStats] chamonix:
I like the idea... feature added

and no, you are not :P
[BetterBatteryStats] CekMTL:
Simply amazing idea!!!! And I agree with U 100%

Enviado desde mi GT-I9100 usando Tapatalk
[BetterBatteryStats] manuelkuhs:
Help for Terrible Battery Drain on HTC Sensation

Hi guys,

Have read most of this thread to find help. It was a real pleasure reading through it due to everyone's helpfulness - very exemplary! Nice change from all those riots in England...

Anyway, got myself a nice HTC Sensation 2 weeks ago, and immediately noticed huge battery drain. Installed Battery Monitor Widget which showed a minimum battery drain of 200mA during the day while screen off. Don't have a screenshot but my device rarely wakes itself while I have the screen off, even with Sync on etc due to me carefully managing sync & other programs (thanks to this thread!).

More importantly, during the night I turn on Airplane Mode, put my phone to silent and plug out the charger (after charging to 100%). Strangely, the battery is still at 100% after about 8 hours during the night (might be because I didn't fully charge battery on first charge?).

More importantly and shockingly, Battery Monitor log shows battery usage of around 150-200mA all during the night. Android built-in battery usage shows practically no wake time for the device (see BBS log file, I tested this twice, the log is for last night). From having a good look, it seems like it might be the AlarmManager, which I've seen someone else on this forum talk about - but BBS says my device was only awake 2.2% of the time?? Surely that couldn't account for 200mA?

Finally, yesterday during the day I did another trial; phone on as normal, but WiFi & 3G etc all off. Made a 10 minute phone call, wrote 5 SMS, and checked the time a few times. Battery went from 100% to 30% in about 10 hours, i.e. I did practically nothing. BBS showed nothing except AlarmManager (have already prevented some other apps from autostarting etc) and the phone practically only woke when I turned on the screen. The Android battery monitor said ~90% battery drain due to screen - which doesn't make sense since the Android battery monitor itself showed the screen as rarely being on?

I would really appreciate help as this is recking my head. 10mA would be like a surreal dream for me!

Have also attached battery history from Battery Monitor Widget.

Finally, I'll be buying the BBS app once it's on the Market, even just as kudos for this brilliant thread.
[BetterBatteryStats] nobnut:
Hi,

That is a strange problem. I don't think your devide has a problem with partial wakelocks... I think it has a problem from going to sleep in the first place. That explains why BBS shows very low and perfectly acceptable values.

We need to find what is stopping your phone from sleeping. Can you provide the following information. It is a bit of a hassle I know but we don't know what you have installed on your device:

1. Which ROM and kernel are you using? (Assuming you are S-Off)

2. Which CPU profile do you use?

3. Which apps show as running when you go to Settings > Applications > Running Applications?

4. When you provide the above, can you click on the app and note the detail about how long it has been running for?

5. please provide details about any apps that you have installed such as Skype which might be running and waiting for receipt of some information via the network?

6. Please provide a screenshot of the battery usage screen and the breakdown screen (when you click on the graph at the top).

This information will hopefully give us what we need to get your device running smoothly at a much lower drain level :)
[BetterBatteryStats] manuelkuhs:
Thanks for the quick reply!

1. I do NOT have S-off.

2. n/a

3. See attached pictures

4. See attached pictures.

5. I have Skype installed and the bloody thing is always running in the background even though I've signed out.

6. See attached.

I can upload same in the evening after I've used the phone more.

Perhaps I should have done this already; but maybe I should just hard reset my phone, only install Battery Monitor & BBS and see what happens?

Thanks!

P.S.: Those long chunks of Awake are due to me listening to an mp3 audiobook...