yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] chamonix:
Got it, I didn't even notice that my HTC ONE GE has the same thing. I'll look into the AOSP sources to start with.
[BetterBatteryStats] chamonix:
Just a guess but look at this commit by JBQ: https://android.googlesource.com/platform/frameworks/base/+/f2d643cfc7405c1f771cacab365a0a5d9b547f36

It would be very intersting to know it that was merged into Samsung's tree before they built JWR66V.
[BetterBatteryStats] chamonix:
That is correct :good:

What was the hidden message?
[BetterBatteryStats] chamonix:
To wrap it up based on the tests I did with my HTC One GE on both 4.2 and 4.3 ROM:

nlp wakeups are fired at a far too high rate if you have cell/wifi location active and as soon as location reporting is enabled in maps. Whether location is active on g+ or not does not change anything. That wakeup frequency is higher than once a minute and goes down if:

- cell location is turned off

- location reporting is turned off

I am now going to test the same on my gnex based on stock 4.3 to exclude any conflicts due to google play services apk version and at the same time will write an xposed module to log the requestors of alarms in the hope to find a faulty class scheduling alarms with a high frequency. If we have a finding it should be possible to throttle the alarm frequency without causing any damage at runtime.

Stay tuned...
[BetterBatteryStats] Xoib:
Yes it can be related !

After looking on into the git branches, it was not merge in the JWR66V build.

Btw the phone I'm using is a Nexus 4, not a Samsung.

What do you have in mind ? Because if this is the cause, the only way to fix it is to use a more recent build right ?
[BetterBatteryStats] diveganesh:
kernel wakelock: "fuelgague-lowbat"

Hi,

I'm having substantial battery drain on my Samsung Galaxy II Skyrocket (Android 4.0.4, stock ROM), like 8% an hour without much activity. With BBS, I see that it's Awake almost as long as is it Uncharged (with Deep Sleep almost 0) and when I look at Kernel Wakelocks, "fuelgague-lowbat" seems to be running for a substantial amount of time. I have not been able to figure out where this is coming from and would appreciate any help in sorting this out.

Apologies if this is not the correct thread.

Thanks.
[BetterBatteryStats] negrobembon:
anyone here knows what the wakelock RIL-FD means?

that wakelock keeps my phone awake for hours and i cant find any answer to what it is, only that my phone practically never sleeps at all
[BetterBatteryStats] The Fer-Shiz-Nizzle:
Radio Interface Layer-Fast Dormancy.
[BetterBatteryStats] chamonix:
Well that commit was exactly what I was after. Requesting a wakelock from userland does two things:

- request a kernel wakelock (the good old known PowerManagerService)

- add a userland internal partial wakelock and returning positively to the requestor

Now if I get that commit right there can be situation where the first step is done but the second step fails. My interpretation would be that the kernel wakelock is applied and after that the rest fails. No partial wakelock and more importantly no positive feedback to the caller. In that case the caller will not take care of releasing the wakelock either as from his standpoint it was not applied. The result would be that what you experience. Of course the code does not fail everytime and that would explain the problem only happening after a while (read under certain circumstances).

I am not experienced enough with Xposed (yet) to tell if a fix could be applied by overwriting that method so I would say that your only option is to wait for a fix or change to an aosp based rom that merged that fix already.
[BetterBatteryStats] chamonix:
Please post a dumpfile showing that wakelock. Without knowing the count of that wakelock there is no way in telling what it is. Does this wakelock start straight away when your battery is fully charged or only when the battery is almost drained? It may be interesting to take two dumpfile for both the fully charged and the almost drained situation if both differ
[BetterBatteryStats] parkedraccoon:
My Kernel Wakelocks page is empty...I know I'm having some wakelocks because I have some listed in Partial Wakelocks, and I can see them in the dump file.

View attachment 2170930

What's going on?

Carbonrom 1.8 4.2.2 with ziddey's OTG Franco-based kernel. Seems to happen on any version.
[BetterBatteryStats] johndoe99:
Watchdog Issue

So I have tried the latest Beta version and the latest release version of BBS on my stock HTC One. No matter how I configure it WatchDog refuses to pop a notification or toast when the awake threshold is breached while the phone was asleep. Any ideas?
[BetterBatteryStats] elitemeat:
After a couple weeks of testing, I noticed my stubborn wakelock keeping my phone awake the whole time overnight was due to wifi being on and connected. How can I solve this? I've tried disabling wifi but I really need it at work where I have no phone signal.

Like I said a couple months ago I was able to have wifi on all the time and have no drain like this. So what is causing it now?

Attaching the old log....past couple months show the same drain. Phone can't survive over 10 hours standby unless I disable wifi completely.
[BetterBatteryStats] Xoib:
Thanks. Mystery solved !

That make so much sense. This weekend I will play around with Xposed too to see if something can be done for this.

Because yes, move to an AOSP based rom would be the easy solution.

Let me know if you continue investigating on this.
[BetterBatteryStats] Karpfenhai:
As first measurement, disable whatsapp sync and take another reading.

Tapatalked from my Galaxy SII
[BetterBatteryStats] Xoib:
Follow up: Not even merge in the JSS15J. 100% sure.
[BetterBatteryStats] diveganesh:
Attached are two dumpfiles - 3 hours and 6 hours after full charge and with minimal usage. Your help much appreciated. Thanks.
[BetterBatteryStats] Casanoaa:
Please provide an idle log, read OP next time.

Unplug and leave phone 4 hours without touch and dump a file. Its much easier to find culprit by this way.
[BetterBatteryStats] mahdi-pc:
Dump File

Hi there

Well I upgraded the BBS to it's last version and reboot and here my dump file again.

I tested my phone in flight mode and there was no big difference(actually there was no difference).

anyway I am going to sell the phone if i couldn't solve the battery problem.
[BetterBatteryStats] diveganesh:
The OP says 1-4 hours, my first dump file was 3 hours and from the file you can see that the screen was on for a little over a minute. Furthermore I was requested to post an additional dump file with more battery drain which was the second but had some more activity.

Please let me know if this is sufficient. Again, I'm really looking to understand the kernel wake lock "fuelgague-lowbat".

Thanks.
[BetterBatteryStats] chamonix:
Without a logcat without debugging press on it is hard to say. Have you enabled any of the htc battery optimizations that could potentially prevent bbs from doing its work? Is a screen off (and screen on if set so) refs being created
[BetterBatteryStats] Karpfenhai:
Are you on a Rogers Rom?

Since the name is a typo, I would object the provider... maybe another control mechanism... go for another Rom..

Cyanogenmod if possible..

Okay, found some code which describes the issue:

if (ret) {
dev_err(&client->dev, "failed: power supply register\n");
goto err_psy_register;
}

wake_lock_init(&chip->lowbat_wake_lock, WAKE_LOCK_SUSPEND,
"fuelgague-lowbat");

ret = request_threaded_irq(chip->client->irq, NULL,
max17040_int_work_func....

Source

https://github.com/mkasick/android_kernel_samsung_d2spr/blob/master/drivers/power/max17040_battery.c

Last time I saw such issues, the mainboard was broken...

Try to clean your usb connector with care and slightly bend the pinholder back to center.

Tapatalked from my Galaxy SII
[BetterBatteryStats] diveganesh:
AT&T. Would like to stay stock.
[BetterBatteryStats] Karpfenhai:
Hmm, something is still wrong here... first you, the drain is too much, try a fresh battery.

Please grab a logcat from within bbs, b/c the references are still set, even after a reboot, [MENTION=1330150]chamonix[/MENTION], if you don't mind, please have a look into this.

Regards

Tapatalked from my Galaxy SII

---------- Post added at 11:23 PM ---------- Previous post was at 11:22 PM ----------

Read again, information added.. :D

Tapatalked from my Galaxy SII
[BetterBatteryStats] johndoe99:
Yes, the battery saving feature is on. The screen off reference is created and so is the screen on if I have the option selected. Here is a logcat from right after I woke it up and should have got a notification. I had the threshold set at 10 percent.
[BetterBatteryStats] dixbeng:
Hi there,

Finally decided to tackle my battery drain issue that has been on-going.

My biggest concern is that my phone would seemingly be drained while being on standby with me not touching it at all. My phone never lasts a full day for me due to this.

(As indicated in the logs, seems like it only got 52 minutes of screen time)

I am running stock JB 4.1.2, and stock kernel. I have only rooted the device.

Any help is appreciated. Thanks in advance!
[BetterBatteryStats] GermainZ:
Post an idle dump, please. More info in the OP, but basically: screen on time should be <1m.
[BetterBatteryStats] dixbeng:
Sorry about that, will do!
[BetterBatteryStats] chayjinn:
guys, can u help me out here, my phone is not deep sleeping when i am sleeping. the deep sleep is around 73% can u guys help me out on my bbs file ?
[BetterBatteryStats] Karpfenhai:
Facebook, line and tencent are your main issues, try to adjust them before your next dump will taken.

Tapatalked from my Galaxy SII

---------- Post added at 09:18 AM ---------- Previous post was at 09:18 AM ----------

Fail, read the op again, hint.. idle..

Tapatalked from my Galaxy SII
[BetterBatteryStats] chayjinn:
huh? means wad? please explain i am still learning. thanks
[BetterBatteryStats] It_ler:
IDLE = doing nothing with the phone (screen off all the time) for at least 4 hours.
[BetterBatteryStats] chayjinn:
means i need to reboot my phone and i left it there for 4 hours without using it?
[BetterBatteryStats] Casanoaa:
Unplug and leave phone 4 hours without touch and dump a file. Enable alarms and network in bbs if you are rooted
[BetterBatteryStats] Xoib:
3.1%/h of battery loss during deep sleep with sync OFF.

Maybe there is GTALK_ASYNC_CONN_com.google.android.gsf.gtalkservice.AndroidEndpoint that I have but I have no proxy set or some exotic APN so I don't why. But anyway it take only 11m55s so maybe it's just the battery who have a defect ? What do you think ?
[BetterBatteryStats] MathewRB:
What are these apps?

Hi All.

Recently I flashed my phone back to a stock ROM so no longer rooted. However I have noticed my battery is discharging quickly. So I have already installed BBS and have let it run in idol for about 3-4 hours this morning. Once agin the 2 problem apps seem to be (full dump avalible)

MMS Connectivity (com.android.mms.Messaging): 28 m 59 s (1739 s) Count:33 13.8%

RILJ (Phone): 19 m 8 s (1148 s) Count:3874 9.1%

Any idea what these are for and is there anything I can do about it?

Thanks

Mat
[BetterBatteryStats] Casanoaa:
For gsf look in OP.

Disable autosync of your accounts.

Disable Facebook or greenify it. Or use another app.

---------- Post added at 01:02 PM ---------- Previous post was at 01:00 PM ----------

Install another rom :)
[BetterBatteryStats] MathewRB:
Could it really be that simple?

I need to use a stock ROM for one of the Apps I use as it will not function on a Rooted handset.
[BetterBatteryStats] seniorboss:
Battery still dying fast after some setup

Hi, i've followed all your instruction at this link:

unistalled gtalk,

disabled autosync from settings

disabled all google app that you've listed and reboot the phone

deny autostarts

but all the problems remains, when i use the tablet, battery always go down of 1% each 4-5 minutes :crying: :crying: :crying: :eek:

All of this without do nothing!! If i use chrome and try to surf the web, it's worse!!

When i'm not at home, i shut down the tablet. Attached to this tread two log files made after the setup phase.

Some question:

What is: SyncLoopWakeLock (Sistema Android): 1 s (1 s) Count:100 0,1% (Count is 100!!)

Why: AudioOut_1 (1013): 3 m (180 s) Count:41 24,6% has always a big count?? (i'm always on mute mode)

Why: "PowerManagerService" (): (0 s) Cnt:(c/wc/ec)86/0/0 0,1% has always a big count??

Why: RILJ (Dati cellulare): 1 s (1 s) Count:29 0,2% appears?? I've always gsm disabled

The friend that gave me the tablet has lost the original battery charger, he gave to me another one with output of 5V - 1A while on the tablet it's written 5V - 2A. My friend says that there is no problem, the only difference it's the time requested to complete charge. It's correct?

Thank you, I really really hope to solve this problem!!

Just as a reminder, I use CM9.1 ROM, do i have to change rom? I hope not. In case, what you suggest me? Thank you again

Best Regards

Francesco
[BetterBatteryStats] Casanoaa:
If this is a fresh install and latest update of stock rom?

Please provide an idle log. Unplug and leave phone 4 hours without touch and dump a file. Enable alarms and network in bbs app if you are rooted.
[BetterBatteryStats] seniorboss:
Ok I'll do this and let you know.

But what do you think of the log i've posted a while ago?

Already contains some useful guidance? Because the problem seems to remain during use of the tablet.
[BetterBatteryStats] MathewRB:
Its been on for a bout 1 week and its the latest version there are no updates.

However I have noted that from my dump the MMS Connectivity (com.android.mms.Messaging): 28 m 59 s (1739 s) Count:33 13.8% looks realted to the device try to send out old messages.

I have now deleted these mesages so maybe this will make a diffrence.
[BetterBatteryStats] Karpfenhai:
Plus the rilj wakelock is treated to that for sure.

Tapatalked from my Galaxy SII
[BetterBatteryStats] keithD9:
Dump File Review - Please

I had my AT&T Samsung Galaxy SIII fully charged and then unplugged it and left it on overnight without using it. When I checked it about 8 1/2 hours later it was at 40%. That's a 60% loss overnight.

Here's the dump file. If someone could review it, I'd really appreciate it. It looks like it was in Deep Sleep for the majority of the time so I'm at a loss as to why it lost so much juice.

EDIT: I noticed Samsung Push Service was a big offender so I froze that in Titanium Backup.
[BetterBatteryStats] 089man:
Have a question, I read in op in Germany FAQ that I can save a log file. I must go settings and more... But there I no found this feature... Save to file?

Have the latest version and the pay version.

Where can I found? Thanks for help

I9100 Tapatalk 2, Rom1 Rootbox / Rom2 Test only, Kernel Dorimanx
[BetterBatteryStats] elitemeat:
Same issue, 50% drain overnight, no deep sleep at all. I had wifi on the whole time.

(For others reading, the only time I have this drain is when wifi is on. I did not have this problem before)
[BetterBatteryStats] Karpfenhai:
Do you have chrome installed? Beside that I have another idea, you have a nexus, maybe it's the system update for 4.3, I saw something similar on a Samsung stock Rom once..

Good luck

Tapatalked from my Galaxy SII

---------- Post added at 06:14 PM ---------- Previous post was at 06:12 PM ----------

Try this:

There is a funny share symbol on the upper right corner.. maybe faq needs to be updated..

Tapatalked from my Galaxy SII
[BetterBatteryStats] 089man:
Oh, great thanks so much. Never I will lock to share file... Smile.

I9100 Tapatalk 2, Rom1 Rootbox / Rom2 Test only, Kernel Dorimanx
[BetterBatteryStats] sien1996:
hey buddy. i think that u should change to wifi overnight instead of using mobile data or just use 2g overnight. :p

That should be the main cause i think. hmm and maybe change a modem to a better one.(lps works best for me) but try them out urself.
[BetterBatteryStats] sien1996:
Hey guys, anyone could help me out here. Getting 5% drain overnight. Anyone see something wrong with my dump. Thx.
[BetterBatteryStats] kozmo21:
Please update to the latest stable version of the app... 1.13.4 and be sure to enable root features in settings. Also, make sure it is an idle dump (4 hours or so)... and > 1 minute of screen on time

Biggest problems are WeChat and facebook... try to uninstall/freeze WeChat, and uninstall facebook and use friendcaster or browser instead.

Also, next time don't post dump as text, post as attachment like post above yours.
[BetterBatteryStats] chayjinn:
do you know what are all these ?

android (): Wakeups: 63

Alarms: 0, Intent: android.intent.action.TIME_TICK

Alarms: 34, Intent: com.android.server.LightsService.action.UPDATE_SVC_LED

Alarms: 0, Intent: com.android.server.ThrottleManager.action.POLL

Alarms: 0, Intent: com.android.server.action.NETWORK_STATS_POLL

Alarms: 1, Intent: com.android.internal.policy.impl.Keyguard.LANDSCAPE_WAKE_TIME_LIMIT_EXPIRED

Alarms: 13, Intent: android.appwidget.action.APPWIDGET_UPDATE

Alarms: 13, Intent: android.appwidget.action.APPWIDGET_UPDATE

Alarms: 1, Intent: com.android.server.action.UPDATE_TWILIGHT_STATE

Alarms: 1, Intent: android.content.syncmanager.SYNC_ALARM

com.google.android.gsf (): Wakeups: 13

Alarms: 13, Intent: {com.google.android.gsf

com.android.vending (): Wakeups: 4

Alarms: 1, Intent: {com.android.vending

Alarms: 1, Intent: {com.android.vending

com.google.android.gms (): Wakeups: 2

Alarms: 1, Intent: com.google.android.intent.action.SEND_IDLE

Alarms: 1, Intent: com.google.android.gms.nlp.ALARM_WAKEUP_CACHE_UPDATER

com.google.android.googlequicksearchbox (): Wakeups: 1

Alarms: 1, Intent: {com.google.android.googlequicksearchbox
[BetterBatteryStats] 089man:
How can I send as attachment with tapatalk?

I9100 Tapatalk 2, Rom1 Rootbox / Rom2 Test only, Kernel Dorimanx
[BetterBatteryStats] chayjinn:
based on which part of the bbs stats, u can conclude that my facebook and wechat is having problem ? can u guide me here?
[BetterBatteryStats] Casanoaa:
You can only send it as cloud link via tapatalk
[BetterBatteryStats] dreamland2000:
What's the easiest way to resolve the 'media service scanner' wake issues? Am I correct in thinking is the android services searching /scanning the sd card?
[BetterBatteryStats] Karpfenhai:
Don't reboot.. :D

Seriously, I'd it takes more then 10 minutes after a reboot your sd might be corrupt / nearly out of space, clean it up, try a faster one (class 10), take a backup and format it.

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] dreamland2000:
Haha yeah that would be ideal about not having to reboot.

I've got plenty of space on it but perhaps it could do with another clean up lol. If all else fails then a format may be in order.

Thanks
[BetterBatteryStats] Karpfenhai:
Note, media scanner does also affect the internal storage, about what amount of time do we talk?

Tapatalked from my Galaxy SII
[BetterBatteryStats] dreamland2000:
Not sure now, just plugged phone in, I've got greenify installed so managing to slowly reduce the apps down to improve battery. I'll keep an eye on it for now. I do install nightlies tho so that probably doesn't help lol
[BetterBatteryStats] mahdi-pc:
Dump File

Well I reinstall the BBS and reboot it again and take another dump file.Now everything is changed after reboot my battery consumption lowered after reboot BUT it is still high.Somthing that i am not happy about my battery is that when i check the battery in Power Management in phone Setting my phone keep awake when i am not using it and i don't know what make it awake while i check my friend phone(Galaxy SII) it is awake whenever he is using of it.Anyhow could you please look at my dump file(I also send the JSON file)and tell me what makes it awake and how i can rectify that.

Best Regard

By the way b/c i couldn't upload the JSON file i add ".txt" to end of file to i can upload it.
[BetterBatteryStats] Karpfenhai:
Just to be clear, there is nothing wrong with your consumption, the result is quite perfect for the period.

But obviously bbs is showing wrong figures, therefore I involved chamonix, which is the developer.

He will hopefully take care and give you more advice.

What Rom and kernel are you on?

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] seniorboss:
Hi casanoaa, attached you'll find two log. One as you request, i go out and coming back for 10 hours, so 10 hours of idle.

The result is very good, about 1% at hour, i think thanks to your how to :D :good:

As I say yesterday the problem remain the same. When I came back to home, i used the tablet for about 10 minute and the battery go down of 5% point!! :rolleyes: :eek:

I've only opened google chrome e visited facebook and another site, just to test, and then i played for 2-3 minut at Flow Free always for test. The result is up above :crying: :crying: :confused:

I saw a SynkLoopWakeLock with an high count!! What is? SyncLoopWakeLock (Sistema Android): 1 s (1 s) Count:464 0,0%

Why i continue to saw this wakelock? -> GpsLocationProvider (Sistema Android): 1 s (1 s) Count:96 0,0%

Of course the rest is the log file.

Thank You in advance,

Best Regards

Francesco
[BetterBatteryStats] 089man:
Hallo, can anybody check my file, I think I have to big battery drain. Is my system of or what can I optimizing. I don't understand all this entry's.

Thanks for help.

http://db.tt/awJPzVLz

I9100 Tapatalk 2, Rom1 Rootbox / Rom2 Test only, Kernel Dorimanx
[BetterBatteryStats] josepr2012:
Sent from my SAMSUNG-SGH-T989
[BetterBatteryStats] kozmo21:
This is WeChat ... com.tencent.mm (): Wakeups: 613

facebook... com.facebook.katana (): Wakeups: 24
[BetterBatteryStats] Casanoaa:
Try format your sdcard it has something to do with mmc I think. Insert no.media file to big archives.

Disable autosync of email accounts and create email accounts with manual pull.

Disable google search.
[BetterBatteryStats] ogrillion:
I assume these settings disable google now right? I don't care about most of google now function but some of it is ok.

Thanks
[BetterBatteryStats] thwmax:
nlpwakelock possible solution

Everyone, I don't know if you already tried this, but it's a way to get rid of the nlpwakelock problem (Tested on a Galaxy S3 i9300 with 4.2.2).

1.- First, uninstall the updates in Google Play Services via Settings/Apps and leave the factory version.

2.- Reboot (I don't known if it's really necesary)

3.- Go to Play Store and update Google Play Services manually (https://play.google.com/store/apps/details?id=com.google.android.gms)

4.- Profit, now I have "Access to my location" and "Google locations service" enabled via Wifi and mobile network with no nlpwakelock showing on betterbatterystats and 2 [%/h] Battery drain.

Hope this method helps some batteries. :D
[BetterBatteryStats] chamonix:
My question would be: do you have location Sharing on in maps and wifi/cell location enabled in android settings?
[BetterBatteryStats] chamonix:
I will just leave this here for the interested reader:

Aug 10, 2013 12:02:15 PM UTC
Loading Xposed (for Zygote)...
Loading modules from /data/app/com.asksven.xposed.test-2.apk
Loading class com.asksven.xposed.test.Test
android.app.AlarmManager.set was instrumented for logging.

AlarmManager.set was called by:
com.android.server.TwilightService$LocationHandler updateTwilightState
com.android.server.TwilightService$LocationHandler setLocation
com.android.server.TwilightService$LocationHandler retrieveLocation
com.android.server.TwilightService$LocationHandler handleMessage

alarm type: unknown, trigger at 1376155963375, calling android with 0
[BetterBatteryStats] sshafranko:
Im an idiot help me out. Does that mean and xposed module for bbs?

Sent from my SCH-I605 using Xparent BlueTapatalk 2
[BetterBatteryStats] cdzo72:
Was gonna try this but oddly enough the "Uninstall updates" is grayed out on my S4 i9505
[BetterBatteryStats] metropical:
me too. I couldn't "uninstall updates" on my Sense, but I just uninstalled th beast and re-installed from Play.

Time will tell.
[BetterBatteryStats] rawdealer:
.......nothing ;)

Sent from my Nexus⁴