yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Tungstwenty:
I found the following source file where the WL is controlled: https://android.googlesource.com/pl...elease/services/audioflinger/AudioFlinger.cpp

Line 1532 names the WL after the playback thread's id.

It is acquired in line 1328 and released at 1349, which are called at the core of the PlaybackThread (line 2503).

The RecordThread loop also uses wakelocks but the name will be "AudioIn_<N>" (area around line 5980).

The id of each of the several types of threads come from the function nextUniqueId() (line 7230) which is just an ever incrementing integer.

The bottom line is that it all depends on the order that the several outputs are opened. The 2 main ones:

- openOutput, line 6751, opens an output device and creates the corresponding direct output or mixer thread

- openInput, line 6968, ...

These will be called from somewhere and ultimately it's the order that matters, and it might be different among devices I guess.
[BetterBatteryStats] Karpfenhai:
Many thx for enlighten us!

I wasn't sure about my own theory since I've never seen a number higher then 2 on my device... :D

Give us some more info how to identify the order and therefore the responsible process, would a logcat fit or is a dmesg / kmesg required?

Thx in advance!

Tapatalked from my Samsung GT9100

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

Your alarm clock count is quite high, caused obviously by your location settings, I guess if you turn off mobile data, the location cannot be submitted, therefore the wakelock increases.

Could you freeze Google now and disable all location services for a test run to see whether the issue persists?

Good luck!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] urboy4mbx:
At this point man, I think there should be a Q&A or "Know How To's" on a separate dedicated page....I know there is one already but it might not have as much info as on this 1000+ msg thread

I installed the free version and will buy the full version soon, to support the developer.I am trying to learn a bit more before asking the same question, but going through all these pages is a daunting task :eek:
[BetterBatteryStats] Kocai:
Which is why I regret not starting to read the info provided on this thread when I first found out about it a year ago. It took me some time to read a lot of posts in this thread and a lot of Google search to find out about the things that drain my battery. So I guess you should start searching and reading ;)
[BetterBatteryStats] superleeds27:
Noticed alot of Alarm manager wakelocks. So, decided to to get a dump.

Heres the txt file.

Tips? advice?
[BetterBatteryStats] superleeds27:
Heres my BetterBattery Stats dump too
[BetterBatteryStats] Karpfenhai:
Okay guys, here are the first impressions in terms of battery life on the galaxy sII leaked jelly bean firmware:

Unfortunately I switched my systemui.apk during runtime so I couldn't take further screenshots at 1% but I reached 6 hours 12 mins with total uptime 32 hours.

Conclusion, I can easily gain +6 hours of total screen on time, standby is good and I don't even use an undervolted kernel just screenfilter as usual.

:thumbup:

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Kocai:
How much count and time for the GSF? Can you share parts of GSF that you disable? Or are they the same with the ones that you used to disable before?
[BetterBatteryStats] Karpfenhai:
This is for 13 hours now without freezing anything yet (on gsf).

com.google.android.gsf (): Wakeups: 178

Alarms: 122, Intent: com.google.android.intent.action.GTALK_RECONNECT

Alarms: 9, Intent: com.google.android.intent.action.MCS_HEARTBEAT

Alarms: 21, Intent: com.google.android.intent.action.SEND_IDLE

Don't have a dump from long term run..

Next time..

Tapatalked from my Samsung GT9100
[BetterBatteryStats] akshay7394:
Hi, I was wondering if ANYbody could tell me what bq_watchdog and usb_bus_active are? I tried searching the thread but I'm not sure if it's xda or my phone, the search keeps coming up empty. (not even saying no results found, etc.)

So I'm just posting, hoping that someone can help me figure out my battery drainer:

I'm using a Live with Walkman, mesa kernel 2.3 and AOKP jellybean milestone 1. I've been experiencing a battery drain that I never have before? The only new thing on the wakelocks was the bq watchdog and usb_bus_active. My Cell Standby itself took a massive chunk despite only having been with a bad signal for about 20 minutes, which it never has before until i spotted these wakelocks. Any ideas/suggestions?
[BetterBatteryStats] Kocai:
AFAIK watchdog is a part of the kernel which monitors the state of your device. usb_bus_active is because you're plugging your phone using USB cable. It should disappear if you reboot, I think. Maybe another member with much more knowledge can help you if you provide an idle dump. Please read the OP on how to do that :)
[BetterBatteryStats] It_ler:
Oh guys, please don't paste the whole BBS dump into your posts.

It is very difficult to read and scrol through this thread with such long texts.

Please attach the dump files to your posts - that is very easy and saves a lot of space in the thread.

Thanks in advance !
[BetterBatteryStats] Krishnadusad:
Or maybe use the [.hide] and [./hide] ( without . ) bb tags? :)
[BetterBatteryStats] It_ler:
Oh you mean [HIDE]long text[/HIDE]

P.S.:

With the tag [NOPARSE][/NOPARSE] you can post tags that will not be parsed as BB code.
[BetterBatteryStats] Krishnadusad:
Precisely ;) .
[BetterBatteryStats] shailraj:
Sorry... Please help

am really sorry didn't know that....

i am attaching the bbs dump now..

This is my first time here in this forum.. Have been directed to come here to find solutions to my battery drain problem on my S3

I am on omega v33.1 and using persus kernel...

Have used siyah in the past but was a battery hog and phenomenal medium was very unstable was getting random reboots...

I am having lot of battery drain...loosing abt 5% per hour without doing anything I have hardly used the phone Please see log below and advice I will be very grateful...

Also if someone can suggest a kernel which is best for battery life and decent performance for daily use on my phone....

guys please help
[BetterBatteryStats] albie999:
Have attached a dump with root rights. Really wanna get to the bottom of battery drain. Phone was off charge on bed side for 8hrs, and it has drained 28% which seems rather high for doing nothing with it

Can anybody advise?
[BetterBatteryStats] justinliu:
Can someone figure out my battery issues? I'm getting a days usage, typically 15-17hrs with 2-3 hours screen time but its still not the like the other Note2 (N7105) users that I've seen who can go 2 or 3 days without a charge.

On LJ4 firmware running note2core V1.02 kernel. Running perseus kernel is the same for me.
[BetterBatteryStats] akshay7394:
But this was 7 hours after I'd disconnected the charger :'( hahaha.
[BetterBatteryStats] yoahim:
Hi

Can you give me a reason why my phone is all the time Awake and can't get into Sleep Mode?

http://pastebin.com/KwnuDP3t

http://pastebin.com/HZ0dYD0D

or attachments:
[BetterBatteryStats] shailraj:
Guys please help... Still waiting for expert guidance..... Bbs log attached with original post quoted above...

Thnx
[BetterBatteryStats] It_ler:
1. Please install latest BBS app version.

2. Disable Facebook app.

3. Deisable all location services/options in ROM settings menu.

4. Try again.

Good luck !

P.S.:

To get more information with alarms and network stats, you need to root your phone and enable root options in BBS app settings menu.

---------- Post added at 06:14 PM ---------- Previous post was at 06:07 PM ----------

Please disable all location services in ROM settings menu.

Have you got a battery widget running on the homescreen? If yes, remove it.

Battery monitor seems to be very "active" on your phone.

Then try again.

Good luck !
[BetterBatteryStats] shailraj:
1)I am on latest BBS version... Just checked on playstore

2)How do I disable Facebook app? I I use Facebook quite often... Shud I try some other Facebook app? If yes then which one? I have kept sync off and all other notifications from the app off.

3) all location services disabled

Have enabled root features now :thumbup:

Thnx again! :thumbup::thumbup:
[BetterBatteryStats] It_ler:
It is easier to analyse your wakeock and alarms when you provide an indle dump ... BBS log while doing nothing/screen off all the time.

I see facebook, battery monitor, audio, tango, etc. activities.

Try to disable/freeze all apps that you don't really need.

And I see issues with Fast Dormancy. Try to switch the FD state of your phone (if it is enabled, disable it nd the other way round).

If your mobile provider supports FD then enable it on your phone, if not, disable FD.

Good luck !

---------- Post added at 06:29 PM ---------- Previous post was at 06:24 PM ----------

1. In BBS dump you can see: "BetterBatteryStats version: 1.10.4.0".

Latest BBS version is 1.11.0.0 (attached in post #2 of this thread).

2. E.g. with Titanium Backup Pro from Play store. Just to check how much influence it has on battery life.

You can activate it again, if you want it back.

3. Network location locator is active, so at least one option of your location services seems to be enabled.

Please check again in ROM settings menu - and maybe Google / Maps settings too.

---------- Post added at 06:39 PM ---------- Previous post was at 06:29 PM ----------

1. Install latest BBS app version (1.11.0.0 => post #2 of this thread).

2. Provide an idle dump, i.e. BBS log while doing nothing, screen off all the time. Then it is easier to find the culprit eating your battery.

3. Disable all location services. As Network location locator is active on your phone, there seems to be at least one option enabled in ROM settings menu. Please disable all location options.

4. Kernel wakelocks and Network stats are missing?! Maybe it's an issue with your phone model, maybe it will be fixed with latest BBS version. If you have cut off these stats, keep in mind that we can only provide help on base of the given information. If something is missing, you will probably get no or bad help.

Then try again.

Good luck !
[BetterBatteryStats] lickwidice:
Please analyse my BBS log.

Hi,

I've dumped the log of my BBS log over here as well as attached it. Please help me analyze it.

http://pastebin.com/ae6yDCJJ

I think I might need to make another log with just 4 hours of idle time (This one here is a 13 hour log with about 30 minute Waze/GPS usage in the beginning of the day, after a full charge)

Thank you.
[BetterBatteryStats] It_ler:
1. As you already mentioned, try to create an idle dump while doing nothing / screen off all the time.

Here I can see Network Location Locator that shows that you had a location service running.

2. I see Facebook ... try to disable/freeze it. Just to check how much battery power you can save with this.

3. Alarm and Network stats are missing. If you are rooted, check that you have enable root options in BBS app settings menu. Maybe you have to connect the charger or USB cable and disconnect it again to set a valid unplug reference.

4. I see that Google quick search box is active ... if you have it on your homescreen, remove it.

Then try again.

Good luck !
[BetterBatteryStats] islandBoy69:
no time_in_state file

Ever since I flashed cm9.1 my battery performance has been bad. If I play any game that requires a bit of resources, it'lll drain my battery to 0 in no time flat. I've since noticed that I don't have a "time_in_state" file and I was wondering if anyone has noticed a correlation between this missing file and terrible battery performance.

Happy Thanksgiving.
[BetterBatteryStats] lickwidice:
Awesome Thanks will follow all of that and try again.
[BetterBatteryStats] yshaikh01:
S3 Battery Drain

Hi

I am running Stock Jelly Bean on my i9305. Generally get around 2.5hr's screen time and around 14/15hrs on a single charge. I am looking to improve if possible as I have Android System as a second item on my battery list.

Thanks
[BetterBatteryStats] It_ler:
1. Next time please provide an idle dump while doing nothing / screen off all the time. Then it's easier to find the culprit for batetry draining.

2. I see Google maps ... have a look at post #3. There is the link to Karpfenhai's description of how to "optimize" Maps.

3. Network location locator was active. Check ROM's settings menu and disbale all location service options.

4. Alarm and Network stats are empty. To get more information, you will need to root your phone. Just think about it.

5. Try to switch your Fast Dormancy setting. If it is enabled, disable it and the other way round. There is a Fast Dormancy app from gokhanmoral in Play store. If your mobile carrier provides FD, then enable it on your phone, else disable FD on your phone.

6. One more clock free seems to use your CPU a lot. Try to disable/freeze it (remove its widget from homescreen), just to check how much influence it has on your battery life.

Then try again.

Good luck !
[BetterBatteryStats] yshaikh01:
Thanks, much appreciated.

I will post an updated log as soon as I can. I have follwed post three and as I do not have root I have used "Startup Auditor free" to stop Maps from starting up. The Fast Domancy app does not work on i9305 :(

Thanks
[BetterBatteryStats] -viperboy-:
Anyone have any idea what "*overflow*" from Android System is? Over one day of wakelock on my Transformer...
[BetterBatteryStats] nobnut:
The zip I made can be edited. I assumed it was in data/app. The updater.script just needs to be changed where necessary to system/app. I'm not near a computer for a couple of days to do it however.

Sent from me to you using stuff
[BetterBatteryStats] mi3x:
What I wanted to point out was that the awake time was smaller than the phone on time, which seems impossible to me.

SwiftKeyed from my s2 using J&B and coke
[BetterBatteryStats] nobnut:
Unless a profile was selected which didn't include screen on time.

Sent from me to you using stuff
[BetterBatteryStats] mi3x:
Hm, I didn't select any profile. Here is a screenshot.

SwiftKeyed from my s2 using J&B and coke
[BetterBatteryStats] nobnut:
Is the rest of the wake happening under screen off?

Sent from me to you using stuff
[BetterBatteryStats] mi3x:
Never mind, got it :)
[BetterBatteryStats] arrediabo:
I have been having problems with battery. Let's see if i can figure this out.

Thanks for the app.
[BetterBatteryStats] Sycobob:
I did a full drain and fill to make sure my starts were right, and here's what I have:

Now the battery lasts a decent while like this, but it looks like I can get a lot more out of it. I'm still spending a lot of time awake and it's all system stuff. I need some help figuring out how to cut it down. The 4 things keeping my phone awake are:

Event Log Service (Google Services) - Currently, nothing is set to sync

Alarm Manager (Android System) - I don't have any alarms set currently, but I usually use them. It seems like a pretty heavy battery hit just for setting an alarm

*backup* (Android System) - I just disabled the setting to backup settings to Google servers. I'd kind of like to have my stuff backed up, but if it costs me significant awake time...

Polling Manager (MotoBlur) - I don't even know what this is, much less if I can disable it

Any advice for improving my sleep time?

How can I cut each of these down?
[BetterBatteryStats] -viperboy-:
Anyone? Couldn't find anything when I searched.
[BetterBatteryStats] mi3x:
It would be great if you used pastebin.com and stopped quoting yourself. In that way, a whole page scrolling could be saved. :-)

Also, a picture > 10000 words.

SwiftKeyed from my s2 using J&B and coke
[BetterBatteryStats] planetf1:
When preparing for holiday I literally put a "clone" Nikon camera battery on my case, and with no external etc short it started smoking (was worried it would catch fire) - carefully carried outside with a tool.

Smoked away for quite a few minutes.

I am SO grateful it

- was not packed in my luggage

- was not in my pocket

- was not in my camera

From now on I'm buying well-respected original batteries despite the extra price....
[BetterBatteryStats] sowen222:
Ok, well obviously this is not good. Yes, I use Latitude. But what confuses me is that during most of this time, wifi and mobile data are off, as are background data and sync. So why is the Location service locking it awake if it can't get anything anyway? So the odd thing is, that if I leave wifi *on*, it actually drains less battery because the Location service doesn't keep it awake. But this isn't all that great if I'm roaming and don't have data services. Any suggestions as to what to do - short of manually logging out of Latitude every night?

===================

General Information

===================

BetterBatteryStats version: 1.0.0.0

Creation Date: 2011-09-12 07:51:44

Statistic Type: (4)

Since 8 h 25 m 26 s

VERSION.RELEASE: 2.3.4

BRAND: htc_europe

DEVICE: pyramid

MANUFACTURER: HTC

MODEL: HTC Sensation Z710e

===========

Other Usage

===========

Awake (): 8 h 25 m 30 s (30330 s) Ratio: 100.0%

Wifi On (): 2 m 32 s (152 s) Ratio: 0.5%

Screen On (): 2 m 37 s (157 s) Ratio: 0.5%

=========

Wakelocks

=========

LocationManagerService (Android System): 8 h 18 m 54 s (29934 s) Count:1 98.7%

NetworkLocationLocator (com.google.android.apps.maps.Maps): 18 s (18 s) Count:507 0.1%
[BetterBatteryStats] nobnut:
@sowen222

That's the problem. Some apps won't go back to sleep if they can't download the data they need. It's one of the reasons why I don't like Juice Defender etc.

No solution unless you use Tasker to enable data at the desired time (when the app updates) and then turn it off again.

Sent from me to you using stuff
[BetterBatteryStats] sowen222:
Which is a pain if I'm roaming outside the country and don't have data connection :-/

What I could really do with is an application which would log me into and out of Latitude, so I can automate it.

As for data connections, do you by chance know which type of data connection uses the least battery when the data connection is mostly idle... wifi on N, or H/3G?
[BetterBatteryStats] nobnut:
Chamonix is currently looking at location updates.

As for the signal, it depends on strength. I get best battery results from wifi however.

Sent from me to you using stuff
[BetterBatteryStats] chamonix:
I've been googling a little for Event Log Service and everything I found was related to adb and logcat.

could anyone try to turn off usb debugging and see if it makes any difference. It would also be intereating to know what ROM is used.
[BetterBatteryStats] It_ler:
Try to dial *#*#9900#*#* into your phone.

Maybe that works on your phone to enter system menu where you can also toggle Fast Dormancy.
[BetterBatteryStats] yshaikh01:
Nope that did not work either :(. I tried the code in this thread http://xdaforums.com/showthread.php?t=1898948 which works but the posts in the thread seem to suggest it switches off HSDPA which is not what I want.

Thanks
[BetterBatteryStats] Karpfenhai:
Just got my nexus 10 yeah but not yet rooted, Sven what files do you need?

Tapatalked from my Samsung GT9100
[BetterBatteryStats] lickwidice:
Please analyse my BBS Log

Hi LT,

Please analyze my BBS Log I've followed your guidance on my previous post (Thanks).

http://pastebin.com/bsvg3wBq

1) I've done a dump with the screen off all the time

2) I've uninstalled Facebook

3) I've stopped location services

4) I've enabled root options before I charged again

5) I've removed the Google Quick Search Box

Battery Life looks descent I just want to know if all is running normal and if there are still any "wakelocks" I know you posted it on the first post but I still don't fully understand it so I'll get to that. Just by the way, why do you do this? Is it for your own personal research? Or you just the Good guy Greg type?

Thanks.
[BetterBatteryStats] It_ler:
1. Network location locator is still there. Please check again that ALL location service options are disabled.

2. I see Google Maps activities. In post #3 you can find a link to Karpfenhai's description of how to "optimize" Maps. Please read and follow these instructions.

3. Gmail is using your CPU. Maybe you can use an alternative email app, such as K9 or stock EMail?! And then disable/freeze Gmail.

4. I can still see activities from Google quick search box. Maybe you have to disable/freeze it completely.

Good luck !
[BetterBatteryStats] yshaikh01:
As requested 1hr screen off dump file. This is after following your advice regarding Maps and I have made a change to One More Clock Free.

Thanks
[BetterBatteryStats] It_ler:
Looks much better now :good:

1. What's about Fast Dormancy? No change?

2. And I see some AquaMail activities. Maybe you can optimize its settings or try an alterntive Email app (K9, or stock Email app)?!

Please provide an idle dump of about 4 hours (or more) next time to see the real culprits better.
[BetterBatteryStats] yshaikh01:
Thanks very much. Not too worried about AquaMail as it was just doing a sync when I was about to get the dump file, only happens every 3 hours anyway. No luck on Fast Dormancy though :(, are you saying it has improved?

Thanks
[BetterBatteryStats] ganiutomo:
You can disabled network locator by disabling all on Settings - Location Service.

Altough you were not syncing or logged out from chat, Facebook still running on background. The Facebook notification settings is the root cause for this background sevice.

When you on 3G doesn't get any 3G/2G signal, the phone will drain more. Best if you disabled data or switch to 2G if you only use Wifi or having very poor mobile signal.

I believe the is an application/way to stop media server Sent from my scanning your SD card.
[BetterBatteryStats] chamonix:
What I am looking for is if /proc/wakelocks is world readable: I had a reports from a n10 user that KWl were missing on his tablet because of some weird (500) perms on that file

Edit: and congrats for your new toy ;)
[BetterBatteryStats] fabolous50:
First time, please bear with me. Experiencing bad battery drain, running out of options....

http://db.tt/bJxDFXGz

http://db.tt/aGbztY1S
[BetterBatteryStats] wonsae:
Hey guys, I been experiencing a bigger battery drain than usual and not sure why besides my awake time being 2 hours more than my screen on time. New to this so not sure on whether I needed any more than the dumpfile to receive help