yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] rbertani:
I have developed my second android app 2 days ago and I know how is dificult develop an app, Congratulations! I will test it as soon as possible.

Best Regards
[BetterBatteryStats] chamonix:
Here's what the log says:

04-10 16:38:22.009 I/AlarmsDumpsys(27246): getAlarms: SDK=16, RELEASE=4.1.2
04-10 16:38:22.279 D/StatsProvider(27246): Result [su rights required to access alarms are not available / were not granted [Wakeups: 1]]
04-10 16:38:22.279 I/StatsProvider(27246): Trace: Finished root operations2014-04-10 16:38:22

As you have root something in the dumpsys format may be the cause. Could you please run a "dumpsys alarm > /sdcard/alarms.txt" from a shell (with su) and attach the file. That would help determining what is wrong with the format.

Edit: nvm, the other log shows that su can not be accessed. I suggest that we focus on that for now
[BetterBatteryStats] chamonix:
Neither alarms not network stats are present in the dumpfile and the logcat shows errors accessing su. Are you using supersu or superuser?
[BetterBatteryStats] stiiiv19:
thx man, very usefull app!
[BetterBatteryStats] yichen382:
bam_dmux_wakelock and qcril_fd wakelocks

Anytime when I have data on, two kernel wakelocks ( bam_dmux_wakelock, qcril_fd ) starts to pile up like crazy, and battery starts to drain. If I turn off data, or when wifi takes over data, wakelock stops. I am on SlimKat (Kitkat 4.4.2) and my phone is a Samsung Mega. Is it because the carrier doesn't support fast dormancy? (i don't know how to turn off fd on the phone) or because of some totally different reason? Can someone give me some idea?? I am pulling my hair out.
[BetterBatteryStats] cartman_73:
I rooted my phone with Framaroot

I use SuperSU, the V.1.5.0.0 runs correctly and Alarms are visible.
[BetterBatteryStats] stiiiv19:
I have a moto g with EU firmware. It's all stock, no root or other things. With BBS I noticed this kernel wakelocks "pil-wcnss" that keeps the phone awake. Does anyone know help me?
[BetterBatteryStats] Perseus:
There's an app in the Play store for Fast Dormancy. For BAM_Demux, if its getting out of hand then either change your modem or briefly turn on Airplane mode when you reach home or work.

Can help better if you post the full log. If you want to know about specific wakelock, then post in the Newb Wakelock Guide thread.
[BetterBatteryStats] henry8668:
Yes I found a plugin for that. Setup the task is easy, I selected stat type "unplugged".

In the profiles, I select state, set the condition to battery level from 9 to 10%.

however the result is seems not right, i have it running for a few days now and there are instances the battery went below 10%. It did create the text dump, but the stats is not right:

Statistic Type: Unplugged to Current

Since 1 s

Level lost [%]: Bat.: 0% (100% to 100%) [---%/h]

The whole BBS log is attached as well. Seems I am not using it correctly?
[BetterBatteryStats] stiiiv19:
yeah you're right, but i couldn't post link before because i had few messages.

Here is it

https://drive.google.com/file/d/0BzkZY_W1K-8FNUFLRWFKcU56cEk/edit?usp=sharing

https://drive.google.com/file/d/0BzkZY_W1K-8FdkhuWU51N05RNEU/edit?usp=sharing
[BetterBatteryStats] Perseus:
I think your Boot reference didn't set correctly. When did you boot with respect to the time you pulled this log ?
[BetterBatteryStats] henry8668:
The last time reboot was about a week ago. This tasker profile has been triggered a few times after the reboot. All of them are showing similar.
[BetterBatteryStats] Perseus:
Maybe that could be the reason.
[BetterBatteryStats] henry8668:
could you elaborate a little bit? Normally I don't reboot the phone.
[BetterBatteryStats] Dreadsteel:
I am getting a lot of location manager service wake lock. Its a bit random. Some days its under 15 minutes. While other days its over 30 minutes.

I don't have any location settings on except Google now. But ive never had this wake lock before until the last couple of days.
[BetterBatteryStats] migadeath:
Hi, yes I've no time toying with may phone, it's used mostly as phone and some emails when I'm away from laptop. Now it is not draining, when it returns I'll try to catch useful data.

Kind regards,

Milan
[BetterBatteryStats] SagiGo:
Hey,

Been trying for a few days to get 1.15/1.16 to work on slimkat rom, when trying to install as system app from the app itself i get 'failed' error which i cant overcome.

Help please?

Thanks.
[BetterBatteryStats] chamonix:
In that case please enable debug in the advanced prefs and repost a logcat. The difference between 1.15 and 1.16 is that for non rooted devices alarams are accessed without root (simple form) and with root you get the full form. I still don't understand the error that you get, reporting of error accessing root but hope that the debug log will give us more details.
[BetterBatteryStats] chamonix:
There have been problems reported with slimcat and system app. A logcat would help for a start, if we do not progress I will have to install it myself.
[BetterBatteryStats] SagiGo:
Could you be specific?

Catlog at background, open bbs and take screenshot of log after getting the 'failed" error?
[BetterBatteryStats] youshoe:
Sorry I'm not sure how to bump a post.

But I've attached another log to see if it helps.

Thanks in advance!
[BetterBatteryStats] chamonix:
no need to start logcat, the log will get collected anyway. Just install as system app and grab logcat with the BBS share option
[BetterBatteryStats] carlese:
Hi everyone.. Are these wakelocks normal? 3 hours since disconnection from charge and I have only 1.40 deep sleep.. I am not using my phone much and I used fb only for 5 minutes..
[BetterBatteryStats] gaich:
And what do YOU think - Facebook and Email sync are at the top? You decide, whether it is normal... :o
[BetterBatteryStats] carlese:
I think email is normal, but don't know if Facebook is.. The other wakelocks are normal?
[BetterBatteryStats] gaich:
You say you used FB during 5 min - wakelock was hold 27 min, and it will be held much more further - the FB app is well-known battery drainer. As for other wakelocks - you should make an idle dump to make it clear whether your audio or location wakelocks were working in vain or you have needed them for some activity of yours.
[BetterBatteryStats] Perseus:
I had experimented and realized Version 1.15 works just fine with Slimkat. Please give it a try.
[BetterBatteryStats] chamonix:
I have unpacked my gnex and downloaded Slimkat to give it a test. I think the problem lies in design at boot not only compares apk version number (system has 1.0) but also timestamp.
[BetterBatteryStats] layup23:
I seem to have an issue with my phone and from what Bbs is telling the phone never enters deep sleep. Can anyone help please? This is the log file. I have to write the url since I'm on my phone and I can't see any add attachment options on the xda app.

Hope it has the necessary information. Thank you!

https://app.box.com/s/sq7upu29pdsnpdmrywth
[BetterBatteryStats] giaur:
Hello,

Sorry for offtopic, but I just wanted to ask what control did you used to display graph chart? I'm looking for similar solution for my app. Did you used some library for this?
[BetterBatteryStats] mlkjuggalo:
Press the 3 dotted settings at top then press more then graphs .
[BetterBatteryStats] Perseus:
You have not enabled Root Features. So It is missing Alarms and Kernel Wakelocks. Root Features are in Settings > Advanced.

Based on what is in the log, seems like you listened to music for 46 minutes. Facebook and Hangouts seems to be the offenders. Please remove both apps. Post an Overnight Idle log without any usage. Make sure to reboot before hand.
[BetterBatteryStats] layup23:
The weird thing is that I checked and I had Root Features already enabled. I also verified it on my other smartphone( which has a good battery life, shows the "deep sleep"section and, with the Root Features enabled from when I first installed the app ( about 3 months ago) I still can't see the Alarms and Kernel Wakelocks. I have attached some screenshots from my other phone so that you can see what I mean.

And I will go ahead and try to see if without facebook things will change. From what I see the Hangouts app is uninstalled, I can't find it with Titanium backup.

But can this be the reason why there is absolutely no indication of the phone entering deep sleep? And another question, if the phone is always in this state( I'm referring to the state in which the CPU is always at 1.04 ghz) is there a posibility for the phone to break faster, since it's never in deep sleep? That's what I'm worried about, the fact that the phone is never in deep sleep.

Thanks and I will post the other log tomorrow!
[BetterBatteryStats] Perseus:
Please uninstall this BBS and use v 1.15 from Op.
[BetterBatteryStats] kai_15:
hi guys.. i updated my rom into latest version yesterday can you please check again my bbs log.. i really appreciate if you help me again.. thank you! :)
[BetterBatteryStats] Perseus:
1 Hour is really too low a Log period. Please provide an overnight Idle Log.

The log does look pretty good otherwise. Nothing big that jumps out. The drain can be brought down further I am sure.
[BetterBatteryStats] kai_15:
---> ok sir i will do overnight idle log later.. thanks for viewing my log.. thankyou so much..
[BetterBatteryStats] chamonix:
I wouldn't consider your question as OT as this thread is development related.

As BBS is open source: https://github.com/asksven/BetterBatteryStats (widgets package)
[BetterBatteryStats] Acer4605:
deleted wakelocks?

Dear all,

I'm very happy with my battery life but in the below mentioned log file I came accross this notification

Kernel Wakelocks

================

"deleted_wake_locks" (): 2 h 58 m 56 s (10736 s) Cnt:(c/wc/ec)81842/0/6000 35,9%

anyone has an idea on how to get rid of this?
[BetterBatteryStats] Karpfenhai:
Do not use Wi-Fi anymore ;)

No seriously, this is a collector for all kernel wake locks which doesn't longer hold true, usually it grows after disabling Wi-Fi, but this information is also shown in the embedded KB.

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] Acer4605:
I did have deactivated my wifi and data over night but didn't know that it triggered this alarm

thanks for your help
[BetterBatteryStats] fbf2201:
The wakelocks occured before you off your wifi. Now since you off you wifi, they appear as unknown.
[BetterBatteryStats] Jwizzled:
This works with KitKat right?
[BetterBatteryStats] cartman_73:
@chamonix

Hi,

I attached the new dump file and logcat file with 1.5.0.0 version.

I hope that it help you.

thanks.

regards
[BetterBatteryStats] Perseus:
Yes it does. The Graphs won't work. The app will tell you why.
[BetterBatteryStats] Karpfenhai:
Sorry mate, but I have to disagree, the graphs are working just fine on 1.16 here:

Tapatalked from my Galaxy SII
[BetterBatteryStats] Wozzi7:
Just wanted to say thanks for this amazing app. Was able to very quickly identify the issue and then google how it was fixed.

Thanks!!
[BetterBatteryStats] Perseus:
He wanted to know on Kitkat. Are you saying Graphs work just fine on Kitkat ? Must be my Rom then.
[BetterBatteryStats] Karpfenhai:
Im on CM11 140410 Rom so 4.4.2 for sure ;)
[BetterBatteryStats] mdamaged:
I'm on stock KitKat and they work fine as well.
[BetterBatteryStats] Perseus:
Damn! Must be my Slimkat hating BBS. :(
[BetterBatteryStats] Karpfenhai:
did you try pushing bbs to /system/priv-app ?
[BetterBatteryStats] Perseus:
It dies if I do so. Sven is aware.

Will try again.

EDIT - Yes that did the trick.
[BetterBatteryStats] mrcooter:
Been having excessive battery drain. MMS having some issues i think but also trying to figure out what this process is called "sh" can anyone help me? Having trouble attaching image from mobile so link is to a screenshot from bbs with the process in question. Any help would be appreciated! Thanks. https://www.dropbox.com/s/3km0s7vciedoasv/Screenshot_2014-04-15-20-48-25.png
[BetterBatteryStats] Netuser:
I am having a weird issue with BBS, I installed the 1.15 beta At first it work well, it ask for to be installed as system App I accept it and it work well. But after a reboot i think it just now show the window with unistall button and when i press back button i go back to my home screen. I uninstalled and installed yesterday the 1.16B3 and same thing happened it worked first, once I installed as system app, after some time it now only show that uninstall window :S

I am using Echoe rom 4.4.2 on my Galaxy S4

What is going on ? how to fix this please ?

Thanks

Screenie:
[BetterBatteryStats] Karpfenhai:
Since youre rooted, same advice for you, push the apk manually to /system/priv-app and set permissions to 644, owner / group to root and its solved.
[BetterBatteryStats] Netuser:
Thanks I just did this, I will see if i get same problem tomorrow. Wait & See
[BetterBatteryStats] Perseus:
When you push using a Root Explorer, would permission change be necessary ?
[BetterBatteryStats] Karpfenhai:
Otherwise it keeps the standard permissions for sdcard ... fix permission from recovery will do the trick as well ;)

Tapatalked from my Galaxy SII
[BetterBatteryStats] chamonix:
on what rom does this happen? I am aware of that problem happening on some Roms but not on stock. I suspect something bad happening when the ROM notices the same app in system and app directories. I am using the supported way to avoid a conflict by setting the version number of the app in system to a lower number but is seems that some Roms do other checks at boot, voiding the installed app. If only I could reproduce that on one of my dev phones by using the right rom it should be easily solved with the proper workaround
[BetterBatteryStats] Wozzi7:
Hello everyone,

I just wanted to share some information about a rare wakelock that I was seeing which was eating through my battery.

vbus_present

This wakelock means that the phone is connected to the charger. For the longest time, however, I would see this wakelock even when the phone was not connected. Checking the CPU States on BBS, it showed that the phone only entered Deep Sleep 3.4% of the time, while almost 92% of the time, it was stuck at 384 Mhz.

After reading something about different chargers in another thread, I tried using the OEM charger that came with the phone rather than the Nexus 7 (2013) charger I had been using before. After removing it the next morning, I found that wakelock no longer existed and the phone was able to enter Deep Sleep at least 85% of the time.

So my only solution to this problem is to use the OEM charger and wall wart.
[BetterBatteryStats] Netuser:
As indicated in my original message, I am using Echoe Rom based on stock 4.4.2 , here is the link : http://xdaforums.com/showthread.php?t=2372286

Thanks
[BetterBatteryStats] Perseus:
It could be possible that the other charger has a broken or bent pin or perhaps its missing one of the pins alltogether. Do understand, even if the plug looks like microUSB and fits perfectly, does not mean an 11th pin is present. You should try charging on a Computer for experiment.
[BetterBatteryStats] jhamdw:
Can anyone help? When i'm using my phone, battery drains like crazy.

Froze all unnecessary apps/services, turned off all location services, greenified most apps (Fb, chrome, gmail, youtube, etc), yet it still plummets.

this was an overnight log after i plugged and unplugged. (with mobile data off, no airplane. Just had wifi on the whole night). Used my phone for about 20 minutes in the morning, and posted.

Can anyone tell me the issue, or is my phone just a defect? Appreciate it so much, thanks.

View attachment BetterBatteryStats-2014-04-17_125221990.txt
[BetterBatteryStats] Perseus:
Your Log seems to be during usage. It is best if you can post an Idle Log preferably overnight.

Also please Set "WiFi On During sleep" to Never under advanced Wireless Properties. Just temporarily, please turn off Android Backup & Restore. Then reboot.
[BetterBatteryStats] jhamdw:
Will post tomorrow morning without any use overnight.

is it best to turn mobile data on or off during this time?
[BetterBatteryStats] Perseus:
Keep the Data on and make my previously suggested change about Advanced Wireless. Make sure to reboot before leaving Idle.
[BetterBatteryStats] jhamdw:
Made the changes.

Should I plug and unplug after my reboot? or just leave the phone idle right after reboot for the log to be based off of Boot
[BetterBatteryStats] willowpc:
839922 4

Awesome app, congratulations !
[BetterBatteryStats] Perseus:
Probably too late answer. But no need to plug in unless you get a Toast notification about missing references.
[BetterBatteryStats] madgooner2810:
Hey all, so overnight my Nexus 5 lost about 12% in an hour. I checked BBS and I saw that kernel had wakelocks that were abnormally high. They were wlan_rx_wake (1h) and wlan_wd_wake(20 min) in a time period of 3 hours.. I did a bit of research on them and they are caused due to constant ipV6 requests to the router. I'm on a university connection is there anyway to fix this without modifying the settings of the router?

Thanks in advance!
[BetterBatteryStats] Perseus:
Turn off IPV6 at your end on the phone.
[BetterBatteryStats] jhamdw:
hmm.. I dont remember if I had gotten that message or not, but here's the dumpfile

View attachment BetterBatteryStats-2014-04-18_121212780.txt
[BetterBatteryStats] Perseus:
Please remove Clean Master app. If you do use Kakao Talk, do note there's a battery hit. just the cost of using the app.

Here in this thread, there is a mod posted by [MENTION=4355376]Karpfenhai[/MENTION]. I have linked it 3-4 times as well. Please search and follow the instructions. You will need System Tuner app for that. Also if it is an option, please flash a different kernel.
[BetterBatteryStats] jhamdw:
So i've followed his mod and after applying them, my wifi and mobile data won't seem to connect. Just wondering why that was

As for kernels, I'm not familiar with any so I'll have to look some up I guess

Thank you for your constant suggestions
[BetterBatteryStats] Karpfenhai:
They don't connect or they remain orange?

Last can be considered as normal, plus some cloud / push services will stop working, nothing to worry about.

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] jhamdw:
Yes, it remains orange. I just assumed it meant it wasn't connecting because the webpages were not loading whatsoever.

Is there a fix to that?

I noticed the pages do not load only when I'm on mobile data, but works just fine on wifi, although they're both orange.
[BetterBatteryStats] Sir_gpm:
What do I need to do, for this app to works perfect in kitkat?

Enviado desde mi Nexus 4 mediante Tapatalk
[BetterBatteryStats] aeroman:
-push the app to /system/priv-app and good is (uninstall other). ;)

-(Possibly even install the Xposed Module Enable Battery Stats for KitKat)

●Sent from my Galaxy S4-LTE√
[BetterBatteryStats] Sir_gpm:
Will do the first step, the second one is not compatible with ART :(

Enviado desde mi Nexus 4 mediante Tapatalk
[BetterBatteryStats] chamonix:
why so complicated? BBS install itself as system app
[BetterBatteryStats] IronTechmonkey:
I just lost my per-application battery stats but with no decrease in performance so not worth the resets or ROM reinstallations others have done. This app provides much more helpful information anyhow. Grazie mille!

Moto Atrix HD, ATT stock JB 4.1.1 on T-Mobile service, rooted, bootloader unlocked.
[BetterBatteryStats] aeroman:
the next Android version (4.4.3) is about to release,

then the problem with ART / Xposed should hopefully be resolved. ;) :cool:

if u mean the option in the App Settings, after this fix there 2 apks required & installed, and thus clean install without error or limits (for me).

but everyone should use it as such it requires, :good: was more of a small recommendation by the way. :)

have a nice day

●Sent from my Galaxy S4-LTE√
[BetterBatteryStats] torecdude:
Anyone has an idea what might help me? ill add some information: I'm using motorola 4g with cm 10.1 rom. My main concerns are Kernel wakelocks such as deleted_wake_locks which i read that are caused because of my constantly working wifi. Still, what are your suggestion reducing those wake locks beside reducing the usage of wifi? Another issue is PowerManagerService. I know PowerManagerService is a wake lock caused by partial wakelock but i can't see anything special in partial wakelocks beside Audioout_4 which i've solved already.

Please inform me if you need a more updated log and any additional information.

Thank you very much for your help.
[BetterBatteryStats] Perseus:
Ideally it would help a lot if you posted an Idle Log from Overnight period. In Use Logs don't help much. Here in this case you have been listening to music or something. That does drain quiet a bit.

Based on what you have posted, Wi Fi was on for considerable amount of time. Please set "Keep Wi Fi on During Sleep" to Never. How old is your battery ?
[BetterBatteryStats] torecdude:
Thanks for your reply. I will post overnight log first thing in the morning. I use 2 batteries, the one i was using when taking log and screenshots is about 3 months and the older is 2 years old.
[BetterBatteryStats] hatnim:
Can anyone help with this Battery drain..I can barely go 10 hours with my note 3 on just normal usage.. I left it idle overnight and this is the log.. https://mega.co.nz/#F!IRxTgArT!ydbrR8IP3RTAAdKZltaXUA .mobile data was off with only WiFi on.. can any one help me find the culprits.. thanks
[BetterBatteryStats] Lither:
I've played on a game for 6 hours, and in BBS, it shows I'm getting AudioMix partial wakelock on that game but I'm turned off all sounds in game settings?
[BetterBatteryStats] Karpfenhai:
Either bad game design (try to contact the dev) or haptic feedback does remain active while playing, turn it off for a test run.

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] guido_glx:
Happens to me too, even when my phone is on silent mode, I still get audiomix wakelocks :confused:
[BetterBatteryStats] medito04:
Deep Sleep Problem

Hello everyone,

i am using a Galaxy S2 i9100,

It has been about a month now that i have been triying to figure out the problem with my battery draining so fast while sleeping.

I found out that my CPU wasn't entering the deep sleep state!! It is staying at 200MHz while sleeping...

I tried full wipes,I tried different ROMS (stocks and customs) and Kernels, even went back to 2.3.6 Stock (got 4% of deep sleep state) but the problem was still there... (got 4% of deep sleep state)

There are no unusual Wakelocks, i guess "system_backoff" can be considered as a normal one too...

My problem here is that i get 0% deep sleep !! not even 1 second !!!

I don't think the problem can be a hardware one since everyting is working properly... (it would be illogical... )

I am currently on CM11 latest nightly
[BetterBatteryStats] Perseus:
Reboot will usually get rid of Deleted wakelocks. If possible, increase the DHCP IP timeout to a bit higher amount or issue static IP. Otherwise looking good.

I'd love to help. But your log of 35 minutes is not very useful. It would help a lot if you could post an Overnight Idle log. Reboot before leaving Idle.

Under Advanced Wireless Properties, please set "Keep WiFi On During Sleep" to never. The push notifications will come back the moment you open the Phone in the morning. So don't worry about that one.
[BetterBatteryStats] It_ler:
1. 35 minutes is to sort to get reliable results. Try to record at least 4 hours next time.

2. Massive nlp wakelocks indicate that a location service option is still enabled. Please check and disable all location options in system settings.

3. Disable auto-update/-refresh of your weather app and Google account. Log out of Hangouts. It seems to connect to Google servers regularly.

Maybe we get a better picture in your next dump.

My tapatalk signature:

Phone:

SGS2 (GT-I9100)

ROM:

XWMS3 NeatROM Lite v5.8 (PDA: XWMS3 / PHONE: XXMS4 / CSC: FOPLS6)

Kernel:

Apolo v4.14

If you have any question about or any issue with your SGS2, just ask in the New members friendly Q&A thread.

Have a :eek: at my latest kernel test results.