yashsingh1/xdaforums huggingface dataset:
[Android General] v7:
No!All wakelocks and alarms are under control.What BBS reported was right.99.7% deep sleep :)

Tapped from my ①+②=❸ ;)
[Android General] Thepizzaguy97:
Battery Drain on sleep

Hello Everyone

I am experiencing a lot of battery drain while my screen is off. Attached is a dump from deep sleep battery saver. I experience barely any drain while the screen is on but almost 10% over night while my screen is off. Any help would be greatly appreciated.

I am running power nap (endurance mode), greenify and amplify with the services, wakelocks and alarms limited from this guide and from this guide.

My battery would usually last around 3 days without all these apps installed, it is an extended battery of 3800mah.
[Android General] pnm3049:
What if I cant have the donation package for the AMPLIFY? And i dont actually turn my location on. Do I still need to install it? Will there still be a significant change in battery consumption?
[Android General] arvylas:
No services in amplify.
[Android General] v7:
Read FAQ in post #6 and post a dump later.

Tapped from my ①+②=❸ ;)
[Android General] v7:
Amplify improves battery life significantly.It's worth getting the donate version.

Tapped from my ①+②=❸ ;)
[Android General] pnm3049:
What if I dont upgrade to pro version? Will it still be functional? My location is off. As i was observing it. It doesnt change much in the wakelocks blocked.
[Android General] v7:
These alarms/wakelocks shouldn't affect Alarm.Reset Amplify and set an alarm.After it gets triggered,open Amplify and see which Alarm/Wakelock is triggered.

Tapped from my ①+②=❸ ;)
[Android General] v7:
Without Pro Version,you can't limit most of the Wakelocks/Alarms.Free version earns you little.

Tapped from my ①+②=❸ ;)
[Android General] v7:
There is an unrooted version on the guide.

Read Post 2 :D

Tapped from my furious dogo ;)
[Android General] badrsj:
Thanks
[Android General] Ramer:
If I'm starting to understand better, this was the Wakelocks from last nights dump:

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

Wakelocks (requires root / system app on Android 4.4+)

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

*sync*/com.google.android.gms.people/com.google/eM_ADDR (Google Play services): 35 m 9 s Count:11 13.1%

*alarm* (Google Play services): 1 m 35 s Count:37 0.6%

bluedroid_timer (com.android.bluetooth.Bluetooth): 32 s Count:19 0.2%

AMP (com.jrtstudio.AnotherMusicPlayer.Rocket Player): 29 s Count:0 0.2%

*alarm* (Android System): 29 s Count:330 0.2%

*sync*/com.android.email.provider/com.android.email/eM_ADDR (com.android.email.Email): 22 s Count:15 0.1%

*sync*/com.google.android.apps.bigtop.provider.bigtopprovider/com.google/eM_ADDR (com.google.android.apps.inbox.Inbox): 13 s Count:4 0.1%

AudioMix (1013): 9 s Count:5 0.1%

*sync*/com.android.calendar/com.google/eM_ADDR (Calendar): 7 s Count:9 0.0%

*sync*/com.google.android.gms.fitness/com.google/eM_ADDR (Google Play services): 6 s Count:40 0.0%

*sync*/com.google.android.keep/com.google/eM_ADDR (com.google.android.keep.Keep): 5 s Count:3 0.0%

*sync*/com.google.android.apps.fitness/com.google/eM_ADDR (com.google.android.apps.fitness.Fit): 4 s Count:21 0.0%

WeatherUpdateService (com.cyanogenmod.lockclock.cLock): 3 s Count:3 0.0%

SyncLoopWakeLock (Android System): 2 s Count:169 0.0%

UlrDispatchingService (Google Play services): 2 s Count:11 0.0%

*sync*/com.android.contacts/com.google/eM_ADDR (Google Play services): 2 s Count:3 0.0%

*sync*/com.google.android.location.reporting/com.google/eM_ADDR (Google Play services): 1 s Count:23 0.0%

ConnectivityService (Android System): 1 s Count:172 0.0%

*alarm* (spinninghead.carhome.CarHome Ultra): 1 s Count:1 0.0%

AlarmReceiver (com.sec.android.app.clockpackage.Clock): 1 s Count:1 0.0%

*sync*/subscribedfeeds/com.google/eM_ADDR (Google Play services): 1 s Count:8 0.0%

*sync*/com.sec.android.gallery3d.picasa.contentprovider/com.google/eM_ADDR (com.sec.android.gallery3d.Gallery): 1 s Count:3 0.0%

ActivityManager-Sleep (Android System): 1 s Count:344 0.0%

And this is from this mornings after more tweaks:

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

Wakelocks (requires root / system app on Android 4.4+)

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

bluedroid_timer (com.android.bluetooth.Bluetooth): 3 m 10 s Count:81 0.2%

*alarm* (Android System): 26 s Count:264 0.0%

*sync*/com.google.android.gms.fitness/com.google/eM_ADDR (Google Play services): 23 s Count:3 0.0%

*alarm* (com.sec.spp.push.Samsung Push Service): 10 s Count:1 0.0%

SyncLoopWakeLock (Android System): 3 s Count:174 0.0%

WeatherUpdateService (com.cyanogenmod.lockclock.cLock): 1 s Count:2 0.0%

*sync*/com.google.android.apps.fitness/com.google/eM_ADDR (com.google.android.apps.fitness.Fit): 1 s Count:1 0.0%
[Android General] v7:
So what's your Idle drain now?

Tapped from my furious dogo ;)
[Android General] Ramer:
This is this mornings dump (I just had to say that!) I searched for Idle and Idle Drain in the file and don't see it. Is there somewhere else to look or do you see it?
[Android General] v7:
1% drain in 24 hours is excellent.You won't need to tweak anymore.You're good to go.;)

Leave the settings like this and enjoy your time :)

Tapped from my furious dogo ;)
[Android General] ShadowAndroidFanatic:
I know that Google location history is a battery killer but since you're limiting so many of the alarms for location could you have it on without much battery drain?
[Android General] v7:
I never use Location Services.Limiting the location alarms are very effective.Tested by me and many others here.

Tapped from my furious dogo ;)
[Android General] marvasten:
Hello again. See attached the dump files from today

* 072528283 - disable all connections (wifi and data) from 12 am to 6 am

* 112923621 - regular use during the morning

Thanks!
[Android General] edios123:
No

Okay, will do it tomorrow.

BTW there's one problem, sometimes I get great battery life and sometimes I get average battery. Why is it so?

Thanks.
[Android General] v7:
I believe you misunderstood what I meant by Idle Dump.

Charge your device to 100%.Leave it untouched for a few hours.(Do not turn on the screen).Keep Wifi ON.After a few hours,open BBS and pull out a dump immediately.Post it here.That's how you should do.

Tapped from my furious dogo ;)
[Android General] edios123:
OMG that's simply awesome! I wish I could get that with my One M8.
[Android General] v7:
Depend on your usage.

Sometimes when you run games and use Location,GPS etc..the battery won't last long.On the other hand,if you use the device to read ebooks,music and surfing,it might last long :D

I hope you understood.

Tapped from my furious dogo ;)
[Android General] edios123:
Haha I got you, but I meant the same usage. ;)
[Android General] v7:
A BBS dump might explain it :)

Tapped from my furious dogo ;)
[Android General] Looki75:
Can you have a look at this?

FYI I'm not using Xposed framework (Odexed Samsung ROM)...

I am using Greenify.

Thanks
[Android General] v7:
Post Idle usage.You've used the phone for 42 minutes (SOT).

Tapped from my furious dogo ;)
[Android General] suez77:
Can you tell me how i do that??
[Android General] v7:
I believe you have BBS running on your device.

Charge your device to 100%.Leave it idle for a few hours,say 5 hrs.Then open BBS,you'll find a share button on the top.Click on it and check text dump and save.You'll find the file in your sdcard.Post it here.

Tapped from my furious dogo ;)
[Android General] Looki75:
Thanks I'll get back to you when I have it!
[Android General] arvylas:
I know these are pretty basic and after the trick you suggested is even weirder. These are the wakelocks and alarms in 30" with screen off and an alarm.
[Android General] f0xy:
Thanks guys! I've limited them alarms, the only really messages I get is from the group :)

Did you message a lot in the last 24hours? [emoji14] haha

Signal is great at home to be fair!
[Android General] netinetinet:
Just read OP, and everything works properly .. Thank you..
[Android General] v7:
Not that way!

Navigate to Amplify->Settings->Reset to defaults.

Set an alarm and see which Alarms/Wakelocks are triggered.Report back.

Tapped from my ①+②=❸ ;)
[Android General] GjorgiDxc:
Should I whitelist Play Services/Framework? Hangouts is misbehaving lately, I don't get messages at all although(unless I open the app). FB Messenger is working just fine, so I think it has to do something with Play Services not being whitelisted.

And also what do you think about SyncLoopWakelock, does it affect IM (e.g. Hangouts, FB messenger, Snapchat) and should I limit it?
[Android General] v7:
I've mentioned in the OP that if you need Google apps to work well,whitelist GooglePlayServices and PlayServicesFramework.

SyncLoopWakelock shouldn't affect those apps.It controls how often your account gets synced.Limit it to the same number as you limited android.content.syncmanager.SYNC_ALARM.

Tapped from my ①+②=❸ ;)
[Android General] GjorgiDxc:
Thanks for the fast reply :)

I'll be posting an idle dump tomorrow for you to check the resaults.
[Android General] pnm3049:
Question. Is it alright to greenify the AppOpsXposed? Will it still work? Thanks!
[Android General] v7:
There's no point in doing that.AppOps doesn't stay in background or drain your juice.

Tapped from my ①+②=❸ ;)
[Android General] jloh1963:
Hmmmm.... Post 1 says "This guide is suited for any device running Android 4.0.3+", but only Greenify can be installed on Android 4.0.4. Amplify can be used on 4.0.4, but only if you join testing. and PowerNap can be only used on 4.1 even if you join testing. AppsOnXposed, is 4.3. So it looks like you needs at least 4.3.
[Android General] v7:
Removed it now!The apps in the guide required 4.0.4+ in the initial setup when theread was created.Over time,more tweaks and apps came over.Thanks for the heads up ;)

Tapped from my ①+②=❸ ;)
[Android General] pnm3049:
But what happens of I greenify it? Will it lose its function?
[Android General] v7:
No it shouldn't.

Tapped from my ①+②=❸ ;)
[Android General] GjorgiDxc:
Take a look when you can :)

https://dl.pushbulletusercontent.co...i/BetterBatteryStats-2015-09-05_101655317.txt
[Android General] v7:
How old is the battery?

The syncing consumed some juice and some GCM linked messages arrived during this period.

The rest of them looks fine.There's nothing much to limit.

Tapped from my ①+②=❸ ;)
[Android General] GjorgiDxc:
Well I bought the phone on launch date so it's 3 years old. I am thinking of replacing the battery, the problem is free time and the dilemma should I buy an original 1750mah battery or a Chinese one that is 2500mah..

Also i got some messages on fb messenger, but the ones on Hangouts still didn't arrive.

So I guess this is a problem with the new version of Hangouts v4.0.
[Android General] v7:
<1%/hr idle drain on a 3 year old battery itself is a great thing.

I think you should go for the Original battery.If there was a leading brand like MUGEN/ZeroLemon supplying an extended battery,I would've asked you to go for it.But I won't recommend a cheap extended battery.

Tapped from my ①+②=❸ ;)
[Android General] suaverc118:
Good morning [MENTION=5867207]vaisakh7[/MENTION]! These stats look better but I'm still not satisfied. Before I came back to XP and bliss I was on the latest COS12.1 that was released with only using disable services app and greenify and went to bed 100% and woke up 8 hours at 100%. Signal is still the same as it was a few days ago too. Yesterday I turned off power nap thinking it was messing with me receiving messages. I just want to use as little as possible and not sure what is causing it to drain other than signal. Again, signal is the same on this go around as it was on my other ROM. Thanks brother.
[Android General] suaverc118:
Here's some shots... Maybe after looking the signal isn't as strong because it's not a darker green. I do have it on 2g like I have had before when I got great sleeping stats. Maybe it could be the mobile radio module?
[Android General] v7:
Unfortunately there's nothing to be limited/blocked.The stats is perfect!

The CPU is sleeping well.No signs of wakeups.Trying another Kernel/ROM is the only possible way to improve IMO. :/

Tapped from my ①+②=❸ ;)
[Android General] jet_iso:
With the settings you've suggest and some additions by me, my phone says ="approx. 3 days for 72% battery". Thanks :)
[Android General] arvylas:
OK these 2 are with reset to defaults 1min with screen off and an alarm.
[Android General] v7:
Limit everything from the OP except

*Wakeful StateMachine: GeofencerStateMachine

*NfcService:mRoutingWakeLock

*GCoreFlp

*com.google.android.intent.action.SEND_IDLE

Trigger an alarm and report back.

Tapped from my ①+②=❸ ;)
[Android General] arvylas:
With these 4 excluded seems to work fine. I;m trying with gcoreflp limited now to see.
[Android General] v7:
Now limit them one by one and see which one is the culprit.

Tapped from my ①+②=❸ ;)
[Android General] arvylas:
Sadly it's gcoreflp this thing is keeping a huge wakelock in my device.

Sent from my SM-N910F using Echoe Forum Pro
[Android General] v7:
BBS log?

Tapped from my ①+②=❸ ;)
[Android General] Purerawenergy:
Bro I have mine on 3g when screen off. For some reason 2G seems to make it worse.

Tom 2.0
[Android General] suaverc118:
[MENTION=5867207]vaisakh7[/MENTION] mentioned trying 2g before. I'll try 3g tonight.
[Android General] filipeataide:
[MENTION=5867207]vaisakh7[/MENTION] are you familiar with the app Moves? What location related alarms can I limit in order to have it running with no problems? Thanks

Enviado do meu Nexus 6 através de Tapatalk
[Android General] v7:
I haven't heard of it.Are you having issues with the app?

Tapped from my ①+②=❸ ;)
[Android General] Falfner:
How do make it so that your signal goes to 3g when your screen is off?
[Android General] v7:
Use the Smart Network module mentioned in Post#2.

Tapped from my ①+②=❸ ;)
[Android General] OmegaBlaze:
Great thread! Going to try everything when my battery charges to 100%.
[Android General] Liooh:
I can't disable Connect, Moto voice and Moto display even though every experimental features are enabled on Greenify. Why ?
[Android General] v7:
Are they whitelisted in Power Nap?

Tapped from my ①+②=❸ ;)
[Android General] Liooh:
They aren't. Also, which version of Greenify do I have to download together with the last version of Greenify Donation ?

I tried the last version and 2.5.2 and I couldn't turn on limit-alarm because it says it can't cuz I dont have the Donation package so I tried 2.5.2 and the same happened..

Also, this function "com.android.internal.telephony.data-stall" doens't exist in my phone so I had to begin with the second one
[Android General] v7:
Whitelist them.Use the latest 2.7.1 of Greenify from playstore.

What 'limit-alarm' are you mentioning?

Tapped from my ①+②=❸ ;)
[Android General] Liooh:
I'm mentioning "com.oasisfeng.greenify.CLEAN_NOW"... and yes, I have this last version but the problem is that when I go to Amplify and click on "com.oasisfeng.greenify.CLEAN_NOW" and try to slide right to turn alarm ON on "Allow every ________ seconds.", I get this message "This is a Pro feature, to limit non-standard wakelocks and alarms, you need to purchase a donation package." That's the problem.
[Android General] v7:
You need Amplify donate version to limit the Alarms and Wakelocks from the OP.

Tapped from my ①+②=❸ ;)
[Android General] Liooh:
Where do I get it ? I thought it was talking about Greenify Donation Package(didn't work as well).. I didnt see any recommendation about Amplify Donate Package in the topic, sorry.
[Android General] v7:
Open Amplify->Click Karma to donate!

Tapped from my ①+②=❸ ;)
[Android General] Liooh:
haha sorry, I didn't know I had to spend any money with that.. Here in Brazil the Dolar is getting very expensive,

thanks tho for your help. ;)
[Android General] biazoto:
De fato, qq compra/doação em dólar aqui sai caro... [emoji1]

In fact, any donation here in dolar is expensive..
[Android General] Eyedoctor2:
OP,

I pressed the thank button on the first post but that wasn't enough for me to express my appreciation for your work! After updating my Nexus 7 2013 LTE to 5.1.1 my battery was lasting about 4 hours!

I was so bummed I even briefly considered an IPad 4 mini when it comes out. But thanks to you I have banished all such thoughts!

Latest battery life was 19 hours with occasional use!!!

Thank you for a clearly presented and very effective guide. Gratitude!
[Android General] suaverc118:
Good morning. Here is my dump from last night with 2g on. Was also noticing this alarm in the pic that I've seen use a lot many times but not sure what to do with it. Thanks.
[Android General] Portgas D. Ace:
Limit android.app.backup.intent.RUN according to the OP (86400 I guess). The rest seems okay.
[Android General] v7:
Limit the alarms in the screenshot as mentioned in the OP.The alarm/wakelocks are under control.Nothing more to tweak.

Tapped from my ①+②=❸ ;)
[Android General] suaverc118:
Thanks fellas. I don't know how I missed that one. Geez
[Android General] razerguy71:
do you know how to disable fast dormancy on oneplus one device?
[Android General] v7:
ro.ril.fast.dormancy.rule=0

Add this line to build.prop and reboot.

Tapped from my ①+②=❸ ;)
[Android General] AmolAmrit:
[MENTION=5867207]vaisakh7[/MENTION]

Any help here

http://xdaforums.com/showthread.php?t=3194798
[Android General] v7:
Replied there!

Tapped from my ①+②=❸ ;)
[Android General] AmolAmrit:
Thanks
[Android General] [Gorgasm]:
Hi ! I would like to perform some tests in order to see my battery drain in deep sleep.

So, can you tell me what are your settings regarding mobile data and wifi ? Do you keep wifi and mobile data on, or wifi off/mobile data on, or wifi on/mobile data off ?

I personnally use Smart Network for mobile data which are always on, and I turn on/off Wifi manually, but I don't know if it is the best way.

Thanks :)
[Android General] f0xy:
Just keep one connection active while you don't touch your device for 6+hours from 100% battery
[Android General] mickg929292:
I had to limited a wakelock or an alarm that makes WhatsApp showing me online when I'm not. Did anyone reported this too? Any solutions?
[Android General] v7:
Have you limited anything apart from the OP?

Tapped from my ①+②=❸ ;)
[Android General] mickg929292:
Few things, but not regarding WhatsApp. Most of limited things are as in the op + celestial thread.

Could help if i post you every WhatsApp limited voice in amplify to find which one forces me online?
[Android General] Portgas D. Ace:
It is most likely that the issue arises when you limit com.whatsapp.messaging.MessageService.LOGOUT.ACTION. Are you sure you did not limit this alarm?
[Android General] AmolAmrit:
[MENTION=5867207]vaisakh7[/MENTION] I posted there .
[Android General] mickg929292:
Yeah that was limited. I set it free, I'll check if the problem is solved
[Android General] Beagle82:
Question

Hi , been reading these forums for ages and decided to join in.

I would like to attach my battery dump file here but cant find how to do that.

Is that function unavailable as this is my first post?

PS. before anyone tries to scalp me, i did read through the 'new to xda' FAQ

Thanks :confused:
[Android General] Portgas D. Ace:
First of all: welcome to XDA. Enjoy your ride ;)

You are right. You will not be able to upload an attachement until you have ten posts.
[Android General] Beagle82:
wakeocks

Since i cant attach my battery dump yet, here are my worst kernel wakelocks.

Battery Level lost [%]: Bat.: -4%(100% to 96%) [0.6%/h]

Battery time 6h 12m

"multipdp" (): 2 m 9 s Cnt:(c/wc/ec)17/0/17 0.6%

"l2_hsic" (): 1 m 47 s Cnt:(c/wc/ec)250/24/251 0.5%

"secril_fd-interface" (): 1 m 31 s Cnt:(c/wc/ec)25/0/0 0.4%

"wlan_wake" (): 1 m 18 s Cnt:(c/wc/ec)114/25/0 0.4%

"umts_ipc0" (): 48 s Cnt:(c/wc/ec)88/0/88 0.2%

"battery-monitor" (): 38 s Cnt:(c/wc/ec)114/0/115 0.2%

any suggestions on bringing these down?

Thanks
[Android General] [Gorgasm]:
Ok thanks for your help ;)
[Android General] f0xy:
https://www.dropbox.com/s/3prq36nsqtx4ltu/BetterBatteryStats-2015-09-10_072330838.txt?dl=0

I'm still getting idle drain :(
[Android General] Hemant:
thanks a lot for this guide.
[Android General] v7:
How's the cell signal at your place?

Tapped from my ①+②=❸ ;)
[Android General] v7:
Alarms and Wakelocks are fine. How was the cell signal?

Tapped from my ①+②=❸ ;)
[Android General] gregferns:
Hi

Please check this drain and give suggestions to improve, if any.

Was from 1.35 am till 7 am

thanks

greg
[Android General] v7:
Nothing more to tweak from the stats.You can try different kernel/ROM for more improvement.

Tapped from my ①+②=❸ ;)
[Android General] Beagle82:
I get full signal at home.
[Android General] v7:
Upload the dump to a file sharing site and post the link here.

Tapped from my ①+②=❸ ;)
[Android General] suaverc118:
Good morning [MENTION=5867207]vaisakh7[/MENTION]!!! Look at what I woke up to this morning.
[Android General] suaverc118:
Battery
[Android General] razerguy71:
wtf

any tweaks? ROM? kernel? please tell us everything youve did to your phone man

PS: i got OPO too
[Android General] v7:
Awesome bud! 2G/3G? I'm really happy for your results :)

Tapped from my ①+②=❸ ;)
[Android General] suaverc118:
So im running latest Boeffla 4.2 kernel with 9-5 bliss pop rom and when I go to bed, I drop my settings and to extreme battery yank, power save, 300-960 and turn on the phones battery saver. I use app ops, greenify and amplify as well.

---------- Post added at 07:47 AM ---------- Previous post was at 07:44 AM ----------

Yes sir, it was on 2g. Thanks

---------- Post added at 07:51 AM ---------- Previous post was at 07:47 AM ----------

I also forgot to mention that I use an app called disable services where I can manually see services running and turn them off and on. Mainly play services and location.
[Android General] AmolAmrit:
I want to make use of this Guide but I don't want to install Xposed ?
[Android General] v7:
Xposed is the root of this guide!

Tapped from my ①+②=❸ ;)
[Android General] AmolAmrit:
Bad Luck for me.
[Android General] sino.sabri:
problem

i don't why when i activate greenify module i feel like my device become very slow
[Android General] v7:
Actually the result should be exactly opposite.Is the boost mode activated?

Tapped from my ①+②=❸ ;)
[Android General] sino.sabri:
yeah it's activated i don't know what's the problem

and when i desactivate the module there is no problem (by the way i have a i9505)
[Android General] v7:
What all apps have you greenified?Post screenshots or list them.Also post screenshots of the Experimental Features menu.

Tapped from my ①+②=❸ ;)
[Android General] sino.sabri:
[IMG="pic1"]http://imageshack.com/a/img538/1964/QFYVqw.png[/IMG]

[IMG="pic2"]http://imageshack.com/a/img673/683/73uPC0.png[/IMG]

and i just got the message of auto-hibernate has stopped at the bottom now
[Android General] v7:
Are you using PowerNap? Is greenify whitelisted in PowerNap?

Tapped from my ①+②=❸ ;)
[Android General] sino.sabri:
no i don't use mate but does clean master o ram boost module affect the auto hibernate ?
[Android General] v7:
If you're facing lags,the first thing you should do is to remove the ram booster/task killers from your device.Task killers does more harm than good.There's no need to use them along with Greenify.

Tapped from my ①+②=❸ ;)
[Android General] sino.sabri:
many thanks

Thanks bro the problem was from the task killer of ram booster, i delete it now and it becomes smooth and the auto hibernate is activated again

---------- Post added at 05:44 PM ---------- Previous post was at 05:38 PM ----------

i already flashed the xposed-v65-sdk21-arm-arter97-V5-krait.zip and now there is V6 available

should i use the xposed uninstaller first then install the V6 or i can flash it directly ?
[Android General] v7:
You can flash on top without issues.

Tapped from my ①+②=❸ ;)
[Android General] sino.sabri:
thank you dude for your time :)
[Android General] f0xy:
Full cell signal at home, I also check it to and the signal bars don't deceive me!