yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Ratix0:
I've got a question on trying to solve the issues with wakelock.

I have been trying to fix the severe battery drain (40% overnight of 7 hours) on my friend's Galaxy S3 and have installed betterbatterystats to monitor any wakelocks causing the battery drain. Lo and behold, no surprise huge amount of kernel wakelocks. However, the huge amount of wakelocks are classified under "deleted_wake_locks" and I have no way of determining the exact cause of these wake locks.

I have done some google search about "deleted_wake_lock" and can't find anything substantial (https://github.com/asksven/BetterBatteryStats-Knowledge-Base/wiki/deleted_wake_locks). Would like to know any way for me to attempt to find out the proper solution to it. As far as I can tell, the deleted wakelock held the system awake for over 4 hours in just less than 10 hours of usage.
[BetterBatteryStats] mr_zuff:
R: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Hi everybody! Are you all ok?

I'm here beacuse I want to ask you what is this (see the pics) and if I have got to worry about this wakelock :)

I really appeeciate your work guys! Have a nice day! :)
[BetterBatteryStats] AbyssTrion:
AW: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

I URGENTLY need your help guys.. Don't know what is draining my battery..

http://db.tt/OsO2p3hs

Thanks
[BetterBatteryStats] Christiancs1969:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Your WiFi on all the time?

Cpu max 800? Hang on for more your post will be answered soon;)

s2 rootbox
[BetterBatteryStats] Mfizz:
So i thought maybe someone could have a look at these logs and help me out. the problem i am having is that at home my battery is really good when i leave and travel around going work, the battery drastically reduces for no apparent reason. I have uploaded 2 logs, one when I am at home and the other when I am travelling to work etc. (the log when i travel was surprisingly SIGNIFICANTLY better than before might be due to the fact i disabled many samsung services which i don't use / require).

A thank you to who ever can help me out ! cheers!
[BetterBatteryStats] gil80:
Hi Guys. My battery is draining fast

CPU spy shows 200MHz almost all the time and about 5% deep sleep.

with BBS:

Partial Wakelocks Since Unplugged: AudioOut_2 1h54m Count: 89 41.7%

Kernel Wakelock: PowerManagerService: 2h 10m 795/0/0 47.7%

I have no idea what they mean. Hope to get some insight to this... thanks :)
[BetterBatteryStats] yahyoh:
everything seems normal :)

---------- Post added at 05:03 PM ---------- Previous post was at 05:01 PM ----------

post the full BBS dump :rolleyes:
[BetterBatteryStats] nani67:
anyone please help me in this issue
[BetterBatteryStats] nogo8888:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Thanks for this great app.

It saves me a lot of trouble.
[BetterBatteryStats] kpavl01:
Is it ok on 4.2.2 rom to have 97% deep sleep, 1 min 30 seconds screen on and 4 minutes awake?

Galaxy s2, PAC man rom, stock kernel.
[BetterBatteryStats] miten_sheth:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Post the whole BBS dump please

Sent from my SGH-I777

ROM - ShoStock3 v2.5.1

Kernel - AJK v1.6
[BetterBatteryStats] o0boiboi0o:
Depends on how long u leave ur phone on idling.
[BetterBatteryStats] kpavl01:
I will post whole dump tomorrow. Thanks.
[BetterBatteryStats] danslecarton:
Google Maps seems to drain much battery for me.

I'm using PA 3.0 with faux 007b6m if it is a help.

Why does the app not log Alarms?
[BetterBatteryStats] azrash:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Switch from 'boot to Current' to 'unplugged to Current'

Also, when taking an idle dump, leave the phone untouched. I see some screen on there.

Flowed from my Nexus 4
[BetterBatteryStats] danslecarton:
Somehow I don't have the option to change Boot or Current.

May I ask what you mean by idle dump?
[BetterBatteryStats] miten_sheth:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Leave the phone alone without using it for a couple of hours.. and post your dump..

Sent from my SGH-I777

ROM - ShoStock3 v2.5.1

Kernel - AJK v1.6
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

That's perfect, nothing to worry about, next time attach the dump, don't post it, Thx.

Tapatalked from my Galaxy SII
[BetterBatteryStats] Santic7:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

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

Anyone? Thank u.
[BetterBatteryStats] gonadwarrior:
I realized I didn't have the alarms/network in there. Did it again for a couple of hours

https://docs.google.com/file/d/0BzYqQjtra4ZiUl9WaTBia2hXajA/edit?usp=sharing

can anyone help ?
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Your first file is not scrolling (chrome), the second is not public, so we would like to help but we can't right now... :D

Got the first one working with dolphin but this is not an idle dump, read post 3 for assistance.

Tapatalked from my Galaxy SII
[BetterBatteryStats] gonadwarrior:
ah, thanks

you meant to change it to "Since unplugged" right?

just realized that I didn't have that option before and had to go to settings. Will try it again tonight :o

Since I made the post, I read through about 30 pages and learned a bit. Got Gemini, LBE, Autostarts apps and shut many of that stuff off :good:

I'll post a better dump tomorrow
[BetterBatteryStats] oae08:
This is not working properly with CM10.1 android 4.2.2

Its showing wrong values and very weird percentages and numbers... Im on the latest version on the play store...
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Android 4.2.2 is currently not supported by the stable version, but you can use the latest rc from second post of the thread. Regards.

Tapatalked from my Galaxy SII
[BetterBatteryStats] brajesh.sharma87:
Here is my dump.

I care that phone was 32 minute awake during around 5 hrs of screen off. Although the battery was not lost to great percentage still I could save those much.

What I did after seeing the result is:

-Removed facebook and twitter sync since I dont use it.

-Freezed geniewidget as I dont need it.

-Facebook was added to greenified list but everything which autostarts it was disabled but still somehow it started, so reported this bug to greenify developer.

What more can I do to avoid unwanted awake time? It will be better if somebody explains the way seeing my log about how an user can understand each part of the log. I see it as PITA for all of you to read every user's log and explain each of them. So better I request to the BBS developer to explain the ways to understand the log by the users themselves, just a suggestion thought. :)
[BetterBatteryStats] oae08:
Hey thanks for the reply, i just read this from the playstore as well

But can i know how unstable it is? Like what do you mean unstable? :) Thanks
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Don't worry, it will work as usual and not affect your phone at all since bbs is a passive tool, just use it, the worst thing what could happen is having unreliable values in bbs.

Have fun.

Tapatalked from my Galaxy SII
[BetterBatteryStats] oae08:
Thanks again man i just installed it and I had to remove the older play store version.

The funny part is one of its permissions it to prevent the phone from sleeping :p :confused:
[BetterBatteryStats] kozmo21:
Another option for facebook is delete and either use browser to access it, or use friendcaster.

One more thing you can do is remove the quicksearch widget. You can still access it by holding down the menu, but it will get rid of that wakelock.
[BetterBatteryStats] matt-86:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Hi . I'm having around 2 or more percent usage on sotmax rom and yank kernel. In yank thread I had suggestion to ask here what can I do.. they told me multipdp is high.. what do you think about my screens? Phone was with screen off for around 4.30h. I have sync switched off. Fb to not update. Accuweather widget to update every 24 h. Fast dormancy off and old version of viber to prevent the audio_2 wakelock. Do I have to post other screens?
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Yes that's right, the latest version contains the first active monitoring ever, but you don't need to use it, it should be off by default anyway.

But if you decide to use it, you could report back here for the developer, Thx in advance.

Tapatalked from my Galaxy SII
[BetterBatteryStats] Casanoaa:
Sv: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

You have to provide an idle log. Unplug and leave 4 hours without touch and dump a file.
[BetterBatteryStats] KaranKapoor:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

I'd appreciate it a lot if someone could give me feedback on these stats...

https://docs.google.com/file/d/0BwhDhuqseGMSVFk3VGIwUmpXZVE/edit
[BetterBatteryStats] Andyy2k3:
Another two stats of this night when the phone was idle and in flight mode.

deep sleep 99,1% but look at the wakelocks of AlarmManager. 5h29m9s?!

I mean that's curious isn't it?

View attachment BetterBatteryStats-2013-02-24_023400338.txt

View attachment AlarmDump.txt
[BetterBatteryStats] matt-86:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Ook. Which screens I dump? Kernel and partial wakelock are ok or you need more?
[BetterBatteryStats] Casanoaa:
Sv: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Screens is not necessary a log is fine. Partial.. Kernel.. Alarms.. Network would be good to see.

---------- Post added at 10:46 AM ---------- Previous post was at 10:42 AM ----------

Use autostarts app.

Disable all autostarts of eBay app.

Disable all autostarts of viber maybe works or delete it.

Disable tasker..

And you are good
[BetterBatteryStats] Andyy2k3:
But ebay, vider and tasker don't have many alarms do they?
[BetterBatteryStats] chamonix:
The reason why BBS requires wakelock permissions it that for saving references (e.g. when screen goes off) a wakelock is required to make sure that android does not decide to shut down while the reference s persisted.
[BetterBatteryStats] chamonix:
When reporting that something s "wrong" could you please elaborate and post corresponding dumpfiles, logcats and more detailed explanations. If there is a bug I would like to fix it but I need details.
[BetterBatteryStats] chamonix:
Poll

As there is a general tendency to split DEV and Q&A threads I wanted to know your opinion. Please answer the poll and let me know what you think. Splitting in the case of BBS would mean starting two clean threads:

- one only for development related stuff

- one for general support
[BetterBatteryStats] and8res:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Hi people

Is this normal ?

I only have - unplugged - option to see the results ..

Thanks
[BetterBatteryStats] Casanoaa:
Sv: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

They have enough
[BetterBatteryStats] AbyssTrion:
AW: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Hey, sorry for double posting, but no one answered my previous post :/ I have some serious problems with my battery life! Please help :(

http://db.tt/OsO2p3hs
[BetterBatteryStats] It_ler:
I also saw the mod's post about splitting dev and q&a post into separate threads in different sections of the device forum.

IMO it's a good idea to keep dev related things into dev thread in dev section, and all other questions/discussions into e.g. general section of the device forum.

So for kernels, ROMs, etc. with a high number of post per day, it's very useful.

And even new users (with less than 10 posts) are able to post in the q&a thread when it's not in the dev section.

But ...

...this BBS thread is not device specific. So it is not that obviously needed to get a split into dev and general section.

And maybe it's one of the most visited threads because it is how it is right now.

I feel comfortable with dev related and non-dev related posts about the app and battery life in general.

To analyze and optimize the battery life is the main aim of the app, so it fits perfectly together.

I am not sure if new users (with less than 10 posts) are able to post here ... maybe some can check and confirm.

But apart from this, I personally would like to keep the BBS thread like it is => unsplitted.

At least as long as the OP (you Chamonix) feels good with it too.

Remember that the splitting into dev and q&a thread doesn't have only positive consequences.

In some cases, there are many non-dev posts in dev thread (although there is a q&a thread clearly highlighted and linked in the first post).

And the dev thread gets floated with some "police" posts (e.g. "belongs to q&a thread", "wrong thread", "reported", etc.), and needs to be cleaned regularily by mods.

Just my 2 cents.
[BetterBatteryStats] chamonix:
You are right, the poll (and discussion) arose from the mod's post recommending but not forcing the split.

Personally I have no problem with keeping all BBS related stuff in one thread:

- I read everything anyway so mixed "support", "bug report", "testing" and "requests" don't bother me

- I like having everything at one place to search for

- this thread has very active contributors (including you) involved in supporting as well as testing

- I feel the thread as it is today runs well and as we all know: never change a running system

But as this thread is not only about development but also about support I wanted to ask. I will let the poll run for some time until we have a representative number of opinions and then I'll decide.
[BetterBatteryStats] TenBelowZero:
AW: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

New user here. Able to post...:)

BTW I like this thread as it is. Have learned a lot here just by searching and reading. Thank you!
[BetterBatteryStats] Musko:
I was read a lot of posts about battery draining with attach log.

But all log about 0,8 - 2,3 % per hour draining.

Then I try my battery.

not use phone 4 hours

WiFi allways ON

mobile data ON

Sync ON

mail sync time 1 hour (during weekend)

exchange sync time 1 hour (during weekend)

facebook syn time 1 hour

twitter sync time 1 hour

I have draining about 4,8% per hour.

Is this normal?

Or I must check my draining during all of above switching OFF?

Thank for any help.
[BetterBatteryStats] oae08:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Hey sry for not elaborating ckearly. When i was using the latest bbs on playstore with 4.2.2 th values given was wronng in the sense of 104% or for example battery drained 80% per hour. And sometimes even negative values. I do not have a dump file now. It seems to work better on the latest RC found on this thread.
[BetterBatteryStats] kpavl01:
https://dl-web.dropbox.com/get/Publ...ABTDLaqv9tnmWN4LToykfaQUfFxr6wCPMo1lC73VuN0hg

Here is my dumpfile. I am on PAC man rom, stock kernel and noticed wifi drain.
[BetterBatteryStats] rajdoll:
Some times this app does not display any data, all % etc are blank. I think this happens when you open the app and open lot of other apps and this one gets killed by the memory manager and then I open this app it displays all blanks. But there is a workaround to solve this, I open up the recent apps list by long pressing the home and swipe away BBS from that list and now if I open it, it displays everything properly. Is it a known issue?
[BetterBatteryStats] osm0sis:
I've been getting a wlan_rx_wake lock since upgrading to JB4.2.2, not sure what's going on. I've wiped data on my phone and started with completely stock apps, adding only BBS RC11 and SuperSU; disabling multiple system apps (the ones I don't use) as well. I have disabled the usual stuff in Settings like Location updating in Maps, Signing out of GTalk before I disabled it, and turning off background sync of Currents, but nothing seems to help. This wakelock is crippling my idle drain, which used to be 0.6%/h in JB4.2.1 (and 0.2%/h in JB4.1.2). I'm running franco.Kernel, but I've always been running it, and no others on it currently have reported this wakelock or drain, most are reporting 0.4-0.5%/h on average.

Attached are some screen shots. As you can see it's a pretty bare bones setup for testing. AlarmManager shows to be the obvious culprit, but then under Alarms there is nothing that matches the number of wakes. Despite that phone and gsf seem suspect, but their services seem normalish (though gprs-stall seems like trouble), and Network usage shows some download by 0 (the root UID?) which also seems a bit suspect. It's a bit of a mystery, so any help on what could be causing this from the wise, experienced members/gurus in here would be greatly greatly appreciated.

Also, I don't have it set up on my test setup here, but when I am running my normal: if anyone knows how to make Exchange Services/Stock Email client behave better I would value that information as well. I already have it set to poll every 2 hours only, but the count on it is always a bit extreme, like 200+. My searches of this thread haven't come up with anything so far.

Cheers and thank you for any advice you can give. :)

[Pics removed]
[BetterBatteryStats] gommans.mark:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Hi all,

I'm following this thread with a lot of interest, also purchased your app. Just having a little trouble on interpreting all the stuff the app collects.... So I'll just start with a simple question, I hope there is a 'generic' answer to it. During the night, no wifi connection, no apps running, my battery looses about 8%. Would you say that's a normal percentage? Running stock, nova launcher.

Thx!
[BetterBatteryStats] lennie paz:
I think I'm good with battery drain. I only lost 6% last night while the phone was sleeping. If anyone sees anything that might help me do even better, please let me know.
[BetterBatteryStats] kozmo21:
Try assigning a static IP for Wifi.

Also, next time just post a dump as an attachment instead of screenshots.

For your question regarding Exchange, the normal answer would be to disable exchange and create a new mail with pop3 settings with manual pull... Don't know if that is an option for you or not?
[BetterBatteryStats] Andyy2k3:
8% is much. My Xperia S loses 0-2% the whole night.

Please post your log so we can analize it.
[BetterBatteryStats] osm0sis:
Ah sorry, thought the pics were a good way to communicate the relevant info only.

Don't think there is any way to do Outlook.com with pop3, unfortunately, but I'll look into it. I'll try the static IP as well, but honestly it's bizarre because nothing changed on my Router side either, and I believe this only cropped up with JB4.2.2. Any other insights; what's up with gprs-data-stall and UID 0 Wifi?

Edit: Googled POP3 for Outlook.com and apparently there is a way. :) I guess I'd lose my Outlook.com calendar though... but I suppose I should just import it to Google and do it that way. One down, now I just need to solve my idle drain. ;) :good:

Edit2: Okay, huge downside to POP3 - no custom folders. :confused:
[BetterBatteryStats] kpavl01:
I have always static ip and wifi is draining my battery. Official 4.2.2 CM 10.1
[BetterBatteryStats] Tungstwenty:
Check out this link if you want to hear Sven's fingers hard at work :D
[BetterBatteryStats] ccs86:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Hey guys,

Any idea what could be causing all this network traffic while the device should be sleeping?

I have Theme chooser's auto starts disabled.

Thanks!
[BetterBatteryStats] gommans.mark:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Thanks for your answer. I'll be sure to post my log in the morning.

Just to be sure: I have a Samsung Galaxy S2
[BetterBatteryStats] oae08:
Hello, Im using CM10.1 android 4.2.2 and i have installed BBS 1.12.0.0RC11 that one of the users told me should work on this ROM

However, it still not working 100%, im not so sure why, sometimes it just gives me no values.

I noticed something though, that Watchdog is not enabled. I remember when I was on 4.1.2 it was enabled (not sure). Could this be the reason. I dont know what watchdog clearly does, so can anyone please here be kind enough to explain.

Thank you
[BetterBatteryStats] kozmo21:
Link doesn't work.

Looks good. Couple of things you can do...

Optimize maps as described in post 3 by Karpfenhai.

(totally optional) Disable face detection and disable facebook and use browser or friendcaster... there are not many wakelocks for these, just being picky ;)
[BetterBatteryStats] kpavl01:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

http://db.tt/lNiL7cLk

Does it work now?
[BetterBatteryStats] lennie paz:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

When you say disable face detection, do you mean Smart Stay? I got rid of FB and installed FC. I disabled all notifications in FC, and set it to update only once daily. Any other settings that save battery in FC?
[BetterBatteryStats] kozmo21:
Yes, smart stay/ smart rotation. Optimizing maps will have the biggest impact on battery life.
[BetterBatteryStats] cet90:
deleted
[BetterBatteryStats] robertlau:
Battery drained by AudioOut_4

Suddenly have this problem recently.

At night, even turning on Airplane mode, the battery still dropped more than 20% during the night.

Betterbatterystats showed AudioOut_4 on top of the list in partial wakelocks.

Stock power option shows the phone is Awake all the time and the top 2 are Android system and Mediaserver.

Remove all music/movie files from phone, clear cache of gallery, music player etc, but still NO help. :confused:

Anyone can help on this?

Thanks.
[BetterBatteryStats] oae08:
Hey, can anyone help me identify whats draining my battery please. Appreciate it ! Thank you. :fingers-crossed:
[BetterBatteryStats] cdzo72:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

You must have a corrupt file on your storage somewhere... reformat SD and after an initial scan it should resolve itself... folks complain about media server/scanner wakelocks and patch it by manually stopping the scanning service.... but if the service won't stop on its own its because there's a corrupt file or folder somewhere its getting hung up on... run a logcat with "media" typed in as a filter and it may even tell you where the file is. I once had it in the blobs folder of clockwork mod and it was corrupt in a way that it would not erase... only after a format was I able to rid myself of it... since then I no longer have to use media scanner fixit scripts and such and regularly use SD MAID to wipe SD storage of obsolete files
[BetterBatteryStats] chamonix:
Sorry for the delay, I was a little busy launching ALTitude.

But back to your logcat: BBS starts at line 107 with the load of the processes and does well. Unfortunately I didn't see anything else than the processes in the logcat. Did you open the partial wakelocks in the timeframe?

I see two possibilities for us to proceed:

- the logcat did not contain the display of the wakelocks: if that is so please take another reading

- you opened partial wakelocks but nothing was logged. If you confirm that I will have to add more logging information. Please drop me a PM if it's the case
[BetterBatteryStats] xavihernandez:
Thank you chamonix.

I'll do it again.

Well I have tried to enable battery monitoring from MIUI, it seems that now something is logged. It's really weird.
[BetterBatteryStats] Christian_Troy:
I'll take ya up on your word. :o

Here's my stats (log attached), let me know if you need anything more. I didn't capture the process tab, there is nothing in there (except for htc launcher count 0 or sth.), don't ask me why. Pretty spot on today, 8 hours not touched, 40% gone. Remember this is a clean setup, there's not a single sms on this phone (no calendar, no facebook, no settings changed).

Any advice is more than welcomed.