yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] riskaa:
Hi there. thanks for your detailed response.

1) I checked my K9 accounts...both of them are set to poll every 10 mins, so i'm not sure why it's polling every minute?

2) i unchecked the gmail sync from both accounts (forgot to do that when i installed K9)

3) i uninstalled both Zenclock and Any.do for now, just to see what effect that has.

I'll probably repeat the same test tonight (i.e. unplug my phone at 6, and see what's going on at about 11)

Also, not sure which sync is causing havoc. I wonder if it was any.do. We'll know more tomorrow.

:)
[BetterBatteryStats] A$h x:
Hi chamonix & other BBS veterans, I'm experiencing some heavy battery drains, even during very light usage. I see RILJ process is keeping my phone awake, any ideas why and how to stop it? Log is attached, thanks in advance for any help.
[BetterBatteryStats] chamonix:
Release 1.8RC2

RC2 was just released, mostlty fixes and a few new features based on feedback from RC1.

Happy testing!
[BetterBatteryStats] jeremysherriff:
Nice.

The widgets don't update after you change preferences (like transparency), I assume they'll update on their schedule. I have set the schedule for 5m but still waiting.. ahh it updated at 30m despite my setting of 5m. I'll reboot.

A manual-update option would be nice, via the hot-spot area I mentioned, for us obsessive-compulsive people ;)

Edit: 5m updates working after a reboot. The small widget doesn't really have background transparency - it does, but the bit marked as background is small 9just top and botton) whereas I'd expected the whole black background to become transparent.
[BetterBatteryStats] cheezzzz:
alright this time without wifi on, i charged my phone full, calibrated, and took a dump in the morning, no pun intended hahah..

i noticed a wakelock that seems to b always there bq275xc or something like that, and alarms from com.google.android.gsf despite my g accounts n all programms set to manual sync..
[BetterBatteryStats] gaui:
Wow, a lot of wakelocks going on there.

Begin by disabling WiFi on sleep (Settings -> Wi-Fi -> Advanced -> Set "Keep Wi-Fi on during sleep" to "Never"). That should lower the "Wifi Running" time, which will resolve in less battery drain.

Instead of using Exchange I would switch to IMAP. I used Exchange once but my phone drained excessively. I don't know why, but it did. So I quit using it and changed to IMAP and put on 60 min sync, it changed everything!

If you fix this Exchange drain and some of the wakelocks under Alarms you will get a lower PowerManagerService ratio. It depends on those partial wakelocks.

Turn off GPS, only use it when you need it. Get a GPS toggle widget.

Also turn off 3G/2G data. Get a Data toggle widget.

Uninstall this MobileDefense crap, there must be an app that drains less than this.

This horrible TIME_TICK wakelock is because of some clock/weather widget you have. Maybe find another one, like the Android stock one?

Check Twicca sync settings, it's waking up the phone too much. If it doesn't help, try TweetDeck (the best Twitter app imo)

I guess you have some calendar widget. Check sync settings on that too.

Check also sync settings in SMS Backup+.. too many wakeups there.
[BetterBatteryStats] osm0sis:
Bar display issue fixed in RC2. Fantasic! Thank you. Still working on the AlarmManager problem though. Is Dump to File (with Dump Alarm Stats checked) the same as doing a dumpsys alarms as mentioned on the KB? Terminal Emulator wouldn't let me run a dumpsys without root. Going to see what I get from Dump to File anyway, but if anyone could help a guy new to the app it'd be much appreciated. Cheers!
[BetterBatteryStats] jeremysherriff:
Unfortunately for you, the alarm part of the dump simply does "dumpsys alarms" so you'd need root access one way or the other.

With 8000+ alarms I'd root my phone, you may be able to root it in a temporary fashion if you're concerned about maintaining root access.
[BetterBatteryStats] jeremysherriff:
@chamonix do you simply sum up all the kernel wakelock times for the Kl time on the 2x2 widget? If so you should probably ignore powermanagerservice as it is already accounted for in the user wakelocks. I have 13 minutes of awake time showing, but 10m of user and 10m of kernel.
[BetterBatteryStats] virus786:
Wow I usually leave wifi on when I go to bed and when I wake up I'm on 90% battery after 7-8 hours. Now I disabled wifi before I went to bed and omg the phone has absolutely no wakelocks whatsoever. Appart from manually checking my phone mid sleep haha and a few small sms messages. Don't suppose I'll get any better than this. :p

I slept until when the wifi goes on.
[BetterBatteryStats] Ninsassin:
Hello, I've just did a charge and dump overnight. I think it looks pretty good. It seems like its the kernel keep it awake? I put the phone in airplane mode because I know the signal is really bad. I could do another test with it on today if you guys want to see.
[BetterBatteryStats] chamonix:
4 minutes in 8 hours: there is nothing you should be worried about

Enjoy your smartphone
[BetterBatteryStats] gaui:
Pretty nice. A few pointers...

Turn off 2G/3G Data, set up a toggle widget.

Uninstall KakaoTalk, it drains too much.

Sign out of Google Talk when you're not using it.

Sign out of Google Latitude (in Maps).
[BetterBatteryStats] suku_patel_22:
Issues and recomendations for RC2

The below issues and comments still valid for RC2

1) No data connection and no unknown signal both are 100%

2) No custom reference shows since unplugged in widget and the custom reference in the app shows -ve values and graph set to 100%

3) As mentioned earlier, the widget doesnt show correct data when the app i snot in memory. It shows the data of "since unplugged" by default in such cases, whereas the heading still reads "since custom ref". It is easy to reproduce.

Set widget type as custom ref ( after setting a custom ref)

Refresh the widget to show data of custom ref

Go to app manager nad kill the BBS cached process

Refresh the widget ( data from "Since unplugged is shown)

Start BBS, hit back to exit app

Refresh widget, data from custom ref is shown

Screenshots below

4) Kern Wl should be Kern WL, its a bit confusing

5) Its better to show BBS in the widget header rather than "BetterBatteryStats"( more consice in my opinoion)

6) Very difficult to see the graphs,

7) Have we done away with the service for the custom reference, guess that could be used to refresh the widget.

8) We could have the to half of the widget to refresh it and the bottom half to open the settings

9) The screen-on bar is incorrect on first launch
[BetterBatteryStats] riskaa:
Wow that's beautiful battery life! What screen is that from BBS?
[BetterBatteryStats] virus786:
In BBS. Press menu --> More --> History (this is the graphs) --> Menu --> View series
[BetterBatteryStats] gaui:
I would like to see a market update. :)
[BetterBatteryStats] chamonix:
As always some precise and detailed feedback. Thank you!

I will look into those issues tomorrow as I have a long train trip. What bothers me is the behavior when the app is not in memory as the widget uses a service to update to make sure I don't get into any timing problems.

I'll keep you posted
[BetterBatteryStats] chamonix:
Well, once we are finished chasing/fixing bug there will be one but presently I feel there are some quite obvious issues still open preventing a release. That's what RCs are for
[BetterBatteryStats] chamonix:
you are correct, it's the sum but I prefer to leave it that way because:

- it is consistent to how userland and kernel log wakelocks

- on most but not all kernel userland is represented by "Power Manager" but some kernels report each and every partial wakelock
[BetterBatteryStats] chamonix:
the only difference between the alarms and the raw alarms is that a reference is taken into account in the first case where the raw alarms are "since boot". The mechanism to retrieve alarms is always 'dumpsys alarm' and requires root
[BetterBatteryStats] cheezzzz:
anndd a day later without wifi on and a few charges, last night my battery was at 75 before i slept, 6-8 hrs later i woke up to 61%.. am rly sick of the gtalk heartbeat n reconnect alarm when i already signed out n turned off sync. i basically have nth on sync. n anyone have any idea what mmc0,1,2 are? they appear after i use wifi for awhile n remain despite toggling wifi off

any help wud b rly great guys, rly appreciate it! :D
[BetterBatteryStats] gaui:
Yea, I hate this GTALK_RECONNECT, MCS_HEARTBEAT and SEND_IDLE ****. I have already signed out of Talk! I am thinking about freezing it with TB.

Also this com.android.internal.telephony.gprs-data-stall when I have NEVER turned on mobile data. Very annoying!
[BetterBatteryStats] sonicfreak360:
We all need to band together and find out how to fix this! It's the last problem I have with my battery life!

Edit: actually, I googled around and I'm going to try disabling the 4 startup entries of the Google services framework. It MIGHT help, I'll report back tomorrow!
[BetterBatteryStats] jeremysherriff:
Disable how? We'd like to experiment too.
[BetterBatteryStats] p107r0:
maybe Autorun Manager to disable all receivers? works for me with Maps, FB etc.
[BetterBatteryStats] furyau:
Thats pretty impressive!!

What about with WIFI set to OFF while phone is ASLEEP?
[BetterBatteryStats] virus786:
Sorry I don't understand what you mean? I did put the wifi off before I went to bed. Ps. I disabled 3G data as well at night and whenever I am on wifi at home.
[BetterBatteryStats] sonicfreak360:
I have fixed the GTALK_RECONNECT and HEARTBEAT! Get autostarts from the market, click settings and make it so it doesn't hide unknown entries, and disable everything under google services framework!

This will not effect your phone in any way except disabling any google Talk stuff!

Edit: actually, it probably will, just disable things that don't mess up apps, sorry...
[BetterBatteryStats] iamnotcobain:
But doesn't that also make some apps crash? Instagram crashed when i disabled the gtalk things from framework
[BetterBatteryStats] iamnotcobain:
Don't disable pushmessagingmagistrar in Google services framework. It makes apps crash eg. Instagram...
[BetterBatteryStats] sohebq:
Installed RC2,, rom is freezing up :(
[BetterBatteryStats] gaui:
I disabled all under Google Services Framework that had "gtalk" in them. :) Let's see if this changed anything.

But I'm still getting this GPRS STALL wakelock. I hate it! :mad:
[BetterBatteryStats] iamnotcobain:
Me too.. what is it?
[BetterBatteryStats] gaui:
I don't know. We have to get to the bottom of this! ;)
[BetterBatteryStats] chamonix:
GPRS data stall is caused by bad data connection
[BetterBatteryStats] chamonix:
Well, if your google play does not work anymore you know why
[BetterBatteryStats] chamonix:
Just an update: RC3 is coming tomorrow and has fixes for all reported bugs plus a few I found while testing. Release date is coming nearer
[BetterBatteryStats] gaui:
Mobile data is off at all times, but still i get this GPRS data stall wakelocks :confused:
[BetterBatteryStats] Dimer81:
Huge battery drain, hope u can help

Hi guys

I'm experiencing some heavy battery drains (~4% in 1hr!!) since upgrading my galaxy s2 from GB 2.3.3 to ICS. It seems that the drain happens when i'm connected to WIFI, the phone is awake during ~30% of the time it was unplugged!! Haven't noticed the drain when i'm connected to mobile network.

I've tried to do the upgrade using CWM flashable ROM and Mobile Odin, both showing the drain, no matter if i do full wipe or not. I've to mention that i restored my apps using google autobackup and some app data using titanium.

Here is another post i wrote about it.

attached r BBS dump files, one from GB (from 2012-4-13) where there was no problem and the other from ICS (from 2012-4-14). The settings of autosync are the ~same for both OS versions.

Really hope u guys can help me, kind of my last hope
[BetterBatteryStats] virus786:
your wifi is on ALL THE TIME, causing a lot of wake locks. Go to your wifi settings and set your wifi sleep policy to "When screen turns off".
[BetterBatteryStats] gaui:
Remove all widgets.

Sign out of Latitude (Google Maps).

Remove official Facebook app (I recommend FriendCaster)

And set WiFi sleep policy to "When screen turns off" (like stated above)

Also, what ROM/kernel are you using?
[BetterBatteryStats] sonicfreak360:
Actually it works fine!

Also, I went back and only disabled things in the framework, you only need to disable the things that mention gtalk. I was just over killing to see if I could fix the problem first!
[BetterBatteryStats] cheezzzz:
Hey guys this is my latest dump, pretty bad drain, from 100-91% in about 5-6 ours of idling. Please advise!

I've unsynced my calendar and that wakelock is gone however talk is still causing hearbeat n reconnect despite it signed out zzz
[BetterBatteryStats] sonicfreak360:
Your dump is missing! :O did you flush?

Actually, read the previous 2 or 3 pages to fix your gtalk problem!
[BetterBatteryStats] mzaur:
chamonix are you still against JD or has your mind changed? I bought JD Ultimate yesterday.. wish I asked you first lol. I read your post about how JD blocking apps from using data just causes them to retry constantly.
[BetterBatteryStats] iamnotcobain:
Could it be bad when screen is off? Perhaps it's a bug in cm9. I think data slows down when screen is off
[BetterBatteryStats] Dimer81:
Thanks for the response.

Yes, the WIFI is on all the time and i want it to be on all the time. It was like that in GB and was fine, now in ICS something is wrong. If i change the WiFi sleep policy to "When screen turns off" so the wifi will turn off when i turn off the screen, right? I don't want it to work like that, it wasn't like that in GB and everything was fine.

I'm not signed in in latitude

The facebook crap is shut down and anyway, not causing many wake locks. I use friend caster.

The drain is from the kernel, it keeps the phone awake, i don't understand why...

The rom is stock XWLP7 with CF Root XWLP7, all flashed using mobile odin or CWM (tried both ways....). Like i said, also tried full wipes, still had the problem.

Looking at both logs i see the the ICS has a ton of wakelocks from DHCP (only in ics), AlarmManager (882 in ICS vs 289 in GB!!), wlan_rx_wake (26min in ICS vs 3.5min in GB!!). It looks like the WIFI itself waking the device???
[BetterBatteryStats] jeremysherriff:
No it's wifi receiving data that keeps your phone awake. ICS seems to be a lot more sensitive to receiving broadcast traffic and trying to understand whether it should do something with it. There are some settings in an INI file somewhere, from memory it's /system/framework/wifi.

Don't expect ICS and GB to act the same, the overall framework is very very different.
[BetterBatteryStats] chamonix:
Has anyone tested the Tasker plugin in 1.8RC?
[BetterBatteryStats] suku_patel_22:
had never used tasker, downloaded the demo version, too confusing for a tasker newbie

Swyped from my HTC Desire S
[BetterBatteryStats] gaui:
This is on the right track. Still many wakelocks I have to resolve (Awake: ~6h vs. Screen on: ~3h). Any ideas?

Dump is attached below.
[BetterBatteryStats] chamonix:
The main issues for this log are I believe data related and connected to sync of some of your accounts. I can not say if it's music, Contacts, reader or mail but I suggest to uncheck them one by one and see if SyncLoopWakeLock count reduces. Of course that wakelock will also depend on conditions (gprs stall). I would start by disabling music and see if things change, or see if the frequency can be adjusted.

Edit: In your observation you forgot "phone" as it keeps your phone awake while screen is off during calls
[BetterBatteryStats] gaui:
Weird. I have no sync turned on, except for Contacts. Also I haven't set up music on my phone, so it shouldn't be syncing all the time. :confused:
[BetterBatteryStats] Karpfenhai:
Could you try to use a static IP at your home wifi? This can help to reduce the wakelocks dramatically but don't forget the router to tell what is your phone ;)

Don't worry, dhcp on other networks will work anyway..
[BetterBatteryStats] wadokai:
Hi okay so i was able to let the phone sit idle and then made a dump file.

It's attached.

I'm getting very little screen time nowadays... maybe 2 hours and thats it..

anyways, please look over it and help me deal with any partial wakelocks or problems that may be killing my battery. Thank you!
[BetterBatteryStats] chamonix:
SyncLoopWakeLock (Android System): 4 s (4 s) Count:4750 0.0%
*sync*_com.google.android.music.MusicContent_Account {name=gudjonj@gmail.com, type=com.google} (com.google.android.music.Google Play Music): 4 s (4 s) Count:4 0.0%
*sync*_subscribedfeeds_Account {name=gaui@gaui.is, type=com.google} (Google Services): 2 s (2 s) Count:3 0.0%
*sync*_subscribedfeeds_Account {name=gudjonj@gmail.com, type=com.google} (Google Services): 2 s (2 s) Count:452 0.0%
*sync*_com.android.contacts_Account {name=gudjonj@gmail.com, type=com.google} (Google Services): 2 s (2 s) Count:119 0.0%

Really?
[BetterBatteryStats] chamonix:
===========
Other Usage
===========
Wifi On (): 13 h 20 m 11 s (48011 s) Ratio: 100.0%
Wifi Running (): 13 h 20 m 11 s (48011 s) Ratio: 100.0%
Awake (): 2 h 19 m 20 s (8360 s) Ratio: 17.4%
Screen On (): 1 h 37 m 22 s (5842 s) Ratio: 12.2%
=========
Wakelocks
=========
Managewakelock: partial (com.handcent.nextsms.Handcent SMS): 10 m 25 s (625 s) Count:242 1.3%
MAIL_SERVICE (com.android.exchange.Exchange Services): 9 m 45 s (585 s) Count:350 1.2%
StartingAlertService (com.handcent.nextsms.Handcent SMS): 3 m 39 s (219 s) Count:210 0.5%
================
Kernel Wakelocks
================
"PowerManagerService" (): 17 m 50 s (1070 s) Cnt:(c/wc/ec)1564/0/0 2.2%
"wlan_rx_wake" (): 16 m 14 s (974 s) Cnt:(c/wc/ec)1258/0/1258 2.0%

Your phase could have slept 1/2 hour morethan what it did. If your drain is dramatic then your screen is the cause.

Nevertheless when cased that awake:

- handent

- main (exchange)

- wifi (your phone wakes up because of incoming traffic causing wakeups)
[BetterBatteryStats] chamonix:
Release 1.8RC3

New version is out with a bunch of fixes. I hope we get nearer to the release with this one

Enjoy!
[BetterBatteryStats] Karpfenhai:
Im Testing it right now!

Uii Blue Bars, kinda cool ;)

Alarms shows no reference, but this is maybe due to new installation?

Raw Alarms are working as expected!

Refresh hotspot is pretty small but working, nice approach!

Widget looks weird a bit maybe the text could be smaller?

The day count is almost disappeared, and Charged on the small widget is too big..

Something else, since the widgets are in place, the highest wakelocks are caused by BBS, is this something to worry about?

Will you bring this down in future releases?

Great work, as always!
[BetterBatteryStats] gaui:
Exactly! This baffles me as well. :confused:
[BetterBatteryStats] chamonix:
Well, check your gmail account. In the options you will se all the services that are enabled and you could disable the ones you don't use, reducing the overhead. Also spend some time checking the frequency for the ones left on
[BetterBatteryStats] gaui:
Thanks m8, really appreciate it. Will try to do that. :)
[BetterBatteryStats] cheezzzz:
oops i accidentally flushed it! lol here is a another one 1day uptime
[BetterBatteryStats] jeremysherriff:
The "since charged" view becomes kind of pointless if you partially charge regularly instead of fully charge, you should change the widget view to "since unplugged".

+1, I was going to post a screenshot with a "lol" comment! I got 78 wakes from BBS over 10h, I figure that's a pretty good level. Widget refresh is set to 15m, but I do have both widgets added so that's right - 39 refreshes each. If you want to reduce it, use one widget or the other, not both, and set refresh to a less-frequent time. While we're testing, obsessing is fine, but once its into normal usage patterns it'll calm down.

---------- Post added at 08:17 PM ---------- Previous post was at 08:10 PM ----------

just fixes, or some functionality changes? I guess what I'm asking is, "changelog?"..

OK, things I've noticed:

When unplugging, the widget should refresh immediately - it's disconcerting having the widget still show "since 20h, awake 1h" when you unplugged 20m ago.

The "tap to refresh" option should apply to both widgets, or have the option for each.

That's all, good work!
[BetterBatteryStats] chamonix:
Thanks for the feedback and for the screenshots, it helps a lot as densities are always difficult to grasp.

I will slightly reduce the font sizes a bit in RC4.

About the alarms: the alarm type used for refreshing the widgets is of a type that doesn't wake up the phone when sleeping. Obviously there is something that I will have to provide hard proof for and I will log the alarms receiver to a file to validate that (will be in RC4).

This also shows a limitation of the alarms as I can't find the distinction between the alarm types in dumpsys. I have had this discussion with another dev before and will write a test app to try to find a way to report RTC and REALTIME alarms differently.
[BetterBatteryStats] RovG:
I use something called Alarm Dumper. It would be great if its features could be incorporated into BBS.

https://github.com/nagamatu/AlarmDumper
[BetterBatteryStats] Invisman:
I am using BetterBatteryStats on my Galaxy Note N-7000 running AOKP based ICS Stunner 5 ROM. The issue I am facing is that after I dock my phone on the official Samsung desk dock, BBS returns the error "batteryinfo could not be accessed". This continues even after I undock the phone and will work again only after I restart the phone.

Any idea?
[BetterBatteryStats] suku_patel_22:
A logcat will be useful..

Swyped from my HTC Desire S
[BetterBatteryStats] Invisman:
I will try to post the logcat file.

Meanwhile it looks like another user reported the same error in this thread about a month back. He posted a logcat too.

http://xdaforums.com/showthread.php?p=23891105#post23891105
[BetterBatteryStats] steve austin:
There is some really goof info in this thread. I am hoping that you guys can give me a bit of insight into my particular battery problem. First the details.

Phone: T-mo Sensation

Rom: Elegancia Phoenix 3.6

Kernel: Bricked 3.0 - v0.85 running @1.56ghz

1. I use juicedefender ultimate

2. the phone signal is strong in my area

3. I use the official facebook app. (but it looks like the sense fb is also active thought I did not set it up?!?!?)

4. I use Battery Monitor widget Pro ( which I see has an inordinate amount of wakes. Could this be aiding to my awake time?!?!?).

5. I have attached the (i believe) appropriate files.

Issues:

Everyone, other than me, using this ROM says they are getting great battery life. I have several issues.

a. Before using Juice defender (which seems to be either a blessing or a curse in this post) I would drop 25% in an hour with the phone off.

b. Using juice defender the phone actually sleeps and there is no drop off ( which is good).

c. Though the phone sleeps there are high wakes so the phone is not really in a deep sleep.

d. when in sleep mode i am still averaging in between 45mA and 275 mA. Nowhere near the 2-10 mA range that I should be averaging. I think that this is impacting the drain when I actually run programs.

Any insight or help into this would be greatly appreciated.

i have system tuner and Gemini app manager. the three apps that keep running in the background are a bible app, doubletwist and dropbox. I have clicked on the option for them to NOT start at boot, but the are still siphoning off data and connecting to the internet.

I noticed in both Gemini and system tuner that there are additional boxes to check under each app to further cripple it. I don't know what each thing actually does so I don't want to mess something up. There is something not activated to make this apps remain completely off.

Do you know what else has to be cut off so that the app only connects to the internet when I click on it or open it up? Thanks in advance. Any assistance would be appreciated.