yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] TNSMANI:
You have a lot of wakelocks. Use Amplify and this guide: http://xdaforums.com/android/general/guide-0-0-hour-idle-battery-drain-stock-t2973588. Sync is also taking some battery juice.

Likewise lots of kernel wakelocks. Use some custom kernel.

You also have a lot of alarms. Use Amplify and the guide referred above. Widget updates also can be limited with Amplify. Trip Advisor is also sucking juice. If you have Greenify, use it.

Do you have signal issues? Your phone seems to have alternated between data and wifi. Also set up LeanData properly.

If you have a screenshot of the batterystats page in Settings, covering the same period as the BBS dump (atleast roughly), it will help if you post it here.

Amplify is your friend and it will solve 95% of your problems.
[BetterBatteryStats] TA123:
Thanks a lot. I've got the screenshots, please see attached.
[BetterBatteryStats] TNSMANI:
You do not seem to have signal issues. So configure LeanData correctly so that wifi is used most of the time.

Do all the things stated in the previous post and then after a couple of days of running the new setup, post a fresh idle dump of BBS either here or in the thread containing the guide.
[BetterBatteryStats] J.L.C.:
I changed Wi-Fi to "on during sleep, only when plugged in" and turned off "Daydream". That helped a lot, average 0.2%/hr over 9 hours.

But, "Sensors" is still showing 88% over that 9 hours. Bluetooth, location, NFC, adaptive brightness, ambient display, and now Wi-Fi were all off. So what are these sensors?

I didn't individually turn battery optimization off for every app. Is that necessary?

Updated BBS text dump and logcat are attached. Do these give any insight as to what "Sensors" are staying active?
[BetterBatteryStats] Perseus:
Yes That too but its optional.

Wifi wasn't off. It was unused for the most time. Something is polling Proximity sensor. Whatever app has smart gestures or something, either needs to be turned off or optimized for Doze. Can K9 mail refresh frequency be reduced ? Also what widgets do you have on homescreen that keep the phone awake ?
[BetterBatteryStats] J.L.C.:
Thanks!

I have a world clock widget and HD Widget on the homescreen. I removed the world clock and I'll see if I can reduce HD Widgets polling. K9 mail is on push, but I'll see if I can change the settings.

Is there anyway to determine which app is polling the proximity sensor? I'm not sure what it would be
[BetterBatteryStats] longfeng:
My google map is installed and has no problem.

It must be additional external app which you installed and screw the battery up.
[BetterBatteryStats] rambell:
So there is no issue with my phone just twitter? I am using the standard android twitter thou. Is it the twitter client or all twitter clients in general?
[BetterBatteryStats] yhrn:
NetworkLocationPassiveCollector was a major problem in Maps 6.0.X (especially 6.0.0 and 6.0.1) but since then the problem has been reduced for me (currently on maps 6.2.0). What Maps version are you on?

If you are prepared to loose the ability to get rough location from cell towers as well as from nearby wifi networks you can disable the "Use wireless neworks" setting under "Location and security" (might be organized a bit differenly on ICS) and the wakelock should go away.

---------- Post added at 07:57 AM ---------- Previous post was at 07:53 AM ----------

I would say that it's the standard twitter client. I use it too though but I have disabled the automatic sync of tweets to get rid of its wakelocks.
[BetterBatteryStats] ntc3freak:
Hey guys!

So I gave it another go, this time I switched off Wifi and OpenVPN while I slept last night. So same procedure, charged fully, reboot, and then didn't touch the phone afterwards until this morning. So I went to bed around 1215 am and woke up at about 745 am and my battery dropped JUST 2%! That is amazing!

As I said, I turned off wifi and OpenVPN, but I left 3G on. I get pretty bad signal over here, and I only get Edge from my hostel room. When I woke up, I saw that I had received messages in both Whatsapp and Facebook Messenger. And another thing that I forgot to mention yesterday was that I uninstalled GoWeather and installed Palmary Weather. Thanks for the tip! Palmary looks so much better anyway :D

So, here is the dump file. Thanks you guys for taking the effort to help me out, really appreciate it :)
[BetterBatteryStats] jeremysherriff:
@ntc3freak - This is looking pretty damn good, and if you're happy with the whatsapp drain I'd say you're problems are resolved.

For fun you could see if leaving wifi enabled but openvpn disabled gave you similar results, but if I understand you correctly you can't use the wifi without the vpn connection?

I personally would repeat your previous test, wifi and vpn connected, and see whether the removal of go weather was actually the magic.

At the end of the day it gets frustrating to have to manually enable and disable things all the time, so you may as well test in the state you would like to have things, and see if the battery drain is acceptable. It's not going to be better than 2% but you're using whatsapp so I'm surprised its even that good. The vpn may end up having no tangible drain, but I highly doubt it. Still it might come out at 4% which in my mind is still fine - after all, that's 4.5 days if it was left idle all the time.
[BetterBatteryStats] mrkmrk:
I'm on 6.2.0 as well. I could disable those features, but I really don't feel like I should have to. It seems like there are way too many wake locks even for those having been turned on.
[BetterBatteryStats] ManUtd07:
I just opened up BBS and my top item is "Starting CM_VnoteService." The total time is 1h 58m 39s...does that make sense? It says the count is zero however. I had previously opened my VVM about 12 hours before opening BBS. Just wondering if that make sense it would be on for so long.

Also, another question that's not necessarily related to BBS. When I go into MIUI battery monitor, Cell Standby and Phone Idle are my top to items at 25% and 21% respectively. The Cell Standby being so high doesn't necessarily mean it's draining battery looking for a signal, does it? Just that everything else is consuming less battery so of all things running, that is using the most? Should either of these two items be this high?

I really appreciate everyone's help in here and the dev. With that help and this app I think I've managed to find culprits that drain battery and prolong my phone's batt life.
[BetterBatteryStats] aerce:
Hi

Can anyone be nice and look at my dump file :). I feel that the android system is draining my bettery.
[BetterBatteryStats] ntc3freak:
Hey man, thanks for helping me this past few days, it has helped :)

I agree, I don't think it gets better than 2% drop overnight. And you're right, my wifi is useless without OpenVPN coz I need it to actually connect to internet xD So that would be pointless. Nevertheless, I will try again connecting wifi and openvpn tonight to see if the removal of goweather helped :)

Overall I'm happy, 2% drain overnight is nothing. My phone slept well last night, it was in deep sleep for 97% of the time, my best so far. Unbelievable! I'm sure if I don't use Whatsapp it would be better, but unfortunately that's not an option at the moment.

I've been getting 4 hours plus of screen on time now, that's a massive improvement. Now we'll see what undervolting can do, if it can improve it even more hehe

Thanks for the help man, really appreciate it. And thanks to the dev for an awesome app! :D
[BetterBatteryStats] chamonix:
As you are not rooted we can't look into the alarms but there is enough for a start. As I am used to I left the obvious from the dump so that you can study it and learn to read it yourself.

We are looking at the main partial wakelocks:

- backup: 1961 wakeups due to backup is far too high and again shows the drawback of a cloud backup. If possible switch to a classical scheduled backup (titanium for example) and turn the could backup off

- sync: your main cause of wakeup is twitter that seems to be set to a high frequency. Revisit all your sync settings and think twice about what they may cause. If contacts are in the sync settings check if you really need that.

- getjar: known cause for wakelock

- whatsapp: known cause of wakelock

- maildroid / gmail: it looks like you are using two mail apps. Is that on purpose and can't you consolidate your mail stuff into one?

- checkin: are you using latitude or places with automatic checkin? if yes you may want to turn it off. You should also know that latitude comes with a price. If you don't want to disable it and feel the price is too high you may want to look into alternate latitude updaters (like ALTitude)

That should be enough for a first round. If you have questions please feel free to ask. Try to fix your settings according to the list above and post a new dump so we can see what is next and how your battery life has evolved
[BetterBatteryStats] chamonix:
That is maps, probably in conjunction with latitude. There is nothing much you can do about it if you stick to latitude except:

- check if you are on latest version

- check the settings to make sure that caching is active on wifi only (setting your wifi policy to off when screen off may help)

Or you may want to look nto an alternate latitude updater like ALTitude (low energy footprint, no loss in functionality).

Looking at your wakelocks I see you have a lot of apps/services running. The wakelock durations are not that high but the wakeup count is something that you may want to look into too due to the overhead. Your top2 are:

- backup

- lightflow
[BetterBatteryStats] chamonix:
I see you have turned wifi off and that seems to be the main difference to last reading. My comment on your first post was, that wifi rx wake (incomng packets) was your main cause of wakeups (not related to vpn at all).

Now what you could try to do is re-enable your wifi with the sleep policy "off then screen off". There is no guarantee that that will keep rx wakes from you but there is a chance (the reason I am carefull is that this depends on many factory including buggy SGS2 releases in the post 2.3.5 era). If you are curious just browse to Entropy512's posts, he wrote a lot of stuff on that and he knows what he talks about.
[BetterBatteryStats] chamonix:
You are right of course. But maps / latitude have a very poor design in regards to energy and location.
[BetterBatteryStats] chamonix:
Could you please post a complete dump, it's hard without the whole context.

About the general stats "placeholders"; some guy said "never trust a statistic that you didn't fake yourself".... what I want to say is that there is way too much processing in those grouped stats plus percent are dangerous anyway so I wouldn't put too much effort in trying to understand them or using them to optimize your phone.

Wakelock times, counts, battery graphs are better data for that
[BetterBatteryStats] chamonix:
3 hours awake out of 16 is not that bad. I bed you would get better results if your wifi wan't on all the time or if you would set your policy to "off when screen off".

Your alarms count is extremely high but the alarms show nothing: please reboot your phone, plug it to the charger, unplug it and leave it alone for 2-4 hours and provide another dump

deleted_wakelocks: you want to take that to your kernel thread
[BetterBatteryStats] chamonix:
Just to tease you guys a little: I am running a pre RC of 1.7 with references for alarms and native ICS UI (on ICS of course).

Before releasing the RC I have to take care of the graphs on ICS but it won't be long till you get it.
[BetterBatteryStats] longfeng:
You are not even observing the basic battery saving tips before you post here. read the thread for details.
[BetterBatteryStats] mrkmrk:
http://dl.dropbox.com/u/560483/asaddump.png
[BetterBatteryStats] gtizon:
I've read it before posting and I followed tips. I'm just trying to understand what is causing wakeclock as well as if there is a rouge app that may be running.
[BetterBatteryStats] Perseus:
Very hard to say. Check to see which app has Smart Gestures supported. For ex. some apps control login screen when you waive in front of Proximity Sensor. Others turn pages when you waive. It might not be an app whose smart Gestures you have defined. Its any of those who have the feature.
[BetterBatteryStats] J.L.C.:
I don't think I have anything with smart gestures. Looking through my app drawer I don't see anything obvious. I use nova as my launcher and everything else is stock or aosp.

I've added WhatsApp to greenify, I saw some reports of it messing with the proximity sensor.
[BetterBatteryStats] Carterman32:
Can someone explain what the various count numbers mean under the "kernel" category? I see c/wc/ec, but don't know what those numbers reveal about my issue. Bluesleep is my biggest partial wakelock, and I see the following:

Cnt (c/wc/ec) 189/14/189

37m 27s during a three hour custom window. While my Bluetooth was on, it wasn't connected to anything. What does the 189/14/189 mean? And how can I fix the issue with bluesleep?
[BetterBatteryStats] :
Nova supports gestures as far as I remember. Lokk in its settings.

Gesendet von meinem GT-P5210 mit Tapatalk
[BetterBatteryStats] ralfbergs:
What about the screen brightness sensor? Can this be the culprit?

Or some magnetic sensor for smart cases (i. e. you open the cover, screen comes on)?
[BetterBatteryStats] J.L.C.:
I went through the nova settings, but the gestures in there are just screen sweeps etc. Nothing that would poll proximity.

I don't have a case on the phone. Adaptive brightness is off. I did see a backlight setting in ex kernel, so I turned that off. But sensors are still at 80%.
[BetterBatteryStats] wrongway213:
Is anyone else using Substratum unable to see anything in BBS latest Beta? No FCs, just no legible or even visible text. I don't have a theme applied to BBS, but applying one doesn't fix it either. Nexus 6 running AOSiP
[BetterBatteryStats] swallowingled:
I'm not using Substratum yet but have the same issue with Layers Manager and certain themes. You won't be able to use the built in dark theme in BBS(use light) or try a different theme. For example, for me Spectrum caused this issue so I searched and found someone else with the same problem and the developer answered him saying he couldn't fix it. But with InversionUI, Domination or Material Glass theme there's no problem at all, I can use BBS built in dark theme without issues.
[BetterBatteryStats] robbayani:
why BBS says my Wifi running 100%?? btw my wifi is off..

is bug from BBS or my wifi "really" ON (when in setting OFF)??

how to fix this? im afraid its making battery drain faster..

my rom is CM13..
[BetterBatteryStats] mvlad:
Did you disable WiFi always scan? Also make sure you're on the latest version of bbs.

Sent from my OnePlus 2
[BetterBatteryStats] kiradee:
Dear developer, dear users,

I have OnePlus 3, H2OS Mshm.

The problem is that i cannot use this app at all. I installed it 3 days ago after got new phone but today it has stopped working.

I had continious Computing when start BetteryStats, installed as System app.

After that I tried to remove it with ZIP for version 1.0 from official site and reinstall from Google Play - and I get white screen.

When i install app again using ZIP via TWRP - I get continious Computing message again.

Appreciate if you tell me how to use this usefull app instead of seeing white screen. It's quite dissapointing to see it when you purchased the app :)

Regards,

Kiril
[BetterBatteryStats] robbayani:
oow.. i finally found setting for turn-off wifi always scan.. thankz broo..

im using BBS v2.2.0.0B6..
[BetterBatteryStats] J.L.C.:
I couldn't track down any errant apps. So I decided to do a full/clean install if my ROM.

After idling overnight, battery consumption was 0.2%/hr. Awake with screen off was only 14mins and sensors finally dropped to 6%.

So all seems good now.

Something must have gone wonky during a dirty flash.
[BetterBatteryStats] romipoison:
where do i find those settings??
[BetterBatteryStats] robbayani:
my phone is Mi4i with CM13.. this setting is not in wifi setting, but in edge area on the screen..

i forgot what the words, because after im turn-off wifi always scan, the setting become lost!!

#sorry for my bad english
[BetterBatteryStats] whiteandpurple:
Setting > Wifi > 3 dots > Advanced
[BetterBatteryStats] Perseus:
Could be you have got "Keep WiFi On" in Advanced WiFi Settings. Either that or please post a Text Dump.
[BetterBatteryStats] v7:
Goto

Settings->Location->3 dots->Scanning

And see if Wi-Fi scanning is enabled.

__

v7

XDA Assist
[BetterBatteryStats] robbayani:
i not find my setting for "Always Wifi Scaning".. only "Notify whenever a public Network.." and "Keep Wifi on during sleep "

i'm sett Wifi On during Sleep to always because i don't want my download failed when my screen off..
[BetterBatteryStats] v7:
Did you check WiFi-Scanning under Location settings?

__

v7

XDA Assist
[BetterBatteryStats] robbayani:
heheee.. finally..

thankz broo..
[BetterBatteryStats] chamonix:
Last preps for RC1, trying to squeeze in a few more features/fixes, expect the next drop beginning of next week
[BetterBatteryStats] zbeky:
Wakelocks on Nexus 5X

Hi,

I have a problem with my new Nexus 5X. Clean install of Pure Nexus ROM with ElementalX kernel, no dirty flash. It just wakes way too often causing around 8% per hour drain. The problem is I don't know what app could do those wakelocks. According to BBS it's

ipc000000f5_FLP Service Cal

but I can't google anything on that. Also when i do logcat, it's completely spammed with

08-04 13:03:35.212 904 3334 E FlpHardwareProvider: RemoteException calling onLocationAvailable
08-04 13:03:36.214 904 3334 E FlpHardwareProvider: RemoteException calling onLocationAvailable
08-04 13:03:37.213 904 3334 E FlpHardwareProvider: RemoteException calling onLocationAvailable
08-04 13:03:38.212 904 3334 E FlpHardwareProvider: RemoteException calling onLocationAvailable
08-04 13:03:39.213 904 3334 E FlpHardwareProvider: RemoteException calling onLocationAvailable
08-04 13:03:40.221 904 3334 E FlpHardwareProvider: RemoteException calling onLocationAvailable

Can't find anything useful on that neither...

Attaching BBS dump.

Would be really glad if someone could point me in the right direction. Thanks
[BetterBatteryStats] Perseus:
Gapps is desparate to tell your Location to Mothership. It couldn't get GPS fix for whatever reason and kept trying all the time keeping the phone awake.
[BetterBatteryStats] zbeky:
Thanks. Meanwhile I've tried greenifying gapps one by one with no success. But after third or fourth reboot it seems like the logcat spam is gone and so is the mysterious drain... Guess data finally got to mothership :) Will see tommorow.
[BetterBatteryStats] Perseus:
If it Continues. Post me your Idle Log from Overnight. Reboot phone before leaving over night. Turn off GPS.
[BetterBatteryStats] chamonix:
I have been thinking on starting some research on dumpfiles to see how far a machine can go interpreting the results. The solution range could go from decision tree based (heuristic) to machine learning.

Now in order to do that I need data and that's where I'd like to hear your thoughts.

Right now there are two formats of a dumpfile:

- txt user friendly form

- json machine digestable form <- this is the format that can be fed into a database and queried or fed to an algorithm with some learning data

Now where we are today unfortunately we all deal (here and elsewhere) with the txt format as it is easy to read, interpret and comment on. On the other hand it would be great for me to be able to collect all these attachements and feed them to a database, enhance the database by offering users the possibility to upload their own dumpfiles etc.

So now comes the question: what would you guys think of me merging both formats into one file? it would be a little larger file but what I was thinking of is a file looking like this:

/*
the text dump file as it is today
*/
the json dumpfile as it is today

Putting the text at the beginning would not change anything in your workflows and I could end the text part with a

------ machine readable part starts here

A pre-req for this idea to work would also be that the rights to use the dumpfiles for algorithmic purposes are granted (I am no law specialist and I will have to seek for advise on this one).

I could on the other hand start working on the web tools to visualize, process and analyse the dumpfiles, and introducing more features for self uploaded content over time.

Thoughts?
[BetterBatteryStats] Dobromirr:
Dude i just love you for no root version ?

---------- Post added at 04:57 AM ---------- Previous post was at 04:56 AM ----------

Dude i just love you for no root version ?
[BetterBatteryStats] Lucki_X:
I think that it's a good idea to have all dump in one file nevertheless it should be as easy as it's now to do a dump file for ordinary users.

Sent from Honor 7_PLK-TL01H
[BetterBatteryStats] It_ler:
Sounds good to me [emoji106]

Signature:

Device:

SGS5 (SM-G900F)

ROM:

AllianceROM v10

Kernel:

Stock XXU1BOH4 kernel

Recovery:

TWRP recovery

Modem:

XXU1BOJ1
[BetterBatteryStats] Sam Nakamura:
Yesterday I changed from battery stats plus to BBS but on my tablet with 4.4.2. Android running it seems that better battery stats can't read out most stats on this device, so I even tried it with the xposed framework module, enable battery stats but all I get is as seen on screenshots..

Even wiped cache and dalvik cache..
[BetterBatteryStats] Perseus:
Good To Go! :good:

"No Stats have been Collected Yet."

It means just that. Leave the tab alone for 1 hour and then go back and check again. Make sure to hit in app refresh button after 1 hour.
[BetterBatteryStats] Sam Nakamura:
Of course dude, I left it over night about 12 hours.. And it still shows that message but it been already solved..

The much bigger problem is the under wakelock displayed message: could not read file (as seen in 1 screenshot)

Used the search engine of this thread, googled, reinstalled and flashed thru recovery but always get the error message when I try to read the wakelock section...
[BetterBatteryStats] Perseus:
Please carefully review and follow the steps in #4 EVEN IF you're rooted.
[BetterBatteryStats] Sam Nakamura:
Seriously? I have to do it manually via adb, even if rooted? Strange, cause all the other battery stats monitors (gsam, wakelock detector, battery stats plus, etc.) only need to be installed on a rooted device... and BBS is the only one with payed access only - little ironic...

But thank you very much, I'll meditate what to do next...
[BetterBatteryStats] Perseus:
99.99 % of the time, the install goes through without a hitch. There's always 0.01 % Cases where certain Roms or Certain Kernel combos don't grant App Permissions just the right way. So this happens.

There are several users here who will attest to the fact that they had no problems of the type you had reported. I am not saying problem didn't happen. Its just that we need to do workarounds when they do happen.
[BetterBatteryStats] Sam Nakamura:
Yeah I fully understand that there's always a small chance that it's not going work like for the 99% but as I use stock 4.4.2 rom with stock kernel and all the other "free" applications for enhanced battery stats work flawlessly it's just gives me a hard time to comprehend the difficulties BBS have with this system, especially when taking in account the very good reputation of BBS and the non existing possibility to check before you buy... As in this case nothing exotic is in use it certainly is odd and rather disappointing for me.. But ey, thanks anyway