yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] ungeeked:
Since about a week I'm having high idle battery drain. Active drain also seems to be much higher than expected. I have greenified major drainers (fb groups app and Instagram) and have amplified some wakelocks, services and alarms. A week ago, everything was fine. Then I paired my Mi band 2 with my phone and since then, the draw has been horrible (20% overnight) Currently using ElementalX kernel with HawkPepper Profile which is supposedly good for battery. Is the Mi Fit app really causing this because I don't see any the app or any bluetooth related stats in battery stats. Please help

Btw earlier without Mi band, I was only having 4-6% overnight drain with greenify and amplify
[BetterBatteryStats] deep0ew:
Hi there, I have a HTC 10 and using bbs for a long time. But I have a problem with it. When I go to kernel wakelock it says 'no stats have been collected yet'.

My phone is rooted, bbs is installed as system app, have also tried all the steps in the 4th post and I left the tab open for hours, but nothing seems to work.

Something keeps my phone awake big time. And I can't figure it out.

Please help me out.
[BetterBatteryStats] pure.by:
Hi everyone, I'm having an issue with RC3 often not being able to load stats for some reason.

Very often (I would say every 1 out of every 3 or 4 times) when I open the app in the morning to see what my phone was doing at night, I get the following error message:

Sometime BBS seems to begin to collect stats after I refresh it, and sometimes (like today) it just repeats the error message every time I open the app and/or refresh.

Sometimes there are some stats available, sometimes (like today) none are.

I have been using stable PlayStore version for over a year and never had this issue.

Since RC3, this happens regularly.

Any help is much appreciated. I am using:

- Android 6

- systemless root

- no Xposed

- BBS XDA RC3 installed as user app
[BetterBatteryStats] nominator2204:
How can i install bbs with out root? I dont unterstood this Tutorial? Is there anywhere a tutorial of german?

Gesendet von meinem SM-G930F
[BetterBatteryStats] jukyO:
You cannot.

Use Google translate.
[BetterBatteryStats] nominator2204:
This is a teribal Translation

Gesendet von meinem SM-G930F
[BetterBatteryStats] Oswald Boelcke:
You shouldn't only read the top posts in the thread; however, it's great that you read at least the OP.

Yes, you can use BBS without root! Post #4 provides guidance how to use BBS without root (briefly, you need to make some modification via ADB from your PC).

At the top of post #3, you'll find the link to an "Online Hilfe auf Deutsch" but I never looked into it.

EDIT (2016-10-12): Translation of post #4 attached. Omissions are marked by "...".
[BetterBatteryStats] M@31:
So, this is after some use today as well.

Starting last night...for the first 8 hrs, I was sleeping and so was the phone supposed to be....

15 hours and 50 mins off of the charger.

62% battery left.....

That means I am over 2% per hour with very little use.....

I really appreciate the professional advice guys!

Thanks for taking the time :)
[BetterBatteryStats] ybres:
@chamonix - by the way good work on maintaining support here on the forum ;)

Also I read something about you saying that most weather widgets suck at battery life and location... What was the widget you recommended?
[BetterBatteryStats] longfeng:
switch off your wifi before you sleep. it is waking your phone up every minute.
[BetterBatteryStats] cekerevac:
Hi...Can you look at my data...I turned off backup,fast dormancy,use only 2g,freez gtalk,radio,dont sync,dont have facebook......Thanks!
[BetterBatteryStats] M@31:
Any reason as to why it would be waking up my phone every minute?

I keep it on because I have a data plan and usually use the wifi at home and work, that way I dont get dinged for any data fees.....

Why would wifi wake up my phone? Doesnt seem to do it to any one else's.

Really appreciate your time and expertise.

Im trying to figure this stuff out too....thanks!
[BetterBatteryStats] HomeR365:
Any thoughts?

Hey there everyone, I'm new and I've been watching this thread for a week or so. I've got my SGS2 in a decent place right now with battery usage, but I've been wrestling with this "Event Log Service (Google Services)". Now this dump is not very long, its only 7 hours, but I incurred an 11% drain which is probably a bit much. I know I have whatsapp and noLED, but I don't think they are the main culprits. I'm looking for any opinions from anyone to help me better interpret whats going on.

Cheers
[BetterBatteryStats] chamonix:
1.6RC1

Version 1.6RC1 is out.

I would like to have your feedback on following changes:

- ICS: hollow style and fixed graph

- MIUI: I have tried to fix the error for data stopping to be delivered

- Alarms: moved to main screen and references available

- Alarms / Kernel Wakelocks: click on items from list shows details

Download from post #2

Thanks for your feedback!
[BetterBatteryStats] yhrn:
Cannot say anything about MIUI or ICS but alarms on main screen works fine for me (rooted, of course). I used to get full device freeze once in a while from the old Alarms view so I'll report back later on that, but so far no freezes.

Clicking on Alarms / Kernel Wakelocks works well for me as well. The only very minor thing I see is that the counts are differently ordered in the summary line (c/wc/ec) and the details (Count, Expire count, Wake count).

Somewhat related question: What do the different counts really mean?

Anyways, I'll report back on stability later.
[BetterBatteryStats] M@31:
Well I reflashed a new ROM to get a clean start.

Going to let it run through today and then give it a new test tonight while I am sleeping.

Thanks for all of the advice you guys, I really appreciate it!

Im still trying to figure out if it is my wifi. I keep it on all the time.

If it was an app that was connecting and disconnecting repeatedly, then if I turned off the wifi wouldnt it cost more battery since it would be trying to access 3G?

I don't understand why wifi being on makes the battery drain faster, I thought it was the opposite?
[BetterBatteryStats] orb3000:
.

Ok guys/gals please keep thread on topic and with peace, otherwise we might have to close it.
[BetterBatteryStats] longfeng:
No worry, dude.

I bought beautiful widget too and it is a battery sucker. But life must be beautiful. We cannot do nothing just to minimise energy consumption in air plane mode.

I am busy with work and have little time to test my 600+ apps in my phone except night time. I share my findings and hope everyone can contribute so we can learn from each other. I like to surpass 7hr/% if someone shows me the light.

I need every drop of juice in the day!

Sent from my GT-I9003
[BetterBatteryStats] longfeng:
Thanks for the update. Any formal changelog?

Sent from my GT-I9003
[BetterBatteryStats] mrrogers1:
That is the change log
[BetterBatteryStats] chamonix:
It will be in post #2 when final, this is a candidate.
[BetterBatteryStats] M@31:
All I was looking for was why my phone was awake so much.

I thought the wake files would show what app is access or creating the wake lock to keep my phone up.

I figured 2% an hour while I was sleeping wasn't all that good. Thought it should be around 1%....it is not a big deal, I am around an outlet most of the time, but when I go out for the day or take a trip.....just wanted to make sure I was getting the most out of the battery as possible.

I didnt mean to cause any controversies hahaha

So, 2% an hour is OK with wifi on and the phone just sitting there sleeping?

Beautiful widgets is taking some of that juice? Does it connect to the wifi? Or just in general because I have 2 toggle widgets running?

Is beautiful widgets waking my phone up?

I just want to know what is waking my phone up when it is NOT supposed to be waking up. Or is just having wifi ON keeping my phone awake?
[BetterBatteryStats] chamonix:
Wifi consumes less power than 3G. On the other hand wifi may cause wakeups upon receiving certain packets (rx wakes). Those wakeups are not caused by any app and each wakeup is linked to an overhead, that's the additional drain. It may be avoidable by changing the wifi sleep policy or by switching to another kernel as at least part of that behavior and on certain phones/kernels/roms is a bug. I'm not encouraging you to switch kernels but you should check the kernel threads to see if your combo may be affected
[BetterBatteryStats] chamonix:
Android weather
[BetterBatteryStats] chamonix:
Could you share your findings studying the dump and if any, your specific questions?
[BetterBatteryStats] longfeng:
As per my last post:

http://xdaforums.com/showpost.php?p=22161293&postcount=3081

You have to experiment to find out. Try shutting wifi down and rid BW, like I do. One more thing: ONE thing at ONE time for easy dubugging.
[BetterBatteryStats] nominator2204:
In online Hilfe is not the tutorial for install with out root

Gesendet von meinem SM-G930F
[BetterBatteryStats] Oswald Boelcke:
I'm sorry about that; as stated I never check it.

If you are familiar with ADB I'm going to translate post #4 for you when I'm getting time (may not be today). I'm going to provide the translation by PM. Please let me now if you have to familiarise yourself first with ADB (just search the web), as it would give me some more time for the translation.
[BetterBatteryStats] nominator2204:
Very nice. Thanks thanks thanks

Gesendet von meinem SM-G930F
[BetterBatteryStats] Oswald Boelcke:
At XDA, no reason to post "thanks". Just hit the thanks button at the lower right corner of the post you like.:D
[BetterBatteryStats] deep0ew:
Can somebody tell me what is going on?
[BetterBatteryStats] Lucius1972:
Guys, i have a little question. I flashed the new Pure Nexus ROM which is based on Android Nougat.

Unfortunately i cannot install BBS as system app, it fails and says download .zip and install via recovery.

Can somebody pls advise?

Thx in advance.
[BetterBatteryStats] narcosis34:
Guys i see that i have power manager wakelocks , 1 hour on 6 hours unplugged phone , can you please suggest a solution ? On partial wakelocks there is no app present that justify the drain. Only on kernel wakelocks , thank you on advance
[BetterBatteryStats] githyanki:
Have you tried downloading the zip and installing via recovery?
[BetterBatteryStats] Lucius1972:
Hi, yes I downloaded BetterBatteryStats_SystemApp_xdaedition_CWM_1.3.0.0, the latest I could find. It's now setup as system app but no su rights, I removed BBS from su but somehow the grand question from su did not come. More people on Android 7 with this problem?

---------- Post added at 06:10 PM ---------- Previous post was at 05:30 PM ----------

Just to report, all OK. It turned out I flashed my kernel and su in the wrong order.

Guess I need some sleep..:p
[BetterBatteryStats] chamonix:
if you take the latest version of BBS and your device is properly rooted you should not need to install the system app anymore.
[BetterBatteryStats] Lucius1972:
All good Chamonix, was my error I flashed kernel and su incorrectly.

Thx for the reply..
[BetterBatteryStats] githyanki:
Latest version is 2.2RC3 look in the second post for a link, it's the last one on the list.
[BetterBatteryStats] andreak:
If you tap on single voices you'll have details on specific processes that wake up
[BetterBatteryStats] TimSmet:
hello,

can anybody please help me to find why bad deepsleep

71,7%

thx
[BetterBatteryStats] fhLan:
Usually not long after I unplug and turn off my screen, I get since screen off option. But now I don't get any. Only since boot, unplugged and charged. Do I have to tell what phone and what rom? How can I fix this?

Thanks
[BetterBatteryStats] gaich:
It`s in F.A.Q.
[BetterBatteryStats] jr67:
I have the same setup (latest Pure Nexus on a Nexus 6P) and BBS installed as a regular app works perfectly. Thanks.

It feels a little odd. I flash a lot and I'm just used to manually installing BBS to system as part of my my setup procedure. Now I don't need to do that. I can even go back to using the play store version especially now that you have the beta program setup which is what I'm going to do right now.
[BetterBatteryStats] bonotheedge:
Hello,

Does anybody recognize a wakelock called LocationManagerServiceEx ? It appeared in bbs but could not be detected by amplify (see pictures). How come? It kept my LG G5 awake all night long.

Thanks.
[BetterBatteryStats] iovaniorgovan:
I gave it a try to the latest BBS RC version on my new S7 Edge and its not able to pull out any information. Can BBS work without root on a stock S7/edge?
[BetterBatteryStats] andrewNY:
Did you follow the instructions regarding the ADB command?
[BetterBatteryStats] Oswald Boelcke:
http://xdaforums.com/showpost.php?p=67819528&postcount=4
[BetterBatteryStats] DirkStorck:
Hi, is this normal that on an octa core system the used cpu frequencies from only the little ones are shown?

Thank you!
[BetterBatteryStats] Benholder90:
How to post the dump file? When I click the attachments button it I only let's me attach pics and videos etc
[BetterBatteryStats] Oswald Boelcke:
Check post #3 of this thread http://xdaforums.com/android/general/how-enhance-battery-duration-sgs-3-lte-t3478287, and please advise unless it answers your question.

EDIT: Upps, I just realised that you obviously meant how to post on XDA. Try a different browser; I can only post all allowed attachments via Microsoft Edge. FF, IE and Chrome doesn't allow for whatever reason; thy even don't provide any possibility to select a file for upload. Or you upload e.g. to http://hastebin.com/about.md and post the link.
[BetterBatteryStats] DB126:
FYI - I disabled the suggested receivers with no ill effects on a WiFi only tablet. Annoying *net-scheduler* wakelocks vanished. Also observed a reduction in other Play Services activity (alarms and wakelocks) but the jury remains out on whether there is a corresponding improvement in battery life. Next step is to apply the change to my mobile which has a much greater dependency on Google's core services.
[BetterBatteryStats] woodman:
If you still use play services v9.6.83, in THIS THREAD, another workaround HERE exists about this annoying "net_scheduler" wakelock. The idea is just to stop play services process manually, it will auto restart itself, the result is no more net-scheduler abnormal wakelock until next phone reboot. I can confirm it worked for me when I had play services v9.6.83.

Now, with play services v9.8.77 (updated thanks to one recent gapps over CM13 ROM), I think I don't have this wakelock issue anymore after each phone reboot. If it's not the case for you after play services upgrade, you still can try the workaround I've linked.

I've never tried My Android Tools / "Broadcast Receivers" trick btw.
[BetterBatteryStats] Oswald Boelcke:
I'm on play services v9.8.77 but just for a very few days now after I clean flashed my system including GApps pico of that day. Haven't monitored my BBS since then but will do.
[BetterBatteryStats] DB126:
Thanks. Been on v9.8.77 for better part of a week on two devices and still seeing net_scheduler wakelocks. Just flushed stats and rebooted to confirm; will report findings in a day or so.

Unfortunately, stopping/restarting GPS components on some devices has undesirable side effects including Google account reauthorization on some apps that use OAuth. Only takes a few seconds and likely a consequence of increased security profile on my G accounts (eg: two factor authentication). That said, appreciate the suggestion as it may work for others. Of course, it would be nice if GPS 9.8.77+ solved it for good; not holding my breath.
[BetterBatteryStats] chamonix:
BBS reports what the kernel provides so if something is missing your kernel does not expose the information
[BetterBatteryStats] DB126:
Follow-up. Saw enough net-scheduler wakelocks after stat 'flush' to feel confident GPS 9.8.77 is not the cure (no surprise). I have since disabled SchedulerReceiver and SchedulerInternalReceiver as recommended by others and have not noticed any immediate side effects on my devices. Now it's a waiting game to see what breaks and decide if it really matters. Hate that.
[BetterBatteryStats] Miaou63:
Hi guys,

Is it worth it to update Google play services as son as a new version is up ?

Or do you recommend me to keep my current set up if im satisfied with it for now (2,3?battery drain per hour on average over 2 days) ?

Thanks

Miaou
[BetterBatteryStats] woodman:
Ok thanks for feedback. As I said, no more net_Scheduler big wakelocks for me, but I've updated my whole GApps, not only Play Services, so maybe the fix is not in Play Services but elsewhere...

Edit:... Or maybe it's in Play Services but it's fixed only for some devices/Android versions...
[BetterBatteryStats] DB126:
Suspect the latter. Problematic devices are running 036 variants which has proven stable/compatible on those platforms despite an Android 4.4.4 base. May try 836 to see if it makes a difference. Also have 236 and 436 builds on other devices but those are not open to tinkering.

At present pretty happy with the GPS receiver tweak as it seems to tame several other GPS wakelocks with no observed negative side effects. Time will tell. BTW - only blocking SchedulerReceiver leaving SchedulerInternalReceiver enabled for now.

Cheers!

---------- Post added at 01:54 PM ---------- Previous post was at 01:48 PM ----------

Google Play Services will silently update itself. In general there are no immediate benefits jumping to the latest build (unless it fixes a known problem) and you assume the risk of discovering previously undetected bugs.
[BetterBatteryStats] DirkStorck:
Could you please have a look at the dev of the kernel that I use?

http://xdaforums.com/showpost.php?p=69204075&postcount=698

Thank you! :)
[BetterBatteryStats] sm4tik:
Not entirely true as both kernel auditor and ex kernel manager show the cpu states for both big and little on my n6p running ex kernel but bbs only the states for little.
[BetterBatteryStats] Perseus:
What Davey said. In addition note that you can re-tweak after it updates itself.

I do not have Nexus 5x but I requested for screens. Attached. The other Dev is correct. I don't know if BBS does look in both places for Big Little Architecture.
[BetterBatteryStats] prakashkushwaha74:
Last version of bbs is working without installing as system app, i do want to know is it must to insatll it as system app to get better stats.

#too much post so cant read everything.

Reply if anyone wants to help.

I faced bootloop & i am not having twrp backup space so confirming before using this for second time
[BetterBatteryStats] Perseus:
Depends on Android Version. I have Android M on a Unrooted G4 and BBS Works like a charm for me as a user app. Please do read Post #4 in the Op only if you see in-app errors like waiting to gather stats or no stats collected etc etc.
[BetterBatteryStats] prakashkushwaha74:
PFA & PLEASE Revert if anybody can get that why there is ideal battery drain overnight. & Solution for the same.
[BetterBatteryStats] Perseus:
2.5%/h over 7 hours is not that bad. Not much really that pops out. If you want to still bring down idle drain then search this thread for Karpfenhai's Post for GCM Checkin Mod.
[BetterBatteryStats] prakashkushwaha74:
Thanks for reply,

Bro 0.0% drain on airplane mode .

Also ealier there was 0.0% drain on weak network also.

20-25% overnight is not good it should be maximum 1-2% only.

Does this cause by the kernel flaws or hardware issue?
[BetterBatteryStats] pettigrew95:
Hey all, hope everyone is well. I was wondering if anyone could help me with my HTC 10's horrendous battery life. I have attached 2 screenshots. One shows the kernel wakelocks and the other partial wakelocks. To my understanding, the kernel wakelock is a container for all partial wakelocks. So as you can see under kernel wakelocks PowerManagerService.Wakelocks and Display shows a combined almost 3 hours. However in partial wakelocks none of those wakelocks even all added up doesn't equal 3 hours. So I am confused here, the biggest partial wakelock is Spotify and that's only about 35 minutes total. So how does this math add up? Why is my battery life so terrible? Someone please help, much appreciated, thank you!
[BetterBatteryStats] Perseus:
The drain 2.5 % no 20 % according to log provided by you. If you have seen overnight drain of 25 %, please provide Idle Log.

First off, Kernel Wakelocks are NOT superset of Partial Wakelocks. Not in the sense you are implying. From what screens you have posted, the phone is in use and 3.5 to 4 % is normal. If you do want detailed analysis of Drain then please provide text dump (Not Logcat not Dmsg just Text Dump) after leaving the phone alone overnight. Reboot phone before leaving alone so we have a clean marker for the stats.
[BetterBatteryStats] pettigrew95:
Thank you for your reply. Is this what you are looking for? See attached. Thanks again.
[BetterBatteryStats] ivanwong1989:
Hi,

If I want to share a file for analysis, do I just click share menu in BBS and dump the log file?

Have a weird "wlan_sdio_lock" kernel wakelock happening and it is causing(just assumption, it may be not...) MASSIVE counts of wakes overnight. Although dozing, but battery went down around more than 5%.

Phone: P9 Lite

OS: Marshmallow 6.0 running EMUI4.1

Rooted, with Xposed v86

Running Greenify and Amplify (Tried shutting them down, it still happens)

Location History for this phone is turned off.

What makes the difference is turning off Auto Sync.

But I don't understand why autosync still effects as I had Amplified SYNC alarm to once every 2 hours.

Also.. Autosync option are just syncing Google Contacts and Google Inbox.

Out of ideas..... any help/comment in any direction is appreciated...

Meanwhile I'll keep either my autosync off, or Wifi off (Doesnt happen on cellular data)
[BetterBatteryStats] amokkatxda:
Hello. Can I do something with qcril_pre_client_init wakelock on htc m9 cm13? When I turn on airplain mode, phone does not sleep at all. In normal mode I did not notice this wakelock, only when airplain.
[BetterBatteryStats] anggabastian:
Hi, i wanna ask about "no data connection" and "no or unknown signal" stats in my phone always says always 100?. I'm pretty sure that I'm not connected to any wifi network as no wifi network available around me, and I never turn on my wifi... I also pretty sure that there's no issue with my mobile signal (signal strength >80? ) and no issue with my mobile data i can watch YouTube normally....

screenshot and dump file attached....

Thanks
[BetterBatteryStats] Perseus:
Yes that's exactly the file you need to post. Also you do have it when the phone was Idle.

As to the Log, do you see the lines in there,

Level lost [%]: Bat.: -20%(100% to 80%) [2.5%/h]
Voltage lost [mV]: (4404-4030) [47.2%/h]

Makes me wonder if your battery might be dying. Keeping that aside, I see Cerberus Anti-Theft woke the phone a few times for about an hour. Also Search this thread for GC Related Karpfenhai's Mod. Make the changes as specified to the receivers.
[BetterBatteryStats] pettigrew95:
This is a brand new HTC 10, got it in June of this year. I searched and found this post: http://xdaforums.com/showpost.php?p=55211341&postcount=25472 ...A little confusing what I'm looking at there. If he's using autostarts I can't use that for whatever reason it FC's every time I open it. Thanks for the replies.
[BetterBatteryStats] prakashkushwaha74:
I have provided a dump file please check for ~20% overnight drain reason & revert back.

Will provide smaller dump file tomorrow.

And if possible explain how to check reason from these dump files so i can try by myself.
[BetterBatteryStats] :
Looks like your phone screen has been turned on for 3 minutes. Charge your battery to full, unplug and immediately let it sleep for 6 hours.

The app counts wakelocks and alarms when the screen is turned on as well, so there's no telling what happened in that 3 minutes.