yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] nobnut:
Thanks for that.

Firstly, some of the potential options are unavailable to you as you are S-On. This is actually a bit of a blessing in disguise in your case as we can therefore definitively say that any drain or wake problems you have are exclusively and unequivocally caused by third party apps you have installed (or the settings that you have given them). Unfortunately however, you cannot prevent the autostart feature of apps as you are not rooted ;)

Therefore your options are easy:

1. Adjust the settings

2. Replace the app

3. Remove the app

Before I carry on, I must come clean and say that I do not like any kind of battery saving or profile management apps. In my opinion they are useless as they cause more hassle than they are worth. I can say this as when I was new to Android, I too tried them. I learnt by my mistakes :p

Anyway, I have reattached your screenshots with some boxes and etc that I will refer to below:

1. We know that your device does go to sleep... but it is slow, the sleep should start almost immediately after the screen goes off [green boxes] (unless you have left an app running etc). Make sure you exit apps when you are finished by clicking the back arrow.

In pic 1 we see that your drain was steady until something triggered it. This coincided with an improvement in your mobile data signal. I can't say what the relationship is however based onthis information [yellow and red markings].

2. Announcify - until you get this issue sorted, I would uninstall it just in case it is causing the problem. It might well be ok, but if you can live without it for 24 hours, you can put it back when you are done with this issue.

Green power - Grrrrrr I would remove this out of general principle. It can do nothing your phone can't do by itself, or that you can do manually (manage data connection etc)

3. Llama - Grrrrrr location-based anythign is a battery killer... nasty yuk - remove it.

Sugar Sync - can you set this up so you only sync manually? Having a process running just to exchange files between devices seems like a little overkill to me.

Skype - is a known battery killer and process hog. You will either need to live with the drain, or kill the process manually when you are not using it. I for example have killed its autostart permissions but start it manually when I want it. You are not rooted however I guess.

4. Screebl - Grrrrrr. Another battery saver?!?! LOL ;) - Ditch it.

5. Check permissions and sync schedules for apps like Google Reader. If you use this every 30 minutes fair enough... if you use this every 30 days, untick its sync permissions in Accounts and Sync. Follow my drift?

Anyway, it's up to you what you do. If you remove all that junk and demonstrate that your battery is performing moree effectively, if you want to, you can re add this stuff one by one until you find out what's going on.

Final tip... once you have got your drain and wake under control, ditch Battery Monitor Widget also ;) I did as I don't need it anymore. Just reinstall it if you think you need it.

Good luck and let us know how you get on!
[BetterBatteryStats] Ghazkul:
Thanks for the tip on how to dump the AlarmManager!! I just did a dump and my highest wakeups was caused by:

android

809072ms running, 281 wakeups

1 alarms: act=android.intent.action.DATE_CHANGED flg=0x20000004

9 alarms: act=com.android.internal.policy.impl.PhoneWindowManager.DELAYED_KEYGUARD flg=0x4

1138 alarms: act=android.intent.action.TIME_TICK flg=0x40000004

123 alarms: act=com.android.server.ThrottleManager.action.POLL flg=0x4

19 alarms: act=android.app.backup.intent.RUN flg=0x40000004

80 alarms: act=android.appwidget.action.APPWIDGET_UPDATE flg=0x4

173 alarms: act=android.content.syncmanager.SYNC_ALARM flg=0x4

com.viber.voip

164775ms running, 618 wakeups

617 alarms: act=com.viber.voip.action.KEEP_ALIVE_RECEIVE flg=0x4

1 alarms: act=com.viber.voip.action.VERSION_CHECK flg=0x4

Viber is causing a lot of wakeups it seems. I am not sure how many of those is done during screen off though.

com.google.android.apps.maps

804ms running, 43 wakeups

43 alarms: flg=0x4 cmp=com.google.android.apps.maps/com.google.googlenav.prefetch.android.PrefetcherService

Maps is now froozen when i dont use it :) so hopefully it wont wakeup as much as before.

net.dinglisch.android.tasker

14114ms running, 104 wakeups

90 alarms: act=net.dinglisch.android.tasker.ANOFFCHECKORUM flg=0x4

14 alarms: act=net.dinglisch.android.tasker.ALARUM flg=0x4

Tasker has a lot of wakeups to, no idea why really because I am not using location services, just cell tower locations and those shouldnt bee checked when screen is off ? or?
[BetterBatteryStats] manuelkuhs:
Thanks for your very good advice. To be honest, I was only driven to the power management "tools" by my desperation.... Do you consider Tasker acceptable? Also, I though Llama would not be power hungry since it only polls network cell for location...

I've actually decided to do a hard reset and then test the apps one by one. First app I'll install - Battery Monitor Widget & BBS

Thanks for your help, will post my results
[BetterBatteryStats] nobnut:
That sounds like the best plan. It is what I would do.

Tasker is fine, absolutely. I use it. Just make sure you do not have any looping profiles/tasks which never end and will cause drain. I would also strongly recommend you not to have any location based services (e.g. turn wifi on at home). These will either constantly monitor your location or do it at intervals... this will obviously kill the battery. I just enable it manually... I know where I am with it then.

Llama may be ok. If you are wiping and adding the potentially problematic apps one by one, you will be able to tell if it does cause a problem, or whether it is benign and safe. My logic however is that if your phone is set up correctly, you don't need it in the first place. But I accept that each person likes their phone set up in their own way and Android is all about personal choice... hence we don't like iPhones ;)

Best of luck!
[BetterBatteryStats] dpaine88:
Thanks, but I do like to have my custom dictionary words restored.

I rebooted and the problem is gone so I cannot get a dump file but it is a weird thing nontheless.
[BetterBatteryStats] nam3less:
Well, *backup* is due to the backup being checked. I can only assume the inconsistency that happened is due to a bug.
[BetterBatteryStats] mathewgx:
I turned wifi on for about 5-6 minutes and when I turned it off , I noticed a battery drain (cpu stats showed that phone couldn't enter sleep mode). The batterystats dump file is the file 1.

I rebooted the phone , and left if idle all night long (file 2). Everything seems fine here , phone was at deep sleep.

So , can anyone see the problem at file 1 ? I'm using KA12 ICS.

What is google.android.gsf ? I can see a lot of awakes.
[BetterBatteryStats] webwolf_3000:
google.android.gsf = google services framework

Could be that your device is polling servers for updates more often than needed, try disabling data and wifi for an hour or two and check if there are still a lot of wakelocks.

If that solves it, try setting your synch schedules to occur less often.

BTW: I can't open those two links, I'm just getting some plain html with 404 error codes in the body in the txt files.
[BetterBatteryStats] mathewgx:
Yes you are right , I can't read them either. Don't know what happened and I deleted the original files.
[BetterBatteryStats] Rallerbabz:
Need help reading the betterbatterystats properly

Hello XDA :-)

I've been trying to figure out my battery drain problem the last couple of days.

So far I've improved it by 100%. A few days ago I only got about 5-6 hours of battery for my normal usage, which is abit low I'd say.

Now I can squeeze out 11-13 hours of battery which is much better, but still isnt good enough for me.

In hours I've googled and tried out different stuff like tweaking kernel, decreasing voltage, disabling fast dormancy and downloaded BetterBatteryStats and tried to figure out how it works, tho I have some serious problem reading what it says. It's totally chinese to me :-P

I've charged the phone to 100%, unplugged it and let the phone be 100% idle for a few hours to get some results to show you guys. I hope i did everything correctly. I've of course disabled wifi, bluetooth, gps, rotation and sync when it was idle.

It would be so nice if some pro guys could take a look at my stats and tell me what's actually draining my battery so quickly.

I've attached screenshots of both BetterBatteryStats, CPU Spy to indicate that my phone was in deep sleep most of the time, a picture of my android version/rom/kernel and some screenshots of Android's standard battery usage thingy.

I'd be thanksful if anyone would help me out - tell if you need more information :-)

If you look at the screen usage I find it weird that it've used 10% of the battery even tho it've only been on for like 1 min (I plugged it out, restarted the phone so the screen has only been on while it restarted/started up)

EDIT: Please dont blame kernel or rom, I've tried many roms and kernels and I find Checkrom/siyah one of the best, both performance wise and battery wise.
[BetterBatteryStats] coolfire:
Hello peeps,

Here's another dump of mine. What happened is that I initially thought it was Beautiful Widgets causing a huge amount of partial wakelocks. But even after uninstalling BW, and not even using the stock clock & weather widget, my 'AlarmManager' wakelock is still massive. I may be wrong or forgetful, but I do not recall having such huge 'AlarmManager' wakelocks prior to installing (and uninstalling thereafter) BW. Also, the "alarm" in kernel wakelocks is huge as well.

Appreciate anyone's help, please. :)
[BetterBatteryStats] nam3less:
Here are some things I'm seeing:

Tasker.UserAbsentWakelock (net.dinglisch.android.taskerm.Tasker): 26 s (26 s) Count:300 0,3%

This tells me Tasker is requesting user interaction to do something and you're not interacting with it. Maybe a reminder of sorts?

*sync* (Googles tjenester): 8 s (8 s) Count:423 0,1%

I assume tjenester means something like service. This is caused by your sync settings in settings >accounts & sync. If you have many things that are syncing, this count will be high. Figure out which things you can sync manually and which you need to auto sync.

If you are signed into Google Talk, sign out.

NetworkLocationLocator (Googles tjenester): 2 s (2 s) Count:235 0,0%

Disable location in apps that you can stand. For instance, do you need location enabled in your browser searches? If not, disable it in settings. This number will go down.

I still get it despite removing ALL location and toggling GPS. So you probably won't be able to completely get rid of it.

There's not a whole lot here, despite the 15 minutes of awake time. Try fixing these things and post another dump file. The 15 minutes of awake time seems kind of.... off...... compared to the wakelocks. But by fixing these, it might go away, especially the Tasker stuff which could keep your phone awake while waiting for user interaction.

__________________________________________________________________

Please post a completely idle dump file. hard to sift through usage vs non usage.

For AlarmManager, read this:

https://github.com/asksven/BetterBatteryStats-Knowledge-Base/wiki/AlarmManager
[BetterBatteryStats] Rallerbabz:
Hey Name3less, thanks for your feedback, I really appreciate it!!

Tjenester = Services :-)

I dont know if you know what Tasker is, but it is an app where I can automate everything I want.

For instance I've set it to enable wifi when home, mute when in cinema and work and stuff like that. Also I've set it to enable sync when screen is on, and disable sync when screen is off. This is why it runs in the background. As far as I am aware it doesnt really use any battery.

Since Tasker disable sync when screen is off, I actually find it weird that it've been sync'ing.

I'll try to disable google's services, log out of google talk(But I think Google have made sure that it doesnt use much battery?) and report back tomorrow after a night of idle.

If anyone can come with more suggestions now it'd be much appreciated :)

Thanks!
[BetterBatteryStats] uberbdon:
My battery problems literally began overnight. I woke up Sunday and went to work. After four hours my battery was already at fifty percent.

Heres my dump

db.tt/B3o5ePBw

After googling I still have no clue what "deleted_wake_locks" is or how it may affect battery life.
[BetterBatteryStats] nam3less:
Yes, I know what tasker is. I was unsure if it had any events that required user input, for instance throwing up a notification for you to do something, similar to notifications in Calendar.

I also did come across this, but I wanted to address the first question I had first.

https://groups.google.com/group/tasker/browse_thread/thread/5f7a2ee687ebaac6

It's not a big deal, especially because you're not noticing any adverse effects. It has to wake your phone to do things. Although if your screen is on, the phone should be awake anyway. I suspect it could be due to an issue where Tasker is doing its things but you turn your screen off in the middle. It still has to finish its task, thereby keeping your phone awake until it's done. It's just something I noticed.

GTalk still causes high numbers of awake time, even in 4.04. If you don't use it, then just sign out. if you do, you can try the old freeze/unfreeze widget. Multiple google services use the GTalk service so even signing out of GTalk will still give you some wakelock count.
[BetterBatteryStats] riskaa:
[/QUOTE]This is the first time I'm posting to this thread, but I have been using Better Battery Stats for a while. Thank you so much for this app, Chamonix.

I'm on a Samsung Vibrant, with ICS Passion 13.1 Rom, KISS kernel V. 6

My battery life is on average about 10 hours with what i would call medium use. It's never been much better than that. When i first installed BetterBatteryStats, i figured out very quickly that location services were causing wakelocks, so i unchecked all of those options.

Now it seems that K9 email is the main culprit, but I'd like someone to take a look at my stats to see what else is going on.

I unplugged the phone at 8.30am today, and now at 12.10, it's at 46%.

Here's my dump file:

https://dl-web.dropbox.com/get/Public/Android/BetterBatteryStats-2012-04-09_120244445.txt?w=8fd018b9

Thank you very much
[BetterBatteryStats] nam3less:
I'm double posting here since I didn't see yours while I was writing the other one.

have you rebooted your phone recently?

I'm seeing lots of inconsistency in your dump. You say woke up Sunday and went to work, and after 4 hours your battery was at 50%. I am assuming this to be you unplugging your phone, going to work, and after 4 hours of your phone being unplugged, your battery is drained. Yet I see this in your log:

"deleted_wake_locks" ():[COLOR="Red"] 9 h 58 m 4 s[/COLOR] (35884 s) Cnt:(c/wc/ec)845141/0/84 89.6%
"usb" (): [COLOR="red"]6 h 23 s [/COLOR] (21623 s) Cnt:(c/wc/ec)-6/0/0 54.0%

Also:

ImapFolderPusher uberbdon@gmail.com:Drafts (com.fsck.k9.K-9 Mail): 4 m 54 s (294 s) Count:282 1.8%
ImapFolderPusher uberbdon@gmail.com:INBOX (com.fsck.k9.K-9 Mail): 1 m 22 s (82 s) Count:341 0.5%
ImapFolderPusher brandonjorgensen602@gmail.com:Drafts (com.fsck.k9.K-9 Mail): 18 s (18 s) Count:242 0.1%
ImapFolderPusher economicallyviable@gmail.com:INBOX (com.fsck.k9.K-9 Mail): 17 s (17 s) Count:110 0.1%
ImapFolderPusher brandonjorgensen602@gmail.com:INBOX (com.fsck.k9.K-9 Mail): 17 s (17 s) Count:169 0.1%

What are your account settings like? Do you have push on your mail? Does your k9 app go out and fetch mail at a certain interval (20 minutes? 30 minutes? an hour?). Judging by counts, I'm suspecting you have push on. If you can change this to a pull interval (say, every 30 minutes), you'll see an improvement.

Do you need your drafts to be pulled frequently?

I understand that your problems happened over night. I'd reboot and see what that does for you. the Deleted_Wake_Lock is related to wifi traffic as far as i've seen, and is a kernel issue. You can try a different kernel or changing some of your wifi settings. Maybe try a different router as well to see if your problems go away (start with the settings first). See:

http://xdaforums.com/showpost.php?p=21235031&postcount=1830

http://xdaforums.com/showpost.php?p=19396688&postcount=1819

http://xdaforums.com/showthread.php?t=1179809&page=182

I suspect if you turn off/toggle wifi and/or change the settings for keeping wifi on while phone is asleep to "never" it might fix your large deleted_Wake_locks for good.

If anyone else has anything to add with the deleted_wake_locks, please do, especially realted to the RAZR.

Finally, I can't see alarms in your link you posted. I don't know if it's just me or you didn't give BBS superuser.

__________________________________________________________________________________

Can't see your file, unless it's just me. try adding it to your post (option for attaching file at the very bottom of the editor)
[BetterBatteryStats] uberbdon:
When I looked at the "alarms" tab in BBS it shows nothing, so I didn't dump the file. This dump is from today. The problems started after unplugging on Sunday morning. Since this issue started I disable all background syncing, and issues still persist.

Regarding WIFI, I'm connected to wifi after unplugging at 5am and its off wifi at about 630 when I go in to work, no wifi there at all.
[BetterBatteryStats] nam3less:
Reboot your phone. Both for the sake of starting fresh and to remove logs of your kernel wakelocks.

See if anything changes with the reboot. If you made no changes at all to your usage or the phone (didn't install a different kernel, app, rom, etc.) and a reboot doesn't fix it, you can try re installing the kernel. Apart from that, I don't know what to tell you.

Try leaving wifi off in the morning and see if you still get the deleted wake locks. I'm confident it is those that are causing the issues. Ask your kernel dev if he's seen it before. It is related to wifi, as i've said, at least with every other phone i've come across with the issue.

Give BBS superuser so the alarms show up. Then post another file.

This is the reason I am seeing the inconsistency, 9 hours of deleted_Wake_locks and 6 hours of usb wakelocks,

"deleted_wake_locks" (): [COLOR="Red"]9 h 58 m 4 s[/COLOR] (35884 s) Cnt:(c/wc/ec)845141/0/84 89.6%
"usb" (): [COLOR="red"]6 h 23 s[/COLOR] (21623 s) Cnt:(c/wc/ec)-6/0/0 54.0%

yet:

BetterBatteryStats version: 1.7.1.0
Creation Date: 2012-04-09 09:48:05
Statistic Type: (3)
Since 4 h 34 m 19 s
VERSION.RELEASE: 4.0.3
BRAND: verizon
DEVICE: cdma_spyder
[BetterBatteryStats] Rallerbabz:
Once again, Thanks.

Is it safe to freeze GTalk or will it make some of Google's services/apps unstable? I dont use it so why not just remove it :-)
[BetterBatteryStats] uberbdon:
BBS had su permission but still no alarms show up
[BetterBatteryStats] nam3less:
Very odd indeed. That's a question for chamonix as to why it's not showing up.

Mine's frozen with no issues. :)
[BetterBatteryStats] nldxda:
I have massive battery drain no matter what kernel I've tried on cm7.. Can someone take a look at my dump please? This time I have a dump of the phone draining overnight.

*edit* i re-uploaded the dump.. should work now..
[BetterBatteryStats] nam3less:
Wifi On (): 8 h 37 m 4 s (31024 s) Ratio: 100.0%
Wifi Running (): 8 h 37 m 4 s (31024 s) Ratio: 100.0%
"WLAN_HOST_WAKE_RESUME" (): 11 m 39 s (699 s) Cnt:(c/wc/ec)66732/58176/0 2.3%
"dhd_watchdog_thread" (): 6 m 49 s (409 s) Cnt:(c/wc/ec)756086/9/0 1.3%

Start by checking your wifi settings. Set your "keep wifi on during sleep" to "never". Should fix almost all of your issues.

Do this, then if needbe post another file.
[BetterBatteryStats] nldxda:
^^I use text free so I need it connected when the screen is off. I'm aiming to get the best battery life possible while still leaving wifi always on. It just seems to be draining way too fast.

Edit: I already have wifi sleep policy set to "never"
[BetterBatteryStats] nam3less:
Well, I think that's your problem then. Text Free is keeping your phone awake in the interest of receiving messages.

Try (for a few hours over night), disabling Text Free (leave your wifi on, but just freeze text free). See what happens to your battery in the morning and what changes occur in your dump file.

also, see post 2313:

http://android.modaco.com/topic/332692-cm7-nightly-discussion-thread-old-please-use-new-thread/page__st__2300
[BetterBatteryStats] nldxda:
Well I don't think its text free.. usually text free doesn't even push my msgs thru.. I have to open the program and refresh for the texts to arrive. This is apparently a problem of it's own.

Another thing, even with wifi off, the battery still leaks way too fast. Its only worse by using wifi.

Also, the battery drain is present upon a fresh flash of cm7, before I add anything of my own..
[BetterBatteryStats] nam3less:
See the post I mentioned. Sounds like a kernel issue in that case. Can you flash something OTHER than CM7 and see if you still get the drain?
[BetterBatteryStats] nldxda:
I'll try oxygen rom and post my results afterwards.. thanx

I'll check the thread too ..
[BetterBatteryStats] Ninsassin:
Hi, how does one post a dump? Or start logging the data. Forgive for asking but I looked on the first page of the thread and I couldn't find out how. And I'm digging through the app and I'm so lost.

Thanks.
[BetterBatteryStats] gaui:
Just install the app. That should be enough.

Plug your phone in over night, unplug it in the morning, use it minimum over the day.

In the end of the day, go to the app, click on settings button on the device, and choose "More" and then "Dump to File". Then there should be a file in /sdcard/ with the name, something like: BetterBatteryStats-2012-04-09_120213589.txt
[BetterBatteryStats] Ninsassin:
okay thanks, I'll try that in the next few days.
[BetterBatteryStats] gaui:
Please use the "Thanks" button if the answer was helpful.;)
[BetterBatteryStats] jeremysherriff:
I've seen it before, it was a problem after upgrading. Uninstall and reinstall BBS.
[BetterBatteryStats] riskaa:
Can't see your file, unless it's just me. try adding it to your post (option for attaching file at the very bottom of the editor)[/QUOTE]

This is the first time I'm posting to this thread, but I have been using Better Battery Stats for a while. Thank you so much for this app, Chamonix.

I'm on a Samsung Vibrant, with ICS Passion 13.1 Rom, KISS kernel V. 6

My battery life is on average about 10 hours with what i would call medium use. It's never been much better than that. When i first installed BetterBatteryStats, i figured out very quickly that location services were causing wakelocks, so i unchecked all of those options.

Now it seems that K9 email is the main culprit, but I'd like someone to take a look at my stats to see what else is going on.

I unplugged the phone at 8.30am today, and now at 12.10, it's at 46%.

Here's my dump file:

https://dl-web.dropbox.com/get/Public/Android/BetterBatteryStats-2012-04-09_120244445.txt?w=8fd018b9

Thank you very much[/QUOTE]

Here's the dump file attached. Thanks!
[BetterBatteryStats] mathewgx:
Please help me resolve my drain problem with KA12 ICS Ray.

I left the phone idle all night and battery dropped 2-3% , which is very good. Then I turned on wifi and gps , I used google play and route 66 , turned off wifi and gps , and battery started draining quickly. CPU stats showed no sleep mode. The batterystats dump file is here : http://dl.dropbox.com/u/4397301/1.txt

Then , I rebooted the phone and lest it idle for a few minutes. Problem resolved. Here is the second dump file : http://dl.dropbox.com/u/4397301/2.txt

So , can anyone tell me what caused the problem ?