yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Lownita:
Same here, although I swapped to SuperSu anyway. But the app just got some nice tuning and new features, very good!!
[BetterBatteryStats] Aduck79:
When I plug/unplug my logcat outputs errors from both bbs and better Wi-Fi on/off. See: http://pastebin.com/z38Fdi0Y

Version 1.9.x.x seems to work.

I hope this can help to resolve the issue about creating refs on some phones. I'm using Temasek's unofficial of cm7 build 133.

Best regards

Sent from my LG Optimus 2X
[BetterBatteryStats] chamonix:
Thanks. But please note I only implemented a workaround. Originally bbs used two commands 'su -c command' for alarms and network stats. The bug in superuser is, that the search for the command currently being executed fails when you call them alternatively (what bbs does). The workaround is to use one su command and write the com and to be executed to the output buffer. With that solution superuser only sees one command 'su' from bbs and we lose the ability to grant rights at a command basis. This is not how it should be IMHO and I hope this will finally be resolved so I can remove the workaround again.
[BetterBatteryStats] Ali I Hagen:
Hope someone will take their precious time and take a look at my dump file.

I have Samsung Galaxy S2 running cMIUI, a amazing rom build on CM9. However I'm experiencing some wakelocks related to audio and location. Before this dump file was created I used the stock music player and some browsing. GPS was off
[BetterBatteryStats] gauv20:
I have made a new dump file on idle.

I think facebook wake up a lot... Any other advices ?

Thanks for your great help !

http://pastebin.com/WWGYCezW
[BetterBatteryStats] truewt:
Yea the latest build with new logo kicks some ass =D
[BetterBatteryStats] alexinna:
CloudTV is still high on a list following by viber.

Also look at 2 kernel wakelocks:

"battery-monitor" (): 7 m 54 s (474 s) Cnt:(c/wc/ec)475/0/476 4,1%
"l2_hsic" (): 6 m 34 s (394 s) Cnt:(c/wc/ec)741/88/741 3,4%

Are you using any widgets to monitor battery? Sorry I don't have personal experience with any of above to suggest any solutions. You can also check in kernel thread on top of google.
[BetterBatteryStats] indoh:
will try new version, best battery stats app so far
[BetterBatteryStats] GabrielSousa:
with this last version i dont have any reference, on everything
[BetterBatteryStats] d3l1:
Same here

Sent from here using Tapatalk
[BetterBatteryStats] XlAfbk:
got notification about 200% awake just now, 1.10 xda
[BetterBatteryStats] DavdEBSmith:
Also can't set any references, boot, unplugged, or custom.

Also, 1.10b6 and later, "Other" gives message about not being able to contact BatteryInfo service. 1.10b3 and earlier it works.

Motorola XPRT, stock, Froyo.
[BetterBatteryStats] vivmar:
yup,same here..

i have tryed with SGS3 stock 4.1.1 rom,galaxy nexus with cm10 and SGS2 with cm10...and on alla cases latest 1.10 version doesn't work properly...no results...
[BetterBatteryStats] rollex:
Yeah, I get no results either... or they are always the same. No use.
[BetterBatteryStats] Karpfenhai:
No issue here, seems to be related to jb only? Can someone confirm the same issue on 4.0.3 or 4.0.4 ROM?

Tapatalked from my Samsung GT9100
[BetterBatteryStats] iamthealienus:
Oh my

Since the 8/26 update, nothing but problems.

The app is useless for me now. Getting unknown error while retrieving stats, no reference errors, unknown error check logcat... Nothing shows.

I've wiped data for the app. Fixed permissions, wiped cache and dalvik. Nothing works.

SGH- I727 Skyrocket

4.0.4 Chimera 2.2c using InstigatorX 6.0.3 kernel
[BetterBatteryStats] Xdenwarrior:
Well i can confirm that disabling the "Use wireless networks" in location services and ''report my location from device'' (inside the Gmaps settings) killed my 700 wakelocks (although havent left my device for 12 hours idle yet, leaving it idle for 1-2 hours only gives 0 or 1 wakelock from maps :D ) so no need to disable maps autorun or kill the entire application for that matter
[BetterBatteryStats] chamonix:
How about sending me a logcat?
[BetterBatteryStats] chamonix:
Can you tell me if unticking "show battery levels" in preferences changes anything to that situation?
[BetterBatteryStats] chamonix:
For BetterWifiOnOff please report in the corresponding thread (from your log you are not using latest version).

For the BBS part I see that you kernel does not support CPU states and that may be the problem. Can you try unticking the root features (advances preferences) to see if something changes? If that's the case we can narrow down the problem to alarms or network stats and that will help me finding a fix for devices where - assuming that's the problem - cpu states are not available.
[BetterBatteryStats] iamthealienus:
I will send a logcat tonight
[BetterBatteryStats] chamonix:
To sum it up I see two problems some users are facing:

First

E/CpuStates( 2813): /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state (No such file or directory)
E/StatsProvider( 2813): Exception: null
E/StatsProvider( 2813): java.lang.NullPointerException

Second

E/StatsActivity(12782): android.content.ReceiverCallNotAllowedException

I would really appreciate some feedback on these issues:

- First: does unticking the "show battery levels" pref solve he problem?

- second: does unticking the "root features" in advances prefs solve the problem?
[BetterBatteryStats] mozzy:
Sorry if this is a basic question, I want to monitor my battery life and have installed the app but don't understand it's findings.

How and what information do I need to find out what's going on? I see that you guys are uploading txt files?
[BetterBatteryStats] Karpfenhai:
Please read the 3rd post at the first page to gather that information.

Dumps are welcome to help you to sort out your drainers.

Regards.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Mike:
I have had bbs apk installed for some time and many times a day it asks for su permission. I have the selection as yes/agree and have the remember preference box checked. Its just a nuisance. Any ideas? Great work. Thanks

--------------------------------------------

Sent from my Skyrocket i727 running CM9

For a one stop shop 2 of Vincom's threads

Everything Root: http://xdaforums.com/showthread.php?t=1773659

Returning to Stock: http://xdaforums.com/showthread.php?t=1652398
[BetterBatteryStats] chamonix:
See post #3
[BetterBatteryStats] chamonix:
I found on definitive cause of problems saving refs: when the cpu states file /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state does not exist the whole ref writing process breaks down.

This may be a cause of loss of refs for some users. Before we dive into the differences between the kernels I fixed the error handling so that this missing file just causes that part of the ref to be skipped. Update rolling out in a few
[BetterBatteryStats] stevetrooper:
I was getting this error after a reboot: Getting unknown error while retrieving stats, no reference errors, unknown error check logcat.

I tried the unticking "show battery levels" and the stats are working again after I plugged my Sprint SG3 in for a few mins.
[BetterBatteryStats] poczynek:
The only option that is working since the update for me is the 'Since Boot' - nothing else works - they all say 'no reference since charged set yet' - what do i need to do?
[BetterBatteryStats] chamonix:
Release 1.10.1

Hotfix is up. Fixes for references not being created because of missing cpu state file and exceptions occuring when retrieveing battery level. Please confirm if that hotfix works even if the "show battery levels" pref is ticked
[BetterBatteryStats] chamonix:
Let's see if I still can code after 21 hours awake :D
[BetterBatteryStats] melvinaury:
LOL:eek::eek:
[BetterBatteryStats] kokosung:
Please help me with my battery drain!!!

I lost 23% when I slept for 7 hrs. Please help me find out what cause my phone battery drain.

Thanks so much
[BetterBatteryStats] chamonix:
You are suffering from frequent wakeups. Main reasons are:

ccc71.bmw.pro (): Wakeups: 515

jp.naver.line.android (): Wakeups: 192

com.whatsapp (): Wakeups: 112

BMW: 515 wakeups is 1 wakeup per minute, that's far too high. Please check BMW settings to turn down the rate to 5-15 minutes

Line: a wakeup every 5 minutes is too high for a messenger, XMPP has a typical keep alive of about 25 minutes. I don't know if you can tune this in the prefs ot if you have to decide if it's worth the high cost

Whatsapp: that keep alive is pretty high as well. I use Whatsapp too and I barely see any alarms. Are you using the current version?
[BetterBatteryStats] yahyoh:
c'mon buddy u should get some rest :)

maybe u will sleep on the keyboard :p
[BetterBatteryStats] chamonix:
lol no, I'm heading to bed now and hope to get positive feedback in the morning so I can upload to google play.

Edit: morning, it's in 4 hours
[BetterBatteryStats] kokosung:
Sorry for my noob, but I don't know how to turn down BMW settings to the rate 5-15 minutes.

For about Whatsapp, I use mod version from XDA. I'll try to upgrade to original one.
[BetterBatteryStats] alexinna:
You need to recharge your battery otherwise your own BBS will start complaining ;)

---------- Post added at 02:03 AM ---------- Previous post was at 01:53 AM ----------

Installed 1.10.1. So far so good. Will inform in case of any issues/observations. :good:
[BetterBatteryStats] Noed:
I've tried, same error

---------- Post added at 11:10 PM ---------- Previous post was at 11:07 PM ----------

I tried both, didn't solve. Btw I'm using SuperSu on JB

---------- Post added at 11:15 PM ---------- Previous post was at 11:10 PM ----------

Oh, good night, I will wait for the fix in Google Play
[BetterBatteryStats] alexinna:
Read about BMW optimization here

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

Why wait until morning if fix (or workaround) 1.10.1 is already posted here? And if you try now and report back the status it would help chamonix in a morning. :)
[BetterBatteryStats] vkk178:
I have been trying to track down the source of the battery drains . Attached are my stats.. I think it has to do with the email, but then I am looking for a better opinion.I have hotmail setup with exchange settings set to sync once every hour. No contacts or calendar sync.. Could you PS have a look and cast your suggestions.. Thx
[BetterBatteryStats] alexinna:
Just 1 min awake time per hour is very good already. :)

Did you ever try with google mail? If it will show better result you can try to forward all hotmail e-mails to google account.

You can also try to optimize map service as described in post #3
[BetterBatteryStats] vkk178:
I am concerned about the no of wakeups between 0.00 and 6.00 am when the screen was off..
[BetterBatteryStats] M.A.K:
This is working for me.

Thanks.
[BetterBatteryStats] chamonix:
Thanks you very much for your help in testing this hotfix.

@guys who had that problem: please tell me if CPU spy gives you CPU states (what version) and if you have /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state

I'd want to know if you kernels have alternate CPU states file and which one it is to implement handling that alternate file
[BetterBatteryStats] ballmead:
Love the new version of BBS.

It looks really nice now and has some nice new features.

It makes me glad I bought your excellent app.
[BetterBatteryStats] ShirazSuleman:
Hi Guys,

I posted a few pages back but I think that maybe not attaching the dump file in a user friendly way may have deterred potential help with my problem so I am posting again :)

Can you please help me with resolving my battery drain issues?

The highest wakelock is GTALK_ASYNC_CONN_com.google.android.gsf.gtalkservice.AndroidEndpoint

I have tried disabling Google Backup, removing the google account and re-adding it. I disabled Gmail sync and Market app update notifications and also signed out of Gtalk but nothing seems to help. This only happens on the wifi at work but not at home, gtalk is blocked at work.

I have attached my BBS dump file.

Regards

Shiraz
[BetterBatteryStats] It_ler:
You should check your location services.

Menu Settings > Location services and disable all options.
[BetterBatteryStats] PholkLorr:
Just bought the app after using the free versions for months to support chamonix and to save time. The app costs US$2.89. It's a fair price to pay. If you earn US$11.56/hr (some earn less, most earn more), you can make $2.89 in 15minutes. The amount of time you save having the app auto update instead of having to manually download the apk, removing the old apk and installing new apk will save more than 15minutes for sure! Anyway, US$2.89 can only get you 2 kit kat bars or 1 plate of chicken rice in Singapore.
[BetterBatteryStats] Charmacas:
Hey,

I don't know what's wrong with my device. Since the update to Tytung ICS 2.6 I got a high drain of the battery. It's almost about 50 to 150 in standby and THAT'S bad. ;)

Could someone please have a look on my dump file? (I can't put it as an attachment because Tapatalk doesn't support it yet. Started a feature request...)

Sent from the NexusHD2 with Tapatalk 2
[BetterBatteryStats] alexinna:
Dump file needs to be idle like described in post #1 and for 1-4h. In your case you show 18m and 11m screen was up. Current dump doesn't show anything that could explain 5% drop. But the strange thing that battery lost is 5% with no change in mV. If it's always like this I would suggest completely discharge battery (until phone shuts off) and charge it with the phone off. Then remove battery and re-install it in a couple of minutes. Did you ever try to return to original kernel?
[BetterBatteryStats] Charmacas:
Wow thanks for the detailed answer. I waited for 1 hour before touching the phone again. I don't know why it only noticed 18 minutes.

I will try your tip with the battery. Thanks!

Sent from the NexusHD2 with Tapatalk 2
[BetterBatteryStats] XlAfbk:
notification: 3900% awake

BBS 1.10.1 not showing any info at all, not in any tab. "An unknown error occured". Was showing info in 1.10.0
[BetterBatteryStats] Karpfenhai:
Hi Sven, small possible bug detected, the widget shows almost one hour more since time as the app:

View attachment 1288614

View attachment 1288615

View attachment 1288616

Is it possible the widget not starts counting before battery drops down to 99%?

Since it uses the same reference (since unplugged) i can hardly imagine.

Thx for your time!

Edit, seems tapatalk does not upload pictures any longer, damned..

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Charmacas:
Ah I now know where that comes from. I have the 1500 mAh battery from mugen and the reading of voltages never worked. Or do I have a corrupt battery?

Sent from the NexusHD2 with Tapatalk 2
[BetterBatteryStats] tigerphil:
Not getting any CPU stats on latest BBS or CPUSPY V0.4.0 :confused:
[BetterBatteryStats] Noed:
I tested now 1.10.1 and problem fixed, will wait for Google Play install
[BetterBatteryStats] alexinna:
Probably only you can answer this one. But if reading doesn't work not sure how it shows the % in this case. Battery only can return mV and ROM makes % decision based on this and history. At least this is my understanding. Somewhere in this topic it was a pretty good explanation on how it all works. So if you ignore % value what is your life on 1 charge?
[BetterBatteryStats] M.A.K:
None of the cpu control/monitor app's work for me.

If you tell me what files I'll see if I can find anything relevant.
[BetterBatteryStats] Aduck79:
With the new version it seems to work :)

Would one of you look at my dump and tell me if I should optimize something?

http://pastebin.com/vUfutGWG

Thanks in advance :)

Sent from my LG Optimus 2X
[BetterBatteryStats] icepixie:
edit: works fine now :)
[BetterBatteryStats] chrone:
1.10.1 seems on good on vanilla takju 4.1.1. :)

the only complaint is since 1.9.1, the 2G network only showed moderate signal though I have almost 5 bar full everytime. using 3G network elevated the signal to good signal though the 3G signal sometimes dropped to 3 bar half full. :D
[BetterBatteryStats] xodeus:
I cannot get any of the widgets working.

They are only showing n/a

The app it self doesn't collect any info.

What's wrong here?

Sendt fra min XT910 med Tapatalk2
[BetterBatteryStats] jmaciak:
After update you usually have to at least plug and unplug usb cable so you have a reference point
[BetterBatteryStats] xodeus:
I've been fully charged over the night, still no values. Now I've reinstalled the app, and hope that it'll help. But I've not got any prompts from the super user app yet.

Sendt fra min XT910 med Tapatalk2
[BetterBatteryStats] itchn2go:
sorry for the delay. I am traveling.

attached is a new log. I have created a custom ref. the phone has been plugged and unplugged often over the last few days. I think i had a reboot there too.

EDIT - MY PROBLEM SEEMS TO BE CORRECTED. I ran a "Fix Permissions" routine that was built in on the ROM and I know have stats.
[BetterBatteryStats] alexkno:
Hi. Since some days on alliancerom v3 with siyah 4.1.1 I get high networkstats partial wake lock. Any idea what this is?

sent via Tapatalk
[BetterBatteryStats] dontezuma:
1.10.1 All good

As far as I can tell, I'm getting good stats from 1.10.1 on my Skyrocket, running Seanz's SkyICS 4.2F6. I didn't have to fix permissions or anything. In fact, I emailed the .apk to myself in Gmail and clicked the attachment. It loaded automagically.

Well done. Chamonix, do you have a Dwolla account? If not, you should get one. People can ship you donations for free under $10 or $.25 over that amount. Cuts out the middleman. Though, you're in Germany, so, Dwolla may not work. Never mind. I'll just buy the app from Play.
[BetterBatteryStats] linx8:
BBS mmc1_detect kernel wakelock

Hey guys,

I charged my phone to 100% last night and left it overnight. According to the stats, I've got a massive kernel wakelock "mmc1_detect" of about 4 hours which kept it from deep sleep for half the night. Couldn't find much info about it. Anyone know whats up? I'm on CM9 stable.

See attachments.

Thanks!
[BetterBatteryStats] alexinna:
I would say your biggest issue is

RILJ (Phone): 1 h 3 m 21 s (3801 s) Count:3144 7.2%

wakelock. Looks like your phone was looking for a network and this process eats battery a lot. Regarding AudioOut_1. Are you sure you didn't stream any music during this time?

Check for widget or something that use audio output. I see you are using TuneIn Radio and some other players a lot so make sure they are completely off when not in use. Ideally idle dump is recommended to research the issues.

Also you need to review FB, google backup (do you really need it?), maps/location services and other google services. Disable any sync that you don't need. Check post #3 for general recommendations. All the best!
[BetterBatteryStats] rrohanjs:
hey guys, any idea whats those 2 things with the question mark next to them keeping the phone awake ?
[BetterBatteryStats] Karpfenhai:
Facebook should be altered too, but mmc1 points either to a faulty SD Card or your Mediascanner is going nuts, take out your sd for a while to see whether the issue persists.

Man, thats not an idle dump, please read the op for best results, but BLN is clearly a problem, disable it and you will be fine.

EDIT: I see you've asked for the question marks, thats easy to explain ;)

PowerManager is the collector for all user caused Wakelocks (Partial Wakelocks), you will see the real cause in the Partial Wakelock Section of BBS.

VBUS_Present is the charger connected, did you ever try to tap the Question marks? And there will be light..

regards! :)
[BetterBatteryStats] prasadnaidu66:
Thank you Working After Plug and unplug! reference point created.
[BetterBatteryStats] xodeus:
After a reinstall and recharge the app is working again. Thanks for all your advices.

Sendt fra min XT910 med Tapatalk2
[BetterBatteryStats] Aduck79:
Anyone? Please :)

Sent from my LG Optimus 2X
[BetterBatteryStats] Karpfenhai:
Looks not bad buddy, one of your google apps is causing some wakeups.

4 mins of wlan related overhead and 6 mins caused by your sd card, probably media scanner.

Enjoy your smartphone!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] r7s:
When I choose "Partial Wakelocks" from the list, it takes 30 - 60 seconds to show me the results. Is there any fix for this? I use the newest BBS version.
[BetterBatteryStats] vkk178:
Optimizing maps helped the cause .. Thx alexinna
[BetterBatteryStats] -earth-:
Is cm10 with siyah kernel supported?

After a reboot i geht a error message.

I would make a logcat, but my logcat prog is not running.
[BetterBatteryStats] rtm7369:
this is what I have been looking for the past day and a half .. and finally stumbled up it .. im still very new too the android and still trying too figure out how best too search for things here on xda ... one day .. i might figure it out but then they will change it ...
[BetterBatteryStats] chamonix:
What does the error say?
[BetterBatteryStats] alexinna:
You can continue to use Google. Try it: open google search and paste "site:xdaforums.com rtm7369" (without quotes)
[BetterBatteryStats] JkdJedi:
Getting a lot of alarm wakes from Google Maps, is this normal?

Edit: just saw the above reference to post #3 thanks, I'll look into it.

Tapatalk sent from my Kanged Samsung.
[BetterBatteryStats] It_ler:
I don't know if it's normal, but you can improve battery life when disabling all location sevices in menu Settings > Locaion services.

And especially for Google Maps, have a look here (description from Karfenhai to minimize its wakelocks/alarms) => http://xdaforums.com/showpost.php?p=29420959&postcount=7059

Good luck !
[BetterBatteryStats] alexkno:
Anyone an idea about networkstats wakelock? :confused:

sent via Tapatalk
[BetterBatteryStats] Karpfenhai:
@UF21,

Hey there, your awake is almost network related only!

You may have a look onto the Ebay App, Use Gemini or Autostarts to adjust its autostart behavior.

Did your network switch often between Edge and HSDPA ?

That would explain L2_Hsic a bit. Use another baseband or nail your phone down to use GSM only (Bad network) or WDCMA Only (Good network).

So, your bad sleep behavior is network related only, try to reduce background sync (Facebook) too.

Maybe if you manage to get a better carrier signal, the traffic overhead will reduce by itself then.

Good Luck!
[BetterBatteryStats] uf21:
Thanks for the quick reply. I already had it set on wcdma only from a while ago. So it only facebook and ebay that's causing the drain? I never changed anything and this just happened out of the blue.

Sent from my GT-I9300
[BetterBatteryStats] Karpfenhai:
Here you go:

10053 (Wifi) (com.android.vending.Google Play Store): 11.0 MBytes 43,6%

10145 (Wifi) (com.quoord.tapatalkpro.activity.Tapatalk): 10.0 MBytes 39,9%

For me it looks like background network actiity, probably caused by your download and sync (Google services).

But just 20 mins during a short period with 40 mins screen on ... not really convincing, take another reading 4-6 hours and post the dump again, dont touch the phone during that time!
[BetterBatteryStats] alexkno:
Thanks!

Will have a look on this and post a new dump when it reoccurs

sent via Tapatalk
[BetterBatteryStats] Karpfenhai:
Yes, it happens to me too once a while ago, so i adjusted the settings, you may adept them as a test.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] milsabords:
Version 10.1.0 does not work

Cannot find reference ... or something similar. Plugged all night long, unplugged, no result.

Restored V9.2.2 with TiB, works ok.

Never had any problem with CPU Spy.

Samsung Galaxy Note, Stock LRG ROM, HydraCore (NoteCore) kernel.
[BetterBatteryStats] tigerphil:
i've downloaded this app from the playstore, charged my phone during the night and unplugged it, everything is working fine except the CPU states. has anyone else got this problem or know a way of sorting it?

i have even tried CPU SPY but still not having and stats shown