yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] amjath:
Hope this helps.

https://docs.google.com/file/d/0B5X_w2X1foo5RVNBNDQ3MU5qR2M/edit?usp=docslist_api
[BetterBatteryStats] FernBch:
I could be way off, but I always thought it had something to do with Sammy's TW ROMs. I mean they are huge. My CM nandroid (after wiping cache/davlik) before backup is around 1.9GB (using CWM) - 2.1GB (using TWRP). My stock MDK nandroid was closer to 2.8-2.9 GB.
[BetterBatteryStats] mdamaged:
Thanks, much better. I'm still looking around it, but off the bat, it appears you have a signal issue, and something is keeping your screen active. Is this dump of the device just idling, i.e. you not using it at all? If not, please charge the phone to 90% or more, unplug it, do not use it at all, and let it sit for 3-4 hours, then repaste a new dump.

Anything concerning Samsung would not surprise me, it would explain why it took up a lot of room. But why would CM leave so much of it free, rather than leave maybe a couple hundred megs, I guess CM does not change the partition sizes? *shrug* ...still, seems wasteful, I'd rather have that gig for userland stuff myself.
[BetterBatteryStats] FernBch:
I could be wrong but I thought CyanogenMod tried that a couple months back (reclaim unused /system space for something else). It resulted in other issues so it was reverted.
[BetterBatteryStats] mdamaged:
Could be, you'd know more than I would about those specifics, I tend to stay away from CM.
[BetterBatteryStats] FernBch:
I would love to but it seems my only choices are CM, CM based, or TW.
[BetterBatteryStats] amjath:
No it was idle at times but not in deep sleep. Will put it in deep sleep when I was asleep and post it
[BetterBatteryStats] Lownita:
Installing as system app does not seem to work, although BBS tells me it has worked and I should reboot. After reboot, opening BBS from the launcher just opens the helper app, which offers me the option to even uninstall the system app. If I try to do this, it just says "failed". Checking "system/priv-app", there is no BBS app/folder whatsoever. So I think it just fails to install the app. There is more than enough space in /system, since I am on an AOSP rom with minimal gapps.

I found this in the chroma thread: http://xdaforums.com/google-nexus-5...015-layers-t3069105/post60296200#post60296200

Cheers!
[BetterBatteryStats] tangcla:
The command returns nothing, and the file is blank.

Could it be a Samsung Lollipop issue? I never had this with Kitkat.
[BetterBatteryStats] choosetobelieve:
Hi Guys,

I have around 132 alarms from android.net.connectivityservice.action.pkt_cnt_sample_interval_elapsed in the BBS. Do you know what is it? Thanks
[BetterBatteryStats] mdamaged:
Well going by the bbs dump you posted I'd say it was
[BetterBatteryStats] chamonix:
That is what it looks like. Could you please run 'which dumpsys' and 'ls -l' of the result?

eg:

which dumpsys

/system/bin/dumpsys

ls -l /system/bin/dumpsys

-rwxr-xr-x root shell 9444 2008-08-01 14:00 dumpsys
[BetterBatteryStats] tangcla:
C:\>adb shell
shell@trlte:/ $ su
su
wroot@trlte:/ # which dumpsys
which dumpsys
tmp-mksh: which: not found
127|root@trlte:/ #

Am I doing it wrong? :(
[BetterBatteryStats] choosetobelieve:
What do you mean?
[BetterBatteryStats] chamonix:
No, your phone just doesn't have busybox. Try ls - l the path I posted, the chances are low that the binary was put somewhere else
[BetterBatteryStats] tangcla:
H:\>adb shell
shell@trlte:/ $ which dumpsys
which dumpsys
/system/bin/dumpsys
shell@trlte:/ $ ls -la /system/bin/dumpsys
ls -la /system/bin/dumpsys
-rwxr-xr-x root shell 9440 2015-03-14 17:08 dumpsys
shell@trlte:/ $
[BetterBatteryStats] gaich:
[MENTION=1330150]chamonix[/MENTION]

confirming kernel wakelocks on LG G3:

Thank you!:)
[BetterBatteryStats] RASTAVIPER:
Had anyone luck finding a working version for devices with MTK 6752?

I have tried last 3 and none has correct reporting.

Unleashed by my M1 note
[BetterBatteryStats] chamonix:
I assume you are talking about a mediated device. As BBS has no dependency except the kernel and android userland it is probable that there are incompatibilities causing what you describe.

If you could provide a detailed report and are ready to invest some time I would be happy to look into it.
[BetterBatteryStats] RASTAVIPER:
Sure I am.

It's strange though that wakelock detector works right.

Unleashed by my M1 note
[BetterBatteryStats] chamonix:
Ok, let's start there. Are you using the api or (native) kernel access? Does bbs report using wakeup_sources (in the kernel wakelocks title). Is there a code repo where I can have a look at the kernel source?
[BetterBatteryStats] RASTAVIPER:
I have tried both methods.

Either I get a report of Since 5 days ago or 0s.

I haven't seen this wakeup sources somewhere.

Also my os is Meizu's Flyme Os based on 4.4.4

Unleashed by my M1 note
[BetterBatteryStats] gvsukids:
How can I fix a radio-interface wakelock?
[BetterBatteryStats] jshare:
very minor bug

Don't know if anyone's noticed this-

Just installed the last beta (B4) and the recent changelogs are empty, see attached
[BetterBatteryStats] shaggyskunk:
You can find the latest Changelogs here:

http://xdaforums.com/showthread.php?p=15869886

It's right at the top of the 2nd Post ?

Sent From my SM-N910W8 Running SlimLP 5.1.1 RRO Layers
[BetterBatteryStats] jshare:
Thanks, I know, my point is that they're not appearing in the appropriate place in the app, unlike earlier changelogs
[BetterBatteryStats] shaggyskunk:
Meh - Maybe Chamonix didn't have time before he pushed the beta update - I'm happy to get the update - and the Changelog is available - and yeah - It's not where it usually is - but.... ?

Sent From my SM-N910W8 Running SlimLP 5.1.1 RRO Layers
[BetterBatteryStats] edwinek:
Frozen/disabled Google Fit still appearing in BBS partial wakelocks

Hi,

I don't use Google Fit, so I froze it using Titanium Backup. That seems to have worked, in settings/apps it is also listed as disabled.

Strange thing is, according to BBS it's still causing wakelocks: 1% NlpWakeLock and 0% NlpCollectorWakeLock.

I tried using app-ops to disable location and in ROM Toolbox's Auto Start Manager I disabled everything for Google Fit.

In the process, I rebooted multiple times.

It's not listed as a running app in settings/apps or in Gemini App Manager. Using pgrep in the terminal also doesn't find it.

And still it's there in BBS (and Wakelock Detector too, by the way).

Does anyone have any idea what's happening here?

Device: Nexus 5 running stock 5.1.1, rooted. BBS 2.0.0.0.

Regards,

Edwin
[BetterBatteryStats] ignativss:
Hello everybody, I need your help. As you can see in the screenshots and the dumpfile in the attachments, my phone is 100% of time Awake, which means that "deep sleep state" is unknown to my device, with the logical battery drain.

The screenshots and the dumpfile were taken/generated after 7 hours of the phone sitting idle. What specially troubles me is the kernel wakelock "sec-battery-monitor", which is active 82% of the time.

Could anyone give advice so that my phone can enter deep sleep state? I've tried a couple of kernels and ROMS with no results.

My device is a SMN900 (Exynos Galaxy Note 3) running CM 12.1 Beta, Wifi, location and data were off during idle period.

P.S. Sorry for my english :p
[BetterBatteryStats] gvsukids:
Any help?

https://docs.google.com/file/d/0B7u_Do3wdBUTcmpuelVzdl83bUk/edit?usp=docslist_api
[BetterBatteryStats] slicetwo:
Can anyone explain why the Partial Wakelocks time might not actually add up properly?

My Kernel Wakelock says PMS.WL is 2hr30m, but when I go into the Partial Wakelocks section, it's obviously not even remotely close to that.
[BetterBatteryStats] Perseus:
FourSquare is going Ape for lack of stable network connection. So does Crapbook. Please change respective Refresh frequencies.
[BetterBatteryStats] closee91:
This is not normal. My WiFi and data connection and all that are draining my battery so fast. I have good signal, data is off though. But battery is going fast. Why :(
[BetterBatteryStats] shaggyskunk:
You need to have more than just over 2 minutes to get any useful information...

Sent From my SM-N910W8 Running SlimLP 5.1.1 RRO Layers
[BetterBatteryStats] closee91:
I just reflashed a ROM. It did that all day with 2 different ROMs. That's why it was only a short time, sorry
[BetterBatteryStats] jlmcr87:
Finally a good icon for the app.........:laugh::good:

Dear [MENTION=1330150]chamonix[/MENTION] I bought your app from google play and I have a problem. Now I have two different betterbatterysats, the old from the google play and the new from your beta apk....I am betatester from other apps and this is the first time this happens to me. Can you do something so the beta apk doesn´t be installed as a different app?

An one more thing: i have bought your app and i want it installed on my phone. But imagine i don´t want it to be monitoring my phone all the time. Can you add an ON/OFF button to enable or disable betterbatterystats monitoring? As I can see betterbatterystats is always active in settings->running apps and i don´t want this because i don´t need this app monitoring my phone for the rest of my life. Hope you understand what I mean.

It would be great if you add a button like the wifi to turn on/off the stats and stop it in the always running apps processes.

Thanks.
[BetterBatteryStats] Rinoceros:
I bought the app as well. Let it stay on the phone (next to the beta) to overcome the time of the return policy and uninnstalled the playstore version afterwards. Just to support Chamonix.

The app is not using much off your battery. Even better, to me it is one of the less battery using apps in my list. I have also GSAM Battery Monitor Pro installed. To me, there is no need for an ON/OFF button ;)
[BetterBatteryStats] RASTAVIPER:
So, how can I provide feedback?

Unleashed by my M1 note
[BetterBatteryStats] jlmcr87:
Yes but i don´t want it enabled all time and taking ram. I only want to run it when i suspect something is draining the battery.
[BetterBatteryStats] Rinoceros:
I think an ON/OFF switch is highly unwanted for this kind of software.

It is better to uninstall it and install it again if you have suspicious software draining your battery.
[BetterBatteryStats] jlmcr87:
No because I want it installed for when i need it. I don´t want to be installing and uninstalling, more when you have to uninstall first from system, etc...

I think it´s not difficult to implement this button...
[BetterBatteryStats] endymion2k5:
Im currently running BBS version 2.1.0.0_B4 on Android 5.1.1 (AICP, Galaxy S5 International) with the base gapps.

Im wondering why the consumed time per wakelock is exactly the same per wakelock, even tho the count does not match?

Thanks in advance
[BetterBatteryStats] PeQuEsan:
Thanks so much [MENTION=1330150]chamonix[/MENTION]! :)
[BetterBatteryStats] Dirk:
Just installed this from the Play Store. Upon reboot i had Google Play Services FC dialogues constantly. App wouldn't uninstall properly either so i had to restore from a nandroid backup.

This is on a rooted Nexus 5 with a stock based ROM. (SAOSP).
[BetterBatteryStats] chamonix:
The free xda edition and the google play version are two different packages and are separated by design.

There is not overhead in running (multiple installs) of BBS all the time as BBS does passive monitoring and does not cause any overhead as long as you don't use the watchdog.
[BetterBatteryStats] jlmcr87:
Please consider adding the on/off monitoring in future releases.
[BetterBatteryStats] chamonix:
again, bbs does not do any active monitoring so there is nothing to turn off from a computational perspective
[BetterBatteryStats] jlmcr87:
Ok understood but what i mean is that in the latest beta after exiting betterbatterystats, there is always a process running in settings->running apps. Any way to not have this process? As I have the play store betterbatterystats and the xda edition, I have to say the always running process only occurs with the beta version 2.1.0.0_B4 so can you take a look on that? Thanks [MENTION=1330150]chamonix[/MENTION].

Betterbatterystats xda edition 2.0.0.0 --> running in cache after closing the app and swipe it away.

Betterbatterystats xda edition 2.1.0.0_B4 --> running in running apps after closing the app and swipe it away. It says event watcher service (4.4 MB of ram).

Even activating watchdog or active monitoring in the 2.0.0.0 version I can see no process running in running apps, always on cache.
[BetterBatteryStats] aitvariux:
Guys,

I am fighting with this a year and I can't find an answer. And off course it's already pissed me off a lot of times. Changed kernels and ROMs with full wipe, modems, rerooted, checked zygote and everything what the others suggested to do but the phone sometimes stays on300mhz and not going to deep sleep till I reboot it. Only the logcat left but I am stuck on that.I wrote here several times, but things are going very slow and no answers at all. So if you are a guy, who can read a logcat and find a real problem with a real solution I am ready to donate. I respect your time spending on that.

https://drive.google.com/folder/d/0B9deUgT65pOvTmkxRFBEdElFNEU/edit
[BetterBatteryStats] mdamaged:
Are you using the stock charger? If so, is it outputting to spec? Also, I see no data connection for almost as long as it's awake, is there a reason why there's no data connection?
[BetterBatteryStats] aitvariux:
I am using stock charger but different cable. I don't think that this is an issue because draining starts not after I charge the battery. Its just starts from nowhere. The signal strength mist be good too. Is that could cause 300mhz with no deep sleep?
[BetterBatteryStats] mdamaged:
Is the charger outputting to spec? You have to make sure, it could also be a driver bug/hardware defect. As for signal, BBS is showing as none. There's some issue there, it certainly could cause an issue if the kernel is having a fit with something wrt the radio/driver. The problem is, it's a Samsung, and they are rather chatty in the logs and other areas. That's all I got, it's power or signal, at the kernel level, driver or hardware defect, IMO.
[BetterBatteryStats] aitvariux:
On charger output is 2.0A, but when I am charging it shows 1mA.
[BetterBatteryStats] d8389:
su

root@trlte:/ # dumpsys

---- no results

^D

shell@jactivelte:/ dumpsys

--- Have results, seems to be for all services.

Device

Samsung GT-i9295 5.0.1

uname -a

Linux localhost 3.4.0-4556221 #1 SMP PREEMPT Thu Apr 16 16:38:11 KST 2015 armv7l GNU/Linux

Logcat (running as root)

08:19:38.671 Debug Netd 296 getNetworkForDns: using netid 502 for uid 10012
08:19:38.671 Debug EnterpriseController 296 mIsMarkChainAdded is 0 mIsBlockChainAdded is 0 netId is 0
08:19:38.671 Info System.out 2357 (HTTPLog)-Static: isSBSettingEnabled false
08:19:37.362 Debug SecurityLogAgent 6938 SeDenialReceiver : File path = null
08:19:37.362 Debug SecurityLogAgent 6938 SeDenialReceiver : Intent Received : samsung.intent.action.knox.DENIAL_NOTIFICATION
08:19:37.361 Debug SecurityLogAgent:SEDenialService 965 audit.ondenial set to 0 after sending samsung.intent.action.knox.DENIAL_NOTIFICATION intent
08:19:37.361 Warning ContextImpl 965 Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:-1 com.android.server.SEDenialService$AuditFileObserver.onEvent:-1 android.os.FileObserver$ObserverThread.onEvent:-1 android.os.FileObserver$ObserverThread.observe:-2 android.os.FileObserver$ObserverThread.run:-1
08:19:37.361 Debug SecurityLogAgent:SEDenialService 965 Got Modify Event and sending Denial Intent foraudit.log
08:19:37.361 Error auditd 2800 In denial and Property audit_ondenial is set to 1
08:19:37.247 Error ServiceManager 273 list_service() uid=0 - PERMISSION DENIED
08:19:37.247 Error ServiceManager 273 SELinux: getpidcon(pid=11798) failed to retrieve pid context.

Solution:

Try running dumpsys with BBS UID if no results as root.
[BetterBatteryStats] tangcla:
Thanks! That worked great.
[MENTION=1330150]chamonix[/MENTION] - dumpsys.txt as attached.

H:\>adb shell
shell@trlte:/ $ dumpsys > /sdcard/dumpsys.txt
dumpsys > /sdcard/dumpsys.txt
Can't find service: emergency_service
[BetterBatteryStats] tangcla:
Here's a 'dumpsys alarm' run non-root.
[BetterBatteryStats] Rjrocks22:
Hi,

I'm getting wakelocks for PowerManagerService.Display, bam_dmux_wakelock, PowerManagerService.Wakelocks

My phone usage is moderate, but I'm not able to find out the culprit process or apps which are using these wakelocks.

Please help!

Thanks in advance.

Please find the below attachement BBS dump.

View attachment BetterBatteryStats-2015-05-28_122601846.txt
[BetterBatteryStats] vermaekansh:
you might want to install servicely from franco. where you can disable single service which is causing the issue.
[BetterBatteryStats] d8389:
I've patched BBS version, that running dumpsys in NonRootShell and gives me better results, bu I can't share it without op's permission + installation of patched system apk's a bit tricky. Hope, Op will release SELinux compatible build soon.
[BetterBatteryStats] d_Schizzo:
No Kernel wakelocks on LG G2 Lollipop 5.0.2

Hi [MENTION=1330150]chamonix[/MENTION],

i installed BBS on my LG G2 with Lollipop 5.0.2. But im not able to see any Kernel-wakelocks except "PowerManagerService.Display".

Is there any Special trick? BBS is installed as System-App and SELinux is permissive.

Thanks you in Advance for your help!

PS: On Kitkat all was fine... ;)
[BetterBatteryStats] wihushae:
Hello guys!

I've massive wakeups by android os, and installed betterbattery to find the root of all evil ;)

I've attached a screenshot of bbs, can you tell me what process causes these wakelocks?

I've also found out that disabling mobile data stops the wakelocks, but that's not a real option..

Looking forward for your reply!
[BetterBatteryStats] mdamaged:
Please read the 1st post on how to get help, mainly by posting a proper bbs dump.

Looking forward for an attached BBS dump!
[BetterBatteryStats] chamonix:
As I already wrote as a reply to your PM I need to understand if there is something to fix and what it is prior to make any change (if it works don't fix it). Please provide a pull request and I'd be more that happy to look into it. To me it is not clear at all why dumpsys should suddenly start running without root but more than that I need to understand why running a command with root has suddenly become a problem. Obviously there is something specific to the devices that you have been testing as I am not able to reproduce on any of my stock android devices. From the logs I have received on that issue some fact point to samsung and that rings a few bells related to (proprietary) knox and potential issues related to rooting devices with knox.

Please feel free to comment in case I am missing your point
[BetterBatteryStats] chamonix:
Ok so what have we learned?

1. on your phone dumpsys seems to not be delivering any results when run from root (from adb shell)

2. on your phone dumpsys runs fine in an adb shell when not running as root

3. your phone is a samsung right? does it have knox and what su utility are you using? it that utility known to run with knox?

Can you confirm that dumpsys runs when called from a sheel started on the phone (not from adb)?
[BetterBatteryStats] chamonix:
Can you please provide more details?:

- a logcat with debug enabled

- a dumpfile

- a copy of "/sys/kernel/debug/wakeup_sources" (as attachement)

It is known that LG has made changes to the format of the kernel wakeup_sources format on G3 devices without publishing the sources. Possibly the same applies to your device so with that info I could potentially implement a workaround.

Are there any other G2 users suffering from the same problem / not having the problem that could provide the same info for me to make sure that I fix the problem only where is really occurs?
[BetterBatteryStats] tangcla:
I ran one from Terminal Emulator and the file is significantly smaller - see attached.

This is the output from the terminal window.

u0_a209@trlte:/ $ dumpsys > /sdcard/dumpsys.txt
Error dumping service info: (Unknown error -1) batteryproperties
Can't find service: emergency_service
u0_a209@trlte:/ $
[BetterBatteryStats] tangcla:
It works from terminal emulator. Samsung, knox disabled.
[BetterBatteryStats] vareta:
Same problem.

I have a problem with BetterBatteryStats_xdaedition_2.0.0.0. In cm12.1. I install and press button to install as a system app but when I restart phone the apply not start. I copy

BetterBatteryStats_xdaedition_2.0.0.0. File in system/priv-app and install acai but don't work.

Enviado desde mi GT-N8013 mediante Tapatalk
[BetterBatteryStats] d8389:
Sorry, I don't know what is pool request but I answered to PM.

I can also provide patched (using backsmali/smali tool) that works on my 5.0.1 as it worked on 4.x, but I think it not necessary. All my change - several calls to RootShell replaced with calls to NonRootShell.

Also I've provided part of logcat on previous pages, when running dumpsus as root, where selinux blocks the operation.
[BetterBatteryStats] chamonix:
call for help: obviously we have a new behavior that on certain devices commands that previously were not available to be world runnable (eg dumpsys) are suddenly world runnable but do not deliver any result when run as root.

I would prefer to understand the matter before making changes but my selinux knowledge is unsufficient.

Do we have a savvy kernel / selinux specialist reading the thread who would be ready to support the analysis of the situation?

Also I'd like to collect data about what devices have the mentioned behavior and kindly ask you to add details by copying the header of a dumpfile (brand, version, etc) as a comment to this issue #703 on github
[BetterBatteryStats] chamonix:
Working on it: https://github.com/asksven/BetterBatteryStats/issues/91
[BetterBatteryStats] chamonix:
Your phone is not sleeping at all and nothing from userland stands for that awake.

What kernel are you on? if custom, have you addressed this to the kernel thread?
[BetterBatteryStats] chamonix:
kernel wakelock deleted_wakelock is your problem. Have you talked to gokan about it? please provide a dump so we have a closer look
[BetterBatteryStats] chamonix:
I afraid I don't understand what you mean. Can you elaborate a bit?
[BetterBatteryStats] chamonix:
Deleting maps' data is known to help in cases where maps misbehaves and latitude is not logged on
[BetterBatteryStats] Hrithan2020:
Have already tried that and now reverted back to 5.8, from someone's claim of lower wakelocks with this version.

For me, most of my profiles are to

save battery, say disabling rotation, enabling gps and use wireless networks, disabling sync etc, hence going the extra mile just might help.

Can you elaborate how "my clock"is able to automatically enable tasker?
[BetterBatteryStats] intulsa:
I used to use alarm clock xtreme, but any alarm clock that would auto start an app. However, this could be carried further in the tasker thread don't you think? You can get better info on this from brandall or from pent on his google group for tasker. They are way better with tasker than I am.

I don't remember how much battery you've been losing but having it off at night does what? You're going to turn it back on. I want maximum battery at work and that's also where I need tasker. So 4-6% during my workday isn't bad. For me, using tasker to try to manipulate my networks to save battery cost me more battery than without it.
[BetterBatteryStats] jahkno:
Thanks for this great app.
[BetterBatteryStats] Hrithan2020:
You are right. Will check there.

BTW, here is my dump for previous night. Excluding the time when alarm started, it went from 100 to 98, with mobile data and auto sync off. Well try tomorrow with both enabled while the two applications are frozen. (maps and tasker)

http://db.tt/yRAJyEIH
[BetterBatteryStats] torchedlh:
Yea, i realize i should have provided the log/dump but it looks like it's too late now. I froze MyDataReporter and i think i fixed the FolderSync app issue. I'm gonna keep an eye on it and see thanks.

Okay, looks like i'm still having an issue.

Log file: http://dl.dropbox.com/u/7606677/BetterBatteryStats-2012-01-23_182118502.txt

Thanks in advance!