yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] chamonix:
Ok, that's good for a start, a logcat would be better next time. Now I see you are using a beta so I assume that you are willing to test and provide feedback. If not go back to a stable version.

One reason that comes to my mind that may cause this is that you have enabled root features in prefs but BBS is not granted proper rights. Can you please check that, make sure root rights are granted for network and alarms, reboot your phone and try reproducing. If the problem persists please attache a logcat
[BetterBatteryStats] Track2k:
Looking forward to your feedback.

Thanks in advance!
[BetterBatteryStats] mcaveli:
Sent from my SCH-I535 using Xparent Blue Tapatalk 2
[BetterBatteryStats] connectandroid:
Just have to say this is a great app and love it's features. May I ask is there an option somewhere to change the path to where the file dumps are saved ? I want to save to a custom specific folder on external sdcard so I can use foldersync it to google drive account ?

Anyway to chart the cpu state over time in a line chart graph or something ?

With BBS, at idle/phone off I am seeing good numbers at 0.5-1.5%/hr battery drain. But Samsung Galaxy S2 + 3200mah mugen extended battery ever since updating to rootbox 4.2.1 from 4.0.4 stock rom, getting between 8-15%/hr battery drain even when playing 1hr of Drop Words (by Ben Garrett) reducing my average battery life from 60-90hrs on 4.0.4 to <18hrs on 4.2.1 (~5-6hrs screen time with 24/7 wifi).

cheers
[BetterBatteryStats] bobdoblo:
It may be because it is 3 network which is a relatively new network in UK and there whole infrastructure is built on 3G (hence the 3).

It does not have a 2G network.

Thats what i think it may be anyway:thumbup::confused:

Try the NELP3 modem at bottom of this post too http://xdaforums.com/showthread.php?p=35947529
[BetterBatteryStats] Irish Whiskey:
Also getting FC on TB using 1.1.0.0 . Wondering if there are missing links for the web page descriptions. Only happens when I try to tap on item to find out what it is.

It did work fine last night when I updated it.

rooting is fun.
[BetterBatteryStats] chamonix:
I was able to reproduce it so expect a fix this evening. Thank you so much for testing
[BetterBatteryStats] chamonix:
I added sorting to the feature.

Alarm vs wakeup: my understanding is an alarm can be on-time or recurrent: for one time both are meaning the same but recurring alarms can cause many wakeups.

Clicking on a list entry is supposed to either do nothing or take you to a kb article if one exists. The FC is a bug that was found thanks to you guys, I'm fixing it right now
[BetterBatteryStats] nobnut:
Have you updated to 1.1.0.0 ej?

Sent from me to you using stuff
[BetterBatteryStats] beepsilver:
I'd be interested in what you pros think of this portion of ej's post above; my stats are very similar:

His:

android

102790ms running, 11 wakeups

1 alarms: act=android.intent.action.DATE_CHANGED flg=0x20000004

471 alarms: act=android.intent.action.TIME_TICK flg=0x40000004

46 alarms: act=com.android.server.ThrottleManager.action.POLL flg=0x4

1 alarms: act=com.android.service.Watchdog.CHECKUP flg=0x4

7 alarms: act=android.appwidget.action.APPWIDGET_UPDATE flg=0x4

3 alarms: act=android.content.syncmanager.SYNC_ALARM flg=0x4

Mine (I'm using 1.1.0.0):

android

197028ms running, 84 wakeups

210 alarms: act=android.intent.action.TIME_TICK flg=0x40000004 (How do I reduce this)

41 alarms: act=com.android.server.ThrottleManager.action.POLL flg=0x4 (How do I reduce this)

1 alarms: act=android.appwidget.action.APPWIDGET_UPDATE flg=0x4

1 alarms: act=com.android.internal.location.XTRA_ALARM_TIMEOUT flg=0x4

2 alarms: act=com.android.server.WifiManager.action.CHECK_SMART_WIFI_READY flg=0x4

1 alarms: act=com.htc.intent.action.Socket_RXTXGrouping flg=0x40000004

7 alarms: act=com.htc.USERBEHAVIOR_FLUSH flg=0x4

80 alarms: act=android.content.syncmanager.SYNC_ALARM flg=0x4 (I'm guessing this is because I was syncing contacts and weather--I disabled contacts since--am I right?)
[BetterBatteryStats] nobnut:
I think Chamonix has created a monster in BBS. Everyone is becoming obsessed with the minutiae of background processes and wringing every last second out of the life of their battery.

This is a good thing however as people (myself included) are learning more.

I can't help you off the top of my head, I don't know I'm afraid. I'll have to Google it tomorrow when I'm back in the land of the living (feeling like death right now - I'm off to bed).

Sent from my HTC Flyer
[BetterBatteryStats] beepsilver:
No problem nobnut, thank you, get some rest :)

btw I read some data on this page (you've posted this before) and was hoping for your best guess about what's calling for Time_Ticks...and any guesses/confirmation about the other lines ej and I posted: http://developer.android.com/reference/android/app/AlarmManager.html ...but definitely can wait until you're up to it :-)
[BetterBatteryStats] chamonix:
Release 1.1.1

Sorry for the delay, some real life stuff came in between.

The fix release for #40 (FC) was uploaded a few minutes ago. I hope this one is a candidate for the market.

For those who are interested:

The FC came from a null pointer exception.

The reason: the process of loading the data for the knowledge base runs asynchronously. Now hitting a list element checks if there a KB entry for that wakelock and under certain conditions the KB list was not there yet.

Simple to fix, now way that that would have been dicovered by my unit tests, classical bug when threads do things in parallel with no security on timings.

An for those who are curious: no I don't use a wakelock to make sure the download of the KB list always finishes. If the transfer is aborted by the phone going to sleep it will be re-fetched the next time the list is rendered.

Keep up the good discussions

---------- Post added at 12:20 AM ---------- Previous post was at 12:00 AM ----------

My understanding of time/date ticks

android.intent.action.DATE_CHANGED
android.intent.action.TIME_TICK

the package name tells us the intents called by those alarms are from android and my understanding is those are required to get a time reference. Now don't ask me why android need to be reminded that time has passed but the source code would tell.

The difference between the two stats is I guess because the time range was different (one had at least a day change).

AFAIK there is no way an app would let android to get called more or less often but any app can register to this time ref (see http://kfb-android.blogspot.com/2009/04/registering-for-timetick-after-reboot.html).

Now as we are talking broadcasts here the AlarmManager does not know if anyone listens to the TICKs at all and just broadcasts them (after waking up the phone).

In summary: AFAIK no way to change that except by changing android code. What TICKs are for: I don't know. Is it bad: I don't think so as long as noone put a wakelock when receiving a TICK what brings us back to the beginning: is there a wakelock.

Don't do the mistake to use the alarm dump as a stating point for optimizing battery drain, it's not the right "tool" for that.
[BetterBatteryStats] c00ller:
Hmm, I downloaded the apk on my phone and the apk file has no BBS icon and when trying to install I get Parse error, There is a problem parsing the package. I downloaded it twice... am I doing something wrong?
[BetterBatteryStats] mariotme:
Yup same here :)
[BetterBatteryStats] method2madness:
Yeap. Same here. I was able to install version 1.0 without trouble however.
[BetterBatteryStats] beepsilver:
I'm trying to find the source for this...one thing I'm checking: on my desktop in gmail i have a little panel off to the right with options to sms, email or call my contacts. i've noticed my "status" shows up in gtalk...so i'm wondering if there's a sync connection there? I've signed out of that service (on that panel) and will see after charging if the Gtalk wakelocks show up in the dumpsys file....and if so, how is it different from when i'm signed in.

---------- Post added at 08:40 PM ---------- Previous post was at 08:30 PM ----------

Thank you for the explanation Chamonix--and I hear you on the usage of dumpsys as a tool. Although to some degree, when dumpsys points to a large number of alarms related to an app I've downloaded such as tasker or system panel causing a high number of wakeups in my case, I want to take note of those and choose to live with it or make some changes. Correct?
[BetterBatteryStats] suku_patel_22:
[Bug]Issue in parsing the apk on HTC Desire S

Hi,

I am getting an error with the new version 1.1 XDA edition apk "There is a problem parsing the package".

Also in version 1.0 the progress bars are not highlighted as green based on percentage utilization.

---------- Post added at 06:06 AM ---------- Previous post was at 05:51 AM ----------

Same issue for me with version 1.1 on HTC Desire S
[BetterBatteryStats] ejstubbs:
Yup, hence my reference to the sort by time or count feature that Sven has added (which is sweeeet). He's also re-worded the options for the wakelock percentages :thumbup:

Hope you're feeling better this morning!
[BetterBatteryStats] nobnut:
EDIT: I typed this before I read Chamonix's reply. I'll leave this here as it sits alongside Chamonix's answer.

A high alarm count isn't necessarily a bad thing. I'm not saying that it is good, just that it is better than the alternative of having the device stay awake. This page gives a good explanation of the AlarmManager function. The first section is definitely worth reading.

It explains why I have previosuly suggested that to reduce (not remove) AlarmManager partial wakelocks, I have suggested turning off reminders in the calendar. By doing so, if a user has loads of appointments, each with a reminder attached, the phone will often be checking to see whether it is time to wake itself up and give you the good news that it is time to go to the dentist/take your cat to the vets etc.

A very basic (and not terribly accurate) way of explaining this is that by using alarms, when a criterion is met on the phone, an action can be launched. E.g. if 'x' happens then perfom 'y' function. This will create an alarm trigger. The alternative is pretty nasty (especially for sleep potential). The app could instead rely on a BroadcastReceiver and check every 60 seconds for example whether it is time to do something, whether it needs to or not. You can see how this is a less 'efficient' way of performing a similar function.

To answer your question, 'how can you reduce the alarm counts?', it is worth considering how this night be achieved. It would probably involve in reality either removing apps that you might want (calendar and email for example), or more sensibly having a think about system and app settings. E.g. email on push is always going to be more resource hungry than on sync every 5 minutes. The same logic dictates that a 5 minute sync is going to be more resource hungry than a 60 minute sync.

I know I haven't answered your question properly but there is likely not a short concise answer as to what you can do to reduce these counts. My only suggestion to anyone is to give serious thought to all of the settings across our device.

____

Thanks ej, but I'm feeling like poop today. I think I've got the ebola virus.
[BetterBatteryStats] cwburns32:
Managewakelock: partial

com.handcent.nextsms.Handcent SMS

3 hours 19 seconds, alarm count 363, 22.1%

AlarmManager

Android System

1 hour 26 minutes 31 seconds, alarm count 4536, 10.6%

FDCompleteTime

Dialer

1 hour 20 minutes 54 seconds, alarm count 1864, 9.9%

These are my top 3 contributors to keeping my phone awake. Any idea on any of these?? I'm sure Handcent issue can be resolved and I know AlarmManager is an ongoing project and I'm unfamiliar with the FDCompleteTim, no idea what that is but still keeping my phone unnecessarily awake for over an hour.

Any insight would be great? Trying to narrow this bad boy down..
[BetterBatteryStats] thekayman:
Thanks Nobnut, that sounds like a clever way to do it, would be great if it could put it to a address I might play when i have some time. - Thanks for taking the time to explain.
[BetterBatteryStats] nobnut:
Indeed, some 'impressive' stats you have there ;)

I don't use Handcent, but have a look at your settings. I know many folk use it but don't have the same problems. Maybe you can 'compare notes' with another user to check what works for them.

AlarmManager? A barrel of snakes. No one issue will resolve this but there is lots of good stuff throughout this thread to help you out, maybe start with the post above yours and work backwards :) (I know our two posts crossed)

FDCompleteTime is I am almost 100% convinced related to Fast Dormancy. You watch this, I am about to suggest something for you to 'try'. I almost guarantee that there will be a few posts following mine saying that I am talking cr@p as fast dormancy is designed to increase battery usage by making the connection to and transfer of data more efficient. Not all operators support it however.

So, you can try turning it off and seeing if your wake drops. If it does, maybe point it out to anyone that says I am talking rubbish. 1 hour and 20 minutes of wake is not a fair trade for FD which clearly doesn't work on your phone/operator.

To turn it off, go into your dialler and type *#*#9900#*#* (this doesn't work on all phones though). You can try Googling for it for your device if you can't find it. Alternatively, if you are rooted, you try sniffing around in Titanium Backup and freeze the pacakge it relates to (this works on the Motorola Atrix I know). But please have a backup to hand in case you have issues - phone won't boot for example.

When you get FD turned off, you should see a massive increase in sleep. If you do, great. If you don't, just turn it back on and we'll have another think about it.
[BetterBatteryStats] ejstubbs:
Many thanks for those explanations.
[BetterBatteryStats] cute_kayani:
Haha that's what am looking for, why i can't select only gsm.:confused:

That's why i want to flash.. i think that would solve my issue.

Why not Pakistan version.??

And for UK is there any unbranded... rom or all are branded.
[BetterBatteryStats] Grigoriy60:
Hi Karpfenhai!

Logcat is in attachment. It was made when wi-fi is on.

The huge drain in sleep mode when wi-fi is on still ongoing.

Of course I rebooted tab many times.

What system functions to freeze are talking about?

The drain appeared after installing ICS on my tab.

There wasn't the issue when Android 3.2 was installed.

Sorry for my "excelent" English...:p

And best Christmas wishes to you and your family!
[BetterBatteryStats] mbze430:
I will get the logcat. The next time around... I just updated BBS to the RC2 release right after I saw the wake lock from BBS

As for root. Yes everything is working as it should

This only happens when I get the error "BatteryInfo Service can not be contacted" even though it works for the first few times
[BetterBatteryStats] cute_kayani:
Am on NELP4, how to do that...
[BetterBatteryStats] chamonix:
That is a clue for something wrong in the error handling. I will check on that as an fc while bbs holds a wakelock would be fatal but should not occur. A logcat of that situation would be very helpful.
[BetterBatteryStats] kozmo21:
Go back to your original post and look directly under it. Casanoaa replied an hour after you posted it.
[BetterBatteryStats] bobdoblo:
Do what mate, install it?

Flash in CWM

Sent from my GT-I9100 using NeatROM Special Power©
[BetterBatteryStats] cute_kayani:
I did it now am nelp3, still there is no option for only GSM. .how this baseband solve my issue??
[BetterBatteryStats] fndpena:
Do you guys usually disable autostarts for frozen apps?

For example: Gtalk was frozen but still showing notifications, so I disabled its autostarts...

Hilmesh, what apps did you disabled autostarts?
[BetterBatteryStats] bobdoblo:
I didn't say it would solve it did i?

I just posted it because it is a good modem for 3 uk!

I'm on 3uk but i can change to gsm only but my phone was originally t-mobile.

Sent from my GT-I9100 using NeatROM Special Power©
[BetterBatteryStats] Track2k:
argh thanks alot!

Didn't see the answer, my bad!

I will change my setting immediately and make a second analyze!

Best wishes.
[BetterBatteryStats] MRDOCA:
ok so ive disabled autostarts for goole framework services and maps and still ive lost 15% overnight....

tapatalk seems to be doing something and facebook, im guessing this is because there seraching for updates (status updates or replys to topics) ive stopped notifications for both. anything else anyone can see? or a better way of doing it?
[BetterBatteryStats] Casanoaa:
Firstly do this and make a dump again.

Enable alarms next time if you are rooted

Disable notifications from tapatalk.

Disable facebook

Disable backup use titanium backup

Disable auto sync from google contacts and use manual sync.
[BetterBatteryStats] Karpfenhai:
Here are my first impressions:

Looks not bad but feels weird somehow, unfortunately I had no charger in reach, so I set up a custom ref since upgrading from 1.11 to 1.12 caused my refs to get lost...

Here a dump, a logcat and a dmesg for further debugging purposes.

View attachment dmesg-2012-12-27_223843990.txt

View attachment BetterBatteryStats-2012-12-27_224109833.txt

View attachment logcat-2012-12-27_223842134.txt

Damned, the dmesg is empty...Sorry.:o

I didn't get any hiccup or information within bbs, so the "switch" to a different data source works flawlessly. I noticed no difference between rooted and not rooted user.

Well done mate!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] superbobup:
Any idea guys? I know other people have bigger issues, but I'm just curious about this :)

By the way...does anyone know if "do not report location" in Maps does anything?
[BetterBatteryStats] MRDOCA:
ok thanks, i'll try that,

what do you mean by disable titanium backup?
[BetterBatteryStats] mbze430:
ok here is a logcat

Here is a logcat dump right after BBS crashed along with my Launcher. Then it rebooted itself. (that's when I took the logcat). I hope it contain the information you need

The logcat "should" be from the time I loaded RC2, reboot, usage to the time when BBS crashed + Launcher crashed, and then to a reboot.
[BetterBatteryStats] Karpfenhai:
Okay what duo we got, a tablet upgraded from honeycomb to ics, I assume you are used to work with an otg cable?

Afaik Google changed something with the folders / mount points, so maybe the issue is easy to fix.

What I've seen in your logcat is a tremendous amount of the following entries:

DrReadUsbStatus returns false USB is offline E/DataRouter

After a short googling I think you may have a folder like /usbstorage on you device containing any data?

If this is the case, please move all data away from it and reboot, to see whether the issue persist.

Since ics /usbstorage is an active mountpoint (for usb mass storage) and android don't like to find data in it while no device is connected which could lead to your suspend backoff issue.

I'll check your logcat again on a pc, but not before Friday evening. Maybe tweety or Sven itself could have a look in the meantime.

Good luck and please report further!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Casanoaa:
Sorry disable backup in rom/settings . Not with titanium. Titanium backup is an app

---------- Post added at 01:25 AM ---------- Previous post was at 01:11 AM ----------

Yes and only google services framework.
[BetterBatteryStats] Firnagzen:
Hmmm. I recently flashed a new ROM on my Galaxy Nexus, and kernel, and, overnight, noticed a massive power drain- 100%-75%.

Something's causing suspend_backoff; and it's not Chrome, because I don't have it. (I use Opera Mobile, which has never given me issues before.)

I don't have a log file yet, because I foolishly went and plugged my phone in without dumping- I'll have one tomorrow, but what else can cause the suspend_wakelock?

(Also, what does the Basic Sleep Mode Apps in 4.2.1 do?)
[BetterBatteryStats] mbze430:
Ok another logcat that is much smaller since it just crashed and rebooted
[BetterBatteryStats] mathrania:
I am using this app for first time. I have a high battery drain while i am not using the phone, which is, at the night time when i am sleeping, and the phone seems to drain all the battery.... I have attached the dump file and one screen shot also.

Please let me know what is eating up my batgery in thi night time esp.....
[BetterBatteryStats] kozmo21:
Next time, please provide an idle dump ... while doing nothing / screen off all the time for at least 4 hours or overnight.

1) get rid of applock.

2) disable all location serivce options in ROM and Google settings.

3) Disable/freeze gtalk and google+.
[BetterBatteryStats] fndpena:
Sorry, I think I wasn't clear enough in my question.

Should I disable autostarts for all frozen apps? Or is not necessary?

Sometimes I think that the autostart will keep searching for the app and will not find. Just guessing...
[BetterBatteryStats] stanley08:
I understand bro, done dat now, my main question now is dat I installed the autostart app u suggested and now went into the app and disabled the first option there 'After startup'. What effects does this have on my battery life and of course my whatsapp messages. Does it stop whatsapp from pushing messages toy phone immediately? Cause that, I do not want. :)

Please hit thanks if I helped you.
[BetterBatteryStats] cute_kayani:
Slightly improve in wifi signals, can i try baseband of Pakistan on my phone? May be that will show only gsm option.

Pakistan (PAK) 2012 August 4.0.4

PDA I9100JPLPH

CSC I9100OJPLPF

Above are the baseband of Pakistan.

Plz tell should i try it or any other.
[BetterBatteryStats] xtremesystems:
in advanced settings in bbs there is option called Google analytics. what is it? I assume that feature is not necessary to work bbs correctly?

Wysyłane z mojego GT-I9001 za pomocą Tapatalk 2

---------- Post added at 07:59 AM ---------- Previous post was at 07:51 AM ----------

btw

what is

com.Google.android.gsf process? is it necessary to phone working? got most wakeups with it

Wysyłane z mojego GT-I9001 za pomocą Tapatalk 2

---------- Post added at 08:06 AM ---------- Previous post was at 07:59 AM ----------

and last stupid question. where can I manage which apps autostart?

I've several stubborn applications which consistently autostart

Wysyłane z mojego GT-I9001 za pomocą Tapatalk 2
[BetterBatteryStats] cute_kayani:
Wat abou XXLPX, read at different threads, it says it is the one of best..
[BetterBatteryStats] azrash:
you can install autostarts from the market, or use Gemini app manager.
[BetterBatteryStats] bobdoblo:
Just a quickie, I noticed new version of BBS has come out, does the app from the store get updated at the same time?

Edit; think i have figured it out now, is B9 the latest official version then?

Sent from my GT-I9100 using NeatROM Special Power©
[BetterBatteryStats] azrash:
Latest stable version is v1.11.0.0, the market would have the latest stable version
[BetterBatteryStats] Track2k:
Hey I think I was able to improve my battery a lot!

Attached you can find my last analysis :)

View attachment BetterBatteryStats-2012-12-28_053123396.txt

===================
General Information
===================
BetterBatteryStats version: 1.11.0.0
Creation Date: 2012-12-28 05:31:23
Statistic Type: (3) Since Unplugged
Since 4 h 33 m 27 s
VERSION.RELEASE: 4.1.2
BRAND: samsung
DEVICE: m0
MANUFACTURER: samsung
MODEL: GT-I9300
OS.VERSION: 3.0.31-672976
BOOTLOADER: I9300XXBLH3
HARDWARE: smdk4x12
FINGERPRINT: samsung/m0xx/m0:4.1.2/JZO54K/I9300XXELL5:user/release-keys
ID: JZO54K
TAGS: release-keys
USER: se.infra
PRODUCT: m0xx
RADIO: I9300BUELK1
Rooted: true
============
Battery Info
============
[B]Level lost [%]: 2 Bat.: 2% (100% to 98%) [0,4%/h][/B]
Voltage lost [mV]: 47 (4271-4224)
===========
Other Usage
===========
Deep Sleep (): 4 h 26 m 3 s (15963 s) Ratio: 97,3%
Moderate Signal (): 4 h 15 m 51 s (15351 s) Ratio: 93,5%
Good Signal (): 17 m 28 s (1048 s) Ratio: 6,4%
Awake (): 7 m 24 s (444 s) Ratio: 2,7%
Screen On (): 28 s (28 s) Ratio: 0,2%

Thanks once more for the help!

PS: Do you think there is even more possible? :)