yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] phantasia:
Hi all,

I have been lurking around this thread for some time.

Tonight I finally decided to install this app and leave the phone during the night without data on or wireless.

During the day I turned data on and used it normally.

Can you please provide some sort of feedback on this?

I really don't understand what is going on.
[BetterBatteryStats] gaui:
Yes there is. Go to Settings -> Developer options and tick "Do not keep activities" (Destroys every activity as soon as the user leaves it)
[BetterBatteryStats] Karpfenhai:
Hey mate this dump looks quite good so far! Just disable some unnecessary sync activity (gmail) and you will be happy!

Use k9 instead and set it to pull.

Get yourself an undervolted kernel (i recommend phenomenal) to reduce the overall power consumption and enjoy your smartphone!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] phantasia:
You think that leaving other syncs on:

Calendar, Contacts, etc would not cause as much harm as Gmail?
[BetterBatteryStats] itsLYNDZ:
I dont have developer options in settings. Do you mean in autostarts
[BetterBatteryStats] itsLYNDZ:
Would I still need to go to running applications once I'm done with the app to end it?
[BetterBatteryStats] chamonix:
That's the reason why I stopped using maps and went to osmand. I am not ready to pay whatever maps does in background
[BetterBatteryStats] chamonix:
I no temproot specialist, you may want to serach for superoneclick.

Alarms: has nothing to to with the alarm clock, alarms are an android feature allowing apps to be called at a certain point in time, waking up the phone.

FD = fast dormancy
[BetterBatteryStats] chamonix:
So we got it right: TimeService (com.pansi.msg.Pansi SMS): 1 h 1 m 27 s (3687 s) Count:52 8.2%

From the behavior I would say that's an app with a very poor design
[BetterBatteryStats] chamonix:
Yes and no, the state model of android is a little more complicated than running and closed. You can read more about that here if you are curious: http://developer.android.com/reference/android/app/Activity.html

What forces the app to get notified of a status change is pressing the "back" key to quit it. It's no guarantee but that's the way android works. Also notice that this has nothing to do with killing anything, it's just making sure that there is no in memory state of any activity (that's how windows are called on android).
[BetterBatteryStats] chamonix:
If the count of alarmmanager is high, have you checked the alarms/wakeups?
[BetterBatteryStats] chamonix:
Can you please provide a log showing what you say?
[BetterBatteryStats] chamonix:
Since 21 h 6 m 33 s
Deep Sleep (): 18 h 20 m 7 s (66007 s) Ratio: 74.7%
Awake (): 2 h 56 m 16 s (10576 s) Ratio: 13.9%
Screen On (): 1 h 26 m 14 s (5174 s) Ratio: 6.8%
Phone On (): 1 m 10 s (70 s) Ratio: 0.1%
AudioOut_1 (1013): 50 m 13 s (3013 s) Count:17 4.0%

Awake - screen on - you listening to music = 2:56 - 1:26 = 30 minutes in 21 hours. And I didn't cound you listening to music.

There is nothing wrong with these stats, enjoy your phone!
[BetterBatteryStats] gpz1100:
com.google.android.gsf (): Wakeups: 174

Alarms: 26, Intent: com.google.android.intent.action.GTALK_RECONNECT

Alarms: 68, Intent: com.google.android.intent.action.MCS_HEARTBEAT

Alarms: 38, Intent: com.google.android.intent.action.SEND_IDLE

Seems like it's related to google framework. Latitude is logged out, even the weather service is only set to update when the phone is turned on.

The rom did come with gtalk and google+. Neither one was logged into, but I've gone ahead with freezing both and have recharged the phone. We'll see what the behavior is in the next 15+ hrs.
[BetterBatteryStats] chamonix:
Alarms: 26, Intent: com.google.android.intent.action.GTALK_RECONNECT

that is bad network connectivity. Nothing you can get rid of as long as the coverage is bad
[BetterBatteryStats] itsLYNDZ:
So I used autostarts and got Maps to stop loading on startup,. but when i exit out of Maps when im done using it, its still runjning in the background. Is there a way to make it end/ kill it right when i exit the app so its not running in the background for days after I use it? Going to Settings -> Running Applications and forcing it to quit is a real pain. I know I can switch off network location, but then I have to switch it back on everytime I need it.
[BetterBatteryStats] Karpfenhai:
Here you go:

As i wrote, unnecessary sync... Gmail was just the example with the highest amount of wakeups.

Decide by yourself, what sync do you really need, good luck!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] itsLYNDZ:
I dont know how to get to the Developer options... I dont see that in settings. All I have under Applications -> Developer is Use Mock Locations and Debugging Mode check boxes....
[BetterBatteryStats] Karpfenhai:
Where your dump? Didn't you own a Samsung device?

Edit, just found it, youre still on gb, that's why you don't have this option..

But please do not install any taskkiller apps!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Memphisto11:
Hi, not sure if you missed my earlier post.
[BetterBatteryStats] itsLYNDZ:
I don't use a task killer any more. But is there a way to force close or end maps once I'm done using it without going to settings and running applications? I use it and forget about it then notice its been running in the background for days
[BetterBatteryStats] gpz1100:
Thanks for getting back to me.

That's strange. I have a femtocell here - mini tower, because reception sucks in my area. I have since 'frozen' google talk and google +.

I got 9.5 hours now with 84% remaining - very light use, ~30 min screen on time, and some camera usage/light texting.
[BetterBatteryStats] elk2210:
Sure. I'll post a log after work.

What you need? A BBS-dump or a logcat, or both?

EDIT: By the way, the kernel wakelock shows as "suspend_backoff".
[BetterBatteryStats] kami2k:
what is deleted wakelocks, too much usage?
[BetterBatteryStats] antonyfl:
Galaxy S II, CM9 RC1

Did some light browsing, phone calls, couple texts. Android OS usage is quite high. Using an extended battery, and 1 hour of screen time brought me down to 60 ish percent
[BetterBatteryStats] Karpfenhai:
Disable Sync, Facebook , and google backup service, then it should be way way better!

Replace FB with friendcaster

Use Offline backup instead ( Titanium and / or Nandroid full backup)

Sync.. its up to you..
[BetterBatteryStats] bsoplinger:
Remember that task killer you got rid of and don't use...

I personally use Advanced Task Manager Pro. But it's set to not do any of its task killing magic. It doesn't kill off apps from a blacklist, it doesn't kill everything at some interval, etc. But it does sit there for just such occasions. It quickly gives a list of all running apps. A long press on the app, in your case Maps, brings up a dialog with kill and details. The simple kill won't stop Maps if I remember correctly but the details page which is the same you'd get when doing the manage apps through settings will allow you to force stop which will work. Its also handy to kill the occasional badly misbehaving game that doesn't kill itself when you leave it.

Sent from my Sprint Evo View 4G (PG41200) using Xparent Purple Tapatalk 2
[BetterBatteryStats] stuart0001:
Or you could use the stock task manager app to do the same.
[BetterBatteryStats] elk2210:
Curious: I can't reproduce my suspend_backoff-wakelock anymore. Maybe because I changed my kernel back to CF_root-LQ2. Chrome is still running (listed in the task-manager), but deep-sleep is working fine.

But I will do some more investigation.

Maybe the wakelock comes back (I hope it does not, for sure! :D).
[BetterBatteryStats] itsLYNDZ:
I got the app and tried it this morning, but maps still keeps restarting. I dont want to freeze it cuz TB isn't unfreezing my apps when needed and i don't want to uninstall it
[BetterBatteryStats] chamonix:
AFAIK suspend_backoff can not be related to any app or at least not to userland code as it is a kernel wakelock. An app would hold a partial wakelock. From what I remember from my times debugging suspend and PM suspend_backoff happens when the sleep process is for some reason interrupted. This should also be visible in dmesg by some PM messages (as long as PM debugging is on).
[BetterBatteryStats] p107r0:
or (imo the best approach) use Autorun Manager or Autostarts (both paid but cheap) to disable app's specific triggers, which cause it to autostart after being killed. This way even stubborn Maps can be kept in the drawer, ie. run only when necessary
[BetterBatteryStats] CRXed:
Question:

Why is some information not reset after taking the phone from the charger?

Like "vbus_present" will stay at (for example) 8 hours, while the rest resets to 0.

I know vbus = charger, but it seems strange that it does not get reset.

Any ideas? I am using 1.81
[BetterBatteryStats] itsLYNDZ:
I have everything checked as off in autostarts for maps, yet it keeps restarting. Is there any way to do this in tasker app

I feel like there needs to be an option like TB freeze option that freezes the app until its launched again. I'd use TB but its not unfreezing anything on the Blaze
[BetterBatteryStats] p107r0:
Did you uncheck Menu/View/Hide unknown events - it shows longer list, I have disabled everything under Maps entry. Even that or CM9 is better than stock ROM, anyway not a trace on Maps lurking in my running processes list.
[BetterBatteryStats] Crossfire9:
I've been having horrible battery life with my brand new HTC Evo 4G LTE and it was occurring before with my original EVO. I restored a lot of my apps with Titanium, and was curious if that is the cause of my poor battery life.

My other theory is that something with the towers in my town is causing it. What is weird is, two blocks away another co-worker isn't having the same issues.

My log is attached. It shows some interesting stuff;

Wifi On (): 7 h 16 m 42 s (26202 s) Ratio: 100.0%
Wifi Running (): 7 h 16 m 42 s (26202 s) Ratio: 100.0%
Awake (): 2 h 38 m 24 s (9504 s) Ratio: 36.3%
No Data Connection (): 1 h 43 m 46 s (6226 s) Ratio: 23.8%
No or Unknown Signal (): 1 h 43 m 46 s (6226 s) Ratio: 23.8%
Screen On (): 44 m 22 s (2662 s) Ratio: 10.2%
Phone On (): 6 m 59 s (419 s) Ratio: 1.6%

Sure looks like tower issues, but maybe someone else can look and confirm? I don't go into roaming and have no issues getting reception or signal...my bars appear full. I also have a LOT of awake time....even tho screen on is very low
[BetterBatteryStats] itsLYNDZ:
Just checked, everything under maps has a strike thru it. Even with the hide unknown events unchecked. I would love a custom rom but none are working yet on the Blaze
[BetterBatteryStats] chamonix:
The dumpfile is incomplete. Please read the instructions and report
[BetterBatteryStats] chamonix:
Since 6 h 51 m 59 s
Deep Sleep (): 6 h 22 m 20 s (22940 s) Ratio: 92.7%
Awake (): 29 m 39 s (1779 s) Ratio: 7.2%
Screen On (): 9 m 3 s (543 s) Ratio: 2.2%
AudioOut_1 (1013): 5 m 31 s (331 s) Count:9 1.3%

Your phone was awake 15 minutes if we substract you listening to music.

If you look at the kernel wakelocks you will see that userland has only about one minute to be accounted for:

[B]"multipdp" (): 12 m 48 s (768 s) Cnt:(c/wc/ec)118/0/118 3.1%
"secril_fd-interface" (): 10 m 6 s (606 s) Cnt:(c/wc/ec)161/0/0 2.5%[/B]
"radio-interface" (): 4 m 25 s (265 s) Cnt:(c/wc/ec)297/0/0 1.1%
"l2_hsic" (): 3 m 12 s (192 s) Cnt:(c/wc/ec)519/85/519 0.8%
"umts_ipc0" (): 2 m 34 s (154 s) Cnt:(c/wc/ec)328/0/328 0.6%
"rpm_hsic" (): 1 m 1 s (61 s) Cnt:(c/wc/ec)355/0/0 0.2%
"PowerManagerService" (): 57 s (57 s) Cnt:(c/wc/ec)849/0/0 0.2%

Have you tried the effect of turning off FD and maybe switching radio on that?
[BetterBatteryStats] Crossfire9:
I've read the first post over, the only difference was that the phone was used and not left alone the entire time. I checked my attachment and it appears all the areas are there. What am I missing?

Thanks in advance for your time.
[BetterBatteryStats] gpz1100:
^^To get valid data, the phone should be used minimally. The concept is something to the effect of finding what's keeping the phone awake when it should be ASLEEP. By using the phone much throughout this time, it blurs some of the wake/sleep states.

Recharge it fully before going to bed then generate another log dump after 7-8 hours. If something is keeping it awake, it will be more obvious then.
[BetterBatteryStats] Crossfire9:
Ok, that makes sense. Thanks
[BetterBatteryStats] ichigo786:
Hi, could someone help me with my bbs log. My battery drains extremely fast whilst i use the phone and i don't think it goes to deep sleep correctly.

Thank you for any help.

https://www.box.com/shared/d2c3a62bc8f64c14ab67
[BetterBatteryStats] chamonix:
That reading is not speaking: your awake time is almost the same as the screen on time + the time you listened to music. Please provide a stat for a periode of 3-4 hours after leaving the phone alone.
[BetterBatteryStats] chamonix:
Teaser

Just a sneak peek in one of the new features coming in 1.9
[BetterBatteryStats] phantasia:
Looks fresh!!! :)
[BetterBatteryStats] chamonix:
Cool, thank you!
[BetterBatteryStats] chamonix:
IMHO autokillers are counterproductive and generate more drain by removing apps that have a good reason to be loaded cached. Instead you may want to look at those apps and their settings (or permissions) to find out why they behave like they do and if not configurable find better alternatives.

There are contrary opinions about Juice Defender and you may want to look at alternatives (tasker + apndroid for example).

On the other hand if you are happy with the tools you use that's fine, there is no "one size fits all" :)
[BetterBatteryStats] chamonix:
I'd suggest first check your apps and settings looking for something abvious like e.g. twitter polling every 15 minutes.

When it comes to using the statistics wakelocks are good indicators if the drain is high when the phone is off and supposed to sleep. "Since unplugged" is a good start and I suggest looking after a few hours and see what apps/processes have prevented the phone from sleeping. Don't go through the whole list, check the top1-2 first and iterate till there are no values through the roof. Et voila!
[BetterBatteryStats] chamonix:
Correct. Other factors that may make a difference to keep in mind:

- wifi depending on the settings can keep your device alive

- airplane mode is known to be buggy on some builds/versions and generate high awake times

- bad network coverage can also be a cause

But we shouldn't speculate.... what do the wakelock stats say?
[BetterBatteryStats] chamonix:
We are in the context of coarse grained location here (location using wifi / phone network instead of GPS).

I can't explain why that process is generating the wakelock but my understanding is that it'S your radio module (RIL) that causes those updates. If another version is available you may want to try it.

Other possibility would be to try if any app can influence that process (that's not my understanding but I learn new stuff every day):

- if you use Google Maps together with Latitude turn Latitude off to see if it makes a difference

- if you use any other data gathering service (road warrior app, data collector services) turn it/them off

- if you are not interested in location at all turn off both coarse and fine grained location in your settings
[BetterBatteryStats] chamonix:
Gee, that's a monologue again.... I better go back to coding that "other usage" for you guys ;)
[BetterBatteryStats] f_padia:
This is a good app. Thanks. I have a couple of questions/suggestions.

Firstly, is it possible to display the actual process/package name rather than the long name given? E.g. I see the highest wake lock on my phone is something called 'SyncManagerHandleSyncAlarm' but I have no idea what this is. Process names like those given in auto memory manager would be very helpful in finding the offending apps.

Secondly, if the above is not possible I think it would be very useful to have a parallel thread (or better still a space in 2nd post) with a list of names given by this app and the app/process they are associated with.

Obviously, this would require plenty of user info but I think it would help to make the app much more useful. Otherwise nice one.
[BetterBatteryStats] chamonix:
New version 0.5.0 is out, adding "Other Usage" stats. Check second post
[BetterBatteryStats] chamonix:
THanks for the feedback. In fact I have a name resolver trying to do what you suggest and I'll have a look for it to try harder ;) (added to feature requests)
[BetterBatteryStats] vault1965:
Correct, it was backup cloud Google service. Once I disable it, drain stopped. I am using Titanium backup, so I really do not need this.
[BetterBatteryStats] LuffyPSP:
good work. :D i missed this so much as i just moved to sgs2 a couple days ago.

thanks brother!
[BetterBatteryStats] dseo80:
For everyone looking for something like what Spare Parts used to show - try

"Battery History for Gingerbread"

http://xdaforums.com/showthread.php?p=12815868#post12815868
[BetterBatteryStats] Stonent:
Tried with CM 7.1 on my Droid Eris, the app just pulls up a black screen. Nothing on it.
[BetterBatteryStats] TigerEnigma:
Captivate

Works on I897UCKF1 GB captivate...thanks man!

+1

~Enigma
[BetterBatteryStats] reddead66:
Posted on my blog here!http://myandroidlove.blogspot.com/2011/07/app-low-battery-life-track-down-battery.html:)
[BetterBatteryStats] tltester:
Thanks, I'm going to try with newer radio, we'll see what's happening. Not using latitude, btw.
[BetterBatteryStats] dryhte:
I actually haven't seen this behaviour for a while, will post back here when I have more info
[BetterBatteryStats] R3wt3d:
Thanks! I'll try it out
[BetterBatteryStats] nobnut:
Google Latitude Wake Stats

For anyone wondering how much wake time (and therefore battery drain) Google Latitude causes, see screenshot below:
[BetterBatteryStats] adlerweb:
QR for lazy people like me...

(betterbatterystats_0.5.0.0.apk)
[BetterBatteryStats] nobnut:
Damned people... messing with my Chi ;)

Cont'd...

I have doodled below on a couple of the screenshots you posted.

The first one tells a few stories but also asks a few as yet unanswered questions.

Overall you do not have a sleep problem \o/ but you did suffer battery drain (marked bad). Basically something happened to make your battery start draining faster.Normally this is tied into the screen going on and the device waking up and then a process not going back to sleep. This isn't the case with your device however. It does sleep when your screen goes off.

Bizarrely, your battery sorted itself out later on, again this appears to be unexplained without more tests and comparisons :confused:

You were using the screen more during the drain period. Sometimes the device will need to settle fully into proper sleep following use and won't just 'snap' into sleep.

The second screenshot tells us a bit more:

AlarmManager is not your friend... my friend. If you can avoid using alarms or calendar reminders, this figure will drop :)

The *backup* process can be turned off in Settings > Privacy > 'back up my data'. If you use Titanium etc then you don't need to backup to Google's servers. Screenshot below ;)
[BetterBatteryStats] nobnut:
I've just seen you have software update running... you can turn that off in settings that as I assume you are using a custom ROM and therefore you won't be getting any OTA updates soon ;)
[BetterBatteryStats] ithehappy:
Where buddy? I don't see it under Running Apps! Besides I have modified it in Gemini App.

I am on Stock ROM (see siggy) btw.

Regards.
[BetterBatteryStats] nobnut:
Sorry, I uploaded wrong screenshot, I have replaced it now. It was the screenshot from Gemini.

EDIT: Sorry, I see you are on the stock ROM, you can still disable it though. No need to have it running 24/7, just do a manual check every day or two ;)
[BetterBatteryStats] LandUzu:
Thankyou buddy..

Firstly nobnut, what application are you using to edit my screenies? be handy to know for the future.

I think i may have restarted my phone once or twice in that sequence shown. i seem to remember trying to see if GMaps would restart when i done so.

Regarding AlarmManager/calender, i dont remember ever settign any reminders etc.... how do i stop that, is it from my phone or my own googleaccount settings page?

I have disable *backup* too now :) I use MyBackup Pro, am i better to use TB? i have used it in the past but somehow migrated to MBP a couple of ROM flashes ago. So am i right in thinking that i could probably expect circa 2 days if i can lose the Alarm Manager wakelocks @ my current phone usage?:confused:
[BetterBatteryStats] carlos67:
Not strictly true my old mucker :p. I have always had DRM locked and have no problems playing media be it music (mp3's) or pictures or video.

You only need it enabled if you have DRM content on your phone which I and many others don't.
[BetterBatteryStats] nobnut:
Aha my old bean!!

If you look carefully, you will see I cunningly inserted the word 'some'. As in not all media ;) LOL
[BetterBatteryStats] ithehappy:
Well I have turned Off the Auto Start features of Software Update in Gemini like GMaps and others. So I think it won't start automatically again. Besides, I can't access Software Update anymore from Settings! It's not important as I never use it, but don't know why it isn't opening!

Regards.
[BetterBatteryStats] nobnut:
I use an extremely complicated application to perform this feat!!! MS paint LOL

I meant event reminders. Like when you receive a status bar notification 10 minutes before a diary appointment. Alternatively, do you use any apps which notify you about events (e.g. birthdays, buy beer, flash the latest LeeDroid ROM etc). You can turn these off in calendar settings.

Use whatever you are happy with. As long as it works... it works ;)

It is hard to say how much extra battery life you might get. In my professional opinion, I would say you will get about this much extra (______________)
[BetterBatteryStats] carlos67:
ok truce!:p

btw.... some observations/questions you may want to comment on

I've found that since freezing BMW and BBS that my battery usage has improved a bit. Not sure exactly how much but it's noticable. You yourself suggested recently IIRC that this may be the case and sure enough over 3~4 days I have observed this.

Question my friend, why do you think that some devices can "snap" into sleep as soon as screen goes off, whereas others (like mine :rolleyes:) take a bit of cajoling and take maybe 1/2 hour before deep sleep is reached? Does yours sleep immediatley/quickly?

I wonder if it's a single app or a few suspects that make the difference. Hmmmmm.

Final question (was asked before by someone else), calendar reminders (and hence the dreaded alarm manager:(), disabled in google online account or on the handset in calendar app?

TIA matey.