yashsingh1/xdaforums huggingface dataset:
[Android General] lazer155:
I am not sure what that action_batterystats_refresh is. Could it be better battery stats or the xposed module power nap? I know my led was blinking for a couple hours from an email notification so that could be why it's 0.3% and not 0.0%. I tried searching for what action_batterystats_refresh is but these couple posts you and I made are the only ones that have ever mentioned it. Amplify says it is part of android system.

edit: I recharged it back to 100% and down that is is draining again, that action_batterystats_refresh is not being displayed. in betterbatterystats but it is still shown in amplify. It sort of sounds like this process: http://xdaforums.com/showthread.php?t=2529455

Edit 2: It is a built in function in android. Do other people not see it appearing? It's on my nexus 4 too which has an aosp rom not touchwiz based like this s5.

https://android.googlesource.com/pl...029ea1/core/java/android/os/BatteryStats.java
[Android General] chaoslimits:
So is Alarm_Wakeup####### due to another alarm being limited or is it something that springs up on it's own? I've been trying to track down the cause of the randomly generated Alarm number and am not getting anywhere. Gone so far as to remove limits on all Google Play Services alarms and it still pops up after a few hours.

Thanks.
[Android General] Celestial Fury:
[MENTION=4856730]lazer155[/MENTION]

Limit it and see if anything is affected. It shouldn't need to trigger so many times. If you didn't reset Amplify stats then it will of course still show there but doesn't mean it's recent. If it no longer appears in BBS, then no need to limit it. Also, led light blinking for hours will drain some battery.

[MENTION=2439340]chaoslimits[/MENTION]

Alarm_Wakeup####### is a recent Google Play Services several updates back triggering all on its own even without anything limited. It will just create another number if you limit it.
[Android General] lazer155:
Have you seen that particular alarm before? I'll test limiting it. I'm just wondering if it's been seen on other devices.
[Android General] Celestial Fury:
[MENTION=4856730]lazer155[/MENTION]

Never seen that alarm before and can't find anything definite about it. Could be device/ROM specific.
[Android General] lazer155:
I haven't seen any negative affects of limiting the alarm to 7200 seconds. The battery percentage shown in settings still updates immediately.

I have noticed even before applying this batterystats alarm limit, text messages seem to fail to send. Do you know what wakelock or alarm from the list in the first post may be causing that to happen? Calls work fine, it's just sms that fails to send sporadically. Receiving sms is okay. Sending is fine most of the time and randomly seems to fail.

This is a newer betterbatterystats log. The loss per hour is -0.8% per hour. In the stock battery usage graph under settings (not BBS), it says google play kept a connection for a little over 1.5 hours. I'm not sure why that happened since I wasn't using anything google play related and there is nothing really new to backup.
[Android General] justjr:
Do you realize that a negative loss... Is a win? :)
[Android General] Celestial Fury:
@ lazer155

I don't have any problems with text. In Xposed, disable Amplify and reboot. If you still have text problems then it's not Amplify. When you reenable Amplify, your settings will still be there.

These two alarms stand out.

- Alarms: 11, Intent: android.content.syncmanager.SYNC_ALARM

- Alarms: 13, Intent: com.android.providers.calendar.intent.CalendarProvider2

For the calendar alarm, you can use the alternative in Post #2.

You have active kernel wakelocks too but Amplify can't do anything about that.
[Android General] lazer155:
I limited those 2 wakelocks but the battery loss per hour doesn't seem to have improved. It's currently -1.1%. It was 0.0 percent at one point and very close to 0.0 a couple other times (-0.1, 0.2 and in general less than 0.5%).
[Android General] Sean35:
I couldn't find anything in search (maybe because the term is too short), but if you put SIP credentials in the native dialer and try to limit those, it will create new numbers as well.
[Android General] Celestial Fury:
Then it's mostly your kernel wakelocks:

PowerManagerService.Display (): 8 m 55 s

PowerManagerService.WakeLocks (): 6 m 41 s

You've used it for nearly nine minutes though. Your mobile data was on, yes? com.android.internal.telephony.data-reconnect. It uses more battery than WiFi. Check your battery usage History details if your mobile network signal is weak.
[Android General] lazer155:
I thought 9 minutes wasn't very long. I'll leave it alone overnight and see what the actual absolute no use drain per hour is. I did have it connected to data the entire time but I was also on a data connection the other times that it had very good drain.

There's nothing that can be done for kernel wakelocks, right?

I was thinking if suddenly the battery life isn't as good as it was before I finished adding everything in the OP that maybe a wakelock being blocked is having adverse affects instead of positive batter saving ones. I'll measure it again without any use at all and see if it is any better. Even if it doesn't, it's a big improvement compared to how it was before all the alarm, servixe, and wakelock blocking.
[Android General] Celestial Fury:
[MENTION=4856730]lazer155[/MENTION]

It's also the awake time: Awake (): 18 m 35 s

PowerManagerService.Display (): 8 m 55 s =~ Screen On (): 8 m 50 s

PowerManagerService.WakeLocks is supposed to be the sum of partial wakelocks but I never see them adding up to it.
[Android General] hsay:
So ... I applied the stuff you mentioned in the guide . Everything is better now except one thing.....My alarms (the one the that rings in the morning to wake you up) dont ring. I checked BBS the alarms(the ones that are fired ) are fired correctly but still they dont ring. If i switch the screen on to check why it isnt ringing it suddenly starts ringing. Any idea what could be the issue. Using Euphoria Rom on Nexus 5 btw.
[Android General] Celestial Fury:
@ hsay

Here's how to check:

In Amplify, RESET Device Stats.

Set Alarm.

After alarm triggers, check in Amplify what alarms/partial wakelocks were triggered.

For me, it shows (the ones that seem related and are not limited):

ALARM

- com.sonyericsson.alarm.ALARM_ALERT

- com.google.android.gms/.lockbox.LockboxAlarmReceiver

WAKELOCK

AlarmClock

To be clear:

Are you using calendar or alarm clock to trigger alarm?

Are you using stock alarm clock or third party?

I do not have this problem using stock.
[Android General] lazer155:
It must have just been the awake time, those 18 minutes. I tested it again and the loss per hour was much better, 0.1% and probably would have been 0% if the notification led hadn't blinked for a little while.
[Android General] Celestial Fury:
[MENTION=4856730]lazer155[/MENTION]

Did you see this for how to check for what is triggered when sending SMS?
[Android General] lazer155:
No I missed that. I tried it. I use 8sms as my text message app.

The only one that seems related is startingalertservice. It is a wakelock. There aren't any alarms triggered. Startingalertservice mentions messaging which is what 8sms shows as the name below it's icon. I had it limited to 240 seconds. I'll try unlimiting it and using it for awhile to see if the periodic, random send failures stop. No other wakelock mentions messaging or 8sms.

It's weird if that wakelock is the problem though because amplify says it's safe to limit. Maybe it's safe most of the time but not with 8sms or maybe my rom.
[Android General] Celestial Fury:
[MENTION=4856730]lazer155[/MENTION]

That sounds like it. And it's not in the guide.
[Android General] 95thfallout:
Hey just applied the guide but now Im getting wlan_wx_wake holding my device awake 80% of time. Any help is appreciated!
[Android General] Celestial Fury:
[MENTION=6049694]95thfallout[/MENTION]

That's a WiFi/Router issue. See here.
[Android General] 95thfallout:
I'd agree with you but the wakelock only went screwy after I applied the guide. And my router is the same as its my home router.
[Android General] Celestial Fury:
[MENTION=6049694]95thfallout[/MENTION]

ATTACH BBS Text Dumpfile then.
[Android General] xtam:
after doing thigs from this guide, my friends are telling me that i am all the time seen as active on whatsapp.

which alarm should i change to make it normal (temporary disabled all amplify controlled settings for whatsapp and it works as it should, but maybe i just need to disable one?)
[Android General] :
Does doing this also improve a bit longer screen-on time? Just finished applying this guide and testing it now, :D
[Android General] Celestial Fury:
[MENTION=3525574]xtam[/MENTION]

You should use this guide as a guide. You use BBS as a guide and only if something drains then you check this guide to see if it's ok to limit and how much.

Limiting - com.whatsapp.messaging.MessageService.LOGOUT.ACTION will keep you logged in longer in WhatsApp. Only limit it if it shows up in BBS. The point is to manage functionality only when it causes more drain than what seems necessary.

[MENTION=4601690]dbtvillanueva[/MENTION]

In a way, yes. Some of these alarms/wakelocks also trigger during screen on so increasing the time before they trigger slows down the battery drain which will logically lead to longer SOT but I doubt it would be that much longer. Biggest drain when using the phone is the display and the CPU.
[Android General] justjr:
Ops, wrong topic, sorry.
[Android General] xtam:
Is there any working app (battery drain does not work good o lollipop) which will show someting like this?

https://play.google.com/store/apps/details?id=com.WazaBe.android.BatteryDrain

http://i.imgur.com/ojZD7JA.png

[IMG="http://i.imgur.com/ojZD7JA.png"]http://i.imgur.com/ojZD7JA.png[/IMG]
[Android General] Celestial Fury:
[MENTION=3525574]xtam[/MENTION]

I'm not on Lolipop so I wouldn't know but besides BBS, there's GSam and Wakelock Detector but they aren't exactly like Battery Drain.
[Android General] aidy.lucas:
I'm regularly getting over 6hrs sot, even seen over 7hrs a few times using this guide, amplify, greenify, and stamina mode on a Xperia m2

D2303 18.3.1.C.1.15 kk deodexed, rooted, philz touch recovery, xposed, z1 bravia engine 2 + x-reality+ z3 super vivid, viper audio
[Android General] fyjo:
Does anyone use Sunrise and LINE here?

My current most active wakelock alarm is am.sunrise.android.calendar.action.TIME_TICK (Sunrise's)

And my second most active one is jp.naver.line.android.legy.SpdyHeartbeatChecker.sendPing (LINE's)

I'm really tempted to limit them :P Any idea of what they are? Thanks :)
[Android General] vctrrl:
Don't know where my drain comes from. Limited everything mentioned in op and apps running in background are greenified.
[Android General] Celestial Fury:
[MENTION=6222599]fyjo[/MENTION]

The terms 'tick' and 'hearbeat' are usually used for alarm triggers and keeping a connection alive respectively. It is safe to limit third party apps as they won't affect core android functionality. The most that can happen is that the app will not work properly.

[MENTION=5111445]vctrrl[/MENTION]

Google Play Services ALARM_WAKEUPxxxxx is causing the most drain. It can't be stopped until an auto-limiting of random renaming alarms/wakelocks is implemented in Amplify. I'm currently testing another solution for this problem. Have you established baselines (#Post 3) for your phone yet?
[Android General] vctrrl:
Haven't tried it yet but I'll try it soon, maybe next night because I suspect my battery is not good. Sometimes it drops 5%-8% quickly while idling. I'll wait for your solution or Amplify implementation. Do you think this feature will come to Amplify soon? Additionally, tomorrow I'll test if fast dormancy is disabled as I don't know if the method I used worked. Is it possible to limit successfully the fast dormancy wakelock thru Amplify? I think there's nothing else to be limited - except the alarm you already mentioned - but battery drain still considerable.
[Android General] Celestial Fury:
[MENTION=5111445]vctrrl[/MENTION]

It might be a while for Amplify. The solution I'm testing isn't new but it didn't work previously because a particular setting wasn't set. It seems to be working now but I'd rather take more time to be sure there are no random reboots or app stopped working or not responding. You can limit the fast dormancy wakelock but there seems to be pros and cons on whether limiting it actually saves or drains more battery. If wakelocks and alarms have been ruled out then only the battery, radio signal, or kernel/ROM/android version+phone is left.
[Android General] lazer155:
It's weird because it is listed as safe in amplify itself. There aren't many amplify actually recommends blocking by marking them as safe to limit but that is one of them. That's why I limited it originally.
[Android General] fyjo:
Thanks a lot [MENTION=5401012]Celestial Fury[/MENTION] . I will try limit third party apps and watch how it goes :o
[Android General] vctrrl:
Thanks for all the helpful insights. OP really helped as well your comments but I still have a few questions if you don't mind. Disabling fast dormancy really helped me. Deep sleep time increased while using 3G and way less drain. I had a random reboot today while idling under 3g. Don't know if it comes from a wakelock/alarm limited, but I'll post my settings.

I still have significative drops of about 5% all of sudden. Not a regular decreasing, just a drop. I haven't stablished a baseline yet so i can't say for sure what's happening but I'm afraid of a faulty battery.

I know the thread is aimed to save juice while idling but I have a few hyperactive alarms that I'd like to know if it's safe to limit without break functionality/notifications. They're mostly from Airdroid, that I don't use a lot, but wouldn't like to freeze/defreeze every now and then (com.sand.airdroid.action,http_retry.start_thread and com.sand.airdroid.action.push.check), Facebook Messenger and Instagram. Except for Airdroid, all of them are already greenified but the alarms kicks in when the screen is on. Can't see the name of the alarms of Messenger and Instagram now as they disappeared from BBS. Instagram alarm is triggered from a facebook named alarm :confused:
[Android General] sm753:
I use both and I have them both limited. Both Sunrise and LINE both seem to work fine. You can probably limited them to whatever you like but I set mine to 7200 seconds.
[Android General] Celestial Fury:
[MENTION=5111445]vctrrl[/MENTION]

(com.sand.airdroid.action,http_retry.start_thread and com.sand.airdroid.action.push.check) - these 3rd party apps are safe to try limiting. The worse that can happen is that it won't work properly.

As for random reboots, sometimes a Google Play Services update may break things that were fine before. From time to time, I clear out all limited alarms/wakelocks/services on my phone and start again but I leave what were limited before in the guide unless it's clearly identified that it will cause a reboot.

Most of the common alarms/wakelocks that can be safely limited are already in the guide. If you're looking to limit drain while retaining functionality during phone usage, a BBS Text Dumpfile will still be needed.
[Android General] fyjo:
I'm glad to hear that they both work can be limited and still working fine :) I've set mine to 7200 sec and no problems till now. Thank you for your help :D
[Android General] Dendis:
Lost 3%, what to do? Night was on 2g ,WiFi on
[Android General] vctrrl:
A dump from today since the reboot would be fine?
[Android General] e-note-icon:
Gesendet von meinem SM-N910F mit Tapatalk
[Android General] Portgas D. Ace:
0.4% per hour is quite good, but you can disable the service com.facebook.orca/com.facebook.analytics.service.a.ACTION_ALARM (part of FB's analytics service for FB Messenger) from within Amplify to further reduce your battery drain.
[Android General] Dendis:
Cant find it, also if u have more tips, tell me!
[Android General] Portgas D. Ace:
Maybe use My Android Tools and disable all "analytics"-related services for Google Play Services, Facebook and Facebook messenger. This is how I did the trick. And maybe have a look here.
[Android General] Daedulus Minion:
Am I supposed to do the configurations in OP as per mentioned or am I supposed to first see what is draining battery for me and work on only those? The line "Do not restrict those which doesn't cause drain for you" (something similar in red) in the end of 3rd post is making me confused. [MENTION=5401012]Celestial Fury[/MENTION]
[Android General] Portgas D. Ace:
You can set up your device as per instructions from the first posts and see if you are happy with those settings (and possible limitations). If you are good with this, this is the far more easier way. On the other hand you can set up your device according to your needs, depending on what drains battery for your device. This way is more individual, but also takes more time. It is up to you. I would suggest trying the full setup according to the OP and see if your device lost functionality which is important for you. If it causes issues, try going through the setup step by step.
[Android General] Daedulus Minion:
Ok thanks a lot. I will do as you said.
[Android General] lazer155:
After more testing, I realized I still can't always send sms successfully. It always receives but sending sporadically fails. I re-enabled the 240 sec limit on startingalertservice which is set to unlimited before, thinking it would fix the problem but it hasn't. I'm now testing to see if disabling the limit I had on gsminboundsms, a wakelock, will fix it.
[Android General] vctrrl:
Is it safe to disable every analytics service?
[Android General] filipeataide:
[MENTION=5401012]Celestial Fury[/MENTION] is it possible that one of your settings is messing with amplify/Google play? Because every couple of hours I lose the paid version of amplify. Can anyone help?
[Android General] ar2o:
Hi Celestial Fury

Thank you for this amazing write up! I'm going to clean flash custom ROM, let it settle and follow your instructions. I did however want to ask and I apologize if I missed it in the thread:

-if one did not want to go through the whole baseline+adjusting the setup, can one just set all the wakelocks/alarms/services to the recommended numbers as per your OP and still be okay with alot better battery drain than usual or will it skew the system somehow?

Thanks in advance :)
[Android General] ataft:
Hi guys, I'm sorry if this has been posted but I couldn't find an answer.

I followed the guide in OP, limited everything that was recommended that I could find in amplify. Now I'm getting "google play services has stopped" messages popping up a few times per minute.

I've tried rebooting but still the same. Has anyone encountered this while following OP? Not sure what to revert to fix this.
[Android General] Celestial Fury:
com.facebook.orca (several alarms here) - your FB Messenger, correct? As you can see, it's creating drain when you're not using the phone. Unless, a lot of messages came in? You can limit it but do check functionality, if you're ok with any possible delays in notifications.

wifi.DHCP_RENEW - connection to your WiFi may not be stable but unless it happens regularly, it should be left alone.

So, far I limit any analytics with no problem. Some of those that you have is not in the guide because it's by FB Messenger which I don't use but if it showed up in my phone, I'd limit it.
[Android General] Celestial Fury:
If it doesn't appear under Services in Amplify then it's probably not being used (at the moment). I wouldn't hunt for it to disable it because when and if it finally is used and can't because it's disabled, then force closures can happen and by then we already forget what it was that we disabled. I'll update the guide to:

After disabling any service,

reboot

the phone because it is dangerous to disable any service on-the-fly according to Amplify so it's only disabled on a reboot.
[Android General] JoeFCaputo113:
Is there any app similar to Amplify that us Lollipop users can use since we don't have Xposed?!
[Android General] Celestial Fury:
The closest thing I can think of that does not need to rely on XPosed is Greenify which I also already use. Other techniques are to freeze and unfreeze when you want to use the app but you lose functionality.

This may be useful: Alternatives to popular Xposed modules
[Android General] Phoenix232:
These are my stats. Anything I can do?
[Android General] Celestial Fury:
Your screen on is 30 mins. For an accurate reading of idle drain you shouldn't use the phone during the idle period as it affects the %/h. The phone is also awake for an hour. A proper idle time with low drain should hardly have any awake time.

That said, your com.cabooze.buzzoff2 is this - Silence Premium Do Not Disturb? It's waking up 4 times / hour. Depending on how you use it, you could limit this alarm. It's safer to start by limiting 3rd party alarms/wakelocks before moving on to system.

Others, I don't want to comment unless they act up during idle time, which I can't tell since the phone was in use.
[Android General] Phoenix232:
Oh I see. Thanks!

To tell you the truth, it's really difficult for me to leave my phone idle for even 3 hours as I use it all the time. I don't think I could do it for 7h. But I'll try.
[Android General] Celestial Fury:
You do sleep, right? :) Charge it to full before you sleep, then stop using it until the next morning. When you wake up and turn it on, start taking screenshots before using it for anything else.

About SEND_IDLE and GCM_RECONNECT you mention in your PM, I don't think I limited them before. Their name indicates a function for keeping a connection. GCM is Google Cloud Messaging. Here's some more info by 1ceb0x - Amplify Alarms, Wakelocks and Services Don't miss the tabs at the bottom.
[Android General] b0mb:
this app is a bomb. The batterysaver himself without loose of my lovely push mails or anything else :)

out of the stand i lost 4% in 4 hrs with activated 2G, WLAN, PUSH MAILS and a blinking LED on my Galaxy S3

The donation followed instantly ;)
[Android General] Phoenix232:
Ok, here it is. I hope this works now! :D
[Android General] Celestial Fury:
Increase limited seconds for NlpWakeLock, NlpCollectorWakeLock, & UrlDispatchingService. You can see that those are your top 3 wakelocks. I like to keep alarms/wakelocks under 1 min. Or follow Post #2 for the limits I use. Note that once they're no longer the top wakelocks, others will take their place. Just keep limiting until just about everything is under 1 min.

For alarms, com.sec.spp.push is triggering more than once per hour. It's up to you to limit Samsung Push Service. It can affect your notifications.

But limit:

- com.google.android.gms.nlp.ALARM_WAKEUP_LOCATOR

- com.google.android.gms.nlp.ALARM_WAKEUP_ACTIVITY_DETECTION

They're also in Post #2.
[Android General] milski65:
Any suggestions? Otherwise it's working perfectly
[Android General] Celestial Fury:
Need to see 'Other' and 'Wakelocks'. From 'Alarms' also need to see what it shows under com.google.android.gms, android, & com.google.android.google...

You can try limiting ZUI Locker alarm and see if functionality lessens.
[Android General] farhanzahinfj:
Whats the difference between com.facebook.

katana

/com.facebook.analytics.service.AnalyticsService and com.facebook.

orca

/com.facebook.analytics.service.AnalyticsService??
[Android General] Celestial Fury:
I think Katana is the FB app and Orca is the FB Messenger app. Here's an interesting read on the reason for Katana: Facebook for Android (app): Why is the Facebook app package name in Android called katana (com.facebook.katana)?
[Android General] milski65:
Forgot to get shot of others. Have no idea why Netflix shows up. Didn't touch phone overnight. I'll try your suggestion on ZUI. Great app and your help is greatly appreciated.
[Android General] Celestial Fury:
Sorry, I meant the Partial Wakelock not Kernel Wakelock. Amplify can't limit kernel wakelocks.
[Android General] milski65:
Gotcha. Didn't include it because they were all 0%. At default time on ZUI Locker all still functions.
[Android General] milski65:
Here is other