yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] skywalker01:
First of all I like to thank you for this great tool, it is really a great help. I am trying to hunt down the cause for the battery drain issue with manveru0's FeaCore kernel (bundled with his CWM port FeaMod) for the Samsung I9001 (aka SGS+).

My first results clearly show that the problem starts with his version 1.3 and even without overclocking, so the overclocking is NOT the primary cause but at this early stage of research it seems that some kernel wakelocks keep the phone awake for about half the standby time.

Unfortunately I lost this first result, I will explain in some seconds why.

I started to use BBS 4 days ago when I first heard about it so I didn't follow the whole thread, but I browsed a little bit and also looked at the complete feature/bug list on github.

But I didn't find something about the bugs or missing features - or however you will call it - that caused me the loss of 2 file dumps made after long overnight standby test runs (12 hours and 8 hours). So that threw me back for two days and I have to run both tests again.

OK, what happened then ? I dumped the first result to file when I was underway. Later I connected to PC for recharging and disconnected before going to sleep. The next day I wanted to copy the BatteryStats to my PC for reference so I opened BBS, dumped to file and then connected to PC copying the file. But wonder, only the stats of the current standby were in the file, BBS obviously does NOT append the dumps to an existing file. So you can already guess what my wish according to your following quotation is:

Can you please add a feature to append dumps to the BetterBatteryStats.txt file like in any usual log file ? Or write them to another file like BetterBatteryStats_[date]_[time].txt or whatever can be implemented easily ?

This would be another great feature that would help be in my kernel quest (see above) and I strongly encourage you to implement especially the latter one :D

But there's another problem which caused the second loss:

when you dump to file while the phone is connected as mass storage at least my Samsung i9001 can't access the sd card(s) and therefore no file is written. But there is no message at all when you dump a file. I wasn't aware of this problem at this point and disconnected the phone "prematurely" only to find that the stats were cleared both in "since charged" and "since unplugged" view so I had no chance to repeat the file dump.

This leads me to my second request: a file written successfully message would be nice but at least a "writing file failed" warning is mandatory IMHO.

You can argue now that there are tweaks that try to solve the problem by mounting the sd card simultaneously to phone and PC but it's similar to tools like Juice Defender (see below). At least for my SGS+ they don't work at all and harm more by using resources than they help. That's at least my opinion :rolleyes:

And a last one, I found this while browsing thru this thread:

I totally agree with you nobnut, Juice Defender and similar apps don't help more than they harm and I am right, too :D
[BetterBatteryStats] RedWave31:
Hi, I've read something about Wifi Wakelock.

This may be a problem with the settings.db, not allowing the wifi to sleep.

Look on the forums for terms "SQLITE" "sqlite3.dll" "wifi_idle_ms" "database" "com.android.providers.settings" and you should retrieve the info.

* This tutorial was made for another phone, and I've found that our database is in /data/data/ and not in /dbdata for samsung stock roms.

Now, on to me, i've got very strange readings with BBS

These were overnight, i lost almost 10% without any data, no sync, 2G, and as BBS states, NO WAKELOCK.

I'm looking for a Kernel issue, Siyah 2.2 rc3, switching back to 2.1.1...

>> Any info on a "ghost" AWAKE situation?

TYVM!
[BetterBatteryStats] maanz "L":
"Hi,

I must say from the start that this great app is absolutely nothing to do with me. It is all Chamonix's work... and very good work too.

As for your Tasker profile, yes, this will cause wake. But before you try and remedy this wake problem, have a think about this... 9 minutes over 8 hours isn't very much. If you want this feature (to search for WiFi), you can probably keep it and just live with the fact that basically your phone will be awake for only 1 minute every hour.

I would say that you have a few options:

1/ Live with it if you want it

2/ Remove it and use something like Juice Defender which does the same thing (I hate Juice Defender - it uses as much battery as it saves, I don't care who disagrees, I am right )

3/ Manually turn WiFi on and off when you want it

4/ Just keep WiFi turned on (it doesn't use as much power as you think)

5/ Adjust the frequency of the Tasker checks (increase them slightly - won't make much difference though)

The Tasker Wiki article that you mentioned was written and produced by brandall (an XDA member) and relates to the Deep Dleep Detective. You can read all about it here. It isn't as complicated as it seems. The first few posts might need reading 2 or 3 times perhaps but later on it all becomes very understandable and we have some fun in the thread also."

hi nobnut. I'm a bit confused about the Deep Sleep Detective.. I have followed all the instructions from Brandall and I still see high counts of wakelocks from BBS partial wakelocks.. what should I do? am I setting up the wrong configuration? or Tasker is just meant to drain my battery even if I set it right? before, I'm losing 2% per hour and my phone is awake all the time according to the graph shown in BBS. now, I have disabled it and after a reboot, my battery went down to 1% in 2 hours.. I like Tasker, but it's killing my battery.. could u tell me what are the steps I should do in order to use Tasker and DSD with low counts of wakelocks?
[BetterBatteryStats] chamonix:
I must correct you: no partial wakelocks but 7% Awake: you should check your kernel wakelocks
[BetterBatteryStats] chamonix:
Thanks for the constructive critics. There is nothing to argue about, your request about the timestamp makes perfectly sense and the other finding is a bug that will get fixed. You can track both on github as issues #62 and #63
[BetterBatteryStats] chamonix:
Good catch. You can track the fix here: https://github.com/asksven/BetterBatteryStats/issues/64
[BetterBatteryStats] yhrn:
I have been using BBS 1.4.2 for a while now and it has become an absolutely amazingly useful, even indispensable tool. Great work!

I thought I'd give some more detailed feedback as well

Problems I've seen:

Sometimes BBS get stuck at "computing" so I have to kill it from the task manager.

I've had a complete freeze (had to do hard reboot) at Alarms

Both of these could of course be related to my phone and ROM (SGS2 Androidmeda) rather than a bug in BBS if I'm the only one seeing these things.

Feature idea

It would be nice if Alarms could be included in the dump file. I guess that this could be a bit problematic as it requires root but maybe there could be some setting ("Include alarms stats when dumping to file") controlling this.

UI stuff

I feel that it is a bit counter-intuitive that "Actions" contains graphs and alarms. Maybe "Other" or "More"?

Couldn't Alarms be promoted to the main dropdown?

Since it is not possible to choose the starting point of Kernel wakelocks it could help having a static text saying "Since boot" (or similar) where the second dropdown usually is.

Minor and subjective things but that's all I got :)
[BetterBatteryStats] bala_gamer:
I couldnt believe i missed this thread so far, was using betterbatterystats 0.9.0 for a while. Never knew this development is alive, anyway this is such a great app to have with. MY thanks to the dev.
[BetterBatteryStats] oz_90:
I think that it can be the Deezer app, but I'm not sure because I have it on my nexus 7 and have not problem, but it's the only music app I use. I have to test other media apps to find if it is causing the wakelock. I'll tell you when I find it.
[BetterBatteryStats] TKD29:
big..problem
[BetterBatteryStats] blacque:
Help..where do I find the logcat
[BetterBatteryStats] Christiancs1969:
Catlog on playstore free and easy;)
[BetterBatteryStats] qwerty22:
BetterBatteryStats v1.14.0.0 & "{"

Small bag.

Samsung Galaxy S4 I9500, Android 4.2.2 (I9500UBUBMH1), BetterBatteryStats v1.14.0.0 night statistics, symbol "{":

com.google.android.apps.maps (): Wakeups: 7

Alarms: 7, Intent: {com.google.android.apps.maps

com.google.android.googlequicksearchbox (): Wakeups: 5

Alarms: 5, Intent: {com.google.android.googlequicksearchbox
[BetterBatteryStats] Karpfenhai:
More easy like this:

Tapatalked from my Galaxy SII

---------- Post added at 09:45 AM ---------- Previous post was at 09:44 AM ----------

Clean cache and data for gsf and Google play service.

Tapatalked from my Galaxy SII
[BetterBatteryStats] Perseus:
Do you have bluetooth teathering going on ? Some app permanantly keeps checking for Internet non-stop. It first checks for Wireless, then data (which it does not find ! ) and then goes looking for Bluetooth leather after turning on bluetooth. Oh yeah, some sounds are using your phone speaker. find it and turn it off.

Typically when in your situation, I find that Google Location sharing and Location Service are the hogs. After some use, post the Partial Wakelock and Alarm screenshots of BBS. i am sure there will be something in the background. Given that last Logcat's size, I didn't go to very end.

Sign out and then delete facebook app. Access Facebook via mobile website only. Follow this thread then report a BBS Log after reboot.

Turn off the Search widget on your home screen. Turn off Location service unless you are actually navigating. Sign out of hangouts and then delete it. You too should follow that thread I mentioned above in this post.
[BetterBatteryStats] sshafranko:
Could someone please take a look at my dump? Thank you.

https://db.tt/ihvlqfPC

Sent from my SCH-I605 using Xparent Skyblue Tapatalk 2
[BetterBatteryStats] Karpfenhai:
No problem at all except juice defender. :p

You can gain the same results without it.

Tapatalked from my Galaxy SII
[BetterBatteryStats] beanbean50:
that just sounds so wrong :p
[BetterBatteryStats] cilsoe:
My thought exactly. :)
[BetterBatteryStats] sshafranko:
Thank you I appreciate it. Im very torn with JD. I actually do get the same results without it but I use it simply to turn my wifi and data on off when needed. Maybe I should look into an app that does strictly that. Thanks again.

Sent from my SCH-I605 using Xparent Skyblue Tapatalk 2
[BetterBatteryStats] hyperbolic:
In Dialer the clear data/cache is grayed but I can do it in Phone.

Any idea which data I am going to lose before I clear it ?
[BetterBatteryStats] Perseus:
Call Log.
[BetterBatteryStats] qwerty22:
Thanks for the advice! But I did not ask and did not ask for help. I pointed to the bug.

...Intent: {com...
[BetterBatteryStats] chamonix:
Could you please send me the output of 'dumpsys alarm' (executed with su)?
[BetterBatteryStats] chamonix:
No
[BetterBatteryStats] flvinny521:
I have the same issue. I posted a few pages back about this. When I launch the app through my clock widget, i get no stats, but if I launch the app from the app drawer, it works fine. Is there any fix or workaround for this? I was using Zooper widget the first time, and now I'm using Simi Clock and the problem still exists.
[BetterBatteryStats] Karpfenhai:
Does it launch via dashclock extension? This works for me..

Please repeat your actions twice, grab a logcat and post it here for chamonix.

Thx

Tapatalked from my Galaxy SII
[BetterBatteryStats] flvinny521:
Thanks for your reply. I am running a stock 4.1.2 ROM, so no Dashclock available. Also, the widget shortcut used to work and then just stopped suddenly. I am not sure what caused the change in behavior. I have already posted a logcat in this thread.

http://xdaforums.com/showpost.php?p=45747038&postcount=19155
[BetterBatteryStats] chaoscreater:
Hey, I've attached the .txt dump as well as another logcat in case you need it. This is about 7~9 hrs of mostly idle time.
[BetterBatteryStats] TKD29:
Again with other problem
[BetterBatteryStats] Karpfenhai:
Ouch, this looks pretty bad.. did you freeze something within Google service framework?

Tapatalked from my Galaxy SII
[BetterBatteryStats] damnation333:
Hey,

could anyone look into this for me?

https://dl.dropboxusercontent.com/u/11984743/BetterBatteryStats-2013-10-03_090023908.txt

The issue is that my phone is awake 15min with 2min screen on time over night. It doesn't look bad at all with only 0.6%/h loss, but during the day my phone is awake 2 or 3x more than the screen is on. And it just doesn't look like any app or process is using it all up?

Any help would be appreciated! Thx
[BetterBatteryStats] qwerty22:
Done. See Intent: {com.google.android.gms

After executing 'dumpsys alarm', battery heated ...
[BetterBatteryStats] qwerty22:
0.6%/h with a large list synchronization:

======================
Network (requires root)
======================
10041 (Wifi) (com.android.email.Email): 1.0 MBytes 72.5%
10042 (Wifi) (com.android.exchange.Exchange Services): 179.0 KBytes 11.4%
10095 (Wifi) (com.facebook.katana.Facebook): 101.0 KBytes 6.4%
10038 (Wifi) (Google Services): 59.0 KBytes 3.7%
10060 (Wifi) (com.android.vending.Google Play Store): 37.0 KBytes 2.3%
0 (Wifi) (0): 20.0 KBytes 1.3%
10092 (Wifi) (com.dropbox.android.Dropbox): 9.0 KBytes 0.6%
10028 (Wifi) (com.slim.ota.SlimCenter): 9.0 KBytes 0.6%
10083 (Wifi) (com.whatsapp.WhatsApp): 6.0 KBytes 0.4%
0 (lo) (0): 4.0 KBytes 0.3%
10115 (lo) (com.asksven.betterbatterystats_xdaedition.BetterBatteryStats): 4.0 KBytes 0.3%
1000 (Wifi) (Android System): 152.0 Bytes 0.0%
10064 (lo) (com.google.android.youtube.YouTube): 100.0 Bytes 0.0%
10101 (Wifi) (la.droid.qr.QR Droid): 52.0 Bytes 0.0%
10018 (Wifi) (com.google.android.music.Google Play Music): 52.0 Bytes 0.0%

super cool!

I think the periodic increase in energy consumption by 3x - the norm.
[BetterBatteryStats] jocke_lulle:
I recently started to get a problem on my nexus 4. After some days of uptime my phone refuses to go to deep sleep. BBS report PowerManagerService.wakelocks using 98-99% of battery.

I have tried to turn off data, change from 3G to 2G, turn on flight mode, disable nfc, close all running apps and so on. Nothing but a reboot seems to help. Does anyone have an idea why this is happen? I'm on stock 4.3 unrooted.

Skickat från min Nexus 4 med Tapatalk 4
[BetterBatteryStats] damnation333:
That is the norm? Wow. Always thought mine is just not performing as well as others. Thanks for your answer :)
[BetterBatteryStats] Perseus:
During this time did you put the phone on Airplane/flight mode ? If so the results are expected. The sleep was undisturbed. The ones I see are pretty mundane one. Was there any kind of speaker use diring this time ? IF there wasn't any, perhaps a call that rang and went to voice mail ?

Can't speak to it unless I see the Partial Wakelock Screen. Power Manager Service is a Catch All Container. Don't blame the bucket but blame what's causing it to grow.
[BetterBatteryStats] SweetPant:
I always get higher "awake" time than "screen on".

Does it mean I have wakelock issues?
[BetterBatteryStats] Perseus:
Possible but not necessarily. There are always wakelocks present. However if pose a problem to deep sleep can only be determined by analysis of what wakelocks are and how much are they keeping your phone awake.
[BetterBatteryStats] It_ler:
That's normal.

The lower the difference between those two values, the better should be your battery life.

Only if the difference between awake time and screen on time is very high, you have some "bad" wakelocks and/or alarms.
[BetterBatteryStats] SweetPant:
Thank! This is what I got with light usage.

https://app.box.com/s/gq7zuecg0ogzclaz1reo
[BetterBatteryStats] It_ler:
45 minutes difference in about 5 hours.

That's quite high.

You should really check your wakelock and alarm stats in BBS.

Or just upload an IDLE dump (with doing nothing with the phone = screen off all the time) for at least 4 hours.

Then someone will have a look at it and hopefully finds the culprit(s).
[BetterBatteryStats] Perseus:
Sounds about right prima facie . Would like to see the Partial Wakelocks to see if they are under control.
[BetterBatteryStats] crm4:
I bought play store version, but I still can't see the lastest 1.14 update.

Would someone be kind enough to send me the 1.14 play store apk ? Thanks.
[BetterBatteryStats] Perseus:
Did you care to Read OP ?
[BetterBatteryStats] SweetPant:
I'm not rooted so I cannot give you alarm dump but I will do idle dump instead.

Thank you.
[BetterBatteryStats] Perseus:
You can get Partial Wakelocks without Root.
[BetterBatteryStats] SweetPant:
Sorry I just plugged in the charger so the stat is reset. I will collect an idle dump tonight and show you tomorrow :)
[BetterBatteryStats] crm4:
Did you care to Read OP ?

Yes, and your comment is not helping in any way.
[BetterBatteryStats] Gerton:
1.14 is in the OP...
[BetterBatteryStats] Pinan:
*chuckle*. His comment was designed specifically to help you, but not necessarily to hold your hand while doing so.
[BetterBatteryStats] gabsmb:
Hi guys. Here is another dump. A new one after your recommendations. This it not the idle one since I saved it wrong. Ill post the idle tomorrow.

Do you think there is something else to do

Thanks
[BetterBatteryStats] Codrea:
Guys this is my wakelock after overnight. Wifi and Mobile data off. 5 % drain :(

Do you know what cause this?
[BetterBatteryStats] Perseus:
Looking Waay better than before! Slept like a baby. You played apollo for about an hour or so I see. I see Gmail Sync chewing up for a minute. Did you You follow the thread I recommended ? What Kernel are you using ? If custom kernel then I suggest renaming MPDECISION file to mpdecision.bak. Its located under /system/bin.

What the hell is the problem with your signal ? Or is it that you had a lot of calls ? The phone's been waking up for call or tower connect. Whatsapp was active. You prolly used it a bunch.

Overall verdict, normal usage and ok behaviour. Next time you are going to do Idle dump, please explicitly kill phone app from recents list.
[BetterBatteryStats] chaoscreater:
Ya, I put my phone in airplane mode when I'm not using, especailly when I go to sleep at night.

I'm pretty sure there's no speaker use, although I do notice that the rom I'm using (http://xdaforums.com/showthread.php?t=2402665) has a problem where if I make a call to someone or vice versa, it would always go to speaker first. I didn't configure Phone or Sound settings either so I dunno why it's happening, but I'm guessing it's probably related to this.

Basically, the only times where the battery will drop like crazy (e.g. from 100% to 80% in 5 minutes) is if I use the phone a bit (just checking BBS, checking for txt messages etc) and especially when I'm in a call with someone.
[BetterBatteryStats] crm4:
It is, but it's not the same signature as play store version.

I just want to stick with play store version for future updates.
[BetterBatteryStats] SweetPant:
Here is my idle log for more than 7 hours after charged to 100%. I left it all night long without any screen on.
[BetterBatteryStats] joohtz:
Hello guys

Can someone check my log please?
[BetterBatteryStats] It_ler:
Hard to say without alarm stats.

Biggest partial wakelocks are NLP from Google Service.

So check post #3. There are links to description of how to optimize wakelocks (especially for Google Service Framework = GSF) by disabling its autostarts.

But this requires a rooted device.

Other wakelocks seem to be quite small (such as Google Search, Line, Genie, etc.) - you can disable/remove those apps you don't need.

But biggest culprit seems to be GSF on your phone.

---------- Post added at 09:56 AM ---------- Previous post was at 09:52 AM ----------

Battery loss of about 0,3%/h with deep sleep ratio of 96,4% is very good IMO :good:

Only AquaMail is quite active on your phone. Maybe you want to check its settings (set a larger interval or turn off auto-update, etc.) ... or try another email app.

Enjoy your phone !
[BetterBatteryStats] kswiss86:
is it possible to say exactly whicht Google Service is the culprit?
[BetterBatteryStats] Perseus:
The Rom Angle explains the Speaker bit. Do me a favour, plug in phone in for a little bit so BBS is reset. Then while connected, reboot the phone for good measure. After that unplug and use it as normal for 2-3 hours and then grab me the bbs dump and/or Partial Wakelock screen.

Do you have Google Plus Messenger ? If so can you uninstall it or at least sign out ? You still seem to have Google Location service on. Please turn it off. Either that or please follow the thread I mentioned earlier. Also please bring down the use of Phone Speaker to absolutely essential.

As he said, its Google Services Framework. Follow this thread to remove it from Autostart.
[BetterBatteryStats] Gunkk:
See this about msm_hsic wakelock

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

---------- Post added at 06:53 AM ---------- Previous post was at 06:49 AM ----------

Your mail client is synching - try reducing frequency of syncs. Also you're getting wakeups from your wifi, reducing push notifications will help. (wlan_rx_wake = wireless lan receive wake up). See this about wlan_rx_wake and some possible remedies :

http://rootzwiki.com/topic/16134-kernel-wakelock-wlan-rx-wake/
[BetterBatteryStats] SweetPant:
but my msm_hsic_host is only 3%. is it high?

---------- Post added at 06:03 PM ---------- Previous post was at 05:55 PM ----------

Do you mean Hangouts? Yes, I have the app. It came pre-installed with the OS. But I had signed out long time ago before this log. What Phone Speaker do you mention? I had not used any speaker.
[BetterBatteryStats] kswiss86:
yes but it says

This is a good old fashioned dirty fix, as it breaks some things. Most push notifications WILL NOT WORK AFTER DOING THIS!!!!!

i need some google features like Play Store, Gmail, Calender, Youtube...

so far i understand this, some of these apps not really functional or not?
[BetterBatteryStats] Perseus:
These apps will work just fine after you follow the procedure. What may happen is that Gmail notification after new email will be gone. But that's not your point. If you open the Gmail app for example, you will get that email just fine. Same goes for Youtube, Playstore and Calendar.
[BetterBatteryStats] Perseus:
wlan_rx_awake is a kernel catch all wakelock for Wi-Fi. Not much in and by itself. You should check which apps are using the wifi like blood thirsty hounds.

For suspend_backoff wakelock, If you have Chorme for android installed then wipe its data then uninstall. If that is your Rom Browser then remove it completely and then use Dolphin.
[BetterBatteryStats] fndpena:
But if there is no app sucking wifi? Maybe wifi is behaving abnormaly...

I read somewhere about switching wifi band to 5ghz or 2.4ghz, instead of auto (in android wifi settings). Is that effective?

Also heard about changing DHCP to static (not viable for me)

Disable ipv6 on android settings. I can't find this option.
[BetterBatteryStats] damnation333:
To deactivate ipv6 install "Android Firewall" and you can select than then in the options.

And about the wifi band. If the wifis you use all use the same band, then that is worth a try. I use mainly two wifis, one on 5 and one on 2.4GHz unfortunately...
[BetterBatteryStats] Perseus:
Just because there are no apps in Recents, does not mean there are no processes running. Looks under Settings > Apps > Running apps to find out who really are running. Conversely, you can use startup manager to tell you which apps start at boot. These don't appear under Recents.

I wouldn't change from Dynamic to Static. Instead I'd change the DHCP Timeout on the Router to 24 hours. Band change may help but depends if you only use that one network. Don't believe disabling IPV6 will do any good. Worth a try though.
[BetterBatteryStats] fndpena:
I know that. I'm not saying this based on "Recent apps". I use other apps (as well as built-in app manager) to see what is running. :good: