yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] tigerphil:
My cpu problem occured after buying the latest version of BBS i think cpu spy stopped reporting before this though :confused:

I was on siyah 4.0.1 but have now gone to 4.1.2. I've been through the siyah discussion board and had some help from tungsworthy. We've found the files needed and exist are reporting the cpu stats and permissions are set right but stil no readouts anywhere. Someone has suggested running a full battery cycle as it had fixed their problem so i'm trying to waste the battery today, seems harder to drain when i want it to drain. I'm following this forum and the siyah forum looking for answers but half tempted to reflash the rom and kernel just incase i removed something through titanium that was needed to view the stats. Otherwise BBS has been great and help save so much battery time :D
[BetterBatteryStats] chamonix:
If the files/perms are correct raw CPU stats should show straight away
[BetterBatteryStats] tigerphil:
Thats what i thought so going to try the full battery cycle, apparently that worked for someone else but if not i'll reflash my rom and kernel just incase i've taking away a system file that may have been needed for the stats to be displayed. To speed up the drain cycle i'll let my son play his games soon :p
[BetterBatteryStats] Karpfenhai:
Wlan rx, plus your phone runs on full speed as soon as it is awake, which is related to the performance governor, so the reading give us the wrong picture, try to post another one tonight.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] bradld:
Help Request BBS shows no information

As of late I cannot seem to get BBS to show any data on screen or in any dump file. I have the latest market version and a sample screen capture and dumpfile are below.

Could this problem be rom or kernel related and is there a something (file, permissions, etc) I should be checking to help troubleshoot this problem?

Thanks!

Answered own question I think from Post #3 (helps to re-read on new versions):

Q: BBS shows "no ref since unplugged"

A: Starting from 1.9 is is mandatory to plug/unplug after boot to get a "since unplugged" reference to be created. Starting from 1.10 there is anew reference "since boot" and a preference to fall back to that reference if no other is available.
[BetterBatteryStats] dontezuma:
Yeah, I got the governor thing reset (I don't know why it switched back to performance), but I'm trying to parse:

in Wakelocks:

GTALK_ASYNC_CONN_com.google.android.gsf.gtalkservice.AndroidEndpoint (Google Services): 1 m 1 s (61 s) Count:965 0.2%

yncLoopWakeLock (Android System): 8 s (8 s) Count:2307 0.0%

in Kernel Wakelocks:

"mmc2_detect" (): 31 m 57 s (1917 s) Cnt:(c/wc/ec)4794/0/1 4.7%

"sec-battery-monitor" (): 1 m 6 s (66 s) Cnt:(c/wc/ec)4546/0/0 0.2%

"wlan_wake" (): 42 s (42 s) Cnt:(c/wc/ec)19816/3387/0 0.1%

and

"wlan_wake" (): 42 s (42 s) Cnt:(c/wc/ec)19816/3387/0 0.1%

I understand that Wlan-RX is driven by netwrok traffic, and turning off wi-fi at night will allow it to sleep. I'm confused as to why gtalk is waking my phone up so much, since it was off, or at least, I thought it was. I don't see it as an active app.

And, what's sec-battery-monitor? And yncLoopWakeLock (sic)?

Oh, and unfortunately, I'll be camping the next few days, so I can't post a followup reading until next week. :/ Thanks in advance, though, for any thoughts on the above questions. :)
[BetterBatteryStats] alexinna:
I wouldn't consider myself an expert. Wiki has short explanation and as far as I know it's related to a phone radio.

Maybe you can explain how are you using BBS because I usually know how much my phone looses when not active and if I start noticing more then that I'm start looking dipper. So for me "Since Unplug" is the main or default reference. I'm not rebooting often unless needed.

I think it's an interesting topic to discuss on how people are using BBS. Let's share so people will learn different ways.
[BetterBatteryStats] ahac85:
Hi I've charged my phone and although it's on 100% the phone i notice on bbs that it stays awake, can somebody please tell me what may be causing this. I always get high awake and less screen time And less deep sleep, last night after full charge 8 hours later i had only 7% left
[BetterBatteryStats] Karpfenhai:
It seems like traffic... But to tell you more, please grant full root rights to bbs and provide a new dump containing more time.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] alexinna:
I think below wakelock

"l2_hsic" (): 1 m 7 s (67 s) Cnt:(c/wc/ec)158/31/158 1.9%

could be related to this

Poor Signal (): 9 m 22 s (562 s) Ratio: 4.4%

. Also check

"multipdp" (): 3 m 23 s (203 s) Cnt:(c/wc/ec)29/0/29 5.8%
"secril_fd-interface" (): 2 m 20 s (140 s) Cnt:(c/wc/ec)40/0/0 4.0%

just google to find recommendations and read more here.. Good luck!

Edit: I see you are rooted so enable Alarms (requires root) and Network (requires root) to get better picture.
[BetterBatteryStats] Tungstwenty:
That's the strangest part about the whole thing.

I have instructed on the kernel thread tigerphil to manually cat the file and it does show the values, and the file is in the right place with the proper permissions (444).

Also, he's using the exact same version as me and many others, so it's not a problem with the output data format.

But since it's not only BBS but also CPU Spy that are failing, I'm guessing something is really wrong on the rom, perhaps runtime java libs such as File are broken (SecurityManager perhaps ??? StringTokenizer???). I can't think of any other possibility, although it might be some other weird thing in that general direction.

This is definitely a system-wide problem and likely only solvable with a ROM flash and even a data wipe.
[BetterBatteryStats] GoJo ^^:
I haven't found reference about that anywhere... I don't think i need to post a dump to get an answer..?
[BetterBatteryStats] alexinna:
v. 1.10.1 Exception after reboot

I rebooted my phone and now BBS returns unexpected error all the time during stats retrieval even after plug/unplug. I think somebody already reported something like this but here is logcat (I didn't use debug).

08-31 22:56:09.115 E/StatsActivity( 1972): Exception: android.content.ReceiverCallNotAllowedException: IntentReceiver components are not allowed to register to receive intents
08-31 22:56:09.115 E/StatsActivity( 1972):	at android.app.ReceiverRestrictedContext.registerReceiver(ContextImpl.java:146)
08-31 22:56:09.115 E/StatsActivity( 1972):	at android.app.ReceiverRestrictedContext.registerReceiver(ContextImpl.java:140)
08-31 22:56:09.115 E/StatsActivity( 1972):	at com.asksven.android.common.utils.ChargerUtil.isConnected(ChargerUtil.java:38)
08-31 22:56:09.115 E/StatsActivity( 1972):	at com.asksven.betterbatterystats.data.StatsProvider.getStatList(StatsProvider.java:145)
08-31 22:56:09.115 E/StatsActivity( 1972):	at com.asksven.betterbatterystats.StatsActivity.setListViewAdapter(StatsActivity.java:432)
08-31 22:56:09.115 E/StatsActivity( 1972):	at com.asksven.betterbatterystats.StatsActivity.onCreate(StatsActivity.java:326)

Edit: Re-installed application and now I can see the stats again. :)
[BetterBatteryStats] alexkno:
Get rid of whatever tango is...

Rest seems reasonable...phone was awake for downloads, and you downloaded some hundreds of MB

sent via Tapatalk
[BetterBatteryStats] chamonix:
Can you get me the file? I can try to read it from my unit test to exclude any format stuff that may not be visible.
[BetterBatteryStats] alireza_simkesh:
Can you please add an option to remove battery stat for calibrating battery?

I always need to install a separate app to remove battery stats (or do it manually using a file browser) when i want to calibrate my battery.

Also, it would be nice if you add an email address or some form of contacting you inside the app to provide feedback/ask questions. If i didn't know you have a topic on xda, i wouldn't have been able to send you my suggestions regarding this app.

Thanks!
[BetterBatteryStats] tramp20:
Hi,

with the versions <1.10.x I could see all "old" values even the phone is charging (plugged in).

With the v1.10.x I get always the hint that in the plugged-in modus BBS cannot show anything (Device is plugged in: no stats) even in "since charged".

So I cannot use the new versions :(

Do I make a mistake in the settings? I tried this several times.
[BetterBatteryStats] stuart0001:
http://www.xda-developers.com/andro...-battery-stats-does-not-improve-battery-life/
[BetterBatteryStats] alireza_simkesh:
I dont use it to improve battery life, i just use it to calibrate my battery....
[BetterBatteryStats] tigerphil:
If you can advise me on what file(s) your need and if possible how i get them for you, i'll be happy to send them as soon as i can.

I'm thinking of a reflash of the rom at some point aswell just incase i have taken something away using titanium that may have been needed
[BetterBatteryStats] stuart0001:
It doesn't do that either. It just resets the list of stuff that's using battery in settings and besides, the file gets reset anyway every time you fully charge. Deleting it manually achieves nothing useful whatsoever.
[BetterBatteryStats] It_ler:
I recommend another method:

Turn off the phone and charge it.

When it is fully charged, wait for another 15 minutes before unplugging.

Then remove the battery and wait for about 5 minutes.

Now you can put the battery into the phone again and turn it on.

This let's the phone's battery stats chip settle down, so that it will show more reliable battery stats.

Works for me very good.

Give it a try.

Good luck!
[BetterBatteryStats] alexinna:
I think first you need to fully discharge the battery (until phone shuts off on it's own) before doing above steps.
[BetterBatteryStats] It_ler:
No, fully discharge is not needed.

And the settling down seems to work at every battery state - not only when fully charged (100%).

The best way of "calibration" is to wait for several battery/charging cycles ... but I don't have the time to do this after each flashing.
[BetterBatteryStats] ahac85:
Hi I've added another battery dump which is now over a longer period and with alarms and network showing in the dump. Can someone please explain what's causing battery drain. I have 1 hour screen time and 2 1/2 hours awake. This is over night.
[BetterBatteryStats] Tungstwenty:
Here's the contents that tigerphil posted:

The strange part is the multiple spaces on the entries after 1000000 (visible when inspecting the html source or when quoting).

tigerphil, did you insert those yourself?

It doesn't look like tab alignment because it's on the 9th column rather than the 8th (0-based).

Plus, my file contains a single space between the entries and the kernel source uses a space rather than a tab - here.

If it were the extra spaces, BBS's failure to handle the contents would come from here since the 2nd token would be an empty string.

I'm leaned to think that the above values were manually typed rather than copied to the clipboard, and I don't thing either XDA / Tapatalk, a browser or the forum code converting it to this alignment.
[BetterBatteryStats] :
Are these modems specific to a device? I would like to try a different modem on my motorola Atrix 4g.

Sent from my Nexus 7 on official CM10
[BetterBatteryStats] chamonix:
Release 1.10.2

New bugfix is up. Please check changelog and give me feedback if this release adds more stability. I will not update to google play straight away as I want to be really sure that the fixes work and have no side effects.
[BetterBatteryStats] chamonix:
That's the reason why I'd like to have the original file copied from the device and as file to make sure there were no cr_lf conversions or any other stuff. That's the only way I could check if the tokenizer delivers the right results
[BetterBatteryStats] chamonix:
Yes a radio/modem is specific to a device. Please check the threads for your device
[BetterBatteryStats] chamonix:
You have been listening to music also and I guess that happened while screen was off. Anyway, I'd suggest you provide an idle dump as it is pretty hard to differentiate between actions that happened while you were using the phone and those happening when the screen was off.
[BetterBatteryStats] -earth-:
My error is gone away!

Now it works after a reboot!

Good work!
[BetterBatteryStats] Many40:
The same for me. Unexpected error during retrieving battery stats is gone. Thanks a lot.
[BetterBatteryStats] nobnut:
To help with AlarmManager, just disable reminders in the Calendar. it won't totally fix the problem but it helps.

To find out which app is causing you the wake problem, because you have so many issues being reported by BBS (and I understand your reluctance to remove some of hese features), it is hard to say what is causing the specific problem you are asking about.

To find out, when you wake up, go to the battery usage screen and click on the graph, or go to Running Services in Settings > Applications > Manage Applications and then you can click on each app running to see how long it has been running for.

Just one last thing. Again, I understand that you don't want to turn your phone into a dumbphone, but think about this...

I didn't say that you had to turn off these features forever. Just turn them off until you have resolved your phone's issues. Then of course you can turn them back on again. You could sort all of this out within the space of an hour if you wanted. Surely you can live without 'Friend Service' for an hour? ;)

EDIT - (Response to your edit) Possibly the lack of data overnight is causing your problem, something could be looking for data and will not sleep until it finds it. Until you can determine what is waking, we can only speculate.

Finally, just to contrast your desire to reduce partial wakelocks with your determination to keep full smartphone functionality - it can't be done. You have to find the balance right for you. Case in point here.
[BetterBatteryStats] sowen222:
Live without FriendFinder for an hour? A whole HOUR?!? ;-)

HTC Sync has been disabled, per your suggestion. I won't disable reminders in Calendar because I consider that feature essential.

I will start my project in a couple of hours, recreating the morning situation and disabling services to see if I can find the source of the Awake, and let you know the results.

Thanks again for your help thus far.
[BetterBatteryStats] nobnut:
Good luck!
[BetterBatteryStats] sowen222:
BTW, I completely agree. Generally I'm happy with the balance between performance and battery life. I get 3+ days on my HTC Sensation. I'm just trying to solve the problem of it being asleep all night, except Awake after about 07h00 before I even touch the phone in the morning.
[BetterBatteryStats] chamonix:
Well it's running on my phone since two weeks and I am very happy with the drain because that's what I accept to pay for the feature. It is more reliable than latitude too.

Before prime time I have following todos:

- oauth2 works but only interactively, the service FC at boot so I need an hour or so to check logcat

- I'm very disappointed by the fact that the official api does only offer access to my own position, not of my friends (Google mumbled something not really convincing about privacy). I want to spend some time to look at "alternative" ways of getting that info. The time and effort can not be timeboxed

I will work on issue 1 plus a neat but oversimplistic ui and release as work-in-progress so I guess it's rather a matter of weeks than of years ;-)

PS: one reason for the delay is that I started working on fragments for a super secret project, the beneficial for bbs is we are getting a ui with sweepable panels like g+
[BetterBatteryStats] nobnut:
Splendid news!

I'll not trouble you anymore and distract you from your top secret development :)

Thanks for the update... see you again weeks rather than years in that case ;)
[BetterBatteryStats] ejstubbs:
OK, so the Battery History in Spare Parts on my phone which is running Froyo offers:

Since last unplugged - fairly obviously that should be option 3, same as Gingerbread;

Total since boot - that's probably either option 1 or option 2 but I'm not clear which (or what each option actually means);

Total in all time - presumably that's option 0, but I've no idea when "all time" starts. Perhaps when I flashed the UK stock unbranded Froyo ROM? But that was definitely longer than 44 d 20 h 43 m 40 s ago, which is what BBS is reporting as "since charged".

It's all a bit confusing...

I also have a usage question: what do the various options of "Wakelock % Ref." in the preferences mean?

And finally,a feature request: would it be possible to offer the option to sort the partial wakelocks by count instead of by time, which is the current default behaviour?
[BetterBatteryStats] chamonix:
I don't know neither when total starts and if the counter is interrupted. I will fix the labels for Froyo and then you can compare.

About the feature: added

The pct prefs: this pref says basically what 100% is to calculate the % per wakelock and give a better idea about the potential. If you set it to 'awake' it is realistic, if you set it to awake - screen on and assuming the wakelock occured while you were not using the phone it's more realistic when it comes to wakelocks caused by alarms.
[BetterBatteryStats] ranova:
is there a way to turn off Fast Dormancy on the motorola Atrix? I tried that system code in the dialer and it does nothing. "FDCompleteTime" is at #1 for partial wakes
[BetterBatteryStats] nobnut:
I am sure the answer to your question is 'yes'.

Is FD showing as a wakelock for you? If it isn't, leave FD enabled. DOH! I reread your post.

I Googled and Googled the hell out of this for you but I couldn't find a 'secret code' to give you the menu. All I could find is this script to attempt to find a list of codes that you could try.

Before you do that however... punch in this:

*#*#4636#*#*

I know it will give you a 'menu', I just have no idea what is contained in it.
[BetterBatteryStats] ranova:
Thanks, I did a little googling too and could not find anything.

Ill have to try that script at home.

Please see attachments to see what 4636 popped up.

Alarm was #2 on partial wakes, but I need to keep notifications on, so thats okay.

Im using the battery monitoring widget and after 30 min, it says around 85mah drain... that seems like it is a lot!
[BetterBatteryStats] nobnut:
Balls! Not what I was hoping for. That's useless to us with this issue.

This is ironic as I was having a conversation with sowen222 last night about FD. I was saying that FD was kicking the crap out of my battery and for people who face the same problem to disable it. Quite rightly, he was saying that there are two types of FD (one supported by operators and the other supported by certain devices) and that it can/should increase battery life... but to check.

Your findings are like mine. FD when it doesn't work, wakes the phone in order to 'kill' the battery.

Hopefully someone else will see this and post a solution. The alternative to that is that I dedicate my day tomorrow to trying to find a solution for you (stuff my boss, I don't like the job anyway ;)).

Sorry for not having an immediate answer, but I am sure we will get one for you.

BBS FTW \o/

#winning
[BetterBatteryStats] ranova:
Hey man, thank you so much for your consideration. I appreciate it. Ill try running the ADB commands when I get home tonight and let you know.

I couldnt confirm with anyone or google search if "FDCompleteTime" is definitely Fast Dormancy. I just assumed it was (FD and all). FDCompleteTime did show up ONCE when I searched this thread, but unfortunately no one answered that guy.

Atrix users often complain of horrible Idle time. I hope this is the reason of that, and I hope theres a solution to it.
[BetterBatteryStats] MPKO:
I see that y r in ****y at&t network. If u would be able to disable fd it would make your battery drain even more due to bad network implementation of ericsson... reduce those notifications and all is well.

Cheers!
[BetterBatteryStats] nobnut:
Don't give it a second thought! My pleasure. The more I find out I don't know... the more I learn.

I am pretty certain that it is fast dormancy related. If it isn't, I would appreciate and 'expert' explaining this coincidence away to me...

It used to show up in my BBS stats. I then disabled fast dormancy. it doesn't show up in my BBS stats anymore.

End of story!

Hence the entry in post 4 of this thread. I don't care who says what... it works for me.

;)

EDIT:

Oh man! Not again.

We had this conversation in this thread last night. Please, all you Scandinavian folk... FD is not the panacea that you describe for eveyone... for some people it wakes the phone and kills the battery. If it works for you, I am happy for you. If it doesn't work for other people, please let them disable FD in peace? Thanks.
[BetterBatteryStats] MPKO:
Also fyi, FD works only in wcdma, not in 2g.
[BetterBatteryStats] MPKO:
Have u ever considered that that bbs is showing wrong information, or maybe not wrong but ur reading it wrongly? I really would like to see a test of your bat life with and without FD? can u do it?

Cheers!
[BetterBatteryStats] nobnut:
I didn't know that, thanks. That explains alot for me at least (my signal is very weak), maybe others suffer as a result of a weak signal also :)

No, never ;)

I have done it, but I will do it again especially for you. The issue is that I work in an area that has a good mobile signal. My signal at home is zero (absolutely no signal at all). My test would be meaningless. On a Monday my results would be ok and on a Saturday (when I am at home) my results would be terrible.
[BetterBatteryStats] ranova:
Im getting other atrix users to post their partial wake stats:

http://xdaforums.com/showthread.php?p=17159390#post17159390

But he said he was on wifi the entire time, thats why FDCompleteTime doesnt show up
[BetterBatteryStats] nobnut:
Good one Andy. The more the merrier.

I'm outta here fellas. Got a busy day Googlin' for Atrix codes and FD fixes.

Goodnight.
[BetterBatteryStats] cukierkas:
Thanks dev for wonderful app. Again :)

Using latest xda edition, everything is really fine, but what about network alarms? Never saw any output on this section. What does it monitor? 3g, wifi?

If it somewhere explained - please guide me. Thanks. Really appreciate your work.
[BetterBatteryStats] chamonix:
Network alarms list all traffic, wifi and 3g but requires root. If you have root make sure to enable the root features in advances prefs.
[BetterBatteryStats] It_ler:
Here is the online help => http://asksven.github.com/BetterBatteryStats-Knowledge-Base/help.html

Network shows the network stats, i.e. network/internet data (mobile/3G and wifi).

Alarms shows the wakeups caused by applications or services.
[BetterBatteryStats] cukierkas:
Thanks for explanation.

Root is enabled.

But no output at all. Maybe it's kernel issue?
[BetterBatteryStats] chamonix:
Probably. Could you provide a logcat?
[BetterBatteryStats] cukierkas:
Will do it on Monday, now short in battery without charger:rolleyes:

By the way, why your app is missing after restart? I'm noticing it maybe for 3rd time:(

That my Droid or xda edition's trick?
[BetterBatteryStats] chamonix:
There is no logic of removing the app in any way so it must be your phone
[BetterBatteryStats] Karpfenhai:
Wow, right after installation, the weird reference issue was gone, without replug action, well done! So the problem was not the ref, it was the way how it computes?

Thx Sven!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] GoJo ^^:
I haven't found reference about that anywhere... I don't think i need to post a dump to get an answer..? Will someone kindly answer me?
[BetterBatteryStats] chamonix:
Sorry, I missed that. I have added the explanations to post #3 for large and small widgets