yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] JoeSyr:
Hmm so I guess that it's a quirk in the kernel that it's using the 230 slot when it should be disabled. Thanks for the explanation.

In other news, I reflashed my kernel and BBS returned to the 1 kHz "---%" display. I also ran fix permissions from recovery, as that was part of the sequence last time I flashed anything. However, rebooting seems to have been something of a red herring, that didn't just fix it as I assumed it did before. For the different reference points:

-Since charged is still broken; right now that's an 11hr stretch. I'm assuming that once the phone charges and this resets, it'll work correctly

-Since unplugged started working once I plugged in and unplugged the phone.

-Since custom ref started working as soon as I set one.

-Since screen off gives a little popup: "Warning:there is no reference since screen off". I have screen off disabled under watchdog settings though, so this seems like the intended behavior.

So... maybe this isn't so much a bug as it is that the different reference points may extend back to a point where there is no valid data? Seems like any period that goes back to flashing the kernel (and I presume, resetting time_in_state) breaks BBS's log.

Sorry for the mostly speculative bug report, wish I had a clearer account of this whole thing to give rather than "this stopped working a week ago wait it's working now, wait it's broken again".
[BetterBatteryStats] superbobup:
Tried it out and it has indeed eliminated all of my passive location wake locks :)
[BetterBatteryStats] wizard83:
Completeley agree!

Yesterday -> over 1600 wakelocks

Today-> 0 wakelocks! :highfive:
[BetterBatteryStats] mzaur:
I'm on latest version now. Even after being on four hours, KWL has no reference? Weird.
[BetterBatteryStats] mzaur:
raw KWL works
[BetterBatteryStats] chamonix:
Thanks for the reply. Indeed "since screen off" will not be saved if the watchdog is disabled, I'll figure some better way to notify the user about that.

Since charged: you are correct, that ref is written on unplug _and_ when the battery level is 100%

About the slot that you are reporting: this is definitely something for your trusted kernel dev.

I have undusted my gnex and put a stock JD on it to double check and CPU states are working fine. Your problem way be related to a lock on the file, if it keeps doing that I could add a little more logging to try to find out what fails (opening the file, reading it).
[BetterBatteryStats] chamonix:
The question is: what reference are you using? if it's "since unplugged" you may want to plug/unplug once...
[BetterBatteryStats] shadowblade330:
I have a problem with kernel wakelocks not showing up for me too on the latest 1.9.0 rc9 release. I reset my battery and still does not show anything for me. I waited overnight I only get others, and partial wakelocks to show. But also if I choose raw kernel data some of the kernel wakelocks appear over there, but under the Kernel wakelock tab it says no reference.
[BetterBatteryStats] tigerphil:
I'm real new to this and not had time to read up on things properly so far but i've noticed a few of the bars have got ? marks next to them. Are these the areas i've got to check out? Unfortunitely i'm away from a computer til tuesday so cant have a proper read through this whole post until i'm back home
[BetterBatteryStats] chamonix:
Release 1.9

Final release 1.9 is out. See the changelog from post #2 for more details.

1.9 fixes one bug discovered in the last RC so you should update.

Thanks for your support in testing and reporting all the RCs!
[BetterBatteryStats] tigerphil:
Just updated now. So will see pf it changes anything, the ? marks seemed to be in the kernel wakelocks but until i'm back home its abit arkward to read through properly to understand it abit more
[BetterBatteryStats] chamonix:
I hope I haven't missed too many posts in the last few days. If there is something important I didn't react on please feel free to post a hint with a link to the post. It's been a busy but fun time working on that iteration and I hope you enjoy the results.

Next version(s) will not have so many new features but will focus on consistency and UI. If you have suggestions or ideas in that area please feel free to post. As usual other feature requests are welcome here as well as on github.

But first I have two new tools to release (Audio rescue and Better Wifi on/off) and a bugfix for command center :)
[BetterBatteryStats] EH15:
From the recomendations in this thread, I have uninstalled HD Widgets and Lightflow. My battery has improved a bit. Is there anything else keeping it awake? I don't use Google Talk at all and have my accounts signed out of the app btw. Maybe someone can explain what "com.google.android.gsf" is. Exchange is also something I can't bring myself to disable :(

I have attached my log
[BetterBatteryStats] chamonix:
The highest reason for awake is multipdp (kernel wakelock standing for data transfer).

From userland exchange and facebook are clearly your top candidates

You may want to install 1.9 and use the new "network stats" feature to drill down into what apps cause the biggest data traffic
[BetterBatteryStats] EH15:
Okay I will update to newer version and report back later
[BetterBatteryStats] ha-lex:
Need help with BBS stats

Hello,

I'm new to this forum and would really appreciate if someone could look at my BBS dump file to see what could be done to stop the ridiculous drain of my SGS2 battery under ICS.

After upgrade to ICS battery time fell from cca 1.5 day with GB to less than 10 hours. I ended up doing a factory reset which initially helped, pushing battery time back up to 1+ day, but after a week or so it started to deteriorate again and now it's around 10-12 hours again.

The only background programs running is the stock email app, Whatsapp messenger and Tasker. I have one exchange account set to push sync and one gmail account with 30 min sync. I'm also not a developer and no expert at all, so if kernel needs to be upgraded or some other exotic stuff is needed, I would appreciate if you could direct me to somewhere where it is explained for dummies :).

Thanks in advance for your advice.
[BetterBatteryStats] yhrn:
Hi,

First thing - next time post the dump file in txt format instead (still post it as an attachment). That way it can be read directly in the browser.

Exchange sync seems to be on big drainer. However, the thing that really stands out to me is the kernel wakelock multipdp which is related to mobile data traffic. Install BBS 1.9 instead and you will get info on network usage as well. Also, if you root your phone and grant BBS root privileges you will get additional information in the alarms section which is useful for determining what wakes the phone up.

EDIT

If you want to root your phone there are many options of rooted kernels you can chose from (check out this forum http://xdaforums.com/forumdisplay.php?f=1058) but if you want to stay as close to stock as possible you should check out this thread (especially the Quick Root Guide): http://xdaforums.com/showthread.php?t=1075278.
[BetterBatteryStats] dannykul:
Thanks !

Thanks for this hint :) exactly what action I was missing.
[BetterBatteryStats] r29:
Can someone help me figure out whats causing the NetworkStat partial wakelock. I tried so removing apps that might use gps/maps and no luck. I have my gps/locations options disabled
[BetterBatteryStats] BobPowers:
Hi... I have been referred over here from the Resurrection Remix thread... Would one of you bbs experts kindly look at my bbs dump file...... I can't seem to track down the wake locks.... I appreciate your help...

Bbs log can be found here: http://db.tt/mHs45dCc
[BetterBatteryStats] r29:
Pansi cause the TimeService wakelock. (not sure how much of battery life it affects though) I used this sms app at before and went back to go sms because of the wakelock.

The location stuff is gps and google maps..you want to clear cache and data and force stop maps
[BetterBatteryStats] chamonix:
Here's something I found about it. From what I understand, even if I can't confirm is that it is kernel related:

https://groups.google.com/forum/?fromgroups#!topic/android-platform/n668vwz2718
[BetterBatteryStats] BobPowers:
Thanks for your reply... That is awesome if it is just pansi SMS.... I have been trying to track that one down.

I have used Gemini to stop maps at boot, but it seems to start itself again. If I look in running apps I can see it there twice? I any ideas how to stop it properly..... Although I still do want to use it..

I appreciate your help....
[BetterBatteryStats] EH15:
Here's my new log. I had my Facebook refresh interval set to "never" for this dump. It seems like it drains 10% every 3 hours without any screen time :(
[BetterBatteryStats] Karpfenhai:
Use autostarts from market, just read a page back.

try to reduce your sync activity.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] chamonix:
MAIL_SERVICE (com.android.exchange.Exchange Services is holding partial wakelocks as well as causing wakeups.
[BetterBatteryStats] Karpfenhai:
Exchange, Facebook, background data.

These are your culprits.

Especially background data traffic (multidpd) had kept your phone awake for 40 mins!

Try to reduce your polling rate for email, fb and twitter.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] EH15:
I have my Hotmail set to push. Unfortunately that's my first email account and has been my main account since. Is this just a fault in the design of exchange services for my rom (ICS SGS2)?

Like I said to chamonix, I have my email set to push. What do you guys recommend? As for Facebook and Twitter, I have facebook sync on but refresh interval set to "never". Twitter sync is on, but refresh interval set to "4 hours".
[BetterBatteryStats] chamonix:
I am no specialist and don't use exchange so I don't know its culprits. A quick look at the search tells me that there are many thread delaing with that matter.
[BetterBatteryStats] EH15:
It seems some people have found success with removing the account and re-adding it. I'm gonna try this and see if it improves.
[BetterBatteryStats] :
Mate do you know of anything else that affects battery life that we can safely stop using autostarts app, except maps? That would be helpful to know. I myself disable many things I don't need but never touched system apps or Google framework related services. Thanks a lot for your great help in this thread,!!!

Sent from my SGS2 - SlimICS Rom & Fluxi Kernel
[BetterBatteryStats] starkilling:
This app prompts me for root access at least 15 times a day. I grant it and tick the remember box every time. It still asks me again. Is this a known issue?
[BetterBatteryStats] mariotme:
Yup same thing happening to me also
[BetterBatteryStats] akarol:
Just got it. Seems somewhat confusing to use. What do I do exactly to alleviate, some of the Maps load. It seems to be one of the biggest culprits on my device.

Sent from my amazing Nexus 7.
[BetterBatteryStats] Karpfenhai:
GSF is a tough one, indeed!

The settings below are safe, you will not notice any difference:

The second is more experimental, the gsf count decreases, purchasing apps from phone is still possible but maybe pushing from playstore will fail (tbc)

Just try it.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Sincitybronze:
I had the same problem after installing a recent nightly of cm9 on my touchpad, even after disabling all the usual culprits. Couldn't identify a cause through bbs. Finally sucked it up, wiped data, and started from scratch (used titanium to backup and restore apps). Problem solved. Not an ideal solution but effective.
[BetterBatteryStats] xelra:
Reinstall su. You can do that from within the superuser app.

If that doesn't do the trick, use supersu instead of superuser.
[BetterBatteryStats] kami2k:
Hi,

I am getting sudden drops in battery like 8% or 6% ect, what should be the reasons?

thx
[BetterBatteryStats] Karpfenhai:
Hmm, let me guess...

.. its something in your phone! :laugh:

...
[BetterBatteryStats] chamonix:
No it's not a known issue. What su app are you using and what access was persistent as granted?

Root is required for accessing both Alarms and network stats. If your su app has stored the permission for su on those two features there is no reason for prompting you over and over
[BetterBatteryStats] starkilling:
I have replaced Superuser with Supersu and it hasn't happened so far. Thanks
[BetterBatteryStats] HERPADERP:
I hope someone can help me with this, it used to drain like 8% every hour, got it down to about 20% over 6 hours but I believe that's still way too much.. I really have no idea what the remaining wakelocks are, battery-stats I assume is this app? I've not seen anyone else with it though.

I'm on a 2 day old CM9 nightly build, running only about 10 market apps.
[BetterBatteryStats] Rob2222:
@Herpaderp:

You maybe could try a custom kernel like siyah 1.3.8a, that blocks WLAN multicasts. It looks like incoming WLAN traffic wakes your S3. What machines are in the WLAN your S3 idles in?

@Chamonix:

Can you please check that log? It looks incomplete. Its not the first time I see incomplete logs similar than that in the last time.

You know how this can come?

Best Regards

Rob
[BetterBatteryStats] chamonix:
Could you please plug/unplug your device and re-do a run. To me it looks like you have updated to bbs 1.9 after unplugging and this leads to two missing chapters in the dumpfile
[BetterBatteryStats] chamonix:
The only logical explanation I have for that is that bbs 1.9 tried to use 'since unplugged' refs created by 1.8.x because 1.9 was installed after unplugging.

As in 1.9 there was a change in the structure of the ref files the new ones are not compatible. I'll keep an eye on that though
[BetterBatteryStats] jofeso:
Help please

Hi everybody, hope you can help me with my battery drain problem.

My battery only lasts about 11-12 hours, and it gets pretty hot sometimes, abobe 29°C

I'm on a Samsung i9100, using resurrection rom v2.6 with siyha kernel 3.3.3d

Here's a secreenshoot and the BBS report.

Thaks in advance. :good:
[BetterBatteryStats] WhoIsJohnGalt1979:
Chrome generated wakelock

Hey Guys!! Am sure this has been discussed here before, but using Chrome as a browser is being almost next to impossible due to the suspend_backoff wakelock, which keeps the phone active once the screen is off for hours together, the moment u uninstall it and switch to a different browser, things are back to normal.

Any suggestions to use chrome and not be tormented by the wakelock?:fingers-crossed:
[BetterBatteryStats] HERPADERP:
Wouldn't a different kernel mess up CM9? just a HTC One X that's also idle.

Do you have any idea what the battery-monitor wakelock is?

---------- Post added at 03:58 PM ---------- Previous post was at 03:54 PM ----------

Sure, I'll do that, I ran it overnight though, so unless someone snuck into my house to update BBS I don't see how that would be possible :D. But I'll reboot the phone and do another 6 hour idle.
[BetterBatteryStats] chamonix:
I am using Chrome and have not suffered any kernel wakelocks of the kind suspend_backoff. I don't sync my chrome bookmarks as I don't use chrome bookmarks at all.
[BetterBatteryStats] WhoIsJohnGalt1979:
You are very lucky then my friend, cos this wakelock has been driving many nuts, hehe, anyways, http://productforums.google.com/forum/#!msg/chrome/rT0ewNsBx18/0_RqLGBQr70J finally a solution that actually works, than asking people to remove battery, hehehe, thanks for the response though:)
[BetterBatteryStats] lordgoata:
@chamonix

Feature suggestion for future version if its doable in a battery friendly way: would it be possible to show what apps are using location services ? It would be great to have it listed like e.g. the new Network stats, which then shows what apps have used the location services, and by how much.

My reason for asking is, I have ALTitude set to update at 15min intervals, with 2km accuracy (ie. default settings), but I also enabled the Passive location option to try it out, thinking when my weather service updates once per hour, or when Tasker (occasionally, and manually controlled by me) grabs the location with GPS, that ALTitude would give me a better location history at those particular moments. Well that all seems to work fine, but I noticed today my location history is being updated at a crazy rate (although my battery life for today has been very good!)

By crazy, I mean:

10:00 - 11:00

10:05:14 10:05:17 10:05:19 10:08 10:15:16 10:15:18 10:25:14 10:25:16 10:25:18 10:35 10:45:15 10:45:16 10:45:18 10:55

Ah - just realised what that probably is - Tasker is doing its screen off checks every 10 minutes, and they seem to be 10 minute intervals. Time to streamline that methinks!

Anyway, would be interesting to have added, if possible I think :)
[BetterBatteryStats] jptesar:
Where are these located at? I can't find them in autostarts anywhere. I have hundreds of wakeups from intent: com.google.android.intent.action.MCS_HEARTBEAT and com.google.android.intent.action.GTALK_RECONNECT
[BetterBatteryStats] yhrn:
I very much believe in this workaround which i tried about a week ago. I was badly affected by this wakelock previously but haven't seen it since.

Maybe it would be useful to put in the KB as Google seems to be in no rush to fix it and quite a few are affected. The entire workaround is to uncheck "Enable Tilt Scrolling" under "Settings->Developer tools" in Chrome (and reboot).
[BetterBatteryStats] chamonix:
As a matter of fact I believe that this sensor thing is more a reporting error than an error of sensors being really used. As a matter of fact I have tilt scrolling checked and have never seen this kwl.

What would be interesting is to see dmesg. As suspend backoff is something, AFAIK that occurs when repeatedly something prevents the pm ramp down to occur dmesg should say what it is preventing the ramp down to happen

Edit: typo
[BetterBatteryStats] p107r0:
in autostarts goto menu/view and untick all boxes there
[BetterBatteryStats] r29:
Thank you chamonix. I never noticed it before with the kernel I am using. It was always there but limited to 1-15s. Could of been something hanging and not letting the device sleep. I will have to keep checking it.
[BetterBatteryStats] Karpfenhai:
Settings --> show system apps.. :)

good luck!

This is what i get after 15 hours:

With actually using the market!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] henklbr:
Since the latest update to v1.90, I get NO results in "Kernel Wakelock" (which was working in the previous version) and a strange read-out at "CPU States"...

Is this a "bug", or am I doing something wrong (somewhere in the settings or so)?
[BetterBatteryStats] chamonix:
Have you plugged/unplugged your phone since you installed 1.9? "No reference since unplugged" suggest that you didn't
[BetterBatteryStats] henklbr:
Yeps: since the update, I plugged in my Note several times already . . .
[BetterBatteryStats] riskaa:
What the......?

Hi all,

I'm not sure what happened with my phone last night.

I'm using Chimera 2.2. Some of the changes i made recently are:

1) i installed Google Now (and therefore enabled gps/location in my settings)

2) I installed Altitude (to replace Latitude)

3) I installed Autostarts - and disabled everything under Maps

My phone was at 100% at 3am last night. I unplugged it, and this is the read I got at around 8.30 am.

I really don't understand what is going on.

Could someone help me out please?

Thank you!
[BetterBatteryStats] chamonix:
This wasn't supposed to happen. Could you tell me if a reboot fixes the problem?
[BetterBatteryStats] chamonix:
GPS has been keeping your phone awake:

GpsLocationProvider (Android System): 5 h 15 m 6 s (18906 s) Count:0 96.9%

GPS is not required for Google Now and I recommend leaving GPS off except if really needed. Network Location is far less expensive and covers 99% of the normal use cases
[BetterBatteryStats] haloeight:
What does "No reference since unplugged set yet" mean under Kernel Wakelocks?

I set my phone to configure via static IP and turned off DHCP broadcasting in my router as I was finding the wlan_rx_wake to be causing kernel wakelocks. Now there is nothing showing up under Kernel Wakelocks so am not sure if they've been eliminated entirely or BBS is not able to find anything for some other reason.
[BetterBatteryStats] chamonix:
The reason for this message is that BBS does not have anything stored for the point in time where the phone was unplugged. Following may help:

- plug/unplug

- reboot

As you are not the first one reporting this there may be a problem in the transition from 1.8.x to 1.9 that I will investigate if we have more reports like that as rebooting - assuming it helps - is not the right solution.
[BetterBatteryStats] haloeight:
Thank you for the app and reply. I rebooted twice earlier today thinking something may be off and wanting to get accurate stats as there is a charging issue with the Skyrocket requiring either reboot or screen on when removing from charger. But the reboots did not resolve the problem.

I will try plugging it back in / unplugging and rebooting, although this is what I basically did first thing this morning.
[BetterBatteryStats] cafebabe:
Hi!

I have just bought your app and I get a Deep Sleep Ratio of 518% !?!?!?

My phone is a full stock Nexus S with JB and my battery drain like hell!

I need help...

Thanks
[BetterBatteryStats] henklbr:
Did a plug/unplug again, and everything's working OK now . . .

Dank fur dein reply :) (thanks for your reply)
[BetterBatteryStats] chamonix:
That is indeed quite a lot of awake! Please post a dumpfile (menu "More")
[BetterBatteryStats] chamonix:
Aber gerne doch / you are very welcome ;)
[BetterBatteryStats] haloeight:
Also found that by plugging back in and unplugging the Kernel Wakelocks page seems to be reporting properly again. No reboot.

Edit: To add to this, I rebooted my phone and the problem returned. Eliminated again by plugging/unplugging.
[BetterBatteryStats] BillGoss:
I'm running CM10 and I've had times when the battery drain overnight is minimal, but now the overnight drain is significant. BBS says the phone is awake all the time, yet settings/battery shows a different picture.

Two questions:

1. What is keeping the phone awake (dump attached)

2. Why the discrepancy between BBS and Battery on the phone's awake status?

Thanks
[BetterBatteryStats] HERPADERP:
There, hope its fine now.
[BetterBatteryStats] EH15:
It seems that removing my Hotmail and re-adding has fixed most of my problems. Is there anything else I should look into? Also, my AOS usage seems to be always high...
[BetterBatteryStats] riskaa:
HI Chamonix,

Thank you! I did not realize GPS was not needed for Google Now. That helps a lot. Never seen that much activity while my phone was idle.

Not liking the K9 wakelocks either, and wish push consumed less power.

Thanks for your advice.
[BetterBatteryStats] negrobembon:
Anyone here with a Gnexus that knows what app causes the mipi_link wakelock?

Ive asked here before and OP told me it was related to the camera, then ive been googleing around and read that it was caused by google + and/or gtalk

Ive disabled both if them and i still get mipi_link wakelocks of up to two hours

I searched everywhere for a concrete answer and found nothing
[BetterBatteryStats] xpressman:
hi guys, can u help me to see what wakelock is consuming my phone battery? appreciate for the help. http://xdaforums.com/images/icons/icon7.gif
[BetterBatteryStats] bordikun:
it's been 11 hours but in the "kernel wakelocks" there are still no reference either "since charged" or "since unplugged" but in the "since screen off" there are reference.

anybody know how to fix this? TIA
[BetterBatteryStats] Karpfenhai:
Its Facebook ;P

But please update to the most recent version, yours is almost 2 years old ;)

Please drop a new dump afterwards and plug / unplug your device befor starting your idle period.

---------- Post added at 07:13 AM ---------- Previous post was at 07:12 AM ----------

as written many many times, do a plug / unplug from charger to produce new reference.

Or, reboot once.
[BetterBatteryStats] bordikun:
did a reboot still no go, will try now to plug / unplug charger.