yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] ZDeuce2:
Probably screen brightness sensor for auto brightness...

Zdeuce2 now with golden rays of sunshine

---------- Post added at 11:45 AM ---------- Previous post was at 11:43 AM ----------

Have you installed as a system app? (I'm assuming you have, but just checking) if so, go into supersu and give it root permission

Zdeuce2 now with golden rays of sunshine
[BetterBatteryStats] BlackScout:
Battery problem solved after installing a newer CM Nightly. Thanks though.
[BetterBatteryStats] Plonkplonk:
Same here. I'm using a prepaid card, too, with data turned off usually - just as Ralf mentioned. I already noticed this in older versions. (In my case on a Fire Phone with CM11.)

Thomas
[BetterBatteryStats] doki81:
Hi Guys,

wanted to check as i am currently on nexus 6p with ubermallow rom + kylo kernel...i am unable to see other stat like 'since screen off' but only since boot..i have already install bbs as system app....how can i turn on screen off stat?
[BetterBatteryStats] TNSMANI:
Search the thread. This has already been clarified by the Dev and is not a bug.

---------- Post added at 04:54 PM ---------- Previous post was at 04:53 PM ----------
[BetterBatteryStats] arasky:
Per some user's suggestion I've installed amplify and since you all are battery experts I'd figure I'd ask here. If i reduce nlpwakelock to say 5 to 10 minutes, and another app requests location, will the app itself find the new location itself or will it base it off the "old" location from 5-10 minutes ago? Where I'm getting at is am I actually making it worse by making the query length longer by doing this?
[BetterBatteryStats] ralfbergs:
I don't understand how About > Status > SIM Status can then show the "Service Status" properly? Is this using an internal API that you can't use?
[BetterBatteryStats] drezz2:
hi, whats up

can someone tell me if the log is completely normal?

I installed my fit, and I see that has a% alarms, but not if it's causing battery drain

everything is normal?

thanks for the help
[BetterBatteryStats] GirishSharma:
Wipe delvik, system, data and cache.

Flashed Vivek Neel 0402 Temasek Unofficial Build 3.9

Lightning Kernel V32

Charged batter 100% at 11.30 PM

Left the phone for around 7 hrs and took a idle dump at 6.30 AM when batter was 99%

I am seeing 1% drain in every 3 minute of normal usages patter like 3G browsing, GMAIL app and bit use of WhatsApp; no Wifi, game nothing any high batter drain app installed. Kindly look into the attached dump and share your valuable opinion that why it is draining so fast (if it is really fast of 1% in every 3 minute). I am using Oneplus One device since last 10 months.
[BetterBatteryStats] davebugyi:
The log shiws the overnight 1% loss, so nothing valuable.

You get 1%/3min loss when using the phone normally?

Screen is on? Then that drain is normal.
[BetterBatteryStats] GirishSharma:
Thank you for your post.

>You get 1%/3min loss when using the phone normally?

Yes, simple usage like 3G browsing etc.

Yes, screen is on. 1% in every 3 minutes is normal? 100% consumption in just 5 Hrs.... i think its not good? Can you please tell me what is your battery consumption data?
[BetterBatteryStats] davebugyi:
3-6 hours SOT, and it depends on many things what I am doing.

One the OnePlus One, the longest SOT was around 5 hours for me, so that's why I am saying it is okay. It can be affected by network/WIFI coverage, screen brightness, CPU/GPU config and load, sound etc.
[BetterBatteryStats] TNSMANI:
Since you don't use WiFi but use 3G which is a battery hog, your consumption is really good. You should be getting SOT of around 4 to 5 hours which is pretty good on 3G. And your idle drain is also very low.

So enjoy and don't worry.
[BetterBatteryStats] GirishSharma:
Thanks to [MENTION=5656100]tnsmani[/MENTION] and [MENTION=2433487]davebugyi[/MENTION].
[BetterBatteryStats] Scartozzi:
does anyone know how to reduce IpReachabilityMonitor.wlan0 partial wakelock? it's my worst wakelock nexus 6p with purenexus and elementalx kernel
[BetterBatteryStats] Perseus:
From what I can tell, this is about Communication over your WiFi. Do you by chance have a Wireless printer or something on the same WiFi Network ? Can you check if this Wakelock appears when you are on Data not Wifi ? Also check to see if the wakelock returns if you are on some other WiFi network ?
[BetterBatteryStats] Scartozzi:
i don't have any printer but in the house several devices are connected to the same network...i will check if this happens with mobile data and with another wifi network as well...thanks
[BetterBatteryStats] Perseus:
Could be any device that's being Chatty on the wiFi. Usual suspects are the printers. But others could be as well. It might help if you could assign a static ip to this device on the problem WiFi.
[BetterBatteryStats] deepu458:
Hi Friends,

Im a Noobe in using this amazing BBS app. When i start looking at the log it says the my device was awake for 10 Minutes at screen off but where as my PWL(Partial WakeLocks) shows to a count of 6 Minutes. so the rest 4 minutes awake is due to alarms? or any other section in the log?

wht i want to know is where is the other 4 minutes awake is coming from so that i can limit them and achieve some good results.
[BetterBatteryStats] boombastick:
Can any experts help decipher this log? Newbie here. Phone was awake far too often. :/
[BetterBatteryStats] lucfig:
Better battery stats is reporting lots of apps with the same wakelock time in my device.

Do anyone have this behavior?

https://www.dropbox.com/s/z05z2wr53pc8llm/BetterBatteryStats-2016-02-23_145838019.txt?dl=0

Enviado de meu Nexus 6P usando Tapatalk
[BetterBatteryStats] RASTAVIPER:
I have a very specific request/future feature to ask.

I have noticed that with full battery, if the kernel "EINT wakelock" gets a percentage of more than 20% in the first hour of use, then my battery is going to have a huge drain in the next hours, because of some bug caused by this wakelock.

The usual solution is to have a restart and then consumption falls at normal levels.

So, is there anyway to have something like a warning/notification when a specific wakelock passes a specific percentage of use?
[BetterBatteryStats] alejandrob1:
BBS is showing me constant wakelocks caused by the proximity sensor, and It wasnt like this before. Sometimes the walelock last as long as the in call time, but sometimes is more or sometimes less, so I figure its not exactly a normal thing. Do you guys have any idea what could it be. I have a Lg G2, running lollipop, using it with a smart cover, in case it matters.
[BetterBatteryStats] Portgas D. Ace:
From your log:

Screen On (): 1 h 14 m 14 s 7.6%

Try to upload an idle dump, with which we can identify what is draining your battery during idle period ( = when you don't use your device and it enters deep sleep mode). Screen On is one of the major drainers and can only be minimized by minimum screen brightness and screen on times (which should not be our goal here).

Steps for an idle dump:

1. charge your device to 100%

2. Unplug your device and leave it idle for ~ 7 hours (best way to do so is over night while you sleep) with your preferred setup (WiFi on, GPS on,... whatever you are using normally). DO NOT USE YOUR DEVICE DURING THIS PERIOD!

3. Open BBS and save the log file before doing anything else.

This way we can minimize your battery drain by identifying the major drainers.

---------- Post added at 08:59 ---------- Previous post was at 08:58 ----------

Those *alarm* are shown on every ROM with Android Lollipop or higher. They do not cause any battery drain up to my understanding, so leave them as they are.
[BetterBatteryStats] Perseus:
As you said, the Proximity sensor isn't doing its job potentially during calls. Perhaps the Smart Cover is affecting or not. Try turning off the Proximity Sensor usage to turn off screen during call. See if that makes a difference.
[BetterBatteryStats] Soufiansky:
The hell is going on with that alarm ? I tried everything but it still drain my battery like crazy
[BetterBatteryStats] Portgas D. Ace:
What wakelock? The screenshot shows only the alarm section of BBS.
[BetterBatteryStats] Soufiansky:
My bad , i mean the google alarm. It is always keeping my phone awake
[BetterBatteryStats] Portgas D. Ace:
Click on this alarm, it will show you the exact names of alarms in a popup. Then post a screenshot of the popup. The currently shown Google Play alarms are all alarms of Google Play Services combined.

Beside this, Facebook and its Messenger are known battery drainer, too.
[BetterBatteryStats] Soufiansky:
Okay thank you , my phone is charging now i will post them when i get new stats , have a nice day :)
[BetterBatteryStats] Soufiansky:
[MENTION=5901790]orville87[/MENTION]
[BetterBatteryStats] Portgas D. Ace:
You can tame some of those alarms to reduce the drain by using Amplify. There is a great thread by Celestial Fury available here on XDA about minimizing idle drain. Search for it, I can't post a link to it right now.
[BetterBatteryStats] Soufiansky:
Will take a look , thanks.
[BetterBatteryStats] till22:
Hi guys, does this look normal? Could someone enlighten me as to what the Sys/Us time is? System / user, I imagine? I don't understand the stats though, because 2 hours of WhatsApp use may well be, but I did not use Cloudmagic for 1h20min.

EDIT: And what's up with this Bluetooth being on when the screen is turned on? I did not turn Bluetooth on at all today, in fact I didn't use it for at least a week. It also doesn't appear in the system battery graph:

EDIT2: Also attached a dump, if that helps.
[BetterBatteryStats] Perseus:
As to the Bluetooth, there's some app using Bluetooth to communicate with something. It seems to come on when screen is on. Do you have a fitness tracker paired ?

Now as to the Drain, were you watching Youtube or were doing significant Speed Testing ? If so, your log is under use. For the purpose of analysis, we need to see Idle Log for at least 5 hours. Preferred overnight. Can you turn off Samsung Doze ?
[BetterBatteryStats] till22:
Thank your for your reply. I don't have any app using Bluetooth and Bluetooth is actually turned off in the system settings. Could it be that an app is turning it on "invisibly"? I don't have any fitness tracker paired. Moreover, I think I never even used Bluetooth on this phone yet (I only have it since a month).

I watched very little YouTube today (maybe 4 minutes total over that charge), I did a little speedtesting (3 runs which I interrupted after measuring the download) when on mobile internet.

I will do the log tonight, good suggestion. Would you like me to mention you in the post so you can see the log?

Doze: I can't turn Samsung Doze off (what on earth is that? :victory:) because I'm on a Nexus 5X made by LG :)
[BetterBatteryStats] Xerosnow:
6% per hour idle drain

Hi all. From last couple of days the idle drain has increased. I tried different ROMs but faced the issue in all of them. So probably it is not a ROM related issue.

I was trying different modems before this issue started. Flashed a few versions on the same day.

Here is what I've tried hoping to fix this:

Go back to the original firmware

Try different ROMs [DU13,CM13, Darkobas]

Try latest CM13 nightly

Drain the battery completely and charge it for 4 hours straight without turning it on

No matter what I try, this idle drain is killing me. It's like I charged the phone to 100% before leaving for work and it is at 60% by lunch time and then dead before I reach home.

Attached is the BBS log. Could someone please take a look? Losing 30-40% charge overnight is really frustrating.
[BetterBatteryStats] Blade2014:
How old is your battery?
[BetterBatteryStats] Xerosnow:
Bought this opo on Aug of 2014.
[BetterBatteryStats] Blade2014:
If you face this problem in all Roms then it might be better to change the battery.
[BetterBatteryStats] Xerosnow:
It's not very old. I'll check if I can fix this somehow.

It started exactly when I started messing around with firmwares. I was doing 48hr backup with 5hr SOT with underclock and undervolting. No exposed or anything. Just normal usage.

If everything fails, new battery it is :crying: Thanks for helping:highfive:
[BetterBatteryStats] till22:
Ok, attached an idle dump file for you guys (and maybe [MENTION=3639717]Perseus[/MENTION]?) to look at.

This is with only wifi and sync turned on, also cleared all recents before "putting it to sleep". Location, Bluetooth etc. is turned off. I think this looks pretty good, considering that my signal at home is bad. This is with my phone upstairs in our bedroom where the signal is not terribly bad, but in the livingroom etc downstairs the signalbar is mainly nicely red.
[BetterBatteryStats] white_Shadoww:
The app works very good! Shows all the statistics and I have successfully figured out which apps use how much power and uninstalled or switched to other alternatives which suck the battery. Thanks for such a great app! However I had a question in my mind. My phone is rooted and the app is installed as a system app in priv-app folder. When I flashed the zip, the app got installed in system/priv-app folder. So I was thinking, just out of curiosity, why not create a folder named BetterBatteryStats in 'priv-app' and give it proper rwxr-xr-x permissions and move the app inside that folder instead of leaving in 'priv-app'? What would happen if I did so?
[BetterBatteryStats] smurfinaus:
"battery service info could not be accessed"

Wont work on a rooted LG G Pro 2 F350L10u 4.4.2 :/

However it works on a THL t11 android 4.2.2....
[BetterBatteryStats] Perseus:
Indeed this one is pretty good. But the AnyMotionDetectorWakelock worries me. Keep an eye on it as you use the phone. See if it blows up. Also your bad signal can cause its own issues in terms of constant search for a signal. Those appear as a partial wakelock called xxxx_hsic_xxx. Also won't hurt to review [GUIDE] Wakelocks Definition and how to prevent them. I know not your device. But those are Android Generic issues.
[BetterBatteryStats] TNSMANI:
Though it looks bad in the BBS screenshot, you only have a few wakelocks and some Tasker alarms. 0.4% per hour is a decent drain. Nothing to be alarmed about. Further, your mobile signal is atrocious. I am surprised that your battery drained so little given the state of the signal. I am sure if you take another test where the signal is good, the output would be 0.1 to 0.2% per hour.

Still if you want to tweak it further, I suggest you head over to

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

and use only Amplify and it's Settings. Don't go overboard. In your place, I would be satisfied with the current drain considering that it is with a bad signal and without any tweaks.

Regarding the Bluetooth, whatever setting you choose, it runs in the background. I suspect that it is due to disabling/restricting of location services in MM.
[BetterBatteryStats] till22:
Thanks for your reply. Yes, 0,4% with that drain is quite OK. I get about 0,1% in airplane mode, maybe a little less (I only tested this over 7-8 hours, sometimes it drains 0%, sometimes 1%).

I already went the Xposed/Amplify way once, but won't do it again. Didn't like it, too much tweaking for my liking.

I got a nasty WhatsApp GPS wakelock tonight though, does someone know what causes this? I woke up at around 4am and just checked the time quickly (press power button, check time, leave phone alone), from there on WhatsApp drained like hell (see screenshots). Reboot fixed this, but I really don't like rebooting inbetween a charge. Location is disabled and this was in airplane mode also. Forceclosing WhatsApp did not help (that's what I did when I woke up at 5:32am).
[BetterBatteryStats] JHoang:
Hey,

So I recently factory resetted my Galaxy S6 because my Gear VR wouldn't work properly with a custom rom. Ever since the reset my standby battery has been utter crap, I've never had this problem before. I have titanium backup freezing some bloat, greenify working on some apps, and amplify doing stuff too. It says I didn't have connection or data for a long time but I don't understand this. I've never had problems with connection at home over wifi and my signal is full bars. I had screenshots of my smart manager battery stats but I'm not sure where they went. It basically said that Android OS and Android System were using up the most of the battery. I believe Android OS had like 7 or 9 hours of keeping the phone awake and Android System was using the CPU for like 5 hours....Any ideas?

My BBS log for last night.
[BetterBatteryStats] hartec:
Very useful. Thanks for sharing!
[BetterBatteryStats] Xerosnow:
Okay everyone. I'm about to give up on this battery. Different roms, different kernels, factory reset didn't help. I'm still up for any tests would any of you suggest. Earlier I failed to mention that I had tried restoring some kernel profile via synapse. It was random profile but there were many positive comments. Guess something went wrong there and I ended up with messing something. [It was from xda. I will try finding it.]

Also, does sensors show up in the BBS? In mine, it is there with almost 70% of the time. I've attached the screenshot here. Please take a look. This happens even when auto brightness and Lux are off.

If there's anything else you think I should try, let me know. Your suggestions are much appreciated.
[BetterBatteryStats] Genericxx:
Post Alarms screenshot
[BetterBatteryStats] Xerosnow:
Hi. I've attached the screenshot I took just now.
[BetterBatteryStats] Portgas D. Ace:
Google Play Service, Instagram and Whatsapp are causing battery drain.

You can click on those alarms to get an advanced overview. Click on the Google Play Service-related alarm and make a screenshot, same for Instagram, Whatsapp and Phone. Post those screenshots here.
[BetterBatteryStats] Genericxx:
Greenify Instagram and disable GPS when not needed, in case you have it set to high accuracy.
[BetterBatteryStats] Xerosnow:
Have attached all the screenshots. GPS is set to always on on power saving mode [For Cerberus]. I've also attached the BBS dump that I had attached in my 1st post in case that helps.

Tonight I can clean flash the latest build of darkobas without gapps and with just browser and BBS. Just to see if I still get an idle drain of 6% per hour.
[BetterBatteryStats] Genericxx:
GPS on power saving is known as a drainer, because your phone won't be deep sleeping that much. If you really rely on location services, try to set em up to device only to save some juice. Do you really need that cerberus thingy? Android has fairly enough stuff implemented to locate and/or wipe your device if you lost it. In case someone steals your device, he will shut it down, wipe it and sets it up as a fresh one, which makes even cerberus obsolete.

According to your screenshots instagram wakes your device alot. You could try to disable that service, but it may break Instagram functionality, dunno. General rule: If you won't get rid of Facebook related apps (like Instagram), your device will never gain that Deep Sleep others may have. Same with High-Accuracy/Energy Saving-GPS.
[BetterBatteryStats] samuraix21:
I like to bump this up because I'm having the same problem as well. I went out of my way to install this ROM:

http://xdaforums.com/tmobile-g4/development/rom-g4-h811-xtreme-rom-v1-0-7-28-15-t3167667

And it was fine for a few days but the damn thing came back. I asked in the LG G4 QA and nobody has replied back. The last thing I did with bluetooth last night was to connect it to a speaker. I turned off the speaker after I was done with it.

What is this wakelock and how can you kill it aside turning off bluetooth? Because this wakelock didn't exist even when bluetooth on until last night. I can't kill it through Amplify (the paid version) because I'm not sure what to look for exactly. I really hope to hear a reply about this.
[BetterBatteryStats] Perseus:
In General, all BT related Wakelocks stay on for one of following reasons.

The App using the connection doesn't understand when connection is broken. Or continues to hold it anyway due to poor coding.

Android doesn't correctly receive message for unreachable other end or timeout.

So the end result is that the wakelock keeps on chewing battery. Best if you disconnect the BT on the phone first before turning off the speaker. My usual practice is to just turn off bluetooth from the toggle.
[BetterBatteryStats] Xerosnow:
[MENTION=5901790]orville87[/MENTION]

I clean flashed the latest omnirom nightly. Installed bbs alone. No gapps or anything else. I'm still getting a 15% drain overnight. I've attached the bbs dump.

Auto brightness and location were off.
[BetterBatteryStats] Portgas D. Ace:
Thank you for the screenshots and the log file.

According to your screenshots (the former ROM with GApps and stuff) had quite some issues with Google Location-related alarms, Instagram alarms (which are - like other Facebook-related alarms - one of the known major drainer for battery).

But the strange thing is the new log from your latest ROM. You had a lot of deep sleep, nevertheless your battery drained a lot. I would recommend to head over to one of those battery saving threads. Both rely on Xposed, as both utilize Amplify to tame the battery drainers, but the results are great and support in the thread is awesome.

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

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

I would start with the "Extreme Battery Life" thread, as it contains a lot of additional information for battery saving.

Two additional thoughts:

Go to Settings->Location->three-dot menu->Scanning and turn off "Wi-Fi Scanning" and "Bluetooth Scanning"

In addition, go to WiFi->three-dot menu->Advanced and turn off Network Notification (first item in the list). Reboot your device afterwards.

Could you set up your device according to your needs (most used apps like Whatsapp, Instagram and GApps) and upload another idle dump file (same way as you have done before) tomorrow? Beside this, could you add a screenshot of the in-built battery stats (Settings->Battery)? This way we can check if you have other issues, such as a bad cell network signal. 15% battery drain without any obvious known culprits is rather bad, but I am optimistic that we can help you out here.
[BetterBatteryStats] intika:
[MENTION=1330150]chamonix[/MENTION] Thanks for your amazing application.

I have a feature request, it would be awesome if you add an activity to monitor xposed modules battery usages...

i know it's almost impossible to extract that data from xposed framwork

Note : "system_server" is the process that run all xposed modules

here is my idea, monitor "system_server" process while an xposed module is disabled to determinate his % usage...

here is how it will work :

1. Open the future activity that monitor xposed modules

2. Fresh snapshot of process usages just after boot

3. Disabled the tested xposed module

4. Reboot

5. Open the future activity, take a new snapshot of process usage and compare to the old one to determinate the module %age usage.

What do you think ?
[BetterBatteryStats] Xerosnow:
Thank you for your time.

A lot happened this morning. I tried downgrading to XNPH25R. Not sure if it was a bad download; got a "Symlinks failure" message in TWRP(Firmware flashed successfully). I then went ahead and flashed the old CM13 build that I had on my phone. Somehow the drain seems to have reduced.

Wifi and Bluetooth scanning were off. Network notification has been turned off now. I will complete a round of testing as you suggested and then try extreme battery life thread later.

I've restored all my apps. Will post a BBS dump along with the battery screenshots tomorrow. Thank you.
[BetterBatteryStats] black_bottom:
By now I updated to MM ... BT is running correctly again ;)
[BetterBatteryStats] Xerosnow:
[MENTION=5901790]orville87[/MENTION]

I've attached the bbs dump and screenshots. Please take a look. I had restored all apps except nova launcher and cerberus.