yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] chamonix:
thank you for the detailed feedback, it will help me lot when I come to fixing this bug (do things right).

Fortunately my gf has a Desire running froyo so I rhink I will switch phones for a while in order for me to debug things. I may have to dive deeper into the source code too. I found the different constants because I knew what I was looking for (thanks to your detailed observations) so I will copy your comment to the bug as well.
[BetterBatteryStats] chamonix:
What I read

Alarm Stats:
com.google.android.location
37181ms running, 332 wakeups
332 alarms: act=com.google.android.location.ALARM_WAKEUP flg=0x4
com.google.android.apps.finance
158 alarms: act=android.intent.action.TIME_TICK flg=0x40000004
3 alarms: act=com.android.server.WifiManager.action.DEVICE_IDLE flg=0x4
15 alarms: act=com.android.server.ThrottleManager.action.POLL flg=0x4
4 alarms: act=android.content.syncmanager.SYNC_ALARM flg=0x4
ccc71.bmw
12715ms running, 157 wakeups
157 alarms: flg=0x4
com.angrydoughnuts.android.alarmclock
8658ms running, 0 wakeups
157 alarms: flg=0x4
com.viber.voip
1088ms running, 78 wakeups
78 alarms: act=com.viber.voip.action.KEEP_ALIVE_RECEIVE flg=0x4

If you are running Latitude there is nothing much you can do about com.google.android.location, if it's not the case I'd check for any service using location.

com.google.android.apps.finance: are you using using the stock synch? and if yes is it on purpose?

ccc71.bmw: a serch for BMW in this thread will give you more info than I can

com.viber.voip: possible way to reduce would be to higher the keep-alive time if possible

com.angrydoughnuts.android.alarmclock: looks like weird behaviour to me as I don't see why an alarm clock can not set an alarm at a precise time instead of so many of them (except you smoozed the whole day ;) )

Hops this helps
[BetterBatteryStats] neoxz:
com.angrydoughnuts.android.alarmclock:is the app Alarm Klock to get me wake up every morning :D. However, i close the alarm after i woke up. not snoozing it the whole day

Let me disable all those 1st and report back later of the day. I have a friend with nexus s with roughly the same apps and she's not having so much drain :(. Mine's like 5% per hour
[BetterBatteryStats] chamonix:
Without knowing the details the number of alarms set by your alarm clock seems weird to me. If I want to wake up at 7 I'd expect an app would need one Alarm. From your log it looks like waking up every couple of minutes to see if the time to wake up was reached.

Afaik it's open source so you could have a look
[BetterBatteryStats] neoxz:
Okies, removed alarm klock from my apps and here's the latest.

Alarm Manager is still the culprit that causes my phone to be awake 50% of the time.

===================
General Information
===================
BetterBatteryStats version: 1.0.0.0
Creation Date: 2011-09-08 13:19:05
Statistic Type: (3)
Since 2 h 7 m 13 s
VERSION.RELEASE: 2.3.4
BRAND: MOTO
DEVICE: olympus
MANUFACTURER: motorola
MODEL: MB860
===========
Other Usage
===========
Awake (): 22 m 29 s (1349 s) Ratio: 17.7%
Screen On (): 15 m 11 s (911 s) Ratio: 11.9%
=========
Wakelocks
=========
AlarmManager (Android System): 56 m 48 s (3408 s) Count:629 44.7%

Alarm Stats:
net.rgruet.android.g3watchdog
83ms running, 7 wakeups
7 alarms: act=net.rgruet.android.g3watchdog.ACTION_CHECK_SERVICE_ALIVE flg=0x4
com.google.android.gsf
288ms running, 7 wakeups
1 alarms: act=com.google.android.intent.action.GTALK_RECONNECT flg=0x4
6 alarms: flg=0x4
com.motorola.PerformanceManager
11ms running, 1 wakeups
1 alarms: act=com.motorola.action.PHONE_READY flg=0x4
com.facebook.katana
83ms running, 8 wakeups
1 alarms: act=com.facebook.katana.service.30 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
1 alarms: act=com.facebook.katana.service.21 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
1 alarms: act=com.facebook.katana.service.24 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
1 alarms: act=com.facebook.katana.service.3 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
1 alarms: act=com.facebook.katana.service.22 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
1 alarms: act=com.facebook.katana.service.2 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
1 alarms: act=com.facebook.katana.service.28 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
1 alarms: act=com.facebook.katana.service.26 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
com.android.vending
13ms running, 0 wakeups
1 alarms: act=com.android.vending.FORCE_UPDATE_CHECK flg=0x4
android
25390ms running, 16 wakeups
10 alarms: act=com.android.internal.policy.impl.PhoneWindowManager.DELAYED_KEYGUARD flg=0x4
173 alarms: act=android.intent.action.TIME_TICK flg=0x40000004
18 alarms: act=com.android.server.ThrottleManager.action.POLL flg=0x4
6 alarms: act=android.content.syncmanager.SYNC_ALARM flg=0x4
ccc71.bmw
7825ms running, 24 wakeups
24 alarms: flg=0x4
com.whatsapp
14031ms running, 0 wakeups
5 alarms: act=ALARM_ACTION flg=0x4
com.good.android.gfe
76ms running, 3 wakeups
1 alarms: act=com.good.android.gfe.intent.action.REMINDER_ALARM flg=0x4
1 alarms: act=com.good.android.gfe.AlarmTimer.TIMER flg=0x4
1 alarms: act=com.good.common.util.IdleTimer.ACTION_TIMEOUT.DEFAULT flg=0x4
com.google.android.apps.maps
66ms running, 8 wakeups
8 alarms: flg=0x4 cmp=com.google.android.apps.maps/com.google.googlenav.prefetch.android.PrefetcherService
com.viber.voip
3528ms running, 94 wakeups
94 alarms: act=com.viber.voip.action.KEEP_ALIVE_RECEIVE flg=0x4
com.motorola.blur.service.blur
78ms running, 3 wakeups
3 alarms: act=com.motorola.blur.service.blur.pm.alarmintent flg=0x4

Help? :confused:
[BetterBatteryStats] dzontra11:
What the hell is Google location?I freez maps ,talk...
[BetterBatteryStats] ejstubbs:
Sounds good, I'll look out for an update.

Another thing I meant to mention is that the total time with wakelocks set doesn't seem to be anything like enough to account for all the "awake" time when the screen wasn't on. That goes for Battery History as well as BBS. The example stats I posted only show the top four offenders but the totals are both around 20-25 minutes of wakelocks, whereas the "awake with screen off" time is two or three

hours

. It may be that I am misunderstanding something, but why the apparent discrepancy?
[BetterBatteryStats] chamonix:
Don't be.... it's an iterative process and between runs it's hard to reproduce conditions. What I noticed is that you had Wifi on in the second run and not in the first. I'm not telling that Wifi is bad but only that too much changing conditions may produce a moving target that is harder to nail.

I'd suggest doing the following:

- try to take next run under the same conditions as the first one (without wifi as wifi adds more complexity to the problem.

Also please get rid of the following apps for a while (freeze them or turn them including services off.

From the first run I remember you had also latitude with the friendslocator active so please make sure you turn that off too as well as the motorola sync service.

It's not that those are bad but sync services are a variable that is adding a lot of variation as it depends on network coverage and on the quality of the service as well (HTC is known for it's crappy sync).

The aim of the exercise is to get a baseline and to keep it from run to run and change only things we control to measure progress.

Please feel free to post full logs again (especially the full list of wakelocks).

Alarm Stats:
ccc71.bmw
7825ms running, 24 wakeups
24 alarms: flg=0x4
com.viber.voip
3528ms running, 94 wakeups
94 alarms: act=com.viber.voip.action.KEEP_ALIVE_RECEIVE flg=0x4

I take it as a challenge and we will find a way to get your wakelocks down so that you can turn those mentioned app on one after another and decide for your self if the additional cost is something that you can live with.
[BetterBatteryStats] chamonix:
My first impression: 20 minutes awake in 22 hours is not bad.

But still I believe there is potential if some of the services that show are not on purpose:

I see signs of location based services (maybe multiple) like e.g. com.htc.bgp (com.htc.htclocationservice.AutoSettingService), I don't know if you use Tasker based location or any other tool using coarse grained location but you could check for those and see if all of them are running if you really want them.

To sum it up:

- 22 hours is not that bad. If your battery life tends to vary I'd be interested in seeing a log when it's bad to compare

- check the apps using location and decide if you really want to run them (the problem of location is that sometimes it's a sum of small bits but they can vary extremely if poorly designed and your network coverage vary of you use any tools like JD or green power (see the thread for my opinion why those can't not help)
[BetterBatteryStats] chamonix:
Location is something that is not only related to an app but a service android offers for location based apps. If e.g. you have a weather widget it will query for your current location and by doing so using the location service.

If you have high wakelocks on any location app / service you need to find the cause (caller of the service). As we know a few already I'd suggest you post a log and someone here will be happy to help you pinning down the app that is bothering you.

Note: be carefull with freezing gtalk and make you don't freeze the framework because it will a) have negative side effects like FCs and b) prevent your market payment system to work properly.
[BetterBatteryStats] dzontra11:
Thx man..but iy is okay now..just one minute of wake.....
[BetterBatteryStats] k1000716:
@ Chamonix

I've been using this for quite a while now, solving several issues with rogue apps as well as providing useful statistics.

Despite it being free here I've now bought the market version in appreciation of such a great app and to help support you.

Thanks!

Edit:

I need edit nobnut's zip as it doesn't work for me at the moment, when I've got time later I'll try to get it working. Litepro did not make this easy for us...

Sent from my GT-I9100
[BetterBatteryStats] Szczepanik:
Email Application Partial Wake Lock SOLVED

Those of you having problems with Email Application Partial Wake Lock when using Exchange / ActiveSync might like to note the new email app solution in this post: Email app battery drain - FIXED as well as the discussion in Issue 9307: Email Application Partial Wake Lock which also includes some info about generating logs for Email.

You can download Email app version 2.3.5r1 to fix battery drain (wake lock released properly).

Cheers

Tom
[BetterBatteryStats] luizlee86:
First page. Third post. :good:
[BetterBatteryStats] taz1458:
For some reason my battery is dropping like a rock. Running AOKP JB Build 5 on my fascinate with devil kernel. Here are photos of the partial Wakelocks if anyone can figure it out I would greatly appreciate it. If there is anything else you need just let me know. Thanks in advance!
[BetterBatteryStats] Karpfenhai:
Hmmm, after so many complains about drain for no reason on the gt9100 (gs2)

I would strongly recommend to all users of siyah kernel to switch over to phenomenal kernel plus bvlp7 modem.

At least for 2 days to ensure the drain is not ROM related.

Background: I've seen so many dumps containing plus 90% deepsleep and its still draining.. I'll not disrespect gokhans work but somewhere the drain must come from...

Give it a shot, you'll be amazed.

Thx.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] skezza:
Any idea whats causing my drop karp?

Thanks
[BetterBatteryStats] Karpfenhai:
Hmm, we need the dump to get the full picture..

But afaik, for your device there is a speedmod kernel, i would try this..

Assuming you are still on GB, try this one --> http://xdaforums.com/showthread.php?t=1044519&highlight=speedmod
[BetterBatteryStats] Hilmesh:
the dull color of the phone signal is also one issue where battery is lost faster than when the color is full dark green. it basically means the signal is not good. So try going to a different modem. trust me it matters. i have done a lot of work on this with Karpfenhai's help.

svnet wakelock is related to mobile network traffic sorry but i don't have more information on the same. you will have to search the thread.

if you post a dump i am sure you will get a lot of more answers. :)

Chow.
[BetterBatteryStats] skezza:
Hi,

Yeah I should have dumped. Stupid idiot I am. Still, I've reinstalled the eBay app. Will see if that makes a difference. Seemed to be huge number o wake locks coming from that.
[BetterBatteryStats] Karpfenhai:
The Ebay app is easy to control, just disable all autostarts from it!

You will loose the push notification but the app will work anyway,
[BetterBatteryStats] Casanoaa:
Karpfenfei?
[BetterBatteryStats] azrash:
IMHO, 0.3%/h is good enough.

Search in the thread on how to reduce the multipdp wakelock
[BetterBatteryStats] LaurensBER:
Hey Guys,

I have the following problem, Android OS (in the Android Battery stats) always uses 2x times as much as the screen. I'm not getting a terrible battery life but I feel that I could get a lot more if Android OS started to behave a bit better (yesterday it was 50% Android OS!).

I'm using:

M1UI 2.10.19

Dorimanx 7.4 (pretty much default settings).

I've already tried:

Disabling location tracking in Google Now/Google Maps

Disable all account sync (Exchange/Google)

Turn off automatic refresh in Google+/Current

Made sure that Modem/RIL match

I will of course try to update to the new M1UI and the new DorimanX kernel when they're released. I've attached the dumpstats file and I hope someone could give some insight.

Thanks in advance!
[BetterBatteryStats] kevindd992002:
Yeah I know that it allows access to Yahoo mail but K9's search feature sucks, it doesn't search mail from the server. Is the Yahoo mail app bad on battery?

What autostart feature does the ebay app do with the phone? I thought it runs only when launched manually?
[BetterBatteryStats] Karpfenhai:
Your a dreamer.. :D

I made good experience with this setting:

Tapatalked from my Samsung GT9100
[BetterBatteryStats] haarsh:
Hi,

Can you please tell me what is this app u are using (in the pic) Is this a different one from Autostarts

Thanx

tc
[BetterBatteryStats] gigeaky:
Gemini app manager

Sent from my jellybam(ed) SGS2 using the microwave oven
[BetterBatteryStats] issy_i:
My BBS keeps reseting itself! i have charged my phone twice allready to 100% but after some time when i want to check bbs it says "No reference since unpluged was saved yet, Plug/Unplug your phone" what ever i choose within BBS .. partical, kernel, other and 'sins ulpuged or sins charged' i get the same message..even when i charged my phone fully to 100%
[BetterBatteryStats] Karpfenhai:
Oops sorry,i just wanted to be more user friendly, with autostarts it looks this way:

Tapatalked from my Samsung GT9100

---------- Post added at 04:21 PM ---------- Previous post was at 04:18 PM ----------

If this its the case, your USB connector port might be broken, do you use an aosp ROM?

Search this thread for the ussid code to pull up the battery menu to check the charging behaviour.

It was discussed here!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] issy_i:
Please can u search it for me i cant find it :( and also i noticed this.. every time when i wake up my phone i see the message "betterbatterystats has superschel superuser permission" or something like that.. when i make a call or when i enter my menu or wake up my phone, it does that all the time???

I use AP 2.5 thats i think a AOSP/CM10 rom i think.. but also 1 little thing this only happend when i removed my old BBS and installed the new one v.1.11
[BetterBatteryStats] :
It says GPSLocationProvider is causing battery drain.. what is that? How can I fix it?
[BetterBatteryStats] Karpfenhai:
Check your settings, first you can disable the toasts for BBS in Superuser app, second, check whether you enable screen off reference or not.

Lazy bastard ... *#*#4636#*#* .... tap on battery information.

You have a samsung phone??

---------- Post added at 06:06 PM ---------- Previous post was at 06:03 PM ----------

Disable location based services?
[BetterBatteryStats] kevindd992002:
Does this exactly do the same thing as Autostarts?
[BetterBatteryStats] issy_i:
yes i have samsung phone and i see exact the same battery information menu . what do i do now?

and also what do you mean by 'toasts' should i disabable bbs completly from SU? and i dont see any "screen off" reference in BBS :confused:

forgive my stupidity but without your help i would be still searching the web for "USSD code" :D
[BetterBatteryStats] Karpfenhai:
Okay then lets forget the battery thing our if you don't mind, search google for "voltage to high" + Android.

These shots should be self explaining:

Tapatalked from my Samsung GT9100
[BetterBatteryStats] issy_i:
it seems BBS is acting normal again thans for your help buddy:good:
[BetterBatteryStats] toriem:
Difference between BBS stats and Android stats

Hello experts,

somebody android-hilfe.de gave me the advice to place my problem here in this forum to get help hopefully. I am quite desparate about this. Following situation: I use a Samsung Galaxy S3 (3 months old, original battery, no root). Since last week it needs appr. 10%/hour battery capacity and I can not use it for my daily business anymore. Before this it was possible to use it the whole day.

What did I try:

- Update to Android 4.1.1 (because the update was just available)

- Complete reset, wipe, cache wipe

- no installation of my personal apps

- deactivation of all functionalities (fligh mode, no wifi, no gps, no sync with Samsung, Goggle, Dropbox...)

- uninstallation of SIM and sd-card

- purchase and installation of BetterBatteryStats

BBS confirms the need of 9-10%/hour, but in the same time it confirms >95% deepsleep. Partial wakelocks are not very high in total, but Android stats are showing long and often wakeups, what could be the reason for the high battery consumtion. BBS helped often to solve battery problems from what I have read in the forums but in this case I can not find an explanation. Could there be a hardware defect?

Thanks for all help!

toriem
[BetterBatteryStats] Karpfenhai:
That's a tough issue indeed, but without root it may be pretty hard to give you advise.

I think there may be three possible solutions.

First , disable lte.

1) With phone on, take off back cover and press your SIM card so it releases from the spring. It won't come all the way out as it's blocked by the battery. This seems fine.
2) Once you see the message that the SIM card is removed, go to the dialer and dial *#2263#
3) You should see a menu with band selections. The current setting is "Automatic". If you switch to "GSM All", you will be EDGE (2G). If you switch to "WCDMA All", you will be on HSPA+
4) Press the SIM card back into place until it clicks. For whatever reason the phone will not recognize it until you reboot. Upon reboot you should see your new setting in effect.

Second but more unlikely since this problem should appear as high aos usage, rename gsiff_deamon.

Since you are not root I'll not further explain this yet.

Third, and possible without being rooted, revert to your former modem.bin

Just get yourself Odin and the drivers for your device (kies), go to your device modem thread and dl the desired file.

Put your phone in dl mode, flash the file and you are done.

Good luck, i would try the first..

Regards.

Hoffe es hilft dir :D

Tapatalked from my Samsung GT9100
[BetterBatteryStats] kavkatan:
canceled

canceled
[BetterBatteryStats] drahmed86:
nobody wants to help me ???omg

areally need ur help to get rid of this annoyin' battery drainin' wakelock called battery monitor or just even reduce its waketime so any suggestions???

btw am usin' note 2 runnin' 4.1 jellybean

thanx in advance
[BetterBatteryStats] Rob2222:
@Chamonix, Karpfenhai, all

Hello again toriem,

the point why I suggested to post this case here is, that BBS reports 95% deep sleep but the android battery app shows almost a 90% awake line.

Does anybody have an idea, why BBS and android-battery-stats show a total different deep sleep behaviour in this case?

BR

Robert
[BetterBatteryStats] OzBoy08:
Thank you for the XDA offer. However, to show support, I have just purchased the app from gPlay. Thank you for a wonderful app.

Cheers

OzBoy08
[BetterBatteryStats] haarsh:
Hi,

I have higher networkstats count. So I did disabled some attributes using autostarts including maps. I hereby attach the screenshots. Please can you check them and tell me if that;s ok OR should I be consider something else :)

Thank you

tc
[BetterBatteryStats] vivalasven:
Hey guys, i have a little Problem andbi hope you can help me.

Since a few days i have massive Wakelocks from gtalk i think (see dump as Attached )

I Did a fullwipe (without sd) but it doesnt changed anything. I freezed and deleted gtalk but that was not the solution.

I hope somebody can help me :fingers-crossed:

http://db.tt/wtjj2rjV

_______________________________

gesendet via Brieftaube namens Tapa
[BetterBatteryStats] Hilmesh:
look at posts which talk about GSF by Karpfenhai. He has screenshots which show what to freeze using Gemini Apps or Autostarts. Similar list in my signature.

but u r BBS does not show much on Gtalk. rather you have media scanner running for 8m. ?
[BetterBatteryStats] vivalasven:
yeah, a little bit strange. My sd card i pretty full with Icons, nut much MB but very much files. i think that causes the media scanner. Rather that i think the Alarms like com.android.gsf (GTALK_RECONNECT and SEND_IDLE--> actually 33 Wakeups) cause that. Because of that i get a very very bad battery life. And that with 2000mA.

Btw, the link with the picture in your siganture is broken ;)
[BetterBatteryStats] IDaCoolGuy:
JD disable?

Can someone take a look at this for me? I'm trying to figure out if JuiceDefender is doing more harm than good for me. Anything else of note here?

Thank you!
[BetterBatteryStats] Hilmesh:
Hmmm. i tried and it is working. please try again

http://s881.beta.photobucket.com/user/hilmesh/library/SGS2 Apps Freeze lit

---------- Post added at 02:05 PM ---------- Previous post was at 02:03 PM ----------

there are lots of posts in xda wherein it is mentioned that Juicedefender really does more harm than good. No offense to any developer. and i have never tried the app.
[BetterBatteryStats] toriem:
@Karpfenhai:

Thanks for your advice! I tried the first proposal and I found out that the code *#2263# does not work with SGS3. I changed the settings in the menu to use GSM only, but there was no effect. I will send the device to the Samsung support.

Regards, toriem
[BetterBatteryStats] Casanoaa:
Try this maybe it helps

http://xdaforums.com/showthread.php?p=29171517&highlight=gsf+is+a+tough+one#post29171517

It does help a little bit on mine SGSIII.. But the alarms is still there
[BetterBatteryStats] brbbX:
I need help.. My phone is draining around 2.8% per hour, even on wifi.. Can somebody take a look at my log? I don't know what's triggering so many wlan_rx_wake ?

Thank you

https://dl.dropbox.com/u/10021261/BetterBatteryStats-2012-11-02_161556080.txt
[BetterBatteryStats] Karpfenhai:
102 MB trough wifi? thats a lot!

You need shark for root, install it, let it measure for about 30 Mins, analyze the results, find the Broadcast senders, disable them in your routers firewall (Block traffic) if possible.

Or, find a kernel (Siyah) which has broadcast receivers filtered.

Plus read the thread, there are many other hints and tricks ;)

Good luck!
[BetterBatteryStats] csjesse:
Using AOKP with KT747 on ATT, latest versions. Recently phone draining 13%/hour.. can't find anything in the logs :|

https://www.dropbox.com/s/up3dnq7i6r80m71/BetterBatteryStats-2012-11-02_160212585.txt
[BetterBatteryStats] chamonix:
You are right, there is nothing in that log. Start with an idle dump for 4-5 hours