yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] theansible:
"Sensors" at 100%?

My "OnePlus One" phone used to have great battery life and fast charging time. Now it can charge all day and never reach 100%. It's just horrible.

So I installed BetterBatteryStats and it shows "Sensors" are at 100%. Also I just rebooted the phone and it says 55mins.. ? Anyone know what that could mean? Is that causing the problem? And how do I fix it?

Thanks in advance for any help :)

Jason
[BetterBatteryStats] TNSMANI:
Your stats seem to be not correct. All your wakelocks have the same time but no starts. Plus, your screen was on for more than two minutes before the log was saved.

Clear data of BBS, uninstall and reinstall it. Then charge the phone to 100% and unplug and leave it idle for >5 hours. As soon as you unlock the screen, save the BBS log. The ideal time for that is <1 minute.

Don't paste the log like you did. If you are not able to attach it, upload it to some site like pastebin and post the link.

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

Please post an idle dump as explained above. If you are not able to reach 100%, charge it to the maximum possible, unplug and leave it idle. Then pull the log.
[BetterBatteryStats] mmm286:
Hi

Do you solve these wakelock. I have the same problem

Thanks
[BetterBatteryStats] carefreeway:
Hi, my problem is that my tablet gets hi CPU load and big IOWait times during wakeup and WiFi on after sleep or after startup. Tablet doesn't react for quite some time (several minutes, even system process or trebuchet do not respond and there are popups sometimes to kill them) during this moments. Also, there are sometimes black screens (actually grey screens when screen is on, but there's no picture on it). I suspect it's due to overheat of CPU or other thing during heavy loads from Google services during WiFi on and maybe other strange apps. I turned on Show CPU load in Debug Settings and I see heave loads during WiFi on and bad responsiveness of the tablet. So, I decided to use your app to find those bastard services or apps, maybe they show up themself during sleep too? But I can't Save/Find Dumpfile for analysis. I turned on saving files to /sdcard/Android/data/com.asksven.betterbatterystats/files/Download. But there's no such directory inside /sdcard/Android/data/. I have 12 hours of stats since Unplugged with 10 hours in Deep Sleep. Should I try to post pics there instead?
[BetterBatteryStats] saumilm:
Battery drains very fast when using phone

The battery usage in standby time for my phone is hardly anything however when I am using the phone the usage is like 1% every 2-3 mins even with basic surfing. I think some of the services are using up battery. can someone pls help me in identifying the services.

Using CM13 Nightly 7th May

thanks
[BetterBatteryStats] zohar_ml:
no doze in allmost clean phone

I'm having a bad time with phone not going into doze mode for some time now.

For the last 3 days I've tried different ROMS and kernels without any luck.

My last test was to wipe all but data, flash a new rom, login and install as new device, titanium backup restore only my bare minimum apps (alarmdroid, chomp sms, exdialer, feedly, news+, swiftkey, waze, whatsapp, cloud magic) and BBS.

Then I left the phone for the night but it will not enter doze.

How can I find from the logs what kept it awake and what could be done for that?
[BetterBatteryStats] :
Can anyone find what is the problem here?

Note 4F, marshmallow custom Samsung based , battery have some circles, phone on, wifi on connected, location off. I am trying without success. In lolipop i was loosing 5%.

Thanks,
[BetterBatteryStats] TNSMANI:
First of all update BBS to 2.2.0.0B6. Then pull an idle dump taking care to ensure that the screen on time is less than one minute.

I see in your dump that Google services and CloudMagic consumed data during sleep.
[BetterBatteryStats] Portgas D. Ace:
From your stats, I would say that FB Messenger is draining battery.

Furthermore, this one

wlan_rx_wake (): 3 m 13 s Cnt:(c/wc/ec)294/56/294 0,6%

can be tamed, see this thread for information.
[BetterBatteryStats] :
Thank man.. I'll try without fb messenger to test if i will see an improvement..

For the other one, i don't know if i can do something..

Sent from Note 4 kyubi Debloated
[BetterBatteryStats] suku_patel_22:
[MENTION=1330150]chamonix[/MENTION] How is that dump upload service you mentioned some time back shaping up?
[BetterBatteryStats] chamonix:
well I have been working on it on paper, putting together some user stories/features.

unfortunately at the moment I am still struggling to getting some time back for working on the main app so I have to put that as my first priority but the idea is everything except dead.
[BetterBatteryStats] zohar_ml:
Changed some settings and did more tests.

Now I do get long doze times, but still with high battery usage.

Can it be because of the 100% sensor time that I see? what this sensor time means? (I put the phone facing up with nothing in-front of it).

I also did one test in airplane mode and it hardly change the battery usage.

What's the meaning of "XPosed BATTERY_STATS module enabled: false" should I install some xposed module?

Can BBS also test the GPU usage?

Zohar
[BetterBatteryStats] devsk:
hmm...I have the exact same issue. Did anyone else run into this? I am running B6 on rooted HTC 10 running 6.0.1.

I have installed it as system app and rebooted.
[BetterBatteryStats] TNSMANI:
From your dump (though it is not as per requirement):

net.dinglisch.android.taskerm (): Wakeups: 27 (9.3 / h)

Alarms: 15, Intent: net.dinglisch.android.tasker.ALARUM

Alarms: 12, Intent: net.dinglisch.android.tasker.ANOFFCHECKORUM

com.android.bluetooth (): Wakeups: 12 (4.1 / h)

Alarms: 12, Intent: com.android.bluetooth.btservice.action.ALARM_WAKEUP

Tasker.UserAbsentWakelock (net.dinglisch.android.taskerm.Tasker): 40 s Count:38 0.4%

Tasker and BlueTooth were some of the culprits.

Google App consumed some battery.

You may also have some other issues. Please post a proper idle dump.

Do not worry about Xposed battery stats since we have not installed that module.
[BetterBatteryStats] zohar_ml:
What was wrong with the dump? (I've enabled the watchdog so it can be from screen off to on).

My bluetooth is on all the time, I use it with tasker to know when I get into the car and turn wifi accordingly.

I allso disabled before the test a tasker task that run every 10min and test the network usage.

What can I do regarding the bluetooth and tasker?

Zohar
[BetterBatteryStats] guhvanoh:
IDLE DUMP. That means charge the fone before going to bed, turn off everything, leave overnight, take DUMP first thing in the morning before you do anything else with the fone. If there are any errors in what I wrote, please correct them.

TIA
[BetterBatteryStats] phanipk:
hi here is my 8hours idle dump stat. from 100% to 86% in 8 hours of idle.any help??
[BetterBatteryStats] alireza_simkesh:
I am getting a lot of alarm wakeups by Google Play Services, and specifically HEARTBEAT and SEND_IDLE alarms. My partial wakelocks are almost zero, but the alarms by Google Play Services are huge. I have attached the screenshot of it below:

I have updated to the latest version as well (Google Play Services V9.0). Does anyone know how I can reduce these two alarms?
[BetterBatteryStats] TNSMANI:
The dump was for less than 3 hours. 6+ hours would be ideal. While screen off reference and custom reference may be alright, v7 and others have requested for unplugged to current, may be to maintain uniformity among the various people's dumps.

If you require Tasker and BT to run, nothing can be done about them except you can limit them to about 600 and see whether anything is affected, if not increase it. If something is affected, you can remove the limit.

---------- Post added at 05:01 PM ---------- Previous post was at 04:58 PM ----------

I have seen the same post in three different threads, atleast one of which specifically prohibits you from posting in multiple threads. Please refrain from doing so. Post it where it is most relevant.

I have answered you in one of the threads.

---------- Post added at 05:05 PM ---------- Previous post was at 05:01 PM ----------

Most of them are in the OP. Limit them accordingly.

You can also delete the data and cache of Google Play Services and reboot. Then pull an idle dump and post it here.
[BetterBatteryStats] alireza_simkesh:
Are you sure they are in the OP of this thread? As far as I can see the OP only explains how to use BBS app and its features, but it doesn't say anything about HEARTBEAT alarm nor SEND_IDLE.
[BetterBatteryStats] rahulsuneja:
I have been constantly getting SoT of about 2h 30m to 3h on my LG G4 (H818N) for the past 3 weeks or so. Today I installed BBS from this thread and I found two particular kernel wakelocks to be the culprits:

PowerManagerService.Display

PowerManagerService.Wakelocks

I am attaching the screenshot "since boot"

I am running Lollipop 5.1, previously was on H818N_v10d but flashed the v10e version due to high recommendations of best battery on the device's root thread. Hope somebody could help sort, couldn't find a fix for this yet.
[BetterBatteryStats] TNSMANI:
Sorry, confused.

See OP of this thread:

http://xdaforums.com/android/general/guide-0-0-hour-idle-battery-drain-stock-t2973588

---------- Post added at 09:30 AM ---------- Previous post was at 09:23 AM ----------

Please post an idle dump of not less than 6 hours.
[BetterBatteryStats] devsk:
Is anybody else getting "No stats have been collected" for the kernel wakelocks? I have a rooted HTC10 which does not show any kernel wakelocks.

[MENTION=1330150]chamonix[/MENTION]: any ideas? How can I help debug this further?
[BetterBatteryStats] rahulsuneja:
Right! I am attaching the dump that I created right after I woke up. Had saved it in the morning in case you'd ask. Let me know if you need anything else. :)
[BetterBatteryStats] carefreeway:
Yup, I have the same problem too. And also I don't see dumpfiles. But I see Partial Wakelocks, Alarms, Network, Process, Other. I gave it root access when the app has asked right on its start.

I've found this topic from the search in the Internet too, but how to do the same in command line? For example, to disable intent with 67 alarms from my attachment I usually do the following:

pm disable com.google.android.gms/.checkin.EventLogService$Receiver

Do you know how to do the same for diminution alarm rate?
[BetterBatteryStats] TNSMANI:
I have no idea of command line usage to limit something. I use Amplify for that.

Some wakelocks are critical and disabling them will invite trouble. Limiting is always better.
[BetterBatteryStats] drewski_1:
I have this on my Shield Tablet. All other devices fine.
[BetterBatteryStats] amokkatxda:
HTC M9 Sprint (sense based rom, stock kernel) 6.0.1 also does not show kernel wakelocks
[BetterBatteryStats] utkarsh03:
Htc m8 on 6.0.1 has the same issue. Says that 'file could not be read'.
[BetterBatteryStats] drewski_1:
On my Nexus 5x I'm seeing some odd behavior with the phone off. I charged it and kept it off for ~13hrs overnight where there was a ~40% drop in battery over that time.

I've attached screenshots of the battery level and the BBS log to get people's thoughts. You can see consistent & moderate drop for the first ~6 hours and then the battery drop accelerates.

There's not much in the Kernel & Partial Wakelocks. In Processes the top item is "system" & "gms" is there a way to dig into those more?
[BetterBatteryStats] djurkash:
You won't get too many answers. It happens that Android OS go crazy for no reason, as it is in your case, smtg woke the phone up, as outlook or Gmail or greenefy, and phone haven't returned to sleep. I believe this is not the regular behavior, and a reset will solve it...

sent from Nexus7
[BetterBatteryStats] drewski_1:
Factory reset?
[BetterBatteryStats] djurkash:
No, sorry, simple restart...

But, is this, what you showed her, regular behavior, or it happened once/twice?

sent from Nexus7
[BetterBatteryStats] drewski_1:
It's regular. Since I flashed back from N preview 2

Reboot doesn't change it.
[BetterBatteryStats] djurkash:
Then definitely hard reset, wipe all... I don't know how you flashed it back, but there smtg happened. MM is having issues that's for sure, but less visible on my wifi Nexus 7 than on my Xperia Z3+...

And usual culprits are Android OS and Google Play Services...

sent from Nexus7
[BetterBatteryStats] TNSMANI:
You had a 1 GB download by Android System plus a 13 MB download by Google Play Services.

You can first try a factory reset but if it doesn't solve the problem, a full wipe and reinstall of ROM will have to be done.
[BetterBatteryStats] lvnatic:
I own a s7 edge exynos variant that usually averages 6+ hours of SOT among users. No battery saving tricks, just using the phone as is. I never got more then 4 hours, and that's on a lucky day. I tried several ROMs, I'm now on a stock based one. Today I got the results shown in the pics, which is decent I guess but it's with a lot of power saving measures: when the screen is off, data and Wi-Fi turn off, sync is on once at 30 minutes then gets turned off, I didn't use gps or Bluetooth, signal is always good. I'm still not satisfied with the SOT. Maybe someone more experienced can take a look in this dump file for me please.
[BetterBatteryStats] noobSU:
Just to ask from you guys. I already search the thread but couldn't able to find the relating post for my issue.

Isn't it previously reported or not?

Alarms are incompletely showing in the stats dump as well as in BBS. I asked a guy in extreme battery saving thread, he said alarms are showing from the 'api'. Switch off the option in BBS. But i haven't switched on that option.

I'm using Miui7 kitkat based. BBS 2.1.0 b5.

See the option is not checked.

Even 'api' is written below the alarms.

Weird is.
[BetterBatteryStats] HulkSmashBurgers:
Is there no widget that shows %/h? It would be nice to see the battery drain without opening the app.

Also, the settings page does not scroll down completely. The advanced option is only half shown. Maybe it's just this way on my device?
[BetterBatteryStats] Bautinho88:
When I click a wakelock there is not shown what is responsible for the wakelock. There is only the info wakelock 45 (30/h) for example.
[BetterBatteryStats] Tok11:
com.android.bluetooth is taking up 37% of my Alarms. with 61 wakeups (4.0 / h) - But bluetooth is never enabled. How can i fix that?
[BetterBatteryStats] Portgas D. Ace:
Go to Settings -> Location -> Three-dot menu on top right -> Search (or Scan) and disable the Bluetooth scanning.
[BetterBatteryStats] Tok11:
I'm assuming that's the same as Settings -> More connection settings -> Nearby Device Scanning on a S7 Edge? If so, it was a silly question on my end. Thank you tho! :)
[BetterBatteryStats] Portgas D. Ace:
I don't have any Samsung device, therefore I was talking about the standard (vanilla) Android path. But I am glad that your issue has been solved :good:

But also check the location settings for WiFi or Bluetooth scanning, as both might be enabeld.
[BetterBatteryStats] alireza_simkesh:
I went through the thread you shared above, but I couldn't find the alarms mentioned on that thread. Could it be because that topic is from 2014 and the version of Google Play Services at that time was different than the one we are using today (version 9.0)?
[BetterBatteryStats] Portgas D. Ace:
The guide is quite up to date, but as stated in the thread, not all alarms/wakelocks appear on every individual device as they depend on the user's setup. For further questions, use the Idle Battery Drain thread.
[BetterBatteryStats] aidy.lucas:
The above mentioned thread is a superb thread and is regularly updated if you don't see the alarms+wakelocks from the op in your device it's cause you ain't using them that is all. One of the best threads on xda that is, the difference it made to the stand by battery life of my Xperia is superb

D2303 5.1 deodexed z2 port+z5+X apps+themes, be,xr,sv,ad,XZRt2urecovery,xposed,z5 cam2.0,xLOUD,S-Force,viperaudio+more
[BetterBatteryStats] chamonix:
that means the your selinux settings prevent bbs to run dumpsys to retrieve the complete Alarms. Due to this it falls back to the API mode that is unfortunately less complete.
[BetterBatteryStats] noobSU:
But i already have SELinux changer & set it to permissive. Idk whats the issue im suffering from.
[BetterBatteryStats] TNSMANI:
Pull a dump and see what BBS says about SELinux. I am afraid that your SELinux state is not properly read by BBS. If so, try uninstall and reinstall of BBS.
[BetterBatteryStats] noobSU:
Already but still same issue [emoji20]
[BetterBatteryStats] TNSMANI:
You didn't read my post properly. What I said was "Pull a dump and see what BBS says about SELinux." I think that it will say "n.a". If so, report it to the Dev who can try and help you.
[BetterBatteryStats] noobSU:
It says this. BBS does read its status without any issue. Pasting a part of a dump here.

ID: KOT49I

TAGS: release-keys

USER: mangarao.mudunuri

PRODUCT: geefhd_open_esa

RADIO:

Root perms: false

SELinux Policy: Permissive

BATTERY_STATS permission granted: true

XPosed BATTERY_STATS module enabled: false
[BetterBatteryStats] TNSMANI:
From your post: "Root perms: false"

Is the app installed as a system app/given root permission?
[BetterBatteryStats] noobSU:
Opps. So thats the issue. Im using miui7 based on kitkat. It asked me for root permissions when it was a data app. I granted an access. But when i made it to system app. It was removed from the root access category. I think making it system app on miui7 doesnt let it to have a root access i think. Idk why is the behaviour is different on miui.
[BetterBatteryStats] stab244:
Has anyone ever seen a APPS_RIVA_BT_CMD wakelock and know what its from? Tried googling it and nothing showed up. I'm assuming its Bluetooth related.

Sent from my bacon
[BetterBatteryStats] gaich:
Did anybody find the reason of huge wakelocks on Mediatec devices? These are enormous:

EINT wakelock

Netlink wakelock

ttyC0

I have searched many days, did not get the answer, I see [MENTION=4322181]Tungstwenty[/MENTION] and [MENTION=4355376]Karpfenhai[/MENTION] have tried to explore this problem long long time ago.

My phone is Ulefone Vienna, root, Xposed, Google play services are practically disabled (I turned off push), I use Greenify to hibernate all main system processes, tried to use Amplify and PowerNap with no luck, in AppOps the keep awake mode is turned off almost for everything, even for phone app. The bloatware is frozen, all updates are off, internet acces is limited with Xprivacy, boot and other receivers and persistent services are turned off with My Android tools.Location is always off. I tried 4g and 3gonly with the same result.I turned off Viber and Telegram for these dumps.

And still such drain:

View attachment BetterBatteryStats-2016-05-28_080929062.txt

View attachment logcat-2016-05-28_080929392.txt

View attachment dmesg-2016-05-28_080929568.txt

View attachment BetterBatteryStats-2016-05-28_080929198.json.txt

View attachment interrupts.txt

View attachment alarms.txt

View attachment frozen_app_list.txt

Could anybody look this? Thank ypu.:rolleyes:
[BetterBatteryStats] TNSMANI:
You are suffering from kernel wakelocks. Most of the times the only solution is change of ROM/kernel. So if possible, change.

Alarms: 73, Intent: com.android.internal.telephony.data-stall

This also is eating your battery.

One other reason may be that you have choked the phone to such an extent that it is behaving abnormally.

Clean flash your ROM and set up Amplify, Greenify etc as per this guide:

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

BUT do not limit "icing" in Amplify though it is stated as safe in the guide. Do not also limit anything else other than what is stated in the guide. Let it settle for a couple of days, then pull an idle dump with wifi on and post it here.
[BetterBatteryStats] gaich:
I do know I am suffering from kernel wakelocks - what do you think was the reason I made my post here and listed these wakelocks??!!

If you have read my post, you should know I do use Greenify. And I explained that I did use Amplify and Powernap with no luck.
[BetterBatteryStats] TNSMANI:
There is no need to fly off the handle. I tried to help you to the best of my knowledge. If you didn't like it, you could have ignored it.

I don't like the tone of your post. I will refrain from replying to you in future.
[BetterBatteryStats] devsk:
HTC init scripts are not mounting the debugfs. That's the reason for missing kernel wakelocks in HTC 10. Do the following from a root shell:

mntP=$(grep /sys/kernel/debug /proc/mounts | awk '{print $2}')
if [[ "${mntP}" != "/sys/kernel/debug" ]]
then
mount -t debugfs none /sys/kernel/debug
fi

Relaunch BBS and it should show the kernel wakelocks now.
[BetterBatteryStats] ybres:
@yhrn - Thanks for the explanation. I did stop it last night and it didn't seem to restart. I never used the Custom Ref so I didn't notice until now...

P.S. Custom Ref seems to work for "Other" "Processes" and "Partial wakelocks" even if the service is stopped.
[BetterBatteryStats] yhrn:
My bad - but I think that the service is required for any kernel wakelocks references to work though.
[BetterBatteryStats] chamonix:
gsf is the google framework, it can be anything from google talk keep alives to market payment traffic. That's the problem with closed source.... there is no way to find out.

The only thing you could do is to click on the entry in the Alarms screen and check the details that explain a little bit more (for both alarms). Maybe those will give you something to work with.
[BetterBatteryStats] chamonix:
I left the main wakelocks you want to look after (facebook, ebay, whatsapp) but first thing first, incoming wifi packets are keeping your phone awake (rx_wake). You could do:

- turn off wifi when unused

- set wifi policy to off when screen off

- use a capture tool to find out what packets are waking your phone, where they come from and finally do something against them. If you are on a shared wlan that may be tedious and difficult though
[BetterBatteryStats] chamonix:
Go weather is one of the worst app I have ever seen in terms of alarms. I have tried almost every weather widget available on the market and they all have the same bad design when it comes to alarms and location.

Finally I switched to "andoid weather" because its design on those important aspects is flawless (and the app is from a fellow xda member)
[BetterBatteryStats] chamonix:
That's an easy one, you should be able to find that kind of obvious cause by yourself.

Titanium backup has been keeping a wakelock for 5 hours. Probably because one app could not be shut down befoare backup. You should be able to find out what app misbehaved by running the backup attended. I had exactly this behavious once with SwiftkeyX
[BetterBatteryStats] chamonix:
Don't assume, read the doc and post a dump :P
[BetterBatteryStats] chamonix:
PowerManagerService is a kernel wakelock placeholder for partial wakelocks from userland (click in the entry with the little globe, that will take you to the knowledge base explaining this).

If you see noled in the partial wakelocks then noled has been keeping your phone awake (probably obcessing about a notification and keeping you screen (and your phone) awake). To avoid this check noled setings to set shorted notification periods.
[BetterBatteryStats] chamonix:
The service is required as BBS is listening on the "charged" and "unplugged" events in order to calculate the reference for kernel wakelocks. Stopping the service will result in those references not being created and that would result in a loss of functionality.

The service in itself in doing nothing except regitering to those events (that's the way andoid is designed, you need to have something running to register a listener and there is no way to register those events from and manifest).