yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] tedynaidenov:
Hi guys,

I have a question related to Partial Wakelocks time in BBS. Several days I have been investigating battery drain in my Nexus S. The problem is now solved and as a happy android user, I am watching statistics from the BBS app. I've noticed something strange. As you can see in the attachments, device had spent around 12 hours sleeping and just 20 minutes awake (and 14 minutes screen on). This is ok with me, but partial wakelock data realy bothers me. The AlarmManager (and Phone app) had spent 1 hour and 14 minutes in partial wakelock. My understanding is that once app or service holds a partial wakelock, the device is awake. So why there is so much difference between Awake time: 20 minutes and AlarmManager partial wakelock: 1 hour and 14 minutes?
[BetterBatteryStats] ludoo:
I have a similar situation on my device and posted about it a while back, but got no meaningful answer apart the suggestion that it might be a bug and to post a logcat dump.
[BetterBatteryStats] galakty:
CM or MIUI? Its normal.
[BetterBatteryStats] ludoo:
None of the above. :) It's a 4.1.2 ROM for the Jiayu G3, Chinese mtk6577 based phone. I know it's "normal" as I've read about it from other owners and my phone's battery lasts a couple of days on average, what I'd like to understand is what it means and why it happens.
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][25 Mar. - V1.13B3] BetterBatteryStats

Did you update binary after installing superuser?

Tapatalked from my Galaxy SII

---------- Post added at 02:18 PM ---------- Previous post was at 02:14 PM ----------

I'm sorry to tell but it's clearly your Wi-Fi.. try to reduce multicast, play with beacon and dtim interval. Use better Wi-Fi on off, from market.. get a modified kernel (broadcast receiver blocked).

Tapatalked from my Galaxy SII
[BetterBatteryStats] galakty:
But its not oryginal soft right ? So this is the problem. I dont know much about this alarms .. But i have the same problem.
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][25 Mar. - V1.13B3] BetterBatteryStats

..and you got the same answer again...

If you feel it's a real bug and if you want to assist the developer, do what you are advised, if not, don't post it in the first place, you are confusing others.. thanks for your understanding.

Without context it's really hard to tell, are you sure you are using the latest official version or the latest beta from op?

If so, provide a logcat plus sufficient information about your Rom.

Tapatalked from my Galaxy SII
[BetterBatteryStats] ludoo:
Of course it's original, just with a few modifications (apps, theme, etc).
[BetterBatteryStats] galakty:
Hm. But how You installed it? CWM? In soft without modifications You had this alarm?
[BetterBatteryStats] ludoo:
We are going OT I think, anyway the problem is absent on 4.0.4 and present (as far as I know) on all 4.1.2 ROMs for the G3, which are all based on the official beta.
[BetterBatteryStats] galakty:
On 4.0.3 i havent this problem. Battery was very good, on 4.1.2 custom the battery drain is horrible .. Problem with alarms and sd card.
[BetterBatteryStats] tedynaidenov:
We are talking about Nexus S (i9023) with factory image 4.1.2 (JZO54K), NOT rooted. The BBS is 1.12.4.0 xda edition. Logcat is attached to the post.
[BetterBatteryStats] talhafarooq87:
Re: [APP][2.1+][25 Mar. - V1.13B3] BetterBatteryStats

I am getting audioout_2 wakelock How to solve it, its eating up battery very fast:(
[BetterBatteryStats] galakty:
Something is using speaker .. You can hear a not loud "SHHHHHHHHHH" from him. Close all applications, turn off sound with touching, opening menu ETC. Disable all sounds. Reboot phone.
[BetterBatteryStats] Katzenstreu:
Hi!

I need some help. 27,1%/h battery drain :(.

In attatchment the Log.

Thanks!

Tim :)
[BetterBatteryStats] linus98:
Disable push gmail, using Titanium Backup or better Greenify, freezes maps. However, to get a better view, charge up to 100% and do not touch the phone for at least 4 hours, then post the dump file!

Sorry for my bad English...
[BetterBatteryStats] Corvus Corax:
Any idea, guys? The log is in the attachment.
[BetterBatteryStats] linus98:
Add at least one link to your previous post, you can not go in search ..

Sorry for my bad English...
[BetterBatteryStats] Silentbob999:
You can clic on a quote to get to the source (huge link in tapatalk or little arrow on the website).. no need for another link...;)
[BetterBatteryStats] linus98:
Thank you, I did not see the arrow ...:o
[BetterBatteryStats] razen_kain:
Re: [APP][2.1+][25 Mar. - V1.13B3] BetterBatteryStats

OK I have the dmessage now. If you look at the screen shot BBS says that deep sleep percentage was 92.5%. However if you divide the deep sleep time by the total reference time you get 96.99%. This is what I've been struggling with since the update. Either the times are wrong or the percentages are wrong. Looking at my wakelocks I don't see any problems. Nothing out of the ordinary or too high. I have the settings on default for the most part. I turn the to spinner off because I don't use it. Maybe there some setting in BBS I am overlooking. Thanks in advance for any help

Dmessage: http://db.tt/BoEPZz9k
[BetterBatteryStats] chamonix:
Re: [APP][2.1+][25 Mar. - V1.13B3] BetterBatteryStats

See now we are narrowing down the problem. In the previous post I understood that you were talking about "other" stats and now I see a screenshot from the cpu states. On both reports I see that you are using 'since custom'. Does the problem only show with 'since custom' in 'cpu states' or does it occur in other combinations as well?
[BetterBatteryStats] chamonix:
Re: [APP][2.1+][25 Mar. - V1.13B3] BetterBatteryStats

You may not notice but you statement is really confusing. What 'problem' are you talking about and what tests have concluded that the problem is there with 4.1.2.

I am ready to install whatever rim on my Gnex if it helps me nailing the problem but you may have noticed that I have not created an issue on github yet as I can't describe the problem in such way that I could try reproducing it. Put yourself in my shoes for one minute and think about what information you would need, summarized in one post, in order to take you phone, do what needs to be done after a fresh boot, in order to reproduce the problem and document it.
[BetterBatteryStats] chamonix:
Re: [APP][2.1+][25 Mar. - V1.13B3] BetterBatteryStats

I admit that it is poorly documented. Stay tuned, I am preparing something (#380)
[BetterBatteryStats] chamonix:
Re: [APP][2.1+][25 Mar. - V1.13B3] BetterBatteryStats

There is a feature request for that but it's not that easy. And tbh I don't see that as a priority.

You should ask your questions about battery and level loss at boot in your device's q&a thread
[BetterBatteryStats] 18rmiller:
could someone post a couple screenshots of low or good battery usage? I would like to compare
[BetterBatteryStats] ludoo:
Re: [APP][2.1+][25 Mar. - V1.13B3] BetterBatteryStats

Yup sorry, that's what I meant saying we were going OT: I was talking about a problem in deep sleep stats on my Jaiyu G3 which is similar to what the other poster mentioned, which only surfaced after switching to JB.

Anyway, I posted a clean dump a while back where the discrepancy in stats was evident, but it might have flown under the radar. I'll prepare another one tomorrow after a night idle.

And of course, thanks for all you hard and excellent work!
[BetterBatteryStats] JamesDin:
Is it ok for galaxy s2
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][25 Mar. - V1.13B3] BetterBatteryStats

With Wi-Fi on its brilliant, does it stay like this or is it only that good from full charge to ~90%?

Well done btw.

Tapatalked from my Galaxy SII
[BetterBatteryStats] razen_kain:
Re: [APP][2.1+][25 Mar. - V1.13B3] BetterBatteryStats

No. Usually I use the since unplugged reference. I charge the phone to 100% at night then unplug it right when I go to bed. In this case, I used it a little after I unplugged it so I set a custom reference point then turned the screen of for the night. But to answer your question, no it seems to persist no matter what combination I use and only over long period of deep sleep.

Even just today when I got to work I set a custom reference point and used my phone normally (which is not much) but after a couple of hours I'll check it and the times and percentages all add up correctly. Most noticeably, the awake and deep sleep percentages always add up to 100%. Been doing this for a while.

Edit: to be clear, the discrepancies persist no matter what screen I look at as far as other, processes, CPU states, etc
[BetterBatteryStats] ftarules:
Re: [APP][2.1+][25 Mar. - V1.13B3] BetterBatteryStats

Can anyone point me in the right direction - I'm trying to figure out what the sns_periodic_wakelock is all about. I can't find the information on the github.

My phone stays Awake 75% of the time with this wakelock.
[BetterBatteryStats] galenthas:
Help me figure out my wakelocks

I've been having battery issues on my Nexus 4 and need help analyzing my bbs log.

I have problems with AudioOut_2 and PhoneApp wakelocks mostly. I've been getting poor battery performance lately so there can be problems aside from these two.

Any help will be gladly appreciated.
[BetterBatteryStats] AbyssTrion:
Re: [APP][2.1+][25 Mar. - V1.13B3] BetterBatteryStats

Can someone take a look at my dump?

http://db.tt/5erIuhyG

Thanks in advance!
[BetterBatteryStats] lafila:
Wakelocks

Hey there,

I testet my phone again with customROM and fresh kernel (CM10 and CastagnaIT Kernel for SGS+) and would like to know if you can take a look into the dump file which holds the data of 8 hours deepsleep in the night with activated flightmode.

Especially the wakelocks are quite tall.

Btw. i don't believe the 0% battery drain, it's more about 3-5%

I would be glad for any help.
[BetterBatteryStats] gta4ever:
Battery Drain since Android 4.1.2

Hi,

me too. I have two SGS2 and since system update to 4.1.2 battery load is empty in half the time as usually on both devices.

So I've purchased betterbatterystats and try to understand the numbers.

dump file attached

What I've done so far:

* steady IP adress from router as Wifi seems to suck

* stopped all unneccessary stuff, uninstalled a lot and kept only what I really need.

* opted out: GPS/bluetooth ...

Any advice will be appreciated
[BetterBatteryStats] chamonix:
Re: [APP][2.1+][25 Mar. - V1.13B3] BetterBatteryStats

That's a pretty good start. Next time post an idle dump if possible as mixed usage (screen on) makes the analysis less accurate.

As you mentioned wifi: a static IP does not help the wlan_rx_wake as that kernel wakelock is due to incoming traffic causing wakeup. For that symptom please have a look at the faq if you want to try to configure your network or turn wifi off when the phone is off. BetterWifiOnOff can help you automate that.
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][25 Mar. - V1.13B3] BetterBatteryStats

Just to be clear, a static ip does only help if you suffering dhcp overhead which would manifest as dhcp handler wakelock.

Tapatalked from my Galaxy SII
[BetterBatteryStats] vitoski:
Guys, could you please have a look at my dump file from BBS? It's almost for two hours since I disconnected it from charger. The phone was not touched at that time, so I hope it'll be free of garbage.

Once I checked BBS to create dump file I saw Snowstorm being a main culprit for wakelocks. I set up Snowstorm to refresh its data every 10080 minutes (it's 7 days) and most likely that time just happened now.

Therefore I'd like to ask you kindly for help and look at the dump file if there are other causes of wakelocks. Please let me know if you think there are some elements that I can improve to achieve better results.
[BetterBatteryStats] linus98:
It all seems ok. It would be better not to touch the phone for at least 4 hours ...
[BetterBatteryStats] vitoski:
ehhh... Thanks for quick reply. I wanted to hit 'THANKS' but I am limited only to 8 clicks on 'THANKS' button:(

I am trying not to touch my phone for 4 hours, but it's impossible... Simply I really like my phone and have to click it from time to time:)

I'll do my best to charge it in the evening and then post results after night.

edit:

Ooo YEA! Tapatalk rulez! I could give you 'THANKS' via tapatalk.
[BetterBatteryStats] chamonix:
Release 1.13B4

New release is up. Among other I have added some specific logging to help us narrow down the percentage / total time issues
[BetterBatteryStats] jhuff83:
Here is my latest dump after installing better wifi. It seems to have helped a bit. Still can't figure out how to turn the led off for gmail notifications.
[BetterBatteryStats] linus98:
The device does not sleep because of facebook, freezing, using Greenify, maps.

Sorry for my bad English..
[BetterBatteryStats] chamonix:
Re: [APP][2.1+][29 Mar. - V1.13B4] BetterBatteryStats

Much better. Notifications should be your second concern, Facebook the first. The Facebook app is unfortunately crappy so you may want to look for alternatives like friendcaster
[BetterBatteryStats] razen_kain:
Re: [APP][2.1+][29 Mar. - V1.13B4] BetterBatteryStats

On the percentage/time issue I just wanted to let you know that my theory about it only doing that during long periods of deep sleep appears to be wrong. This morning all my stats added up right (go figure) with an astonishing 98.7% deep sleep.

I will try the new version out tonight and report back. Thank you for helping me with this
[BetterBatteryStats] chamonix:
Added FAQ about the watchdog

Edit: online help also was updated
[BetterBatteryStats] dima202:
Bought the app

Thanks, I think this will be very useful in fine tuning my Epic 4g Touch for better battery performance.
[BetterBatteryStats] Rhonin86:
Ok i have nearly the same system and can proof your results. (Look here) But the akku drain over night in filghtmode is nearly 0 % - i had similar results under GB so it seems OK. But the weired things are the enormous partial wakelocks that doesn't correspond with the DeepSleep / Active time :confused:

Cheers

Rhonin
[BetterBatteryStats] Dark_Avenger:
Hi chamonix,

I want to report a bug with the latest version (1.12.4.0 and the current beta). From time to time I got FC when I start the BBS. Logcat is attached.

It happens with Gingerbread 2.3.5 on HD2.

I/StatsActivity(12726): LoadStatData: refreshing display for stats ref_unplugged to ref_current
D/Database(12726): dbopen(): path = /data/data/com.asksven.betterbatterystats/databases/betterbatterystats, flag = 6, file size = 29696
D/Database(12726): dbopen(): path = /data/data/com.asksven.betterbatterystats/databases/betterbatterystats, flag = 6, file size = 29696
D/Database(12726): dbopen(): path = /data/data/com.asksven.betterbatterystats/databases/betterbatterystats, mode: wal, disk free size: 194 M, handle: 0x3dc128
D/Database(12726): dbopen(): path = /data/data/com.asksven.betterbatterystats/databases/betterbatterystats, mode: wal, disk free size: 194 M, handle: 0x3cc530
D/Database(12726): dbclose(): path = /data/data/com.asksven.betterbatterystats/databases/betterbatterystats, handle = 0x3cc530
E/Database(12726): sqlite3_close(0x3cc530) failed: 5
W/dalvikvm(12726): threadid=13: thread exiting with uncaught exception (group=0x4001d5a0)
E/AndroidRuntime(12726): FATAL EXCEPTION: Thread-18
E/AndroidRuntime(12726): android.database.sqlite.SQLiteException: unable to close due to unfinalised statements
E/AndroidRuntime(12726):	at android.database.sqlite.SQLiteDatabase.dbclose(Native Method)
E/AndroidRuntime(12726):	at android.database.sqlite.SQLiteDatabase.onAllReferencesReleased(SQLiteDatabase.java)
E/AndroidRuntime(12726):	at android.database.sqlite.SQLiteDatabase.close(SQLiteDatabase.java)
E/AndroidRuntime(12726):	at com.asksven.betterbatterystats.data.ReferenceDBHelper.addOrUpdateReference(ReferenceDBHelper.java:254)
E/AndroidRuntime(12726):	at com.asksven.betterbatterystats.data.ReferenceStore.serializeRef(ReferenceStore.java:213)
E/AndroidRuntime(12726):	at com.asksven.betterbatterystats.data.ReferenceStore.access$0(ReferenceStore.java:210)
E/AndroidRuntime(12726):	at com.asksven.betterbatterystats.data.ReferenceStore$1.run(ReferenceStore.java:150)
E/AndroidRuntime(12726):	at java.lang.Thread.run(Thread.java:1027)
I/Database(12726): sql_statement|(null)|SELECT ref_name, ref_type, ref_label, time_created, ref_blob FROM samples WHERE ref_name='ref_unplugged'
I/Database(12726): elapsedTime4Sql|(null)|1.000 ms|SELECT ref_name, ref_type, ref_label, time_created, ref_blob FROM samples WHERE ref_name='ref_unplugged'
E/EmbeddedLogger( 224): App crashed! Process: com.asksven.betterbatterystats
E/EmbeddedLogger( 224): App crashed! Package: com.asksven.betterbatterystats v32 (1.12.4.0)
E/EmbeddedLogger( 224): App crashed! Application Label: BetterBatteryStats
W/ActivityManager( 224): Force finishing activity com.asksven.betterbatterystats/.StatsActivity

Thanks in advance.
[BetterBatteryStats] Hopper8:
Hey guys

Just wondering if someone could please have a look at my BBS data? (it's a dump from 11 hours overnight, so it exceeded the maximum allowed file size for a text. Hence I uploaded a zip of the text file)

Phone is galaxy s2 GT i9100, rooted, dorimanx kernel, stock Rom.

Any help massively appreciated :)
[BetterBatteryStats] chamonix:
If you want us to analyse your stats you should post a dumpfile. A logcat would be for reporting a bug
[BetterBatteryStats] oae08:
I think this version good enough to be pushed to play store? :good:
[BetterBatteryStats] Haomuch:
Re: [APP][2.1+][29 Mar. - V1.13B4] BetterBatteryStats

Hey guys I got very high suspend backoff wakelock today again. I think I have found some pattern of this wakelock and would like to ask you guys help me find out the hiden reason.

The substantial wakelock only appear when I was using the 802.1 EAP public Wi-Fi service of my university. When I used my own WPA2 router Wi-Fi or on 3g it basically didn't appear. I am using Franco kernel r111 and of course then Android 4.2.2. Now I think the problem must be related to the different Wi-Fi working mode under 802.1 EAP. But I am just a normal user and have no idea about the detail Wi-Fi working mechanism. So I would like to ask for your help and tell me what I can do to figure the problem out.

Followed are the dump file and catlog. I still can't get the dmesg file.

https://docs.google.com/file/d/0BwDcMdyU3DdlcE01NVZrYldPSzQ/edit?usp=sharing

https://docs.google.com/file/d/0BwDcMdyU3DdlSkJBNWNTc3JnNjA/edit?usp=sharing
[BetterBatteryStats] Hopper8:
Oh I'm extremely sorry. Massive apologies :(

Attached is the correct file. I hope its not too much trouble to have a look at it. Many thanks :)
[BetterBatteryStats] ahmed_14:
Nice

I think it's good app
[BetterBatteryStats] shiboby:
Re: [APP][2.1+][25 Mar. - V1.13B3] BetterBatteryStats

I'm a noob here. I only recently got the program and don't know how to fully use it. A few pages back I posted dump. I used to get about a day and a half of use, bit I haven't cleared a day in over a week. I'm averaging about 20 hours. I lose 15-20% over night, when I only would have a few percentage loss previously. If someone could tell me what is eating battery or tell me how to interpret the dump so I can figure it out on my own, I would appereciate it
[BetterBatteryStats] chamonix:
That's up to me to decide :P And no it's not, it's only a beta, RCs are to come
[BetterBatteryStats] Baenwort:
Thank you for your time spent looking at this. I've IDed and removed most of the offenders that I can figure out and turned off all the location settings that I can find. I think at this point I need a recommendation for a simple autostart managing program. I looked at autostarts but it does not seem to have been updated for over a year and I'm not sure how well it will work and I do not wish to cause any harm by testing it on a device that was released after its last update. Gemini task manager seems to be having issues with its ad service so I would like to avoid it until consistent reports come of it working. Do you guys have any other recommendations?

The power drains I am trying to identify are the sources of the "0 (mobile)" network usage and what "mdm_hsic_pm0" is caused by.

I'll update to the latest beta(M4) and let it gather some idle data tonight. Do you still wish for people to PM you json files from the latest beta?
[BetterBatteryStats] galenthas:
bump
[BetterBatteryStats] sipe1:
Re: [APP][2.1+][29 Mar. - V1.13B4] BetterBatteryStats

If you are using greeinfy then your ring volume gets stuck sometimes. Just few times press volume button amd should be fixed.
[BetterBatteryStats] dsmpampis:
Re: [APP][2.1+][29 Mar. - V1.13B4] BetterBatteryStats

Hey guys, since 2 days I have a problem "mediascannerservice", this think drives me crazy! What should I do? Any advice?

Thanks in advance!

Tapatalked with my Galaxy S3 powered by NULL_
[BetterBatteryStats] chamonix:
As this is a "since boot" stat it is pretty normal that the media scanner runs and scans your file structure. Depending on the number of files scanned (pics, music, etc.) 4 minutes is not something that you should worry about as long as it does not continue and run any longer.

A search in this thread will give you hints on preventing the mediascanner to run but I wouldn't recommend that if it stops after doing its job of scanning your media files
[BetterBatteryStats] TKD29:
Hello it`s ok to losse 1% /hour when phone is blocked?
[BetterBatteryStats] linus98:
AudioOut_2 is a little high. Do you have any game running in the background?
[BetterBatteryStats] chamonix:
Re: [APP][2.1+][29 Mar. - V1.13B4] BetterBatteryStats

You are using a rather old version of bbs and I suggest updating and providing a new dumpfile as this one shows some inconsistencies in timings
[BetterBatteryStats] TKD29:
No

Ok , now i install 1.30.0.0B4
[BetterBatteryStats] vovanius:
Hi there! I'm new to Android, so please forgive if if my questions are somewhat boring.

I have HTC One S with ViperOneS 2.1.0 custom ROM (JB 4.1.1 based) onboard. My battery drains about 1% per hour overnight. All wireless (phone, wifi, bluetooth) are off, GPS is off, I mean, everything is off... When I had previous ROM, Leedroid (ISC 4.0.3), battery drain under similar circumstances was zero to 1% overnight (goto sleep with 100%, wakeup with 100...99%). The main power drainer, due to Android battery stats, is "Phone Idle". If I install BBS, how do I setup it and where do I look to to find a drainer process/app? Thanks!
[BetterBatteryStats] :
Re: [APP][2.1+][29 Mar. - V1.13B4] BetterBatteryStats

Isn't it all explained in the first page ?

Sent from my S2
[BetterBatteryStats] zubsz:
night log

hey guys could you have at look at my nightly log please? thanks in advance ;)
[BetterBatteryStats] fone_fanatic:
Re: [APP][2.1+][29 Mar. - V1.13B4] BetterBatteryStats

Chamonix, I can't remember how long BBS has been helping me out on several different devices, it definitely is an indispensable tool!

I purchased it from the play store to support your efforts and hope others do as well.

Would it be possible to have a option, similar to apex launcher, where in the settings from the play store version for it to "check for beta updates" ? This way it would be easier for us to keep up with the latest betas.

It was just a thought as currently coming onto xda and downloading latest beta is not a hassle, just thought it would be a nice feature.
[BetterBatteryStats] chamonix:
New beta

New beta is up with some fixed and adding share/save for dumpfiles, dmesg and logcat.

Happy testing!