Ok.
Wanted to ask, how can we activate a 100% deep sleep, when we turn off the screen, when it's locked.
I want the phone to go deep sleep immediately, it sometimes works, sometimes not.
Sometimes it drains over 15-20% per night, sometimes no % at all.
What could be the prob?
the one usually causing deep sleep not working is the apps installed in your phone. that apps sometimes work without you noticing it is running in the background and this apps cause the phone to be still awake.
download Better Battery Stat and IIRC see if there's any partial wake lock IIRC
Whenever my phone is idle for a certain amount of time, I don't get any notifications. So I turn my phone on, turn my wifi off then on again and everything returns to normal. Any idea what could be causing this?
Some things that might help:
Latest PureNexus
Latest EX kernel
I have amplify and greenify installed, and I followed limitations by this guide.
It is caused by Android bug where WiFi that goes into deep sleep doesn't enable again when you turn your screen on.
To workaround, you can leave wifi on during sleep or install app to control wifi on/off.
sfhub said:
It is caused by Android bug where WiFi that goes into deep sleep doesn't enable again when you turn your screen on.
To workaround, you can leave wifi on during sleep or install app to control wifi on/off.
Click to expand...
Click to collapse
What...? The workaround is to leave it on? IT IS already on...
Bei60 said:
What...? The workaround is to leave it on? IT IS already on...
Click to expand...
Click to collapse
You have
Settings->Wi-Fi->...->Advanced
Keep Wi-Fi on during sleep
set to "Always"?
The bug is even if you keep your WiFi on all the time, if you allow it to go into "deep sleep", when you turn on the device in the morning (or whenever) then even though WiFi will say it is on, it won't work.
It didn't do that on the original MDA89E release but it does on the latest. I don't know when the change happened. On MDA89E, it had a different bug, even if you set Keep Wi-Fi on during sleep to "Never" it still wouldn't go to deep sleep. This probably masked the problem of resuming from deep sleep that started showing up in the latest releases, when they actually started honoring the "Never" option.
The other problem you could be having if WiFi is working and it is just notifications not showing up, Google Play services keeps a connection open to the mothership for notifications. There is a heartbeat it uses to keep the connection alive. If you router is killing the TCP connection before the heartbeat can send packets, then that connection might be broken and the quickest way to get notification is to toggle the interface. For cell data, they don't usually terminate the long connections that quickly so the heartbeat usually works fine. Alternatively if you determine this is the problem, you can usually adjust how often your router allows TCP connections with no activity to live.
I thought Google had "fixed" this problem though because they were supposed to dynamically adjust the heartbeat timer based on your connection specifics. I think default is 15 minute heartbeat on WiFi and 28 minute on Cell.
Hi,
(I'm on Ressurrection Remix 5.8.5 / Nougat 7.1.2 final, rooted; installed O+3 OB24 firmware)
Recently (around mid-Feb) I started having problems with battery life on my device. I haven't changed anything (significant, not that I remember) but it was annoying me so on the road to figuring out which app/part of the system could cause the battery drain I ended up with pure Resurrection Remix rom without any Gapps (or any other apps for that matter) and... battery was still draining like crazy (which only annoyed me more). And with helpers like WakeLockDetector it say that my device was in deep sleep less then 50% of the time (and it was mostly laying on the table!)
The other day I noticed that if I disable WiFi all of the sudden device got decent sleep time (about 10-25% of awake time, which was consistent with my use case). I check the settings of wifi and had "keep wifi on during sleep" set to 'always' (however from performance and battery drain perspective having wifi on and even having idle TCP connection open shouldn't drain battery that much). I switched it to 'keep on only while charging' (no effect) and then to 'never' (also no effect).
Then I turned to old friend - 'llama' aplication and configured it to disable wifi the moment I turn off the screen and then when I turn on the screen activate wifi. With that setup I went from having 20-25% by the end of the day (unplug the phone around 6-7am, check around 6-7pm, i.e. after 12h) to still having 70% left with the same usage/timeframe. Generally this could be it, but! This is still kinda semi-automatic and I would loose notification if I don't explicitly wake device.
I was under the impression that this should be handled by doze - i.e. if the phone is lying on the table it would force device into deep sleep and then periodically wake it up to allow apps to refresh it states. In my case it looks like something is preventing doze from working correctly and placing phone into deeps sleep. I wan't as low-level as my (current) knowledge let me and I'm kinda stuck and don't know what to check next or how to fix it.
After using llama to disable wifi while screen is of the wakelock by 'PowerManagerService.WakeLocks' went down significantly as well as awake time.
Battery details: https://www.dropbox.com/s/bvf47nzx7ob5wc8/battery-details.png?dl=0 (wifi always on)
Wifi config: https://www.dropbox.com/s/2v65dugidp57rrd/wifi-config.png?dl=0 (nunca/never)
I would be very thankful for all suggestions.
.wojtek said:
Hi,
(I'm on Ressurrection Remix 5.8.5 / Nougat 7.1.2 final, rooted; installed O+3 OB24 firmware)
Recently (around mid-Feb) I started having problems with battery life on my device. I haven't changed anything (significant, not that I remember) but it was annoying me so on the road to figuring out which app/part of the system could cause the battery drain I ended up with pure Resurrection Remix rom without any Gapps (or any other apps for that matter) and... battery was still draining like crazy (which only annoyed me more). And with helpers like WakeLockDetector it say that my device was in deep sleep less then 50% of the time (and it was mostly laying on the table!)
The other day I noticed that if I disable WiFi all of the sudden device got decent sleep time (about 10-25% of awake time, which was consistent with my use case). I check the settings of wifi and had "keep wifi on during sleep" set to 'always' (however from performance and battery drain perspective having wifi on and even having idle TCP connection open shouldn't drain battery that much). I switched it to 'keep on only while charging' (no effect) and then to 'never' (also no effect).
Then I turned to old friend - 'llama' aplication and configured it to disable wifi the moment I turn off the screen and then when I turn on the screen activate wifi. With that setup I went from having 20-25% by the end of the day (unplug the phone around 6-7am, check around 6-7pm, i.e. after 12h) to still having 70% left with the same usage/timeframe. Generally this could be it, but! This is still kinda semi-automatic and I would loose notification if I don't explicitly wake device.
I was under the impression that this should be handled by doze - i.e. if the phone is lying on the table it would force device into deep sleep and then periodically wake it up to allow apps to refresh it states. In my case it looks like something is preventing doze from working correctly and placing phone into deeps sleep. I wan't as low-level as my (current) knowledge let me and I'm kinda stuck and don't know what to check next or how to fix it.
After using llama to disable wifi while screen is of the wakelock by 'PowerManagerService.WakeLocks' went down significantly as well as awake time.
Battery details: https://www.dropbox.com/s/bvf47nzx7ob5wc8/battery-details.png?dl=0 (wifi always on)
Wifi config: https://www.dropbox.com/s/2v65dugidp57rrd/wifi-config.png?dl=0 (nunca/never)
I would be very thankful for all suggestions.
Click to expand...
Click to collapse
Is wifi/BT scanning on in Location? If so switch it off.
Also check whether the firmware you use is correct or requires updation.
tnsmani said:
Is wifi/BT scanning on in Location? If so switch it off.
Also check whether the firmware you use is correct or requires updation.
Click to expand...
Click to collapse
I have BT off (haven't used it in my life…)
As for wifi scanning - you mean notification about available networks? yes, its' off.
What do you mean about firmware? Could that affect radios? in that case - which firmware should I install with RR 5.8.5? I'm not sure if "the latest" is alwasy the best idea (problems with compatibility)
.wojtek said:
I have BT off (haven't used it in my life…)
As for wifi scanning - you mean notification about available networks? yes, its' off.
What do you mean about firmware? Could that affect radios? in that case - which firmware should I install with RR 5.8.5? I'm not sure if "the latest" is alwasy the best idea (problems with compatibility)
Click to expand...
Click to collapse
Go to Settings>Location then click the three dot menu at top right, then click Scanning and disable wifi and BT scanning.
If that doesn't work, check on the ROM thread which firmware is recommended for your version of the ROM and flash it.
That one is also off.
As for firmware - I have (it seems) latest recommended one.
Hey guys,
I always wondered, why my phone wouldnt Deep Doze (according to Gsam). Be aware: I am not talking of the Deep Sleep (the CPU state, that is happening).
I always lost between 1,5 and 2% per hour overnight with the phone just sitting on the table, connected to the home wifi.
I disabled the Sim-Card (physical one, no e-sim) before going to bed tonight and my phone deep dozed now.
Yes, I am aware that there is this Mobile Network Standby Drain Bug. But since I disabled "Always use mobile date" in developer settings and was using WIFI during mentioned times, I dont know how that appiles to me.
Anyone has ideas?
Thanks!
Put it into airplane mode overnight and see if you get the drain. At least you'll know if it's a app or radio issue.
xflowy said:
I disabled the Sim-Card (physical one, no e-sim) before going to bed tonight and my phone deep dozed now.
Click to expand...
Click to collapse
Blade22222 said:
Put it into airplane mode overnight and see if you get the drain. At least you'll know if it's a app or radio issue.
Click to expand...
Click to collapse
no offense dude, but did u read my post? see above.
What the heck is deep doze?
As stated above, it is a doze state that is being entered after the light doze. Check Gsam battery for your stats regarding deep doze.
I had the same problem, dropping 2-3% per hour over night. I turned 5G off, turned off 'mobile data always active' in developer settings and turned off adaptive connectivity.
Now im only losing .2-.5% per hour overnight.
xflowy said:
Hey guys,
I always wondered, why my phone wouldnt Deep Doze (according to Gsam). Be aware: I am not talking of the Deep Sleep (the CPU state, that is happening).
I always lost between 1,5 and 2% per hour overnight with the phone just sitting on the table, connected to the home wifi.
I disabled the Sim-Card (physical one, no e-sim) before going to bed tonight and my phone deep dozed now.
Yes, I am aware that there is this Mobile Network Standby Drain Bug. But since I disabled "Always use mobile date" in developer settings and was using WIFI during mentioned times, I dont know how that appiles to me.
Anyone has ideas?
Thanks!
Click to expand...
Click to collapse
May be related to a ProxyController bug that people have reported. One workaround I've heard of (cannot confirm it works) is to turn off Airplane mode, reboot, then turn on Airplane mode,
ProxyController wakelock draining battery - Google Pixel Community
Thanks everyone!
Napa7m said:
I had the same problem, dropping 2-3% per hour over night. I turned 5G off, turned off 'mobile data always active' in developer settings and turned off adaptive connectivity.
Now im only losing .2-.5% per hour overnight.
Click to expand...
Click to collapse
I did all that. No deep doze tho. And even when I had deep doze when disabling the sim-card entirely, i had more than 1% drain per hour in standby. How tf do u get .2-.5%!? Do u have telegram/whatsapp/insta?
Lughnasadh said:
May be related to a ProxyController bug that people have reported. One workaround I've heard of (cannot confirm it works) is to turn off Airplane mode, reboot, then turn on Airplane mode,
ProxyController wakelock draining battery - Google Pixel Community
Click to expand...
Click to collapse
I see no proxy handler wakelock in gsam so i dont assume its that. Already did that airplane mode reboot and it didnt work.
xflowy said:
Thanks everyone!
I did all that. No deep doze tho. And even when I had deep doze when disabling the sim-card entirely, i had more than 1% drain per hour in standby. How tf do u get .2-.5%!? Do u have telegram/whatsapp/insta?
I see no proxy handler wakelock in gsam so i dont assume its that. Already did that airplane mode reboot and it didnt work.
Click to expand...
Click to collapse
Just by doing what I said...
I was about to send the phone back until I discoveredt this fix. Battery life is great now.
I don't use any of those apps.
xflowy said:
As stated above, it is a doze state that is being entered after the light doze. Check Gsam battery for your stats regarding deep doze.
Click to expand...
Click to collapse
Sounds like a bunch of hooey to me. Light doze, deep doze, medium awake doze.. come on look at your cpu stats and deep sleep when screen is off. If it's not deep sleeping overnight at least 90% then something is keeping the phone awake and you need to find it. Get BBS and look at your alarms and partial wakelocks. You have a runaway program that is constantly waking up your device. Mine was Mi Fit and I tweaked it so it's not awake all night long. Went from 1.8% / hour to 0.4% - 0.7% consistently.
@Napa7m Insta and WhatsApp shouldn't be doing it. Not sure about Telegram but I do recall some issues a year ago and I deleted it from the phone.
bobby janow said:
Sounds like a bunch of hooey to me. Light doze, deep doze, medium awake doze.. come on look at your cpu stats and deep sleep when screen is off. If it's not deep sleeping overnight at least 90% then something is keeping the phone awake and you need to find it. Get BBS and look at your alarms and partial wakelocks. You have a runaway program that is constantly waking up your device. Mine was Mi Fit and I tweaked it so it's not awake all night long. Went from 1.8% / hour to 0.4% - 0.7% consistently.
@Napa7m Insta and WhatsApp shouldn't be doing it. Not sure about Telegram but I do recall some issues a year ago and I deleted it from the phone.
Click to expand...
Click to collapse
you should do some reading
xflowy said:
Thanks everyone!
I did all that. No deep doze tho. And even when I had deep doze when disabling the sim-card entirely, i had more than 1% drain per hour in standby. How tf do u get .2-.5%!? Do u have telegram/whatsapp/insta?
I see no proxy handler wakelock in gsam so i dont assume its that. Already did that airplane mode reboot and it didnt work.
Click to expand...
Click to collapse
Either something is using up power when device should be deep sleeping, or it's just defective.
So he's right, monitor app usage and go from there. The built-in battery stats work well enough. It's how I discovered that 'mobile network standby' was consuming 20-30% over night with nothing going on.
DOn't forget to expand the 'system usage' at the very bottom of 'battery usage'.
xflowy said:
you should do some reading
Click to expand...
Click to collapse
I did and it still sounds like you're looking in the wrong place for your awake status. It's a background process that can't really be tweaked or modified on it's own. But alarms and wakelocks can that's why I said look there first. If your phone is not deep sleeping err.. deep dozing then something is keeping it awake. Find it and you're home free. What kind of deep sleep are you getting overnight?
xflowy said:
As stated above, it is a doze state that is being entered after the light doze. Check Gsam battery for your stats regarding deep doze.
Click to expand...
Click to collapse
Deep sleep = deep doze? My wifi is on and have 4G enabled. This as taken about a month ago but nothing has changed.
Napa7m said:
I had the same problem, dropping 2-3% per hour over night. I turned 5G off, turned off 'mobile data always active' in developer settings and turned off adaptive connectivity.
Now im only losing .2-.5% per hour overnight.
Click to expand...
Click to collapse
I have about the same as you, mobile network standby around 20-25% overnight. I don't turn off 5G but I am connected to wireless with a very good signal. I have mobile data always active enabled as well as adaptive connectivity enabled. What I did to was turn off every adaptive setting in battery settings. Perhaps it's the wifi I'm connected to but I'm getting average 0.5-0.6% drain overnight. Deep sleep around 92 %. As I said, I did see some partial wakelocks and alarms when I was almost 2% / hour and either deleted the apps or figured out how to stop/slow them when not in use.
@bobby janow ok my man. first of all. a read for you, what deep/light doze is: https://www.andreasschrade.com/android-battery-optimisations
and no, its not the same as deep sleep. deep sleep is the cpu frequency.
my phone is now (out of a sudden) going into deep doze overnight, so that seems fine. also wakelocks couldnt have prevented my phone from going into deep doze, cause then, it would have also not gone into deep doze when I had my cd-card disabled (since there should be still wakelocks, when my phone is connected to wifi and all, right
since mobile standby is concerningly huge in the battery stats i assume its the usual culprit, but disabling adaptive connectivity, 5g and enabling that dev option does not help.
tho i am willing to find some wakelocks (since they seem to affect the device also a bit in terms of my standby drain). according to gsam everything is fine in that department, cant really find unusual wakelocks. does bbs show more there? im not very keen in running an adb to make it work...what does that command line do exactly?
thanks!!
@xflowy BBS needs 4 adb commands and it takes about 30 seconds to complete with a copy and paste from his thread. It has two wakelocks stats, kernel and partial. The kernel ones are meaningless to me but the partial tell a lot, you'll see. Also just as important is the alarms stat. It gives you that amount of time an app is firing i.e. wakeups. Check it out see if it helps you. Thanks for the read, but it's beer day today and that looks like it will take all my concentration. Lol.
@xflowy On first read it looks like battery optimization regulates doze mode, right? I mean that's really the only way?
It also happened to me after many tests I have managed to solve it, deactivating the sim card and esim, and restart, then activate the sims and drain solved, it already goes into deep sleep.
I have the exact same issue. I thought I'm the only one. But I'm unable to resolve with this by disabling sim n reboot method. Can anyone suggest if it's hardware fault ?