yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] vukmi:
Hi, can someone help me. From time to time, i have unusual big battery drains while my phone is locked and not in use. Sometimes even whole battery in a few hours. For example, last night i had 6.1%/h while phone wasn't in use.

Other Usage

===========

Awake (Screen Off) (): 6 h 52 m 20 s 94.8%

Screen On (): 22 m 30 s 5.2%

Wifi On (): 7 h 14 m 51 s 100.0%

Wifi Running (): 7 h 14 m 51 s 100.0%

No Data Connection (): 7 h 14 m 51 s 100.0%

No or Unknown Signal (): 7 h 14 m 51 s 100.0%

Wakelocks (requires root / system app on Android 4.4+)

======================================================

SmartFaceService (Android System): 6 h 48 m 25 s Count:164 93.9%

================

Kernel Wakelocks !!! wakeup_sources !!!

================

PowerManagerService.WakeLocks (): 7 h 14 m 51 s Cnt:(c/wc/ec)0/0/0 100.0%

14180000.fimc_is (): 7 h 14 m 51 s Cnt:(c/wc/ec)0/0/0 100.0%

These are the things that look unusual to me.

I have Galaxy A7, 20015.

Thanks!
[BetterBatteryStats] prakashkushwaha74:
Thanks for reply but clearing internal storage given me the beast performance. I wondered last 3-4 month finding solution with clean flash , kernel tweaks & 1000of other tweaks & tricks with kernel wakelock & alarm wake-up.

Though this screenshot of two days i used only one sim & data was disabled & no signal after screen went off.

Will report back with both sim.but i wonder everynight after keeping phone aside mobile loses the network completely , till next morning i toggle airplane. (Earlier i used few times airplane mode overnight)
[BetterBatteryStats] prakashkushwaha74:
Attached one more screenshot bcz two of earlier was of same day :D
[BetterBatteryStats] ivanwong1989:
Help...

Previouly i am able to install bbs. Using the twrp zip method.

Then i whacked up and reverted to stock rom.

Now when i flash bbs, it says successful. But only System Dump Companion app icon is around. BBS no where to be seen.

any idea what happened? I am stil troubleshooting my battery drain issue on wifi .. :( no other monitors give as thorough an information as BBS.... :(

Update: Solved.

===================================================================

another question: Anybody have battery drain issues when Wifi is connected?

Comparatively:

Wifi off, Cellular Data only : 6 hours - 1%

Wifi On : 6 hours - 5%

Location History is on, but Location Reporting for this phone is off.

Auto Sync Off

Greenified non essential apps

BBS is showing "wlan_sdio_lock". as highest kernel wakelock.

Problem is not a continuous wake like one whole solid bar.

It is more of a numerous small slices over the night.
[BetterBatteryStats] chamonix:
Reporting from an unrooted Pixel XL (7.1). BBS works fine with method from post #4. Experimenting with all the Google goodies on for now, 69% battery left after 11 hrs with 2 hrs on screen and 1 hrs listening to music. Good for day to day use, will report the difference when turning Google stuff off.

Edit

Only tweaks: greenified a few things off, using BWOF of course :)

Edit 2: 34 hrs with 4 hrs on screen + 3,5hrs Bluetooth :) not bad for a stock phone!
[BetterBatteryStats] ivanwong1989:
Just as a closure to my question on Wi-Fi battery drain with BBS showing wlan_sdio_lock

I suspected hotels network cold be the problem and has experimented with creating a Wi-Fi hotspot from laptop that is used to let the phone connect to.

The wakelocks are completely gone and my phone sleeps like baby.

Possible that hotels network configuration or devices in it are problematic.
[BetterBatteryStats] chamonix:
I'd say that's typical for upnp. You may want to have a look at bwof
[BetterBatteryStats] ivanwong1989:
Haha. I'm including Wi-Fi controls into my Tasker routine now.

Solved the drain issues.

Interesting. Upnp causes wakes? Have to read up on that
[BetterBatteryStats] javadark:
i dont know how to upload my dump file in the post.

Posting Rules says:

You may post new threads

You may post replies

You may not post attachments

You may edit your posts

how can i share my dump file to you??
[BetterBatteryStats] woodman:
You can upload dump file to somewhere into the cloud and post here the link (without http or https).
[BetterBatteryStats] chamonix:
It's all about how android handles multicasts/broadcasts
[BetterBatteryStats] lklaus:
Do you have a special configuration for Tasker? It does throw a lot of alarms and relies heavily on services, according to amplify....

Klaus
[BetterBatteryStats] ivanwong1989:
My Tasker settings are

Using reliable alarms when off.

Reduce resource usage checked.

All services monitoring times and etc during display on and off are set at 9xxx (I don't use active monitoring)

I only use events trigger and time alarms to avoid having a service up to monitor. For example I don't use Tasker to monitor nearby Wi-Fi for connectivity or etc

What I do are tasks based on events. Display on. Display off. Application launched. Etc.

I set all my connectivity and location options to off. And just use cellular data on 2g when display off longer than 1 minute.

All come back on when display is on.
[BetterBatteryStats] nmlssit:
I can't install it as system app in OOS CB. It's OOS 3.5.4 supported?
[BetterBatteryStats] Cobalt765:
Here's my dump file which has me a little baffled. All the results are what I would hope for. Low alarms, low wakelocks, good signal however the battery drain seems to be a bit high at 1.4% ph when idle. I'm running Amplify on CM10.2 on my SGSII 9210T.

Hoping someone can spot something that I can't.
[BetterBatteryStats] zigbye82:
deleted
[BetterBatteryStats] koekoek91:
Hey guys,

First of all [MENTION=1330150]chamonix[/MENTION] thanks for this amazing app!

Lately im having some issues with it though...

At the moment im using BBS 2.2.0. RC3.

The references seem to be completely messed up (it may be because im using it wrong) thats why im here to report it.

Whenever I charge my device to 100% and unplug, I sometimes want to do an idle test.

However when I set references from unplugged to current it keeps showing 71-99% or something like that. While I think after a full charge it should start with 100 to some number (e.g 100-99%)

Now in the previous version of BBS 2.2.0.0 RC1 I could get correct values (starting from 100) after charing to 100% and unplugging, by setting references from custom to current. All was fine then.

But in 2.2.0.0 RC3 the issue i described above, with the unplugged to current reference is still present for me.

However in RC3 when I try to use the custom to current references, I now get incorrect values. For example last night I charged my phone to 100% and let it idle screen off for about 6 hours.

But when I woke up custom to current shows only about 2 hours, while I am 100% sure I let it idle for much longer, because I was sleeping.

Am I doing something wrong here or is there something wrong with BBS on my phone?

I hope I described my issue complete enough, if not ill post some screenshots if that will help later.

Would appreciate any help to fix this issue ;)

Thanks!
[BetterBatteryStats] thechints:
Any idea what's draining my battery? Can see a lot of alarms related to gms...

On OOS community build 3.5.7 for the OP3... Dump attached
[BetterBatteryStats] chamonix:
First could you please make sure that BBS is configured not to be subject to doze mode: doze may prevent bbs to receive events like unplug.

If this does not fix the problem please turn on the debug option in advanced settings, charge, unplug and post a dumpfile with logcat so that I look into what happens
[BetterBatteryStats] koekoek91:
thanks for the response.

Sorry if its a stupid question, but how do I do this? :o

Also, if this will not fix the issue.....

Do you mean turn on debug option, charge, unplug and then take a dumpfile with logcat straight away, or do I have to let it idle for a while first before saving the dumpfile?

Thanks :)
[BetterBatteryStats] chamonix:
No problem.

Android settings - apps - special access - battery optimization and make sure that BBS has 'no optimization'.

To provide info if it still does not works:

Go to BBS settings - advanced and check 'debug'.

Plug and charge to 100%, unplug, open BBS and click 'share', check dumpfile _and_ logcat, save and upload
[BetterBatteryStats] koekoek91:
Okay so I checked app settings under battery optimization and I already had BBS under NOT optimized, so that shouldn't be the problem.

Just happened to finish charging to 100% so great timing there :p

Here are the logs, hope I did it right. If not let me know so I can try again.

Will wait for your response ;)
[BetterBatteryStats] githyanki:
There is a lot of information missing in your dump. Not sure what to do about that, hope chamonix can help you since it's still not right.
[BetterBatteryStats] harsha7sai:
I am unable to get logs for the app i get this message logcat read failure
[BetterBatteryStats] koekoek91:
Okay, very strange.

It feels like the app is completely messed up somehow on my phone lol.

It was better when I was on 2.2.0 RC1.

I will wait for [MENTION=1330150]chamonix[/MENTION] to see what he has to say.

Battery life is great though. Still at 100% after about 9 hours of sleep. BBS has helped greatly to achieving that.

But I want to compare and help other people, but with messed up time lines I can not get accurate results :p

Thanks for taking the time to have a look at my logs though ;)

EDIT

Added logs that I pulled when I woke up.

Thought maybe adding an idle log could somehow may be helpfull so I added it, Plus the logcat. However, its not showing as a correct idle log... I know this ;)

I slept from around 1 AM till 10 AM, about 9 hours. But unplugged to current says 12 hours now lol. All very strange.
[BetterBatteryStats] woodman:
Maybe the file is too big? Try another txt editor or try to open it with a computer.
[BetterBatteryStats] harsha7sai:
I tried its just 19 bytes file
[BetterBatteryStats] dbsquar3d:
Can somebody tell what the hell the process "sed" is? Its been showing up since days on the top list and i have no idea what it is... Google couldnt help me.

Screenshot: imageshack.com/a/img922/7383/vvWENX.png
[BetterBatteryStats] shaggyskunk:
"It is a kind of UNIX utility which analyzes and transforms some text and its execution environment. It is also a kind of the text editor that is called Stream Editor." - From Google Play Store Sedroid app description

Google is your friend ;)

Sent from my SM-N910W8
[BetterBatteryStats] dbsquar3d:
Thanks, but i dont have any sedroid app installed..where can i find it and disable it?
[BetterBatteryStats] shaggyskunk:
You're missing the point - sed is an Android Process - I only quoted the description of what sed is from the Android App - If you Google sed Android Process you'll get pages of information - the description from the Play Store app was the simplest way to explain what sed is - You can't disable it afik without causing significant issues with your system.

https://www.tutorialspoint.com/unix/unix-regular-expressions.htm

https://en.m.wikipedia.org/wiki/Sed

And like I said - Google is your friend!

Search before posting questions....It's ALWAYS a good idea!

Sent from my SM-N910W8
[BetterBatteryStats] ianmacd:
Yes, but there shouldn't be any long-running sed processes, and the fact that it has been at the top of the OP's process list is definitely a sign that not all is as it should be.

The OP should use ps to find the parent process of the sed process to see what started it. That should provide some insight into why it was started.
[BetterBatteryStats] shaggyskunk:
[MENTION=7680064]dbsquar3d[/MENTION] What Device - What Rom & Gapps?

I'm not seeing sed process running anywhere on my device SM-N910W8 running Br0ken Rom 6.01 & Open Gapps 6.0 Pico

You might want to check in your Rom Thread (along with Wakelock Detector) to determine if it's a Rom - Gapps or Downloaded app issue.

Sent from my SM-N910W8
[BetterBatteryStats] ianmacd:
Huh?

You're not the person who said he had a problem with sed. You're the one who replied to that person.

I was merely pointing out that what that user was seeing with sed was definitely not normal.
[BetterBatteryStats] shaggyskunk:
lol - Sorry early in the morning here... I thought that I was replying to the user who was having the issue with sed - My apologies - Still working on my first cup of coffee :) I'll add the user with the issue to my reply.

Sent from my SM-N910W8
[BetterBatteryStats] gfernandop:
I can't see further information about the wakeup intents using the version 2.1.

My exported text dump shows only the source package of the wakeup, there is no information about Intent or related command.

I'm using rooted Moto X 2014, rooted and BBS is installed as system app.

Can someone help me?
[BetterBatteryStats] gfernandop:
My export file shows info like as you see below:

======================

Alarms (requires BATTERY_STATS permissions)

======================

com.google.android.gms (): Wakeups: 765 (1.7 / min)

com.whatsapp (): Wakeups: 156 (20.8 / h)

com.facebook.katana (): Wakeups: 87 (11.6 / h)

com.facebook.orca (): Wakeups: 86 (11.5 / h)

com.motorola.slpc (): Wakeups: 74 (9.9 / h)

com.instagram.android (): Wakeups: 45 (6.0 / h)

android (): Wakeups: 28 (3.7 / h)

com.android.systemui (): Wakeups: 13 (1.7 / h)

com.android.phone (): Wakeups: 10 (1.3 / h)

com.pushbullet.android (): Wakeups: 3 (0.3 / h)

com.android.vending (): Wakeups: 2 (0.3 / h)

com.motorola.motodisplay (): Wakeups: 2 (0.2 / h)

com.evernote (): Wakeups: 1 (0.1 / h)

com.google.android.apps.plus (): Wakeups: 1 (0.1 / h)
[BetterBatteryStats] prakashkushwaha74:
Overnight 17% battery drain on standby, please help if anybody can let me know about the reason. [MENTION=1330150]chamonix[/MENTION]
[BetterBatteryStats] iamnotkurtcobain:
Something causes Android System to remain on top of the process list. The App Os Monitor should be on top if everything is ok with the System.

How can I define which app or process is keeping Android System high active?
[BetterBatteryStats] gfernandop:
Did you activate some option to view alarm Intent information?

My log output provides only the Alarm source package, I can't see the Intent that wakeup my phone:

======================

Alarms (requires BATTERY_STATS permissions)

======================

com.google.android.gms (): Wakeups: 765 (1.7 / min)

com.whatsapp (): Wakeups: 156 (20.8 / h)

com.facebook.katana (): Wakeups: 87 (11.6 / h)

com.facebook.orca (): Wakeups: 86 (11.5 / h)

com.motorola.slpc (): Wakeups: 74 (9.9 / h)

com.instagram.android (): Wakeups: 45 (6.0 / h)

android (): Wakeups: 28 (3.7 / h)

com.android.systemui (): Wakeups: 13 (1.7 / h)

com.android.phone (): Wakeups: 10 (1.3 / h)

com.pushbullet.android (): Wakeups: 3 (0.3 / h)

com.android.vending (): Wakeups: 2 (0.3 / h)

com.motorola.motodisplay (): Wakeups: 2 (0.2 / h)

com.evernote (): Wakeups: 1 (0.1 / h)

com.google.android.apps.plus (): Wakeups: 1 (0.1 / h)

Thanks
[BetterBatteryStats] lklaus:
Hi. I'm trying to track down my around 30? awake/screen off usage. I have 2.6?/h drain (dump from oct 27). I see much usage in msm_ehci_host. Which points to the modem. Settings are location off, no mobile data, wifi connected.

As some kind of baseline i created a dump (oct 28) in airplane mode, which puts the drain down at 1.2%. Anyone has some ideas?

Klaus
[BetterBatteryStats] githyanki:
I see tasker and K9 mail woke your phone up a lot. Also, have you added the alarm regex in the initial instructions?
[BetterBatteryStats] lklaus:
Yeah, they are quite at the top. But i have more phone awake than Tasker+ k9, if i read those statistics correctly. I did enter the two regexes for alarm, yes. Also, i already restricted k9 synchronizing drafts, as i don't need that that often. Probably I'll have a look at k9 again, with Tasker,i don't know, and i need the profiles. I'll try another dunno with taker disabled

Thanks
[BetterBatteryStats] githyanki:
The problem is that when they wake the phone up, it takes awhile for it to re-enter sleep mode. If they were doing their tasks as background tasks, it wouldn't cause much of a drain, but they are doing things in a higher priority mode.
[BetterBatteryStats] prakashkushwaha74:
http://xdaforums.com/showthread.php?p=69342849

Please reply for this post. Please revert back with reason that causing almost 15-30% overnight battery drain from last 3 month , on any kernel & rom. Yu5010 device cm based RR rom.
[BetterBatteryStats] Oswald Boelcke:
Be patient! The other post of you is less than 24 hours young. All the guys have another life, too.
[BetterBatteryStats] DirkStorck:
Hi could someone please explain to me why Synapse oder "Kernel Adiutor" is showing the CPU states of the big and little cores but BBS only the little ones? :confused:

Thank you !
[BetterBatteryStats] briankamkobe:
Sir may u take a look at my dump file since I lost some juice at night
[BetterBatteryStats] Danilo Pantelić:
Is this normal ?

Flashed with TWRP and than installed latest APK version ?

7.1.1 android SuperSU systemless rooted!
[BetterBatteryStats] koekoek91:
[MENTION=1330150]chamonix[/MENTION] have you had time yet to look at my dump and logcat?

Dont wanna sound impatient, I understand you have other things to do aswel.

Was just wondering :p
[BetterBatteryStats] Benny100:
LG G4 no Big CPUs....:(
[BetterBatteryStats] Sam Nakamura:
That's interesting :) tell me more about it...
[BetterBatteryStats] Benny100:
No Big CPU LG G4
[BetterBatteryStats] elandroido:
And that has to do what exactly with BBS?
[BetterBatteryStats] sm4tik:
Afaik, BBS is missing a feature to show stats for big CPU cores.
[BetterBatteryStats] elandroido:
Aaaah... Something learned again :) Thanks!
[BetterBatteryStats] prakashkushwaha74:
http://xdaforums.com/showthread.php?p=69349584

Please check & report waiting from long time.
[BetterBatteryStats] km8j:
Does the ADB command to grant permissions in BBS add the network/alarms stuff found in the BBS menu where it says "enable root features"?
[BetterBatteryStats] Dbj.Dhaval:
Can anyone tell me how to stop wificonnectivitymanager alarm in android system. I am on 7.1 nexus 6p. And this is killing my battery. As there is no xposed I can't use amplify to stop this alarm.
[BetterBatteryStats] chamonix:
Sorry, am lagging because of my day job. Expect a feedback until the week-end
[BetterBatteryStats] chamonix:
I'd be more than happy to implement. If you know an open source project that has this implemented or if you know a dev who would be ready to share his knowledge please feel free to moderate and help advancing bbs
[BetterBatteryStats] koekoek91:
Okay no problem mate.

For now, I went back to RC1 version and all seems okay now. Everyrhing is showing up correctly.

I'll wait for your feedback about the logs.
[BetterBatteryStats] chamonix:
Let's all cool down and go back to the topic of this thread now.
[BetterBatteryStats] km8j:
Bump
[BetterBatteryStats] chamonix:
I am not sure that I follow you. Does the "enable root features" you mention refer to an error message of to the settings? As a matter of fact the ADB commands grant BBS the permissions required to access the whole API. Only exception to that is the additional level of details (intents) provided in alarms that is only available with root because the API is limited and therefore BBS uses dumpsys to access the more complete info. I know there is a solution to overcome that limitiation but due to the tight timeline to go RC I was not able to implement that feature.
[BetterBatteryStats] chamonix:
If you are on an older BBS version I recommend that you update to the latest version: it does not require the system anymore. If root is properly installed and granted access to for BBS you should not get this message anymore.
[BetterBatteryStats] chamonix:
Try looking in the wifi advanced options to make sure wifi is really off when not connected (default is sniffing). I also believe there is a setting to notify upon available wifis and depending on your whereabouts it can be pretty costy to be notified about every available wifi offering
[BetterBatteryStats] sm4tik:
Kernel adiutor's got stats for both. A screenshot from n6p attached.
[BetterBatteryStats] Danilo Pantelić:
Latest BBS version - rc3 here :(

Nexus stock 7.1.1 android ...

Also tried this but with no success :

su
pm grant com.asksven.betterbatterystats_xdaedition android.permission.BATTERY_STATS
pm grant com.asksven.betterbatterystats_xdaedition android.permission.DUMP
[BetterBatteryStats] chamonix:
Except I can get access to the source code or talk to the dev it does not help: I understand the info is somewhere but I need to know how to access it because I don't know
[BetterBatteryStats] Portgas D. Ace:
Isn't Kernel Adiutor open source? :confused:
[BetterBatteryStats] gaich:
It is.
[BetterBatteryStats] Portgas D. Ace:
Thought something might have changed, as chamonix said he does not have access to the source code. Or maybe I had misinterpreted his statement.
[BetterBatteryStats] km8j:
There is an option in BBS called "enable root features". I'm asking if using ADB to set permissions enables root features.
[BetterBatteryStats] GeNiO790:
I have an LG G2 (ROM: CM13 official), I installed BBS but I do not see correctly the kernel wakelock.

It's correctlyl?

And then it should not be installed as a system app?
[BetterBatteryStats] chamonix:
Finally someone who gets me ;)
[BetterBatteryStats] chamonix:
No it does not but with the current version bbs does not require root anymore, it just requires the perms. Only exception: there is a level of detail in Alarms missing but this will be fixed in the future because I can.

I am using BBS on an unrooted Pixel XL and I am pretty happy with it
[BetterBatteryStats] chamonix:
No need for the system app in the latest version.

LG is a real problem: they keep changing the kernel wakelock file format.

To narrow down the issue could you please provide this file (as attachement, no copy paste of the content as some chars may get lost)? :

/sys/kernel/debug/wakeup_sources
[BetterBatteryStats] chamonix:
I think you are missing a point here: the permission is granted so why to you try to install the system app?
[BetterBatteryStats] Danilo Pantelić:
Ok, so this is ok?

After flashing BetterBatteryStats_SystemApp_xdaedition_CWM_1.3.0.0.zip again same old dialog about root & permissions ...
[BetterBatteryStats] elandroido:
Flashing system app is just wrong with latest RC3 afaik.
[BetterBatteryStats] km8j:
I cant get alarms or partial wakelocks after perms. Only kernel wakelocks
[BetterBatteryStats] GeNiO790:
Hello, here is the link:

https://www.dropbox.com/s/g32t516ubjduzud/wakeup_sources?dl=0

then I have to wait for the next version of BBS to see the statistics of kernel Wakelock?

Thank you so much!
[BetterBatteryStats] sm4tik:
Oh, sry didn't realize you needed a link :confused:
[BetterBatteryStats] chamonix:
Please post a dumpfile and logcat
[BetterBatteryStats] CM_boneZ:
Hi.

I am currently using the latest BBS XDA edition on a CM 12.1 GApps-free. I am now having serious awake times (100% over 9 hours). And when I checked the stats, I somewhat found out that the things that are causing those huge awake times were the SyncManagerHandleSyncAlarm and GpsLocationProvider. As far as I know, I've experienced this problem before and all I had to do is to reboot my device and the wakelock goes out. I cannot determine what app is causing those wakelocks that's why I posted here. Can you help me find other ways to make that wakelock go away? Preferably not rebooting the device. Thanks!

Here is the dumpfile and some screenshots.

EDIT: I think Cyanogenmod's widget cLock causes that awake times. I tried to disable and enable it. Cleared data and cache of that app. Nothing happens.
[BetterBatteryStats] htb2050:
That guy kernel developer Franco has an app called cputimes on play store that reads both big and little cores separately. You may want to check his github or contact him for the implementation.
[BetterBatteryStats] mamv:
I'm having exactly the same issue on stock Nexus 6p.