yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] pjadec:
You got wifi on and some google stuff keep your phone awake. turn off wifi and use greenify.

SystemUpdateService (Google Services): 7 h 6 m 7 s (25567 s) Count:7 98.0%
[BetterBatteryStats] kevinrubio1:
I do use greenify, how do I turn off/disable the Google stuff?
[BetterBatteryStats] pjadec:
Some google stuff can be greenifyed but some stuff cannot greenifyed.

Maybe or maybe not it depend what you want to do it?. You should read what to do in greenify section.
[BetterBatteryStats] kevinrubio1:
I know what to do on the greenify app. I already hibernated many apps, but tell me which apps they are (the ones running in the background)
[BetterBatteryStats] Pinan:
Here and at the other thread: http://xdaforums.com/showpost.php?p=35636329&postcount=11042

Search this thread for issues like this, as you're likely to find it.
[BetterBatteryStats] It_ler:
Before you greenify some apps, you have to get rid of this partial wakelock: "SystemUpdateService"

Check that you disabled auto-update of your firmware in Settings > About phone > ...

This wakelock prevented your phone from going into deepsleep at all.

Then you can create a new BBS dump to check other apps.
[BetterBatteryStats] kevinrubio1:
Won't disabling that stop my notifications from coming in?
[BetterBatteryStats] Pinan:
No. It only stops Samsung Updates. Read what It_ler posted right above your post.
[BetterBatteryStats] kevinrubio1:
I went to settings, and into about device but there was no setting to disable auto-update (I have an S4)
[BetterBatteryStats] pjadec:
It depends what apps is installed your phone. You don't need greenify all apps in your phone. Only some of them apps who doens't let phone to go deep sleep. Greenify section helps you with that what apps should get greenifyed. To get battery loss of about 0,3-0,6% per hour is very good, but then you have to turn off wifi, BT, GPS, mobile turn to 2g no internet connection. When you are using 3G or 4G it is double or triple the battery consumption.
[BetterBatteryStats] kevinrubio1:
Could you link me to the greenify thread?
[BetterBatteryStats] Pinan:
http://xdaforums.com/showthread.php?t=2155737

For the SystemUpdateService issue, just freeze it with Titanium Backup.
[BetterBatteryStats] kevinrubio1:
But the other thing you linked me too said "even though you freezed it, it'll still run" or something like that! But I'll freeze now
[BetterBatteryStats] Pinan:
You're confusing programs. Greenify allows app to still run, when you want them too. Freezing (TB) them does not. I use both programs, for different apps.
[BetterBatteryStats] kevinrubio1:
http://xdaforums.com/showpost.php?p=35636329&postcount=11042

No I'm talking about this part of this thread, where he said that he froze it and it was still running
[BetterBatteryStats] Karpfenhai:
Follow my advice for gsf a few pages back, disable system update receiver, don't forget to reboot.

Tapatalked from my Galaxy SII
[BetterBatteryStats] kevinrubio1:
http://xdaforums.com/showthread.php?p=43785764

Is it the one that has 7 thanks on this page?

I tried it and it broke notifications for twitter ,instagram, etc.
[BetterBatteryStats] Karpfenhai:
then enable all except system update ... :D
[BetterBatteryStats] kusakov:
Yes of course!:laugh:
[BetterBatteryStats] Nightshadow931:
Could someone take a look ?

Awake time 2h 26m, screen on 40 min.Couldn't find anything strange in alarms though.

https://dl.dropboxusercontent.com/u/49071599/BetterBatteryStats-2013-07-23_195112793.txt
[BetterBatteryStats] jkc120:
Deep sleep only 60%!

Kernel and Partial wakelocks and also alarms look fine. The phone is only in deep sleep like 60%. Granted, I listened to tunein radio on the way into work, but that wasn't for very long and the awake time from that and gmail don't add up to the amount of awake time.

What am I missing?
[BetterBatteryStats] Lither:
Can someone check my dumpfile to see what's using my battery
[BetterBatteryStats] Pinan:
You lost me. That thread is about how to stop System Updates from running (which you need). There is no mention of anything else.
[BetterBatteryStats] uwk007:
Dears

Below linke is my battery states

I have a strange issue

I lose about 15 % of battery if I restart at recovery mode even without flashing any thing and after restart I get around 5% back again

That happens some time not all time

Please help

http://db.tt/F0Mt9ofc
[BetterBatteryStats] Karpfenhai:
Hmm, the only I see is Wi-Fi plus data traffic, bring down the traffic and give better Wi-Fi on off a try.

Tapatalked from my Galaxy SII

---------- Post added at 12:21 AM ---------- Previous post was at 12:18 AM ----------

Hmm, tencent could be an issue, but your dump is to long, take a straight idle reading for approx 4 hours and repost. Since you are rooted, tick root features within bbs too.

Tapatalked from my Galaxy SII

---------- Post added at 12:24 AM ---------- Previous post was at 12:21 AM ----------

In this dump, there is nothing to worry about, except Facebook.

Tapatalked from my Galaxy SII
[BetterBatteryStats] mjdavis871:
So I think I got all you suggested, and this bad boy was in Deep Sleep for 6 Hours 33 Mins, and awake for 7 mins! attached is the log...anything else you see there?
[BetterBatteryStats] cryogent:
Hello It_ler, i'm back again with a new log from last night and i hope the log is ok to read
[BetterBatteryStats] sien1996:
hey there if im not wrong u should cahnge to a better modem and greenify blackmart.. and use chrome instead of stock browser... its better in my opinion :p

hope it helps.
[BetterBatteryStats] cryogent:
Blackmart is already in hibernation with greenify and the Chrome browser don't like tracking my stuff
[BetterBatteryStats] It_ler:
Very good IMO !

Only Hotmail and Tapatalk are still busy when the phone should sleep.

If you don't need them running in the background, try to greenify these apps.

Then enjoy your phone :good:

---------- Post added at 08:49 AM ---------- Previous post was at 08:46 AM ----------

Not bad.

But provide an IDLE dump next time = doing nothing with the phone (screen off all the time).
[BetterBatteryStats] cryogent:
ok in a few days i'm comeback with another log for idle over the night.

u think its ok to change my modem or leave it that way?
[BetterBatteryStats] It_ler:
When I see this:

No Data Connection (): 13 h 32 m (48720 s) Ratio: 100.0%

No or Unknown Signal (): 13 h 32 m (48720 s) Ratio: 100.0%

Maybe you should try another modem ... or you are in a very "bad" mobile reception area.
[BetterBatteryStats] qwerty22:
Samsung Galaxy S3, stock I9300XXEMF6 (rooted), BetterBatteryStats_xdaedition_1.14.0.0B2.apk (russian edition)

I have a night statistics: Level lost [%]: Bat.: -11% (100% to 89%) [1,7%/h], Since 6 h 24 m 23 s

In the screenshot I see the mail envelope icon (see Attached Image). As I understand, it is /system/app/SecMms.apk (Samsung messaging app?) Please, help me find this process in the log BBS.
[BetterBatteryStats] Karpfenhai:
Hey, I'm on the airport right now, plane departures in a few, vacation I'm coming! :cool::D:p

Tapatalked from my Galaxy SII
[BetterBatteryStats] It_ler:
Enjoy your vacation and have a nice time :fingers-crossed:

Back to topic ... charge your batteries ;)
[BetterBatteryStats] atrix4nag:
Main culprit is this. If you are rooted, then you can use post no#3 to remove maps wakelocks.
[BetterBatteryStats] mahdibassam:
Battery Drain

OK....

So here is a complete rundown of my battery usage...

As i mentioned in my repvious post,i am on Samsung Galaxy S II with VillainRom 2.1 coming from stock rom, an i am losing battery like water out of a water tap , I'm talking 20percent per hour when the phone is untouched in my bag.

I only have one Gmail Account that is on Push notification, i have a Facebook and twitter account as well syncing.

Wifi is enabled most of the time when i am at home, but the following results are based on 3G connectivity while i was at University and the phone was in my bag.

i do not use Juice defender or anything like that.

* Battery monitor widget shows between 28MA to 500MA (!!!!!!!) when on standby sometimes! at the time of writing this post, its on 495MA!!!!!!

* BetterBatterystats shows the following:

I would greatly appreciate some help here.
[BetterBatteryStats] nobnut:
Hi,

This is a fairly easy one to help with. Here is your problem. If you read the comments on the Market page lots of users complain about horrific battery drain from this app. (Pro tip - always read Market comments before you install an app ;)) You need to uninstall it and find a replacement, or close it fully when you are not using it. You can see from the screenshot you provided how much sleep it prevented:

The next screen shot however is a little more perplexing:

You can see that your phone basically never goes to sleep! In part this may be caused by the Talkbox app (but it only accounted for 1hr 44mins of wake). It may be that this app is in fact causing all of your awake trouble. Once you have uninstalled it, rerun the tests and see if things have improved fully, or if there is something else causing problems. Sometimes one big issue causing wake/battery drain will disguise others. We have to remove the big ones before we can see if anything is hiding behind them ;)

The other figures reported that you posted all look ok. If you uninstall Talkbox and things do not improve, post back here and we will have another look :)

Here is something that you may also like to try. It works well for me:

1/ Freeze Gmail using Titanium Backup.

2/ Add your Gmail account to your normal email client (you can set syncing frequency as you wish)

The logic for this is why do we need two email clients running when one can do the job just as well? ;) Two processes means twice as much battery use right?

You will not lose any functionality by freezing Gmail! Your Google account will still be there and Market etc will continue to work normally.
[BetterBatteryStats] ithehappy:
What is this Background Friend Service and Activity Manager which is causing the wakelocks? How could I stop them?

Thanks in advance.

Regards.
[BetterBatteryStats] nobnut:
Activity Manager is normal. If you stop it your phone won't work. If you want to reduce it's 'footprint' however, make sure you exit apps you no longer need before turning the screen off. By this I mean pressing the back arrow to exit them rather than pressing the home button to return to the homescreen - and leaving them running in the background.

The Friend service you will see relates to Google Maps. I think you might be signed into Latitude (enabling you to see your friends' location and for them to see yours). If you want this service, there is nothing you can do. If you are happy to live without it, just sign out of Google Latitude altogether. Or you can clear all data and cache from Maps in Settings > Applications > Manage Applications > All > Maps.

You can see in this post I made, how much sleep Latitude prevents.
[BetterBatteryStats] LuffyPSP:
i have this after 8 hours;

com.seven.Z7.WakeLock.Alarms - com.seven.Z7.Social Hub - 1 hr 29 m 24 s

DownloadManager - Media - 23 min

what are these? those are in wakelocks + last unplugged.
[BetterBatteryStats] nobnut:
The only way you can cure the com.seven.Z7.Social Hub is by signing out of samsung's Social Hub. If you want it and use it however, you will have to live with it :(

I have removed all of the Samsung rubbish from my phone. Social Hub, Games Hub and everything else as well.

I don't know what is causing the DownloadManager activity. You must have an app which is calling it up. Maybe your browser is the problem. Without knowing what you have installed, it is hard to know.

You could try rebooting and seeing if it does this again or if this was a one off.

I have very little, or no activity in my DownloadManager.
[BetterBatteryStats] Mikulec:
@chamonix - do you plan to release the app on market? It would be more comfortable to spot the updates.
[BetterBatteryStats] Bulut.O:
Perfect app thx a lot...

I have one question

What could the point AWAKE be in OTHER... see pic...

http://img27.imageshack.us/img27/4388/20110727173216.png
[BetterBatteryStats] chamonix:
Yes I do but it will not be for free (the price will be modest). It will stay free and updated with the same features at xda-dev but without the update notification from the market. You may want to consider following me on twitter as a workaround for now (see first posts in this thread).
[BetterBatteryStats] chamonix:
Go to "Wakelocks" in the first combobox and you will probably find the reason. Awake times when the display is off are always caused by wakelocks, most of them not due to interactive use.
[BetterBatteryStats] Mikulec:
OK ,thanks for the info. Btw I dont use twitter, dont u have google+ account?
[BetterBatteryStats] chamonix:
I do but I use it for non dev stuff and don't crosspost release info there.
[BetterBatteryStats] ithehappy:
This great app won't do justice if it comes for 'Free'.

Regards.
[BetterBatteryStats] nobnut:
Absolutely!

Sent from my Motorola StarTac using Voodoo
[BetterBatteryStats] chamonix:
ok guys time for a new release. I'll add refresh and dump-to-file but I still have one feature open. Any wishes?
[BetterBatteryStats] nobnut:
Hi, thank you again. Possibly (for a future release) the option to click on an entry to take you to the application's settings details.

The same as Settings > Applications > Manage Applications...

That would be a tough one but a great feature! ;)

EDIT: And/or a shortcut to the app itself to allow the user to edit the settings from within the app.

Sent from my HTC Flyer using vodka
[BetterBatteryStats] XlAfbk:
a compare to history feature? like you can record one "reference" session and then compare the current one to that. that way apps causing unusual drain stand out more and changes are easy to follow.
[BetterBatteryStats] f_padia:
As I've said before I think the app needs to have 'time since' displayed. Otherwise its impossible to make any sense of the wakelock times. That's my (small) feature request :D
[BetterBatteryStats] chamonix:
I read minds :) custom ref is half done, just need to take care of saving that data when the application is moved away from memory by the java engine.
[BetterBatteryStats] carlos67:
Hi Chamonix & nobnut,

Excellent app, just installed it. Thanks for your hard work & efforts :)

My biggest wakelock app is "Tasker.UserAbsentWakelock" at 9 minutes over 8 hours (since fully charged and hence unplugged). I have 1 active profile which checks for presence of my home wifi and connects if it detects it.

However, you will see from my screenshots that there are times when my sgs2 is awake while the screen is off. Could this be tasker waking it up periodically to check for presence of wifi as per in the wifi profile thats always active??? In Taskers settings, it is set to search for wifi access points every 600 seconds (10 mins) when screen is off and every 120 seconds when screen is on. These are default values in tasker.

Any suggestions / pointers greatly appreciated. :)

btw.... was reading a wiki article on tasker and something about superuser requests and permissions made by tasker when trying to action tasks. The article mentioned @nobnut. But it was all a bit over my head :confused: http://tasker.wikidot.com/deep-sleep-detective

p.s. sorry for the long winded post, just wanted to give as much info as poss.:o
[BetterBatteryStats] :
Kernel wakelocks are visible (SGSII on CM7). I haven't compared them to a dump yet, however.

Thanks for adding additional functionality to an already great app.
[BetterBatteryStats] s2d4:
Good demonstration of intelligence here.

Although petty, butI guess you are right.. I put an extra s behind your forum name, sorry.

And no, I'll leave you to it as now we have both the app dev and kernel dev looking into it.... Our bickering is neither constructive or is of any use to the either of us..

EDIT: lol, damn you mudferret. I was hoping this would all be joined in one posts but you beat me to this last posts.. :D
[BetterBatteryStats] beepsilver:
Me too--stats only when plugged in.

---------- Post added at 05:52 PM ---------- Previous post was at 05:41 PM ----------

I'd like to run this as well. Can someone tell me how to go about getting this data? Can I run it in terminal emulator? If so, what are the commands?

Can I get the data from root explorer? If so, in what file system?

Thanks for helping a noob.
[BetterBatteryStats] mbze430:
I am also seeing this WakeLock from a Skyrocket. It is the the 3D GPU in the Qualcomm Snapdragon.

As to WHY it's causing a wakelock I haven't figured it out yet.
[BetterBatteryStats] beepsilver:
Thanks for running that down :)
[BetterBatteryStats] chamonix:
cat /proc/wakelocks > /sdcard/wakelocks.txt

on the phone and then copy the file and attach it here
[BetterBatteryStats] chamonix:
My observations from testing both kernel wakelocks since I added the alternate method (tests with USB debugging on) :

- 'kernel wakelocks' when they work do only show data for 'since charged', survive reboots but do not survive charging

- 'kernel wakelocks (alternate)' counters are reset at reboot but work consistently when plugging/unplugging. The counters are not reset when charging to 100% nor by unplugging so it seems the reference would be 'since boot'

Summarized: 'kernel wakelocks (alternate)' are working, the ref should be 'since boot', 'kernel wakelocks' are useless as the reset of the counters is flawed.

Both data come from the same source (battery service, SamplingTimer). On one case I rely on the api delivering data for different 'since' constants, the alternate method grabs the total from the protected fields of SampleTimer without the logic of references. All this stuff happens in BatterystatsImpl.

Can anyone confirm?
[BetterBatteryStats] Rob2222:
Hello chamonix,

I have some feature ideas:

-add ability to _enter_ a timestamp. Maybe enter hour+minute, or just hour, or maybe something like "last xy minutes". Or both. Would be very nice for checks where you have missed to set a timestamp.

-add a mark in graph to see, where current timestamp is

-maybe make default graph view from _timestamp_ to end, not from logstart to end, when in timestamp mode. or make it toggle.

-Another really nice feature, but this would be much more development, I think, would be to mark a app from the wakelock list, f.e. maybe facebook, and then see a wakelock graph from the selected app only. Would be really helpfull.

BTW, when you zoom in graph much, it gets from vertical lines to something like triangles. Why that?

BR

Rob

PS: BTW, youre from BRB, Ger?
[BetterBatteryStats] :
I had been fairly certain I had accessed kernel wakelocks yesterday without being plugged in, it now appears I was mistaken. I don't recall being plugged in when I first observed kernel wakelocks but I assume now that I must have been.
[BetterBatteryStats] beepsilver:
Here you go...View attachment 781688
[BetterBatteryStats] hlb3:
Finally able to see kernel wake locks under the alternate menu on both my Thrive and my SGS II, thanks!
[BetterBatteryStats] suku_patel_22:
Solved wake lock due to wifiservice

Got the reason, the culprit application "Automate It" was holding the wake lock on wifiservice as coarse location was enabled in it.

Disabling it and setting accuracy to 200000 solved it :)
[BetterBatteryStats] suku_patel_22:
Some issues in version 1.3.2

I found the below issues in version 1.3.2, mainly in the graphs and the UI.

1. On screen rotate the app re calculates the permissions. May be using the below helps.

android:configChanges="keyboardHidden|orientation"

2. My Bluetooth was on whole day, but graphs don't show it. Similarly my GPS was used hardly for a few minutes, but the graphs show GPS as ON.

Screen shots below

---------- Post added at 04:55 PM ---------- Previous post was at 04:40 PM ----------

I use SDS clock https://market.android.com/details?id=com.sixdotseven.sdsclock&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5zaXhkb3RzZXZlbi5zZHNjbG9jayJd and smooth calendar https://market.android.com/details?id=se.catharsis.android.calendar&feature=search_result#?t=W251bGwsMSwxLDEsInNlLmNhdGhhcnNpcy5hbmRyb2lkLmNhbGVuZGFyIl0..

beautiful transparent widgets, if transparency is what ticks you off....
[BetterBatteryStats] chamonix:
Well spotted, thank you!

Indeed there was a mixup between GPS and BT leading to GPS serie being overwritten with BT and BT receving no serie. I added issue #52 and fixed it straight away. Will be in the next release to be expected soon with the not functioning kernel wakelocks removed
[BetterBatteryStats] suku_patel_22:
What about the stats recalculating when screen orientation changes?

Sent from my HTC Desire S
[BetterBatteryStats] chamonix:
will look into that too, I have to figure out how not to refresh. Added bug as well (#53)
[BetterBatteryStats] yhrn:
Hi,

I have been checking my kernel wakelocks in proc/wakelocks and after "normal" use of the phone for about 36 hours (15% battery left) I have a wakelock called vbus_present with a sleep time of about 8,5 hours. Anybody have a clue what that is?

The user wakelocks look ok to me (but I don't know much about this). I used MyTracks while running for about an hour and have been using PowerAMP and Google Reader quite a bit.

I also see svnet_dormancy high up there which bothers me a bit. I assume this is related to fast dormancy. I checked some old wakelocks files I had and it used to be on 0 sleep_time. The things that I can think of that has changed for me since then is that 1) I now have WiFi enabled most of the time since my new router and my SGS2 likes each other (as opposed to my old router which drained the phone like crazy) and 2) the last update of the ROM I'm on (Androidmeda) now includes a MultiCSC (which forced me to do a full wipe to get the APN settings back).

I'm have now disabled fast dormancy (my operator is Tele2 Sweden by the way) and will see how that works out.

I guess I now get decent battery time but looking at the stats I see that the phone has so much more awake time than screen time (5,5h vs 1,25h, one hour MyTracks recording though so really 5,5 h vs 2,25h) and I can't help feeling it could be a fair bit better still. Any ideas on what I could do?
[BetterBatteryStats] ngoonee:
I've noticed vbus_present as well, quick google doesn't show anything, would appreciate help from anyone else seeing it.
[BetterBatteryStats] hlb3:
I had that pop up earlier on my phone as well, ran for like 15min.
[BetterBatteryStats] Entropy512:
vbus_present = charger connected

svnet-dormancy = cell data transfers (Galaxy S II specific) - Fast dormancy or not, you get a 6 second wakelock any time the radio transfers data

svnet = basic radio management (Galaxy S II specific)

wlan_rx = wifi chip received a packet from somewhere - On a Galaxy S II, lots of these combined with the fact that the device takes 650 msec to resume from suspend and 150 to go back to sleep means that occasional wifi packets coming in will skyrocket Android OS usage. As an extreme example, run the following from a Linux box when wifi sleep policy is "never" and watch your deep sleep percentages plummet, your battery drain, and Android OS skyrocket:

ping -i 5 <wifi IP address of phone>

wlan_wake = wifi chip woke the CPU (Usually this fires and leads to a wlan_rx wakelock)