yashsingh1/xdaforums huggingface dataset:
[Android General] v7:
No Data Connection (): 7 s 0,0%

No or Unknown Signal (): 7 s 0,0%

Good Signal (): 49 m 48 s 10,4%

Signal seems to be the issue.Do you have poor reception at home?

Tapped from my ❶+❷ ;)
[Android General] pnm3049:
Hi. Few questions. If I were to limit GCM_RECONNECT and ACTION_CHECK_QUEUE, to how many seconds should I limit them? Im fully aware that they are for gcm push notifications and its okay for me not to receive them instantly. I want to receive them only when I open the app.

Another thing. What's the function of MCS_HEARTBEAT? These things are the ones occupying my wakeups. Thanks!
[Android General] gaetanolip:
MCS_HEARTBEAT , if i am not wrong, is wearable related ( HEARTBEAT function, sport tracker).

for GCM_RECONNECT and ACTION_CHECK_QUEUE you have to try yourself, when i limited it i had notification delay
[Android General] v7:
You can limit them to 7200 seconds.Your notifications will come in every 2 hours.

Tapped from my ❶+❷ ;)
[Android General] gaetanolip:
i have moderate signal. To me the culript is wifi, even if is on and not connected to any router. when i switch off wifi i have 0,5% per hour over night. Can you investigate, please?
[Android General] v7:
MCS_HEARTBEAT is related to GCM Push.

Tapped from my ❶+❷ ;)
[Android General] v7:
1.Switch to 2G and turn off your mobile data.

2.Turn on WiFi and connect to your AP.

3.Do an idle dump overnight with WiFi ON and post it here.

Tapped from my ❶+❷ ;)
[Android General] gaetanolip:
thanks,

but at the moment i have only a wifi extender as router, without internet.Is it the same, or can i leave wifi on without connecting to my AP ( wifi extender)?
[Android General] v7:
No.You need a working WiFi.

If you have no Internet access over WiFi,then there's no point in keeping WiFi ON.

Tapped from my ❶+❷ ;)
[Android General] pnm3049:
Because at the bottom of the alarms tab of amplify. The mcs_heartbeat says not safe to limit. So if I limit them to 7200 what will be the effect? Same as the delay?
[Android General] v7:
Delayed push notifications.

Tapped from my ❶+❷ ;)
[Android General] pnm3049:
Is this even possible? No loss in 6 hours. Do you use power nap? Can I copy your alarms and wakelocks limited? Im using htc one m8 thanks!

Because in his BBS. He only have a small amount of alarm from those I mentioned above. We have the same phone. Htc one m8. And he has 0.0/h loss. So yeah. His idle time is very great
[Android General] v7:
He got less number of notifications during that period and thus lower number of GCM alarms.

Tapped from my ❶+❷ ;)
[Android General] gaetanolip:
The point is that i don't want to switch wifi on and off second that i have internet access or not. Furthermore Wifi always on with no connection to any router should not drain battery.

Aniways i ll make tw0 dump logs:

1 2g , with wifi on and non connection overnight

2 2g , with wifi on and connection to office router (with internet access) durinh the day

i hope you ll help me

thanks
[Android General] pnm3049:
Is there a way to see if he limited gcm? In that bbs?
[Android General] v7:
I'll try my best to sort things out. :)

Tapped from my ❶+❷ ;)
[Android General] Promybrainz:
Power nap makes my phone go off when set on endurance mode.
[Android General] v7:
Nope.You need to ask him.

Tapped from my ❶+❷ ;)
[Android General] v7:
Is AndroidSystem whitelisted?

Tapped from my ❶+❷ ;)
[Android General] rtorres01:
Standby da Bateria

staff

I am a beginner and began to read these 400 pages. However , I have a problem that bothers me a long time .

I have problems with high consumption of " standby battery ." Any tutorial or tip for this particular issue .

Thanks
[Android General] v7:
Read FAQ in post #6 and post me a dump.

Tapped from my ❶+❷ ;)
[Android General] pnm3049:
Hi. I recorded this dump last night. I limited my gcm_reconnect and action_check_queue to 1800 seconds so that it may appear every 30 mins. I have power saver off. But there is an option in my setting called "sleep mode" which turns off connection during long periods of time. But now I have 0.5/h compared to 0.3/h yesterday. My phone is 18 minutes awake last night. Can anyone check? Thanks!
[Android General] v7:
Partial Wakelocks are fine.Kernel wakelocks are empty.Update BBS to 2.1R2 from the thread and post a dump tomorrow.

If you don't want prefer active WiFi/Data connection overnight,you can turn them off.

Tapped from my ❶+❷ ;)
[Android General] pnm3049:
My kernel wakelocks are always like that. Ive done this before. Ive posted you my previous dump before having 0.3/h. Then I tried again last night. Then that was the result. During my previous dump I also enabled wifi but with no sleep mode setting pre installed in my phone.

---------- Post added at 03:43 AM ---------- Previous post was at 03:40 AM ----------

By the way, could you guys know what this is? "com.android.internal.policy.impl.PhoneWindowManager.DELAYED_KEYGUARD"

THANKS
[Android General] v7:
Update BBS to 2.1R2 and the Kernel Wakelocks will populate.

I'm not sure what the HTC Power Manager do.You had it running when you posted the last dump and WiFi was running all the time.So I asked you to turn it off.

Window manager organises the screen and processes what should go where and how they should be layered.The mentioned alarm is related to this.

Tapped from my ❶+❷ ;)
[Android General] pnm3049:
The window manager will still operate even if I am not using the phone? What happens if I limit it?

Also. As you can see with my bbs. The wifi was running only 6 hrs. And deep sleep time was 10 hours. So alarm of htc power manager goes up disabling the wifi network during long periods of inactivity.
[Android General] v7:
WindowManager alarm is not safe to be limited.

I had asked you to disable Power Manager and post a dump.

Btw I was mentioning about the dump you posted yesterday.

Wifi On (): 10 h 8 m 41 s 100.0%

Wifi Running (): 10 h 8 m 41 s 100.0%

Tapped from my ❶+❷ ;)
[Android General] Al Gore:
Not really as it turned out. I set location settings to power saving (no GPS) for tonight and this is my BBS log:

So everything was perfect (thanks to your guide as well!) but I'd still love to find a way to determine which app causes GPSD wakelock.
[Android General] v7:
Where's the rest of the log?

Tapped from my ❶+❷ ;)
[Android General] pnm3049:
Yes. Check also the one I posted this morning. Wifi running only for 6 hours. Anyway, Ill just try it again later. Thanks
[Android General] v7:
Update BBS to 2.1RC2.

Tapped from my ❶+❷ ;)
[Android General] Al Gore:
Well there's nothing interesting below but here: https://www.dropbox.com/s/lswu6kk5zdtfww6/BetterBatteryStats-2015-09-30_070633402.txt?dl=0 (idk why weather keeps getting services.NotificationReceiver, I disabled all notifications in it).

And here's log with GPS enabled: https://www.dropbox.com/s/2kzs3jiqpzlsjug/BetterBatteryStats-2015-09-28_082516850.txt?dl=0
[Android General] v7:
Limit

android.appwidget.action.APPWIDGET_UPDATE to 3600 seconds.

android.app.backup.intent.RUN to 84000 seconds.

com.samruston.weather/.services.NotificationReceiver to 7200/3600 seconds.

Post an idle dump with GPS active on WiFi.Along with the dump,post the screenshots of the battery stats from Settings->Battery and the graphs.

Tapped from my ❶+❷ ;)
[Android General] pnm3049:
Sir. Just an update. I installed the bbs 2.1RC2 a while ago. It also cant detect kernel wakelocks. Anyway. Im using stock kernel for my htc.
[Android General] v7:
Goto BBS->Settings->Advanced->Check 'Kernel Wakelocks using API'.

Tapped from my ❶+❷ ;)
[Android General] pnm3049:
Still nothing bro. Anyway. What is that for? The first time you check my bbs you didnt ask me about the kernel. Haha
[Android General] v7:
Awake (): 18 m 34 s 2.9%

Partial Wakelocks are fine.Need to see what Kernel Wakelocks are triggered.

Tapped from my ❶+❷ ;)
[Android General] pnm3049:
I think those 18 mins are from htc power manager, gcm reconnect, mcs heartbeat, and action check queue. Dont you think?
[Android General] v7:
GCM alarms contributed a little.Post me an overnight dump with Power Manager turned off.

Tapped from my ❶+❷ ;)
[Android General] pnm3049:
Okay. Will do it tonight. Thanks a lot. Sorry for the trouble
[Android General] mankvl:
Can't find this:

Disable the following Permissions of Google Play Services using AppOps

OP_ALARM_WAKEUP/Wake Up

Is it called exactly Wake Up or maybe smth else?
[Android General] v7:
Goto AppOpsXposed->Settings->Hacks->enable Fix OP_WAKE_LOCK.

Reboot and see if it shows up in AppOPS.

Tapped from my ❶+❷ ;)
[Android General] Al Gore:
Full on wifi for the entire night? Alright. I have wifi set to turn off when device is locked but will do the test tonight.
[Android General] mankvl:
Still no Wake up, maybe Samsung TW ROM problem, soon i will flash AOSP and test then :)
[Android General] biazoto:
Search for keep awake.. I use tw ROM and this option is only that appear

Enviado de meu GT-I9505 usando Tapatalk
[Android General] mankvl:
Ye I disabled that :) maybe it's all in one with TW roms :)
[Android General] biazoto:
Yes... The option "OP_WAKE..." I found only in CM based ROMs...

Enviado de meu GT-I9505 usando Tapatalk
[Android General] pnm3049:
Question

Why do I still have the syncmanager alarm when I am not using sync. I also limited it to 7200. Still there are quite a few being shown in BBS. Thanks!
[Android General] v7:
7200 seconds means 2 hours.Your accounts sync every 2 hours.If you don't want that,turn Auto Sync off or limit the alarm to a higher number.

Tapped from my ❶+❷ ;)
[Android General] pnm3049:
I am not using autosync eversince. Anyway, I limited them now to 40000. Hope that will be enough. And another question sir, the greenify app, how often does it wakeup with the limits of 1800? Thanks
[Android General] v7:
Auto Hibernation takes place every 30 minutes.

Tapped from my ❶+❷ ;)
[Android General] pnm3049:
Oh im sorry. Wrong question. Let me rephrase. How often does it wakeup WITHOUT the limit?
[Android General] Portgas D. Ace:
There is no defined time interval. Greenify kicks in shortly after you turned your device's screen off.
[Android General] v7:
It hibernates often.Mostly when you lock the screen.

Tapped from my ❶+❷ ;)
[Android General] pnm3049:
I think that would be much better. Dont you think? Instead of apps running in the background for as long as 30 mins (1800 seconds), it is better for them to hibernate as soon as possible. What are your opinions?
[Android General] f0xy:
Guys what's draining my battery in this ?

Am I right in thinking it's ehatsapp and a CyanogenMod account?
[Android General] v7:
Share screenshots from Settings->Battery.

Tapped from my ❶+❷ ;)
[Android General] f0xy:
Whatsapp doesn't appear :(
[Android General] v7:
Stats looks fine.The drain is really high.Can you clean flash your ROM?

Tapped from my ❶+❷ ;)
[Android General] f0xy:
Yes will do today pal.

I'll just install

ROM

Open gapps(pico)

Xposed + amplify + greenify + powernap

Then try and leave it as much as possible today
[Android General] pnm3049:
Dont you think that would be much better? Instead of apps running in the background for as long as 30 mins (1800 seconds), it is better for them to hibernate as soon as possible. What are your opinions?
[Android General] v7:
You don't use the 'Hibernate now' Shortcuts?That's useful while screen ON.

There's no need to hibernate the apps in the background every now and then during idle.

Tapped from my ❶+❷ ;)
[Android General] Portgas D. Ace:
Indeed, it would be much better to leave it as it is, BUT: this way Greenify will always run after you turned off your screen. If you turn on your screen quite often (for example you are a person receiving lots of instant messages, emails and so on), then this will drain your battery far more compared to the current recommendation, where Greenify will trigger one alarm every 30 minutes.

This is one thing people misunderstood quite often: the setup from the OP is a guide, not a mandatory setup. You can decide by yourself whether you want those pre-defined settings (which are extremely good) or tweak them a little further to meet your personel needs. In addition to the current setup I have a shortcut on my homescreen to hibernate apps by using a simple swipe gesture before turning off my device. This way Greenify will only hibernate (and thus trigger an alarm) apps that wake up while screen is off (for example due to a push notification). That is the reason why the "holy trinity" Greenify, Amplify and Power Nap is an anwesome way to set up your device according to your needs. With Amplify, you can limit an app's alarms and thus services, with Greenify you can hibernate apps but still allow (most of them) to deliver push notifications, by using Power Nap you can decide wheter you want push notifications the whole time or only when screen is on.
[Android General] pnm3049:
Oh okay. Yeah you're right. But just to clear things up. If there are no apps needed to be hibernated, will the alarm still go off? It will not right?
[Android General] v7:
It still triggeres the alarm.Greenify won't check if there are apps pending to be hibernated.It triggers the alarm often.

Tapped from my ❶+❷ ;)
[Android General] yerebakan:
[MENTION=5867207]vaisakh7[/MENTION] thank u for effort.

I did all instructions. Addition to set-up more powersaving on kernel(Agni)

Please control my dump.

On deepsleepe my battery lost %8 for about 6 hours.

Is it normal?

I wait your opinions.

Sincerely
[Android General] v7:
Do you have any Battery Saver installed?

Please disable it and post a dump later.

Tapped from my ❶+❷ ;)
[Android General] yerebakan:
Yes, I use Deep Sleep Battery Saver.

Add whitelist apps (Greenify,PowerNap,Amplify... which need for deepsleep and others) for both programs.

Ok this night I test again without Deep Sleep Battery Saver. Then I will post a dump tomorrow morning.

Thank u for quick response.
[Android General] pnm3049:
So you mean to say that greenify will always trigger the alarm even if all apps are already hibernated? What for?

And also. What do you mean by we dont have to worry about hibernating apps running in the background during idle? Dont they consume battery in that way?
[Android General] v7:
Yes.Greenify will trigger the alarm often.It has no function to check if there are pending apps to be hibernated.So it'll trigger the alarm frequently.

Before turning off the screen,you can use the Hibernate Now shortcut to hibernate pending apps.And while idle,the alarm is needed to be triggered every 15/30 minutes only.There's no need for the alarm to run often.

Tapped from my ❶+❷ ;)
[Android General] themadproducer:
Here's the full deal with Greenify. (my long term experience with Greenify)

1) Manual hibernation can be done with the "screen on" via a shortcut, in app, or via 3rd party gesture or hardware button preset using 3rd party app/mod.

2) When auto hibernation is enabled, Greenify will hibernate apps shortly after the screen turns off...but it allows a grace period in case you decide to turn your screen back on quickly and resume using an app. Then with the screen off... it periodically triggers to see if any apps have become AWAKE since the last trigger. Is it a 30min period....I don't know.

***Some apps have been known to wake from a hibernation because another app wakes it up. That's why the Wake Cut-Off feature was invented. So the periodic check ensures that a woken app will get hibernated once again with very little impact to the battery. (Google apps tend to work like this)

3) With Auto Hibernation disabled...I am assuming there will be no alarms...Greenify will not do it's periodic checks.

4) For those wanted auto hibernation immediately after the screen is turned off and/or locked, then Tasker can be used with or without the regular auto hibernation enabled. Tasker can obviously be used to trigger hibernation with all kinds of creative scenarios. (eg. when I return to home screen, hibernate apps)

5) The reason I use Greenify, is to help with STUBBORN APPS that like to do things in standby, that are not in my control....and either cause battery drain and/or perform rogue or stubborn behavior. Example...MyFitnessPal...like's to talk to the mother ship once in a while and slap me with a spam notification of some sort not to mention using data etc.
[Android General] pnm3049:
So are you using amplify? Do you limit these alarms of greenify? Thanks for the info
[Android General] Al Gore:
Hey vaisakh7, here's my log with GPS and WIFI constantly enabled. And also I think I didn't have alarm_wakeupXXXXXX before, wtf

I am going to reconfig Amplify because the more I block the more my phone randomly reboots.
[Android General] v7:
Change the Kernel/ROM.Clearly an issue with the ROM.

Tapped from my ❶+❷ ;)
[Android General] Al Gore:
Do you mean multiple alarms, battery usage overnight or reboots lol
[Android General] v7:
GPSD is related ro wthe kernel amd there are a lot of Kernel Wakelocks triggered.Change the Kernel or the ROM itself.

Tapped from my ❶+❷ ;)
[Android General] gaetanolip:
Hi,

Here my dump overnight.2g data on, WiFi on but disconnected,GPS off,sync auto off while screen off
[Android General] v7:
0.4%/hr in mobile data is not bad.

Try to limit GPSLocationProvider to 7200 seconds and see if it breaks the functionality.

Tapped from my ❶+❷ ;)
[Android General] halloarno:
I detect my device (xperia sp, 5.1.1) slows down because of powernap.

Another great battery saver is the xposed module smart network.
[Android General] welder73:
If I just disable Amplify in Xposed,every value will be back to normal?

Sent from my Razr XT910
[Android General] gaetanolip:
I ll try, but0.4%/hr in 2g ...mmmm , not well maybe..

noted com.asus.alarm.ALARM_CONTROL wakelock, how to understand what app is it?

thanks very much
[Android General] yerebakan:
[MENTION=5867207]vaisakh7[/MENTION]

Is any alarms, wakelocks or services deny Wifi Sleep Policy?

I want to turn off wireless when the phone is in deep-sleep. So I changed wifi advanced settings which keep wifi during sleep is never.

But the option does not work regularly. While phone is on deep sleep, but wifi still turn on. Wifi maybe turn itself off some times later.

I think some of setting(s) is/are delayed services work.

Note:

1- According to your advice (disable deep sleep battery saver), I disabled it and I also wiped cache/data and uninstalled. Ignored and forgot some applications.(supersu, powernap... vs.)

2- Whatsapp and Telegram are in whitelists. Some times those apps can wakeup wifi?
[Android General] v7:
What all have you whitelisted in Power Nap?

Tapped from my ❶+❷ ;)
[Android General] v7:
Goto Amplify->Settings->Reset to default

Tapped from my ❶+❷ ;)
[Android General] v7:
The alarm not from an app.It is from the Android System.

Also I noticed that you had moderate signal at times.How's the cell signal at your place?

Tapped from my ❶+❷ ;)
[Android General] v7:
No,none of the apps here have the permissions to toggle WiFi.Is Scanning Always Available Activated?You can also try Smart Network module to handle network/WiFi connections.

Tapped from my ❶+❷ ;)
[Android General] yerebakan:
No. Allow Scanning is also disabled.

I install "smart network" but not activated yet.

Did "deep sleep battery saver" remove wifi_sleep_policy key on database? Because I dont see this key on database.
[Android General] v7:
I've never tried DS Battery Saver.I'm not sure if it altered anything.

Tapped from my ❶+❷ ;)
[Android General] yerebakan:
If we use Smart Network, shoul I add whitelist on Greenify and also PowerNap?
[Android General] v7:
There's no need to hibernate 'Smart Network'.But,whitelist it in Power Nap.

Tapped from my ❶+❷ ;)
[Android General] yerebakan:
thank you Sir.. :o
[Android General] atrix4nag:
Very detailed explanation to save battery. Can you update the Screen shots on page 1, so that it will be useful for new comers like me. Thanks
[Android General] v7:
Thanks for letting me know.I just saw that my Imageshack account was removed.Will update screenshots tomorrow :)

Tapped from my ❶+❷ ;)
[Android General] halloarno:
Amplify, greenify and whatsapp
[Android General] v7:
Add AndroidSystem to the whitelist.

Refer PowerNap section in the OP for complete list.

Tapped from my ❶+❷ ;)
[Android General] halloarno:
Well, power nap isnt active during screen on, is it...
[Android General] v7:
It isn't.

Tapped from my ❶+❷ ;)
[Android General] halloarno:
So why should it slow down my device?
[Android General] v7:
PowerNap shouldn't be the cause.Something else is causing the problem.

Tapped from my ❶+❷ ;)
[Android General] rtorres01:
Standby da Bateria

Oops, ta On Hand . So I thought I good consumption during the night with the Linked 3 / 4G.

My Problem And Standby When Used internet 3 / 4G even for a short time . Consumption is completely changed.

Unfortunately for being new User I can not post link and could not attach the BBS file. How to proceed?
[Android General] OrpazDahan:
I'm using Greenify for ages but didn't know Amplify, I will try it out when I get a permission to download it
[Android General] jordirpz:
[MENTION=5867207]vaisakh7[/MENTION]

I have 32% powermanagerservice.display and 6% powermanagerservice. Wakelocks in BBS, but in amplify i cant see this. How i can make less % ?

Sorry for my english
[Android General] Promybrainz:
Wow. I'll see to that immediately.
[Android General] themadproducer:
[MENTION=6518256]pnm3049[/MENTION]

Yes I use amplify.

No I do not limit Greenify.

I could try I suppose..., but in my testing, I did not observe any significant drain caused by the Greenify background service. My BBS stats look pretty amazing these days.

That being said, I'm a bit tired of trying to squeeze that last 10%. It's no longer worth it...to me at least. I am grateful with my numbers now and I never experience glitches, burps or hiccups. A happy balance.

On my S3 KK stock without any interference in ideal conditions, and using a fairly new battery, I get between .2 - .8 percent drain with a typical average of .3 - .4 and I don't experience any issues. Out of the box, these devices with typical normal users, would draw 1-2% hr easily...so we are doing pretty darn good.
[Android General] f0xy:
So with device turned off for 7hrs I lost 0%

With device in airplane mode for 4.5hrs I lost 0.7%/hr

This is with out any mods at the moment and a clean installed ROM with only basics installed gapps/xposed/only needed modules/ BBS/ no social apps

Attached is copy of BBS dump for the airplane dump, is there anything I can tweak before I start to restrict the alarms etc?
[Android General] themadproducer:
I've been testing and optimizing battery saving techniques since I owned my HTC HD2. (I suddenly just had a fond memory of that wonderful device.. @Looki75)

And with my latest and best setup with my S3, I have sometimes achieved the 0% over 6-8hrs statistic via BBS. But...I don't think it is "relatively realistic". I believe battery drain can be very inconsistent on these devices and with batteries in general, they do not drain linearly. Repeating the exact test in the same location for the same time frame always yields varying results. But as I mentioned in an earlier post, I get a consistent range of .2 - .8 and that's a more realistic goal. Your wifi test @foxy contains the variable of the behavior of the wifi. All my recent tests were done with wifi on and the results are usually varied.

I've done hundreds of these tests. I like to vary the battery charge starting point sometimes. (eg 100%, 75%, 50%) The results will often differ and your left with relying on an average result rather than the PREFERRED result. Not to mention, aging batteries. So optimize but don't drive your self crazy (like I did) for that last little bit!!! :laugh: (unless you want to of course ;))
[Android General] v7:
Upload somewhere and rename the link as 'w ww.droxxxx.com' and post here or PM me.

Tapped from my ❶+❷ ;)
[Android General] v7:
PowerManagerService.Display shows how much time you used the screen.

PowerManagerService.WakeLocks is the total count of your Partial Wakelocks.

To reduce PowerManagerService.WakeLocks you have to check your Partial Wakelock status.

Tapped from my ❶+❷ ;)