yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] chamonix:
This is what a market search shows: https://market.android.com/search?q=com.skt.skaf&c=apps

Obviously the app holding that wakelock is a third party app that was either preinstalled or that you have installed. You should either check its settings to see how you could get rid of that behaviour or look for an alternative
[BetterBatteryStats] chamonix:
I already answered that in my previous post looking at the first log you posted: wifi rx wakeups is your main problem
[BetterBatteryStats] chamonix:
I see two possibilities here:

- either your notification is set to alarm you over and over for incoming SMS and that's exactly what your phone does.... and stays awake

- an incoming MMS is being retrieved automatically and while looping to get the parts together it keeps your phone from sleeping

If you can't find a way to change that behaviour in the settings I suggest that you look for an alternative SMS app and disable the nitification in the one you use now or deinstall it
[BetterBatteryStats] chamonix:
because the dump contains the alarms and those can only be accessed with root rights (su). If you don't have root or don't grant BBS the access to su it will result in the alarms not being dumped.
[BetterBatteryStats] chamonix:
Correct, right now only kernel wakelocks do not have the references from Android so I need to "calculate" them. In future versions Alarms will be added with the same processing and automatic warning on heavy wakelocks during a screen off period as well (if enabled from preferences)
[BetterBatteryStats] chamonix:
That reading is not representative enough as you screen was on a lot. Try to take another reading after unplugging the phone and leave it alone for 1-3 hours before dumping (stat=since unplugged)
[BetterBatteryStats] M@31:
The only SMS app that I use is the stock one. I have never installed another SMS app......

Im looking into one of those 3rd party apps, I am sure it is one that I installed, but just can't figure out which one.....any searches come back unfruitful.

I also only receive maximum 2 or 3 sms' a day....for the most part I use IM for my messaging.....

Would a file dump be useful at all??
[BetterBatteryStats] longfeng:
You can root it and if there is warranty issue, unroot it before you send for repair. warranty is still valid.

Your twitter app is killing most of your battery life. If you are happy, then keep it this way. When you screen is off, your phone should be sleeping but it is not. It spends extra 100% of your screen on-time working while screen off.
[BetterBatteryStats] mrkmrk:
Please excuse me if I'm repeating a question that's already answered--which is likely, though searching this thread gave me too much to be very valuable at a glance--but would it be possible to figure out why NetworkLocationPassiveCollector is so high? Among other things?

http://dl.dropbox.com/u/560483/Screenshot_2012-02-01-20-32-14.png

http://dl.dropbox.com/u/560483/BetterBatteryStats-2012-02-01_203244270.txt

Thanks for any help that can be provided, and apologies again for any repetition that might have occurred. Time to read through this thread some more...

EDIT: FWIW, this was over the course of a normal day of use. I'll get one where it's off the charger and just idle, but I won't be able to do it until Friday night.
[BetterBatteryStats] Haldi4803:
Thanks.
[BetterBatteryStats] misterhong:
hai, i have just installed system tuner pro latest and i want to tweak the start up.

but when i open google play services, it keeps loading till long time, so i couldn't untick the services, . how to fix this thing?
[BetterBatteryStats] andreasy:
For MM Roms do we need to externally enable something for stats? I only get stats after reboot but not after unplug.
[BetterBatteryStats] kryshnakishore:
when xda version will get updated? after b6 no updates from months
[BetterBatteryStats] nicesoni_ash:
It'll be updated when it will be updated. Beside what version you are getting on play store? Stop being whiny than being appreciative for xda version.

Sent from my "i9300/1+2" powered by Carbon/RR

Fueled by 7000mAh ZeroLemon Battery
[BetterBatteryStats] chamonix:
it's definitely a kernel related issue, looking into the dumpfile and dmesg. dmesg shows the the cpu free view confirms, huge activity managing cpu frequencies at a pretty high pace of change and high Frequenz, while the device was supposed to sleep.

Google tells me eint is a wakelock held by a mediatek driver: https://android.googlesource.com/ke....4.4_r3/drivers/misc/mediatek/eint/eint_drv.c

and from what I could read here

http://home.labs.mediatek.com/media/apis/rtos/group___e_i_n_t.html

eint stands for external io controller.

Now what does not seem obvious to me is why the abnormal cpu free activity can be related to external io so I"d recommend proceeding by exclusion:

- remove and external devices, SD cards, SIM, etc

- Clean undust any access ports: charger headset

-turn off any chips you can: wifi, airplane mode

- clean the screen

- try to not use touch for a reading: reboot and leaves the phone untouched for an hour

if that wakelock disapears re-introduce the above one by one, rinse and repeat

edit:typo

edit: just to set expectations all this will at best let you find a more or less viable workaround, like not using an SD, reboot you phone after charge, not using the camera, not using you phone. On the other hand it may hint a kernel dev into the right direction assuming there is a driver eg not properly releasing interrupts when requested by powermanager
[BetterBatteryStats] kain83:
Yeah, same problem here. MM stock on Moto X Play, rooted and xposed v79.

Any tip? Thanks!
[BetterBatteryStats] gaich:
Thank you, will try to test all this. :)The latest experiments showed EINT is drastically decreased with fingerprint unlock disabled.

View attachment BetterBatteryStats-2016-06-10_064205819.txt

View attachment dmesg-2016-06-10_064206144.txt

View attachment BetterBatteryStats-2016-06-10_064205919.json.txt

View attachment logcat-2016-06-10_064206036.txt

View attachment interrupts.txt

View attachment alarms.txt
[BetterBatteryStats] jgoulet:
Can someone help me out with what is using battery? I left this overnight. I have Amplify and Greenify and am using aggressive doze with Tasker, my alarm app, and Textra whitelisted.
[BetterBatteryStats] TNSMANI:
This is an in-use-dump. It will not help anyone to help you. Further, it is from boot to current.

What you should do is to charge the phone to 100%, unplug it and leave it untouched for about 6+ hours. When you unlock the screen after that, immediately go to BBS and save the dump, taking care to ensure that the screen on time is as less as possible, in any case not more than one minute. Then post the dump here and someone will help you.
[BetterBatteryStats] jgoulet:
I rebooted right after unplugging and left it for the night. I'll charge to 100% and do it the way you mentioned.
[BetterBatteryStats] Perseus:
Before unplugging, make sure to turn off Scanning always available in

Settings > Wifi > Advanced. Also just this time, set "Keep Wifi on" to always. After this dump is made. set that Keep Wifi on to "Only when plugged in".
[BetterBatteryStats] jacolguz:
Persistent Toast BBS: Processing Watchdog

HI

I am getting an issue ages ago on KitKat, Lollipop and Marshmallow on both Galaxy Note 3 and Galaxy Note 5

Sometimes when I turn on the screen I get this toast and it is persistent until I kill the BBS app
[BetterBatteryStats] Elpatii:
Hi,

Can someone tell me what's wrong with my Nexus 6 (Android N preview 3) ?

3 min of screen of, on a little more than 12 hours and i lose around 50% of my battery.

http://pastebin.com/RcEmK2mw
[BetterBatteryStats] Perseus:
You might have BBS Active Monitoring Turned on.

Line:Free Calls app is very active and is keeping the phone awake. I am not familiar with it. Perhaps you can see if it can be made to reduce refresh or such ? Also the BT connection to your smartwatch is second contributor, particularly the BT Share exchange. Can you do it so that "Keep Wifi on" is set to When Charging ?
[BetterBatteryStats] jacolguz:
No, sorry, I have never activated that option
[BetterBatteryStats] Elpatii:
Thanks for your help!

Line is an application that I use to talk to some friends, it's like WhatsApp or Hangouts. But i will uninstall it to test.

Where can you see that this application keep my phone awake in my log?

And for BT connection, can I make something?
[BetterBatteryStats] dtective:
I'm hoping someone can help me diagnose my Nexus 6P. I have it on stock, systemless SU, systemless Xposed. I am losing 6.2%/h.

Thanks to anyone who can shine some light here
[BetterBatteryStats] TNSMANI:
Update BBS to 0B6 (now you have 0B5). Then pull an idle dump and post here.

The current dump looks like an in-use-dump. The times don't match. There is no "screen on" time.
[BetterBatteryStats] valdelatas:
Anyone knows why in Partial wakelocks I get the same time and porcentage in all my apps? It's weird because even the apps that are hibernated with Greenify appear in Partial Wakelocks...

Thanks

Im on Marshmallow 6.0.1
[BetterBatteryStats] TNSMANI:
Without seeing atleast the dump where the times are the same, we may not be able to help.

An app once started will create partial wakelocks. It happens when your screen is on. So even hibernated apps will have partial wakelocks if those apps were started when the screen was on.

You can clear data and cache of BBS and uninstall and reinstall it and see whether it makes any difference to the times.
[BetterBatteryStats] valdelatas:
I'll do that and if I have the same problem I'll post here the dump.

Thanks!!!
[BetterBatteryStats] stazz83:
http://cloud.tapatalk.com/s/5760e9ccc7c27/BetterBatteryStats-2016-06-15_072954573.txt

Hi guys! Can someone take a look at my log and tell what my battery use is like when phone's idle and whether something can be optimised?

I have a Moto X Play 2015 and am on an unofficial CM 13 (v9.7) by Temasek with Optimus kernel r11.

Thanks!
[BetterBatteryStats] Portgas D. Ace:
From your log:

com.google.android.gms (): Wakeups: 45 (5.5 / h)

com.google.android.googlequicksearchbox (): Wakeups: 38 (4.7 / h)

com.lego.android.tvleanback (): Wakeups: 16 (2.0 / h)

com.whatsapp (): Wakeups: 13 (1.6 / h)

Those are the ones that drain battery. My recommendation: update BBS to v2.2.0.0B6 (see post #2) and upload another idle log file. Your current version (v2.1.0.0) does not show the exact alarms from each of the above listed, so a in-detail analysis isn't possible right now.
[BetterBatteryStats] StuPot01:
Does someone here know what the kernel wakelock "qcril_pre_client_init" is?

I'm running HTC one m9 with candy six ROM which is marshmallow aosp/cm based.

I've searched XDA and done internet searches but can't find anything about it.

Its causing the phone to be 100% awake (screen off).

Any help and advice on how to tame this would be much appreciated.
[BetterBatteryStats] MysteriousDiary:
Is there a reason that the workarounds for users who aren't rooted aren't mentioned in the description?

I'm just running it since a short while but

adb -d shell pm grant com.asksven.betterbatterystats_xdaedition android.permission.DUMP
adb -d shell pm grant com.asksven.betterbatterystats_xdaedition android.permission.BATTERY_STATS

seems to be everything it needs to run fine without root.
[BetterBatteryStats] eruben:
Is it ok that meadiaserver and surfaceflinger eating this much battery? Any solution or advice?
[BetterBatteryStats] stazz83:
Hi! Here is a new overnight log from the BBS v2.2.0.0B6. Could someone please take a look?

I have a Moto X Play 2015 and am on an unofficial CM 13 (v9.7) by Temasek with Optimus kernel r11.

Thanks!http://cloud.tapatalk.com/s/57638c0b6e991/BetterBatteryStats-2016-06-17_073039266.txt
[BetterBatteryStats] Portgas D. Ace:
ProximityWakeLock (com.skype.raider.Skype): 8 h 9 m 25 s Count:0 99.7% -> seems that Skype is using the proximity sensor the whole time, but I don't know why

Alarms: 33, Intent: com.google.android.googlequicksearchbox/com.google.android.apps.gsa.sidekick.main.TrafficIntentService -> limit it to 3600 and check if you encounter any issue

Alarms: 10, Intent: CONTEXT_MANAGER_ALARM_WAKEUP_77464 -> use Amplify's regex function to limit this kind of alarm. Use CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{3,} and limit it to 9999999

Alarms: 17, Intent: com.lego.android.tvleanback/com.example.android.tvleanback.recommendation.UpdateRecommendationsService -> I don't know for sure what this is, but it seems to be related to update some recommendation for a TV app. Limit it to 3600 and check if you encounter any issue
[BetterBatteryStats] stazz83:
Thanks, Portgas D. Ace!

Very interesting.

No idea either why does Skype needs to use the proximity sensor all the time. I'll just kill the app when I don't need it, I guess.

I've limited them as per your suggestion. No idea what the TV app could be as O don't use any. Perhaps some screen cast thing that came along with the ROM or some adware I picked up accidentally.
[BetterBatteryStats] Portgas D. Ace:
You could Greenify Skype when you don't need it.

Concerning the com.lego.android.tvleanback/com.example.android.tvleanback.recommendation.UpdateRecommendationsService:

I never came across this one before and searching the web only gives me some references to Lego or Android TV. Do you have any app related to Lego/Android TV on your device? I am not sure how to handle this one properly, but my best guess would be that it is save to limit.
[BetterBatteryStats] stazz83:
Thanks, will do that with Skype.

Regarding Lego/TV, I haven't installed anything like that, the ROM itself is very light and I only installed pico Gapps.

I'll just limit the process to 3600 until I trace the culprit for this wakelock.

Thanks again!
[BetterBatteryStats] gondsman:
I noticed a small issue with the widget: the "awake" time listed there is incorrect as it takes into account screen on time twice. Normally it should be "total wake up time - screen on time", while right now it's "awake time while screen off - screen on time" resulting in negative percentages most of the times.
[BetterBatteryStats] wxfreak:
I would be grateful if I could get some assistance for my idle drain. Something has drastically changed when connected to WiFi.
[BetterBatteryStats] beeshyams:
Moto X Play

Folks

This is NOT a full 8 hour test but half the time as an intermediate course correction- BBS log attached

Request have a look at this and suggest . I erroneously concluded that this device is not quoted here but Google proved me wrong , so tips from Moto X Play users would be welcome so would any other

Edit: How to see Doze stats in this?

Apologies- wrong thread- PLEASE ignore and excuse
[BetterBatteryStats] Perseus:
Oh My, 36 % ! You're right something is off when on WiFi. None of the Usual suspects yield anything. Let's do this. First, go to Advanced WiFi Settings and set Scanning Always available to off. Then set Keep WiFi On during sleep, to Only when plugged in. Your options may not spell exactly like this but will be similar. Post a screen if you can't figure out. Make sure to reboot after making those changes.

Next If its possible for you, can you change your router so that it issues static IP to this phone ? Once that is done, observe and if you see issues, then post similar log.

3 & half hours is bit too short for good analysis, would have been better if it was longer. Let's see.

Can you please turn off Location Service as well as in WiFi Advanced Settings, set Scanning Always available to off. While there set Keep WiFi On during sleep, to Only when plugged in. Also do you have anything like Network storage on your network ? Perhaps a PC Drive to which the phone sync via wifi ? If so, can you make sure its turned off ?
[BetterBatteryStats] beeshyams:
thanks- I agree, it is short time but due to limitations on my end cannot do a full test so as hoping to get an early lead on major culprits, which should certainly show up in this time ( I hope)

All the settings are as suggested by you - if it matters, I don't leave the WiFI at nights or when the device is not in use as for this test also- I use it only when browsing or downloading, so wakelocks shouldn't worry

There is no sync on Wifi

Thanks for looking into despite it being for a short time :)
[BetterBatteryStats] JazzMozz:
Mediaserver drain?

I am getting fed up with a battery drain I have had ever since I purchased my Nexus 6P back in December. According to GSAM (including root companion) the mediaserver process is the culprit, but BBS does not show this process as a huge battery eater.

My phone has been unplugged for almost 5 hours and has been in deep sleep for 91% of the time. Yet I have a bettery drain of 4.7%/h. Kernel wakelocks do not show anything unusual, (PowerManagerService.Wakelocks shows 9m28s (3%)) and neither do Partial Wakelocks. Phone signal has been excellent all the time. Bluetooth has been off all the time.

Anyone can point me into the right direction? I have attached some logs and screenshots.

View attachment BetterBatteryStats-2016-06-22_134920354.txt

View attachment dmesg-2016-06-22_134921144.txt

View attachment logcat-2016-06-22_134920524.txt
[BetterBatteryStats] TNSMANI:
Not an expert, but your issue seems to be this:

15510000.mdmpm_pdata (): 1 h 2 m 21 s Cnt:(c/wc/ec)6495/50/0 13.4%

I don't exactly know what it is but a Google search threw up a solution which may or may not work in your case. It is to flash your stock recovery. This seems to have stopped this kernel wakelock from appearing. Why don't you try it (after having a proper backup)?

This is the source of my suggestion:

http://xdaforums.com/showpost.php?p=61935353&postcount=148

---------- Post added at 06:11 PM ---------- Previous post was at 05:43 PM ----------

First of all, can you update BBS to 0B6 available in xda?

Next, you had a lot of background downloads from various apps while asleep.

Next, you have a lot of alarms:

com.arlosoft.macrodroid (): Wakeups: 423 (1,2 / min)

No wonder you have drain (1.2 per MINUTE)

com.google.android.gms (): Wakeups: 152 (25,4 / h)

android (): Wakeups: 99 (16,5 / h)

com.rageconsulting.android.lightflow (): Wakeups: 71 (11,9 / h)

com.whatsapp (): Wakeups: 37 (6,2 / h)

nl.fameit.rotate (): Wakeups: 18 (3,0 / h)

com.android.phone (): Wakeups: 14 (2,3 / h)

com.android.systemui (): Wakeups: 8 (1,3 / h)

com.microsoft.skydrive (): Wakeups: 8 (1,3 / h)

com.android.providers.calendar (): Wakeups: 7 (1,2 / h)

com.android.bluetooth (): Wakeups: 6 (0,5 / h)

com.appgenix.bizcal (): Wakeups: 5 (0,4 / h)

com.alarmclock.xtreme.free (): Wakeups: 4 (0,7 / h)

de.j4velin.wallpaperChanger (): Wakeups: 4 (0,7 / h)

com.google.android.googlequicksearchbox (): Wakeups: 3 (0,5 / h)

com.p1.chompsms (): Wakeups: 3 (0,5 / h)

You are the best judge to decide which of these are an absolute must. In my opinion, a majority of them can be limited. Start using Amplify available in the Play Store to limit alarms/wakelocks. You will Ned Xposed also. Go through this guide and limit the alarms/wakelocks recommended therein, EXCEPT "ICING".

http://xdaforums.com/android/general/guide-extreme-battery-life-t3095884

After updating BBS and limiting alarms/wakelocks, if you still have unacceptable drain, post a dump in that thread or here.
[BetterBatteryStats] wxfreak:
Just wanted to say thank you. After assigning a static IP on my router and changing my Wi-Fi to go to sleep off the charger, my drain droped back to 0.1% per hour while connected to wifi.
[BetterBatteryStats] gaspariperez:
How do you check if an Xposed module is draining your battery? I think Flat Style Colored Bars is draining my device..
[BetterBatteryStats] Looki75:
BBS with NO ROOT

Hint for those who want to fully use BBS on a non-rooted phone!

1. Install necessary ADB drivers and exe on PC

2. Enable USB debugging on phone's developer options

3. Connect phone to PC

4. Run the following command line:

adb -d shell pm grant com.asksven.betterbatterystats_xdaedition android.permission.BATTERY_STATS

(adapt the package name depending on which version - XDA or PlayStore - you have installed)

That's it! Enjoy fully features BBS on a non-rooted phone: wakelocks, alarm, network, etc... :good::good::good:
[BetterBatteryStats] jgoulet:
Can someone help me out with improving battery? I used to get ~0.3% loss through the night but now I'm getting more. Any help is greatly appreciated! I have Amplify, but only a couple things have been changes with it so far.
[BetterBatteryStats] sewb:
does BetterBatteryStats_SystemApp_xdaedition_CWM_1.3.0.0.zip work on 6.0.1? and am i suppose to first install latesta BBS and then the BBS system app? is it ok to flash it in twrp? should not be any diffrens?
[BetterBatteryStats] pikachukaki:
Hi im having alot of drain with *backup* wakelock how can I see which app is using backup all this time...
[BetterBatteryStats] monza1412:
Do you have the Google backup data option enabled?
[BetterBatteryStats] gialakias:
I have this problem too. I have Google backup enabled but till before 3 months it was all ok. The only way to solve this is to reboot after charging. Else it is there. Does anyone know more?
[BetterBatteryStats] pikachukaki:
Yeah for Google sync
[BetterBatteryStats] ralfbergs:
Yes, works in Android 6.0.1.

First install latest beta APK, then flash ZIP. TWRP 3.x works fine for me.
[BetterBatteryStats] Tia_93_:
OP2, Paranoid Android, rooted. BBS installed as a system app: still cannot read the kernel wake locks (file could be read); where I've read about this issue, was for people that weren't rooted. Any chance anyone can help me?

Thanks.
[BetterBatteryStats] Perseus:
This is confirmed on my Unrooted LG G4. [MENTION=1330150]chamonix[/MENTION], Sven do you think this can be linked in OP ?
[BetterBatteryStats] str8str:
Just uninstall that one and try it for a while. Keep doing one at a time till you find it or you can disable exposed all together and try then you'll know it's definitely a module or exposed itself
[BetterBatteryStats] sl___:
Idle dump is 0.5%/h but the most I can get for use is 4h SOT and 21h usage. No amplify. Anyone anything I can do to help? (looks like it will probably involve amplify). Looks like I get a lot of nlp wake locks and Android.gms alarms during use.

I'm using oneplus two cm13/boeffla kernel.
[BetterBatteryStats] Snowby123:
If your ROM has the power saving mode introduced in lollipop use it.

That is the most effective way to increase screen on time for me.
[BetterBatteryStats] seven.issimo:
As already requested (but not answered) can someone kindly clarify the differences between:

* Doze Mode Idle Time

* Doze Interactive Time

* Doze Idling Time

I suppose that "Doze Mode Idle Time" is the time spent in Doze sleep. That's right?

If so, what are the other two?

Is "Doze Idling Time" the time spent since screen-off/inactive until Doze sleep?

Does it include Doze sensing timeout, locating timeout and motion Inactive timeout?

During this time are sensors active?

Should it be as short as possible?

Should it be near zero if I use Aggressive Doze?

Is "Doze Interactive Time" the time spent in Doze maintenance window?

I hope someone can clarify these once and for all.
[BetterBatteryStats] petr232:
Is there any way to clear the graphs? Mine are showing a lot of data and the app is lagging a lot viewing them. Tried to restart the phone/clear BBS data but it didn't help.
[BetterBatteryStats] Portgas D. Ace:
Try uninstalling BBS, reboot your device and re-install it again.
[BetterBatteryStats] RASTAVIPER:
Strange problem after fresh install in the same device, where before it was working fine.

Now it doesn't track correctly the period of time out of the charger and also it reports wrongly the battery left and the consumption -battery 74% (13% to 87%)

Unleashed by my M1 NOTE
[BetterBatteryStats] TNSMANI:
If the fresh install is from a backup, clear data and cache of BBS and also check whether it is installed as a system app. For me, the same thing happens when the install is from TiBU.
[BetterBatteryStats] kryshnakishore:
Even the paid version has no updates till last year.. What's going on dev?
[BetterBatteryStats] RASTAVIPER:
No, it's totally fresh, no restore from backup.