yashsingh1/xdaforums huggingface dataset:
[Android General] Oswald Boelcke:
That's obviously tough with Nougat as Xposed is still missing (I don't want to discuss at this point if the currently released (Alpha-versions?) of Xposed.zips are really working. I still wait for rovo89 and wanam to release something).

However, there're other applications around that promise something like Amplify; just search the web and XDA. Here's an example I unsuccessfully tried once: WakeBlock - I simply didn't get it to run i.e. no experience if it works.

Anyhow, wakelocks & alarms are in my opinion indicators but not the source or reason of battery drainage. I'd rather go for the source than to block an effect. If I've fever I want to know what's causing the temperature in order to be able to fight the cause. Would I really cool down the medical thermometer and believe now all is good?
[Android General] DB126:
The tools in that post can't directly block/limit alarms and wakelocks but they can disable services, broadcast receivers and other items that trigger and/or respond to such activity. That said, most alarms/wakelocks are benign and do not result in excess wake time or battery drain. The indicators in battery apps leave a false impression that often has folks chancing their tails trying to 'fix' non-existent problems based on raw data. The only items that need attention are those that are demonstrated bad actors. Leave the rest alone. You and your device will be happier for it.
[Android General] ProudRed:
Losing a lot of battery to this. Keeps the device awake most of the time. Normally its like 2-3 minutes. Sometimes it keeps the device awake for 50-60% of the time. Anyway to prevent this wakelock ?
[Android General] DB126:
PowerManagerService wakelock is generally a summation of other non-kernel wakelocks. It is not a problem itself and can not (should not) be limited. You'll need to submit an idle BBS dump to see what the individual contributors are.
[Android General] ProudRed:
Over a 6-7 hour idle dump it will not show. As its not happening everytime. Its happening at times when I am using it and have say kept it idle for 30-40 minutes or even 1-2 hours. What to do with that ?
[Android General] DB126:
Suggest enabling BBS watchdog processing which will automatically create 'screen off' and 'screen on' reference points. Watchdog can also notify you if the device was held awake over a specified threshold; suggest configuring that for 10% which is the lowest level of granularity. If you get a notification upon waking the device check if PowerManagementService wakelock is showing higher than expected values. If so immediately snag the BBS dump (even if well under 6 hours) and post to this thread for analysis. To be clear the dump should span the period 'screen off' to 'screen on'.
[Android General] ProudRed:
All of that is enabled. Sure I will post the bbs dump next time it shows the device was awake. Even if its for 30-40 minutes.
[Android General] erfan007:
Losing almost 40% during standby in 6+ hours.

Heres my bbs dump.

Thanks
[Android General] ProudRed:
Device was awake 99% of the time. This time the device is different. I cannot figure out what kept it awake. http://cloud.tapatalk.com/s/5979b466ceba0/BetterBatteryStats-2017-07-27_150451193.txt
[Android General] peterlee928:
DELETE
[Android General] DB126:
There's a lot going on in the log. Unfortunately, none of it points to a smoking gun. Thoughts (which may be completely inaccurate):

- device was network isolated for much of the sampling period; possible an app/service held device awake looking for a connection

- I am troubled by the tasker wakelock(s) but have no direct evidence they are complicit (hence unsubstantiated 'gut feel')

- noted the presence of social apps (eg: facebook) which are known resource abusers; consider 'lite' alternatives

- device spent nearly 50% of the idle window at elevated CPU levels; it was busy doing something ...

- noted the presence of Greenify; consider rolling back to defaults (keep 'doze on the go' enabled) and pruning list of apps that are actively hibernated; also consider use of Greenify's widget to put device into sleep mode vs the normal passive method used by Android

- don't forget the often neglected 'cold start' on occation; amazing how many weird issues this solves

Unfortunately, I lack the time (and energy) to interpret each log entry for further clues. Best guidance is to develop a 'feel' for what may be holding the device awake and then disable items a few at a time until the offending action/app/service/utility is identified.

Sorry I could not be of more assistance; perhaps another contributor can shed some additional insight. Best of luck tracking it down.

---------- Post added at 10:34 AM ---------- Previous post was at 10:31 AM ----------

[MENTION=6089972]peterlee928[/MENTION] - requested this type of abbreviated dump from [MENTION=7081077]ProudRed[/MENTION] in an effort to diagnose an unusual problem; see here

---------- Post added at 10:36 AM ---------- Previous post was at 10:34 AM ----------

Log contains 30+ min of 'screen on' time and is thus unusable for idle analysis; see here
[Android General] peterlee928:
you sure did. my apologies to you and [MENTION=7081077]ProudRed[/MENTION] for any confusion i may have caused.
[Android General] peterlee928:
some additions to the already awesome post by [MENTION=5488402]Davey126[/MENTION] (per his usual):

1) connectivity service - see this link on a potential solution (specifically the last post): https://xdaforums.com/moto-x/moto-x-qa/connectivityservice-wakelock-wifi-off-t2899450

2) tasker - see this oldie: https://github.com/asksven/BetterBatteryStats/issues/222

punch line - unavoidable but not battery drainers

3) eventx-xxxx - linked thread below sheds some light on the issue and one of the earlier posts details a potential solution: https://www.google.com/amp/s/xdaforums.com/oneplus-one/help/event0-wakelocks-t2957829/amp/

4) qpnp - best i could find is that these are related to location and/or google now. might try disabling google now (if you dont use it) and see if that solves it.

5) mmc - appears as if this is related to sdcard. also read that it only appears when connected to wifi. this site details a possible solution: http://www.rnovak.net/2016/03/your-memory-card-could-be-screwing-your-battery-life/

6) alarm_rtc - https://www.google.com/amp/s/xdaforums.com/galaxy-nexus/help/kernel-wakelocks-t1558292/amp/

has general instructions on how to find the cause

-----------

separately noticed that you use cyanogenmod. this link may be helpful for battery drain fix: https://xdaforums.com/moto-e/help/battery-drainage-fix-cm12-1-derived-t3112097
[Android General] erfan007:
I had a lot of phone calls when im asleep, guess I'll get another dump tomorrow, thanks for the assist,,,
[Android General] erfan007:
Screen off for 6-8 hours after ~10% usage,
[Android General] peterlee928:
screen on time must be less than 1 minute. your dumpfile has screen on time for 47 minutes. please submit a proper idle dumpfile here
[Android General] erfan007:
I use this instructions https://xdaforums.com/showthread.php?t=1179809&p=72467976

Yeah it has ~10% usage after full charge,
[Android General] peterlee928:
that is fine... but your idle dumpile (key word: idle) should be from screen off to screen on. yours is unplugged to current. so it captured your screen on time.

- enable watchdog processing in BBS settings

- verify from/to references is checked under custom views

- full charge device then let it run down to ~95%

- put device to sleep for at least 6 hours (no touchy!)

- wake device and launch BBS

- adjust from/to references to 'screen off' and 'screen on'

- save dumpfile from share menu

- post resulting log to this thread (or provide cloud link)

please resubmit a proper idle dumpfile per the exact instructions above.
[Android General] erfan007:
Okay thanks, I'll gain another dump tonight
[Android General] Namisaro:
Hello, i have a problem with battery. It discharges very fast. I've attached BBS dump below.

Thanks in advance. :)
[Android General] Shahrokh.KING:
hi, thx for guide, is limiting these three wakelocks to high values affect location findings? i use maps and weather a lot and i need location to work properly, thx

NlpWakeLock

NlpCollectorWakeLock

LocationManagerService
[Android General] Sachin ET:
pardon me if what am talking about is off topic........I'm new to this thread.

I would like to know whether random flashing of ROM and other kind of stuffs could damage the battery of a device or not........am asking this because i had to replace my battery in about 1.5 years after buying........and i had flashed a lot of ROMs into it.

Thankyou
[Android General] githyanki:
I would say no, but being a heavy user will wear the battery out faster due to frequent charge/discharge cycles. Flashing a rom is an long and intensive operation, but do is playing a video game.
[Android General] sarry86:
Here is my file
[Android General] codenamesniffles:
Alright so I tried out two different kernels:

1. Lean Kernel v6.2

2. Arter's 7.01

Of the two which do you think would be a better daily driver?
[Android General] schaggo:
Don't fully trust such tools. Depends on a lot of factors if they get it right or not. -3mA is totally unrealistic, with a 3000mAh battery, that would equal 1000h standby. Thats 40 days.

Seems about right. This is about what I get on my OnePlus.
[Android General] infectedorganism:
Would someone mind taking a glance at this dump?

http://pastebin.com/ebV6V5AL

This dump is with Powernap, Greenify and a built-in wakelock blocker used. I just reinstalled Amplify and will try to limit these alarms, but I don't think it will have much affect as I have used it previously with no noticeable affect.

Any help is appreciated. Thanks in advance.
[Android General] Portgas D. Ace:
I would recommend using the Arter's 7.01 kernel, as this one has a lower idle drain according to your dump files. But maybe give both kernels a try for one week and get an idea of both for more than one day.

Have you had WiFi enabled during your idle period? The stats don't say anything about WiFi enabled, but this might be due to the BBS default settings, which does not show WiFi and other network data in the stats. The wakelock blocker seems to work flawlessly, but battery drain of 1.1% per hour is rather bad. Old battery?
[Android General] infectedorganism:
For this dump, I was on 4g with Wifi disabled. I use Better Wifi On/Off to control connectivity when close to a known Cid and other parameters.

Also, the battery should be good. I've only had this phone for a few months, bought brand new.
[Android General] v7:
[MENTION=6168840]codenamesniffles[/MENTION] Choose the kernel that suits you.There are other parameters you should consider while choosing a kernel.If you're looking for battery efficient kernel,go for Arter's.The two kernels may differ in performance.So choose the one that meets your requirement.

Tapped from my furious dogo ;)
[Android General] v7:
[MENTION=4078274]infectedorganism[/MENTION] Edited: Post a dump with running WiFi.

Tapped from my furious dogo ;)
[Android General] infectedorganism:
Indeed. I honestly think it is the phone as I've had similar stats with various ROMs on both Kitkat and Lollipop.
[Android General] v7:
[MENTION=4078274]infectedorganism[/MENTION] See the Edited post.
[Android General] infectedorganism:
Okay. I'm going to limit those alarms with Amplify and post a dump with Wifi running soon.
[Android General] ram4ufriends:
Anything else I could improve? Limited sync and froze calendar app. Just 7 month old battery. Whats causing the major drian?
[Android General] v7:
[MENTION=5986648]ram4ufriends[/MENTION] You won't get a better idle drain with this ROM.Try changing the Kernel/ROM.

Btw 0.5%/hr is not that bad.

Tapped from my furious dogo ;)
[Android General] ram4ufriends:
Any ROM suggestions you can give for Note 4, I have tried many actually. Am fine even if the ROM doesn't have all bells and whistles.
[Android General] v7:
[MENTION=5986648]ram4ufriends[/MENTION] Get me your model number.

Tapped from my furious dogo ;)
[Android General] ram4ufriends:
N910T
[Android General] S!nbad:
thanks for this
[Android General] v7:
[MENTION=5986648]ram4ufriends[/MENTION] So T-mobile Note 4 it is.

There are plenty of development running for the Note 4.

Give this a try AOSP-SLIM

Tapped from my furious dogo ;)
[Android General] codenamesniffles:
[MENTION=5867207]vaisakh7[/MENTION] I suppose this would depend on whether or not you've used the app, but do you think that lux auto brightness would be a good idea to implement into battery saving strategies, or would it be a cause of more wakelocks and/or counter-productively a battery drainer?
[Android General] milojoseph:
Rilj is a wakelock you put as alarm

2nd put a symbol telling users what new things u added...
[Android General] v7:
[MENTION=6168840]codenamesniffles[/MENTION] I recommend controlling brightness manually.On all the devices I've used,the Auto-Brightness wasn't that accurate.The screen used to get brighter/dimmer than expected.I always stick to manual control of brightness.

Tapped from my furious dogo ;)
[Android General] chiragoyal:
Hey from day before yesterday I have done the settings and installed all apps as mentioned but whenever I receive a call or when I do mobile hangs too much .For 2-3minutes it stuck there on dialer (when I cut the call). Then automatically soft reboot after that works fine. Any type of help is appreciated. Thanks.
[Android General] peterlee928:
0.3%/hr - solid and dont need to do much (if at all). in the words of the great [MENTION=5488402]Davey126[/MENTION] - enjoy your device.

that said - thoughts:

1) fast dormancy - based on your dumpfile, it seems there is a net benefit to using fast dormancy. however, in the event you want to disable this and the associated wakelock: https://xdaforums.com/showthread.php?t=2382680

only bring this up as some xperia users reported wakelock issues associated with fast dormancy.

2) bam dmux - this thread provides some background on this wakelock along with potential solutions to reduce its occurrence: https://xdaforums.com/showthread.php?t=1811365

EDIT

one piece of advice - always helpful to those reviewing your dumpfile if you can provide some context. are you experiencing elevated battery drain? other specific issues? or just want to see if there are any red flags?

food for thought ?
[Android General] peterlee928:
1) facebook and other social media apps are noted battery drainers. consider using the "lite" alternatives or accessing facebook via web browser.

2) see this thread to see you can clean up some google play services ("gps") stuff - https://xdaforums.com/oneplus-3/how-to/guide-stop-google-play-services-t3549760

also for gps, trying wiping cache and data. then restart phone. one warning about this - i stopped receiving inbox by google email notifications after doing this. i am unsure of whether it was due to wiping gps cache/data. but it did coincidentally happen shortly thereafter.

3) alarm timer wakelock - try wiping cache & data for your clock. then restart. see if that reduces the wakelock. also read that this could be related to the google search app. so you may want to wipe data/cache from that app also.

4) nlp wakelocks - possible solution https://xdaforums.com/nexus-6p/general/fix-fix-nlpcollectorwakelock-drain-t3506045/post69764748

5) wlan - potential solution https://androidforums.com/threads/battery-saving-tip-really-works.563008/

---------- Post added at 10:32 AM ---------- Previous post was at 10:25 AM ----------

personally have disabled an nlp wakelock on my phone and location on my google maps and waze apps works fine.

from what i have read, location should work fine from limiting/disabling locationmanagerservice also. but i do not have firsthand experience with this.
[Android General] zputnyq:
Just wanna add an info about social media.

I'm still using fb in my device & I don't see many wakeups & alarms when I log out my account from it.

So, I think users have log out their account after using it.

I hope, it can be one from the many solutions :)
[Android General] DB126:
Yep - same (good) solution works for many social media apps. However, most users don't want to be bothered with the inconvenience. Lite apps offer a nice compromise, nearly matching the functionality of the classic versions without the resource consumption.
[Android General] sarry86:
Am being quoted but someone else is being mentioned, was this meant for me? I do have severe battery drain by network when in idle
[Android General] peterlee928:
yes it was meant for you. the mention was very specific. not sure what the confusion is.

your idle dumpfile showed 0.3%/hr level lost over 5 hr 59 mins. that is very solid by any measure.
[Android General] hrswhdn:
I can't find some of the services name
[Android General] sarry86:
Sorry for the confusion, i understand now and thanks for checking my dumpfile out :)
[Android General] ffxmadman:
Please advice if theres anything that I can do, thanks
[Android General] DB126:
Dump contains 1½ hours of screen-on time invalidating use for idle analysis. See this post for guidance on creating a proper log.
[Android General] bielie:
Newbie question, what is this ?
[Android General] ffxmadman:
Here's the latest dump left it alone overnight. Phone estimated three days of battery life which is impossible. With regular use, unable to last even for a day. Wondering if there's anything else I can do with this?
[Android General] githyanki:
Overall, not too bad. I don't know what the expected level is for the H7 though.

Things that stood out to me are Wallpapers downloading something. Must be an app that you installed.

You had over 2 minutes screen on time, so some things are hard to tell if it's during that time, or during sleep.

system (LineageOS System): UI: 1000 Sys: 3 h 14 m 26 s Us: 5 h 26 m 6 s Starts: 0

I don't know why system shows so much awake time, much more than the total, so I don't think that really is true.

You may want to set wifi to be off during sleep.

You should be able to work your idle drain down to about .5/hr or so. Remember, TX is idle drain. If you experience large drains while in use, it is related to what you are doing and screen being on.
[Android General] ffxmadman:
Thanks for the reply. I do use Google Wallpaper which downloads new wallpapers each day, but it only does it once a day usually when I'm sleeping.

I already set wifi to off during screen off except for charging.

I notice that after wake, the battery does drop down fairly quickly.
[Android General] loonel:
awesome! thank you
[Android General] DB126:
- device is approaching 2 year anniversary; battery is likely starting to decline

- if you use aggressive doze (via Greenify) a common side effect is a rapid fall off in battery level immediately after wake as the device processes deferred tasks; normal doze is fine provided 'Doze on the go' is enabled
[Android General] ffxmadman:
How about using PowerNap's endurance mode as stated in this guide? Will this cause the rapid fall too?
[Android General] DB126:
No need to tweak native/stock doze beyond quieting the motion sensor ('Doze on the go' or equivalent) on Android 6 based ROMs.

I do not use PowerNap (etc) for variety of reasons notably because such tools offer no significant benefit on a properly tuned device when battery endurance is viewed holistically.
[Android General] adrxano:
Can someone please help me understand why my battery is draining fast
[Android General] cristixperia:
Someone know how to fix this bug? :confused:

Wrong battery stats when mobile data is on.

This is not a real drain, is just a annoying bug.:(

Google play services and tapatalk aren't the biggest drainers, Idle drain is low (even with mobile data on)

This bug appear only with mobile data(2G/3G/4G), with Wi-Fi everything is fine.:rolleyes:
[Android General] DB126:
Really, screen snips? No dump? No details on device, Android version, kernel, etc. all of which could play a role? Obviously not a generic problem spanning multiple generations of Android (impacting billions of devices) that has gone unnoticed for years.
[Android General] cristixperia:
Xperia Z2 running existenz (custom rom based on latest stock 6.0.1) + stock kernel.
[Android General] adrxano:
I'm experiencing weird battery drain. Can someone please help me understand exactly what's the cause of it.
[Android General] DB126:
Log is only 90 min long with 4+ min of active (screen on) time; useless for idle analysis. Read first few posts in this thread for guidance on creating a proper BBS dump.

That said, seems likely active motion sensor and overly aggressive wakelock management is keeping device awake given Android 6.x ROM, app suite and multiple power management tools that may conflict.

Suggest dumping Amplify and PowerNap. Use Greenify exclusively until there is explicit indications one or more of the others is needed.

---------- Post added at 02:58 PM ---------- Previous post was at 02:50 PM ----------

Wait - you posted a similar request 7 hours ago! Read response to that one as it applies to latest update - in particular BBS dump is not in the proper format for analysis. Then give it a day or two for feedback.
[Android General] :
Powernap?

But this project was dead or not?!
[Android General] adrxano:
[MENTION=5488402]Davey126[/MENTION] I left my phone untouched for 2 hours and it drained from 100% to 90% . I've attached a logcat
[Android General] githyanki:
A logcat is not needed, we need a dump file from bbs. Please follow the directions in the first 2 posts to get a proper dump file.
[Android General] adrxano:
OK I've attached a dumpfile. I hope it's the correct one. Please help.
[Android General] adrxano:
Guys here's a dumpfile from my device. Please help me find out why my battery is draining very fast even while using it and also when I'm not using it.
[Android General] DB126:
- dump included 4+ min of screen-on time invalidating use for idle analysis

- ForceDoze and Greenify both present - why?

- appears accelerometer responsible for some screen-off wake time

- verify 'Doze on the go' is enabled in Greenify

- dump ES File Explorer...borderline malware (ugh)

- create a proper 6+ hour idle dump and resubmit

- dump creation guidance: https://xdaforums.com/showthread.php?t=1179809&p=72467976
[Android General] Sameer Ali:
Hi, I have limited some Wakelocks and Alarms and now my statusbar clock delaying updates, I have s6 edge+. Thanks in advance
[Android General] adrxano:
[MENTION=5488402]Davey126[/MENTION] here's a dump following the instructions on how to do it correctly. I hope this is gonna help
[Android General] DB126:
Unfortunately, the dump encompasses the previous charge cycle which limits use for problem determination. BBS does this on occation (failing to reset reference points); not sure why. Likely through no fault of yours. Sorry for the bad news.

I skimmed through your earlier posts and dumps hoping to weave together enough info to identify at least one culprit. Nothing stood out (sorry again).

Please see [url="https://xdaforums.com/showthread.php?t=1179809&p=72467976”]this[/url] post for alternative guidance on creating a BBS idle log. This approach all but guarantees the collection of screen-off data (only) which is the starting point for most power consumption analysis. Of course, you still have to leave the device alone and off charge for 6+ hours. Best done overnight.
[Android General] 3n4y:
[MENTION=5488402]Davey126[/MENTION]. Great work you are doing. Recently upgraded to MM 6.0.1 from Kitkat and its been hell ever since. I will be uploading a dump file soon for you to assist me with.

Edit: i dont know if anyone can assist me with how to upload the dump file. I searched through the forum and no "attachment" button is shown when i click the reply button.

I have tried with firefox, edge, internet explorer on pc with no luck. I also tried with my phone browser as well.

Eventually installed the android app. I see the upload button but keep getting "network error! Could not upload file". File format is .txt and size is 158kb.