yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] sharmilsk:
Screen on & Screen Dimmed

Great app, but one doubt

Total= 'Deep Sleep' + 'Awake'

'Awake' = 'Screen on' + 'Awake with 'Screen off'

What is this 'Screen dark' mode then?- Its just 'Awake with Screen off' right?

Then why they are given as different entities? But from what stats the app shows, Screen on= 'Screen Dark' + 'Screen Dim', So why isn't there a Screen Bright or screen properly on entity??

Just asking out of curiosity? I know I'm wrong.. :p
[BetterBatteryStats] Abe_Frohman:
Can anyone tell what kept my G3 awake in this case?

Thanks!
[BetterBatteryStats] godlesplay:
can anyone help me with this wakelock? I don't have google+ installed... logs in attachment
[BetterBatteryStats] Nafiganado:
Done. Looking forward to hear what's wrong. Btw, I have removed Facebook and Facebook Messenger, so this time battery drain was a little less, but anyway much: 12% per night...

Dump

dmesg

logcat
[BetterBatteryStats] Androidious:
Nothing better than a morning "dump" [emoji6]
[BetterBatteryStats] Purerawenergy:
Okay, so the moment I woke up (and after fully charging my phone without using it) I uploaded the dump to drop box but couldn't post it here until now. Also, normally I 'manually' sync my phone, but left it on for testing purposes, was that correct? And thanks again for your help.

https://www.dropbox.com/s/mmu390hp3egej84/BetterBatteryStats-2015-07-09_084221694.txt?dl=0

Sent from the slippery slope.
[BetterBatteryStats] v7:
[MENTION=5956955]Purerawenergy[/MENTION] You can limit android.appwidget.action.APPWIDGET_UPDATE to 3600 sec in Amplify if you don't depend too much on widget updates.Limiting this will let the widgets update every 1 hour :)

Everything else looks fine :)

Tapped from my furious dogo ;)
[BetterBatteryStats] Purerawenergy:
Sorry for posting on both threads, thought I posted on the wrong one initially (this one) because I didn't see your name at first glance, so reposted on that one. Anyway, does it look like my data signal is causing battery drain due to poor reception? Considering test flashing some different radio/modems to see if it improves. Appreciate your help.

Sent from the slippery slope.
[BetterBatteryStats] v7:
[MENTION=5956955]Purerawenergy[/MENTION] I don't see any abnormal drain from the dump.It may cause drain while you use Mobile data.You could compare the SOT on a better signal with the one you have atm(poor/weak).Signal doesn't seem to drain while idle.

Tapped from my furious dogo ;)
[BetterBatteryStats] Purerawenergy:
Okay, thanks for your time.

Sent from the slippery slope.
[BetterBatteryStats] Nafiganado:
Excuse me for reminding about my problem... Could you suggest something??

Most of time I don't use smartphone today, but battery reduced from 100% to 53% since the morning. It's madness.
[BetterBatteryStats] Perseus:
Be happy to take a look. Can you please post your Text dump only in pastebin or something ? I can't access dropbox due to firewall issues. Or attach here if you can't.
[BetterBatteryStats] Nafiganado:
Hi, Perseus,

thanks for attention to my problem!

Here are they:

dump

dmesg

logcat
[BetterBatteryStats] Perseus:
Thank you. From what I see, you lost at 1.5% which seems like a decent percent. If you still want to lower it the read on.

Earlier in this thread, you need to search for a set of Receiver changes for Google Play Services app using System Tuner by [MENTION=4355376]Karpfenhai[/MENTION]. You need to apply those and then reboot. See if you can freeze/disable Google Now AKA Velvet APK.
[BetterBatteryStats] Nafiganado:
It would be ok, if it was lost in active mode. But I've lost 13% per night, when device was sleeping :(

For me, 5% at most is acceptable, if more - something is definitely wrong and should be fixed.

Today, when total sleep time of device during a working day was about 85% (it was just laying on my office table), I have lost about 45% during this 15% of device awaken period (mostly when something did not allow it to sleep)! I almost did not use my smartphone...

On my last kitkat device I used wakelock terminator to eliminate checkin, nlp, rilj for phone and some other things. I've managed to reduce battery drain to so few as ~0.3% per hour (now it's 1.5%) during night. On more early device it was enough just to uninstall NetworkLocation service and some system stuff that I don't use.

Ok, i will try to disable this stuff via System Tuner. In fact, I already started to disable those things today, but hoped that someone will see dumps and point out: just look here! THIS is a reason of your main problems! Just remove (freeze) it and voila.

Btw, why memaccess is so active (kernel wakelock)?
[BetterBatteryStats] G00fY2:
Hi chamonix, first of all thank you for this great app! Been using it for long time.

Im running Android 5.1 stock Play Edition on my HTC One M7. Battery is fine, but under processes there is always the logd Uid: 0 process on top using by far the most cpu time.

======================================================
Processes (requires root / system app on Android 4.4+)
======================================================
logd (0): Uid: 0 Sys: 26 s Us: 8 m 6 s Starts: 0
system (Android-System): Uid: 1000 Sys: 1 m 36 s Us: 3 m 17 s Starts: 0
*wakelock* (com.spotify.music.Spotify): Uid: 10082 Sys: 33 s Us: 3 m 24 s Starts: 0
mediaserver (1013): Uid: 1013 Sys: 16 s Us: 2 m 23 s Starts: 0
com.whatsapp (com.whatsapp.WhatsApp): Uid: 10083 Sys: 23 s Us: 1 m 47 s Starts: 3
com.android.phone (Telefon): Uid: 1001 Sys: 36 s Us: 1 m 13 s Starts: 0
surfaceflinger (Android-System): Uid: 1000 Sys: 60 s Us: 46 s Starts: 0
android.process.acore (Android Core Apps): Uid: 10010 Sys: 13 s Us: 1 m 29 s Starts: 2
com.spotify.music.service (com.spotify.music.Spotify): Uid: 10082 Sys: 3 s Us: 1 m 1 s Starts: 1
mpdecision (0): Uid: 0 Sys: 54 s Us: 6 s Starts: 0

In the HTC subforum they said uid 0 is root. But why would root consume that much cpu time? Do you or anyone else have an idea what's behind this process?

Btw. what does "Sys" "Us" and "Starts" stand for?
[BetterBatteryStats] duniatri:
Hi guys.

Could you help me to read my bbs log?

I'm using xiaomi mi4i with more than 3000mAh battery. But it feels almost the same with my old S3 in term of battery life.

I'm using official rom from xiaomi, lollipop 5.02, xiaomi 6.1.1.

Now I'm experiencing more than 4.5%/hour. I even experienced before sleep, the battery was around 30%. But in the morning, my phone was completely off and no battery at all.

So please help me, guys.

Thanks

https://drive.google.com/file/d/0B7u_C6gpkYpTZ1VZdDIwQVdtdkU/edit?usp=docslist_api
[BetterBatteryStats] Nafiganado:
Well, so, I took another look at the guide to disable a lot of processes of Google by Karpfenhai.

And saying honestly, I would not risk to do this. It's so verbose. Besides, screenshots seems not to be from Lollipop, because i compare to mine System Tuner list of events and it looks different. Maybe something has been changed by Google since then, so no guarantee it would work in the same way as expected. Maybe more processes should be disabled and so on.

All in all, it's hard to dare to do MANY changes at once, because it could affect the system somehow and will be too complex to find out later on, what's actually going on.

The ideal approach would be to analyze dump (unfortunately, I'm not so good in reading it), reveal 1-3 MAIN battery eater things and eliminate them with a couple of actions. As I already said, on one of the smartphones I have uninstalled NetworkLocation service to prevent phone from scanning cells all the time. It allowed me to almost completely resolve the issue with big battery consuming. On another one, I used Xposed module to filter out NLP*, CheckIn, RILJ wakelock stuff and voila.

Sorry, guys, but i think you would agree with me, that tweaking several dozens of parameters is not a good way to solve battery draining problem: it's more like experiment for researchers, who want to play with this.
[BetterBatteryStats] nicesoni_ash:
Hi all,

I am getting a strange issue with my Google Play services and GCM_Reconnect wakelock.

My wifi icon keeps changing from white to orange within seconds and this creates lots of GCM_Reconnect wakelocks and eats my battery too much.

I tried to go deeper to see what exactly it's happening but other than watching few connecting and disconnected errors I couldn't find any relative helpful information to sort it out and searching didn't provide me any info about this specific issue too. I tried google as well as xda too.

If I disable my wifi, my phone is fine and these wakelocks doesn't occur anymore but as soon as I activate my wifi, these wakelocks come back and wifi icons start going from white to orange and white and then orange thus showing how aggressively my phone connects and disconnects with google servers.

I couldn't find a reason to this or how to sort it out, any help is greatly appreciated.

PS. I have removed every kind of restriction through Privacy guard but no positive result.

Thank you.
[BetterBatteryStats] chamonix:
The screen states sum up as you stated. The states depend on your settings and how android interprets them. Eg I have dimmed, dark, medium
[BetterBatteryStats] chamonix:
logd is the OS logging daemon. It runs as root and is started as boot, it's cpu accounts for the daemon itself but also for processes started in user mode, thus the "sys"tem and" us"er time accounted for.

I wouldn't worry too much about cpu consumption though, that's not what make out the battery consumption on android
[BetterBatteryStats] droidbits:
Hi and thanks again [MENTION=1330150]chamonix[/MENTION] for such great app.

I understand there are lots of requests like mine but if someone with experience on this matter could share some light it will be greatly appreciated.

I am currently using the BBS Google Store latest version and the attached logs and pictures reflect my LG G3 after an over 6 hour unused state (overnight). I am on BlissPop ROM and 777 Kernel v7.

Basically I only have 2 questions please:

1. I have noticed also other times (on other stats) that the apps WhatsApp (the WhatsApp app itself and the WhatsApp Vibrator) and Greenify have quite a large percentage of wakelocks (14%) or higher. This continues to be an issue to me. How can I make this better?

2. These stats or logs were taken overnight without using the phone as I have mentioned. We can see a battery drainage of 0.9% per hour which is great BUT throughout the day and with usage it can get as high as 10% per hour or more just with simple WhatsApp usage and some other things! It just skyrockets! Not long ago I remember my battery would last over 24/36 hours and now it does not get me through the day and

I have much less apps installed

!!! How can I make this better?

Could someone please look at my logs and tell me what is wrong and what could I do please?

Thanks a lot for the support and a good continuation of a great thread and app which I happily support.
[BetterBatteryStats] dejavu619:
I just installed this (as a system app) a couple of days back on PF CM ROM on my Moto G 2nd gen but today when I tried opening it, the app again had the "Install as a system app" button. Do I have to keep doing this regularly? Why won't the app just stay installed?
[BetterBatteryStats] mdamaged:
Please read the OP on how to provide a proper BBS dump.
[BetterBatteryStats] nicesoni_ash:
I didnt ask where my battery power is loosing, I am aware about that. My question was addressed to a specific issue. However if you meant to say that the dump is going to be helpful to find the issue for that, I will surely provide a dump soon. Thanks.

Sent from my "GT-I9300/1+1" powered by Carbon Rom & Boeffla/ak Kernel

Fueled by 7000mAh ZeroLemon Battery
[BetterBatteryStats] mdamaged:
Newsflash. This thread is mostly about "battery loosing". Frankly, it sounds like you have ****ty wifi, or have chatty devices on wifi, or live in a polluted wifi area, either way, it's nothing to do with BBS, a dump may reveal an app at fault, or a kernel-level issue, or it may not, but the screenshots you gave are useless.
[BetterBatteryStats] nicesoni_ash:
Well as you said "mostly", I can assume now that my issue can be posted here. This issue recently started to happen, earlier this didn't happen on the sale setup. I didn't say it was cause of BBS, I posted here cause I thought issue can be traced through GCM_Reconnect wakelocks.

Sent from my "GT-I9300/1+1" powered by Carbon Rom & Boeffla/ak Kernel

Fueled by 7000mAh ZeroLemon Battery
[BetterBatteryStats] mdamaged:
Please read this:

http://xdaforums.com/showpost.php?p=61279606&postcount=28768

...now if you provide a proper dump per the OP and there is battery drain that is abnormal, then there might be something to address. But if you're just worried about wakelocks and there's not abnormal battery drain, you are obsessing and wasting people's time, including your own.
[BetterBatteryStats] nicesoni_ash:
I will provide a proper dump soon. Thanks.
[BetterBatteryStats] bigknowz:
M Preview

I get this

https://goo.gl/photos/KnPBQxHDRrQJXfxV7
[BetterBatteryStats] chamonix:
can you please be a little more specific? what build of M? Is your device rooted?
[BetterBatteryStats] bigknowz:
Sorry. M Preview 2 rooted. Same thing with 2 different kernels. Using beta 5 from the thread and have the paid play store companion app.
[BetterBatteryStats] chamonix:
The gplay version will definitely not work, please try the current beta. I have tested with build 1, will download build 2 and test during the coming week
[BetterBatteryStats] madboymatt:
I have tried every possible way of installing latest beta, and I cannot seem to find a way that will show me a reliable representation of kernel wakelocks. Partials show fine, but it will not display kernel. Any ideas?
[BetterBatteryStats] Nafiganado:
Not hoping for dump "de-crypting" anymore, i've just installed Xposed Framework and Amplify plugin and "limited" some wakelocks, alarms and services... Let's see how it would behave.
[BetterBatteryStats] Wired Life:
Can anyone explain what is "main" under kernel wakelock?

Has nearly the same (high) time as "PowerManagerService.Display"

Cm12.1 nightly s4 9505
[BetterBatteryStats] nocturnoz:
I don't get any Alarms in BBS. But nevertheless I have a quiet high drain..

BBS has got every permission in xprivacy, appops and PowerNap.

Amplify registers a high SCREEN_FROZEN count but I can't explain why.
[BetterBatteryStats] Miche1asso:
Hi Chamonix,

I downloaded the v2.0 b5. Great job revamping the UI! Just a couple of small things, though:

- Could you have all stats sorted by usage? The "process" stas are mixed. Unless you're sorting those by last process running, at that point a sorting option would help

- I like the new widget, and it looks good on 2x2. Since it is resizable I tried the 3x1 which would fit more with my taste. But it wastes 1/3 of the space on the right for the refresh icon. Which is hard to touch anyway. Any chance to remove the icon having it refreshing just touching the stats as in the legacy widget?

Apart from that very good job again!
[BetterBatteryStats] chamonix:
Thanks for the feedback. Could you please post a few screenshots as well as your screen density / resolution as well as the launcher you are using?
[BetterBatteryStats] gr4v1ty:
Hello.

I usually don't post here because I get my problem solved by myself. But for this one I have no idea what could cause the drain to be that big? The only thing I suspect is that Quick Search (Google bar) from the Nova Launcher... Could I be right?

View attachment BetterBatteryStats-2015-07-14_095046816.txt
[BetterBatteryStats] BigLisy:
Since when I upgraded my connection to fiber some days ago, I have 3 times GCM_RECONNECT compared to MCS_HEARTBEAT.

Is it my connection dropping a lot? What can I do about it? I rarely ever had a reconnect, was usually 100 heartbeats vs 1 reconnect. Now it's 90 reconnects and 30 heartbeats.
[BetterBatteryStats] Lither:
I've installed the latest version and opened it to install as a system app however each time I open the app, I get the screen that tells me to install as system app but when I press the back button, it goes into the stats?
[BetterBatteryStats] v7:
Reinstall the app, move the apk to system/priv-app,set the permissions to 644 and Reboot.

Tapped from my furious dogo ;)
[BetterBatteryStats] Miche1asso:
Sure! Here my phone details with a couple of screenshots:

Xperia M2

KitKat 4.4.4

Stock Xperia Home launcher

Resolution: 540x960

View attachment 3403898 View attachment 3403899 View attachment 3403916

You can see how the process stats are unsorted and about 1/4 of the space empty on the widget. Also making the circle hard to read.

I've also attached a screenshot after the phone just rebooted (and charging). The "0 s" has not circle and in other cases it became huge, reading like a big "U s". Then it stays big for some time, maybe until it reaches 1 minute.
[BetterBatteryStats] Joy Bangla:
i cant seem to copy the apk to my priv app folder with root explorer with mount rw. any help? using nexus 5 stock 5.1.1
[BetterBatteryStats] v7:
What is the error?

Tapped from my furious dogo ;)
[BetterBatteryStats] Joy Bangla:
it simply says operation failed. tried with other file managers. same thing happens. Now i cant evn install it to system from the companion app
[BetterBatteryStats] mdamaged:
setenforce 0, then try the copy.
[BetterBatteryStats] Joy Bangla:
no it is in enforcing mode

edit : still no luck after changing to permissive
[BetterBatteryStats] mdamaged:
Set it so it isn't.
[BetterBatteryStats] Joy Bangla:
i did change to permissive, cnt copy or install. wat i dnt get is 1st time i was able to install to priv-app from the companion app. wasnt working so i did a reinstall as suggested by some posts. now cant even install to system from the companion app. any thoughts?
[BetterBatteryStats] eddloschi:
I don't know what is causing it but you can flash the zip from recovery
[BetterBatteryStats] Joy Bangla:
sad

i did flash the zip and the files were copied. but still the companion app shows up. i have set SElinux to permissive. set permissions to all. am i missing smthing here?
[BetterBatteryStats] chamonix:
#712
[BetterBatteryStats] Joy Bangla:
for me it says parsing error. ??
[BetterBatteryStats] tangcla:
I've never understood why KWL is higher than total measurement 'since' time. Why is that?
[BetterBatteryStats] eddloschi:
What you flashed is just the companion app. Now just install the 2.1 b5 apk
[BetterBatteryStats] droidbits:
[MENTION=1330150]chamonix[/MENTION]

I am sorry but I must express something which I think it is not so correct.

I support many Developers and their developments. I think it is the minimum one can do when likes and uses an app very often and recognizes the time and effort it took the Developer to bring it to us. There are many who do not think like me.

When I feel these conditions are met, I buy the app simply to support the Developer and to also have support

case needed

. Also if the Developer has further apps I also tend to support them. There has been cases where I have bought an app to support development and I truly didn't need it. I have not an app in my phone which has not been bought and all are Pro or Donate.

In my opinion to buy an app and to then request support is legitimate. To request support

2 times

on this thread

over the last 3 months

(which is not a lot and is acceptable considering the complexity of this app) and both times the support request is not answered or overlooked both times, then I start to wonder about various things.

I am sure a Developers' life is not only to give support, even to those who bought the app, but when on this thread ones request is not answered 2 times (one time overlooked for weeks and I had to PM) and all the others are answered on a

daily basis

by the Developer, then...

This is what I wanted to say and shall not be considered rude. It is my opinion and it is valid. I thank you for your time reading this. I will no longer be requesting support in future on this thread or via another way for BBS.

Best regards.
[BetterBatteryStats] Neuz:
Sorry guys, but I'm going crazyc..

How can I find this wakelock?

lli_pm_wlock

It eat my battery but no info on Google search.

Really please help!
[BetterBatteryStats] mdamaged:
You got help, from me in fact, your drain was just fine. You are obsessing on wakelocks, wakelocks are not bad in of themselves, I think the reason people ignore you (at least why I have, after I answered you) is because you do not have a real issue, it is only a perceived issue because you fail to understand the necessity of the wakelocks you are experiencing. Expecting someone to help you with an issue that is nonexistent, then get a huff when people do not want to, repeat themselves, or waste their time, is rather bewildering. So yeah, good luck with your quest for a wakelockless device.

Read post #1 on how to provide a proper BBS dump.
[BetterBatteryStats] Neuz:
Ops, sorry...

I can't find option to save dump..

I'm really noob :(

Inviato dal mio SM-G920F utilizzando Tapatalk
[BetterBatteryStats] mdamaged:
[Edit by chamonix: move on please]

Within the app is a share button, select text dumpfile, share to Drive and share link, or click save, it will be in your sdcards root, then you can attach iti to your post, or paste it to pastebin and share the link.
[BetterBatteryStats] chamonix:
The sum can be bigger as they can overlap.
[BetterBatteryStats] tangcla:
Would that not make it a meaningless statistic if it were more than the monitored time?
[BetterBatteryStats] chamonix:
You have laid down your arguments and how you feel and your post earns to be replied to. After this reply the topic is over and will be moderated/deleted as off topic.

I can understand that you feel that by paying for an app you have also earned support from the dev. In fact I spend quite some time making sure that mails are answered but you have to chose how to invest your time.

That's why I think that a community like xda is a powerful model compared to other that may come to mind:

- mail: mails are a 1:1 communication and there is no way to share existing knowledge: what is a FAQ to me because it has been asked 20 times is news to the users having the problem

- google play rating: those are not - I repeat, those are not - the place to report bugs or ask for feedback.

- a forum / community like XDA: when I started this thread I didn't know that I would live for so long but it has proven to be the ideal model to me:

- it offers means for 1:n communication (broadcast), FAQ, search, etc.

- I am proud and grateful that bbs has a core team of engaged helpers and supporting users patiently supporting bbs

- the same helpers and testers as well as many users test beta versions and release candidates and give me valuable feedback to improve the quality of bbs

Now as you have noticed I will not answer to every post, even to the ones mentioning me. Either I see that another user has already answered, or the question / info is incomplete, or I may have overlooked it, or more simply have decided not to answer.

In my opinion BBS provides a good service and this service is worth the price of a coffee. You expectation to having lifetime support included in that price on top of the service provided by the features is in my eyes exagerated.

I was not offended by your post and I hope you are not by my answer.
[BetterBatteryStats] chamonix:
I would see why that. Android is a multi-tasking multi threaded OS so things happen in parallel. The benefit of the partial of kernel wakelocks is to know the total time, number of occurences and cause. The time correlation may change, the times and counts may change but they will still show the symptoms and give you valuable hints at the cause.
[BetterBatteryStats] chamonix:
It is unknown to me but it seems to be a kernel wakelock, at least that's what google tells me. Now if the sources of the kernel that you are running were open source we could have a closer look at the code repo.
[BetterBatteryStats] Joy Bangla:
which apk am i supposed to move to priv-app?? the one i downloaded ?
[BetterBatteryStats] v7:
Yes.Move it to system/priv-app, fix permissions and Reboot.

Tapped from my furious dogo ;)