[Q] major wakelock...0 deep sleep - Sprint HTC One (M7)

Has anyone had a "switch_network_mode_wakelock" my phone is not entering deep sleep at all. It's awake all day

theultimatev said:
Has anyone had a "switch_network_mode_wakelock" my phone is not entering deep sleep at all. It's awake all day
Click to expand...
Click to collapse
Try Wake Lock-PowerManger by darken in the Play Store, I set it to WIFI_MODE_FULL_HIGH_PREF

Related

[Q] Deep sleep issue in CM 6.3.2

Hi there,
i have a problem with my milestone and cyanogenmod 6.3.2 (and the same in earlier versions of this rom).
After flashing the rom, deep sleep works for a few hours, and after that, without doing anything special, my phone doesnt go to deep sleep at all.
When i take a look at the battery stats, there is "running" with 100 percent, and partial wake usage is fully accounted to "android system".
I tried to restart after charging the phone, but it doesnt help. With stock rom, i have normal deep sleep accounting for about 80 percent of usage time.
Anyone has an idea how to fix it?
auber45 said:
Hi there,
i have a problem with my milestone and cyanogenmod 6.3.2 (and the same in earlier versions of this rom).
After flashing the rom, deep sleep works for a few hours, and after that, without doing anything special, my phone doesnt go to deep sleep at all.
When i take a look at the battery stats, there is "running" with 100 percent, and partial wake usage is fully accounted to "android system".
I tried to restart after charging the phone, but it doesnt help. With stock rom, i have normal deep sleep accounting for about 80 percent of usage time.
Anyone has an idea how to fix it?
Click to expand...
Click to collapse
What app you used to see this "battery stats"? If you have a SS or a LOG it would help us to help you.
it's the built-in battery history that can be accessed via spare-parts. i dont know if and where this is logged somewhere as a file.
more information to deep sleep problem
auber45 said:
Hi there,
i have a problem with my milestone and cyanogenmod 6.3.2 (and the same in earlier versions of this rom).
After flashing the rom, deep sleep works for a few hours, and after that, without doing anything special, my phone doesnt go to deep sleep at all.
When i take a look at the battery stats, there is "running" with 100 percent, and partial wake usage is fully accounted to "android system".
I tried to restart after charging the phone, but it doesnt help. With stock rom, i have normal deep sleep accounting for about 80 percent of usage time.
Anyone has an idea how to fix it?
Click to expand...
Click to collapse
After updating to 6.3.3 I figured out that deepsleep worked until the first reboot. I also noticed that, after restoring 6.3.2 with nandroid, deepsleep also worked before I rebooted for the first time.
Anyone has the same problem or any suggestions (except 'dont ever reboot')?
I had the same issue on 6.3.2. After upgrading to 6.3.3 and playing with wifi settings the deep sleep started to work. One more thing I did was going into sleep mode with CMMod extended button (Zzz on notification bar)
zwirek75 said:
I had the same issue on 6.3.2. After upgrading to 6.3.3 and playing with wifi settings the deep sleep started to work. One more thing I did was going into sleep mode with CMMod extended button (Zzz on notification bar)
Click to expand...
Click to collapse
thanks for your response. can you tell me what exactly you did with wifi settings? i also tried going to sleep mode with Zzz button in notification bar, but it doesnt work (screen turns black, but cpu runs at 250 mhz, and no deep sleep).

How to go into deep sleep

I'm on cyanogenmod 7.2 RC5.7. I just can't figure out how to make my phone into deep sleep. I searched the forum and they didn't say how can I make my android phone into deep sleep
RayQXX said:
I'm on cyanogenmod 7.2 RC5.7. I just can't figure out how to make my phone into deep sleep. I searched the forum and they didn't say how can I make my android phone into deep sleep
Click to expand...
Click to collapse
the phone goes automatically into deep sleep download cpuspy to check if ur phone goes into deepsleep
deep sleep must be included in the kernel then use ns tool to start the deep sleep service

No deep sleep -> how to identify the cause?

Hey guys --
I did a search and while there is much discussion of deep sleep problems, there is no clear way I could easily find to identify the cause.
I have CM7.20, the MiRaGe latest build on my NC, with the settings listed in my thread (see the sig). Recently I noticed that it is not entering into deep sleep, indicated by losing ~20% battery while it is asleep overnight in about 8 hrs. Battery results tell me it's "WiFi" taking like 30% of the battery, which seems quite odd, since I had it set to turn off WiFi while the screen off unless connected to the charger.
Any clues on how to identify the problem with deep sleep?
As for usage, I am using my NC 99% of the time with the following apps:
Moon+ Reader (probably 70% of time)
YouVersion Bible app (most of the rest of the time)
Dolphin Browser HD (maybe 2% of the time)
Enhanced Email and MailDroid - very occasionally but they are checking mail on 15 min intervals when wifi is on.
I have a ton of other apps installed but I almost never use them except for these.
Any help on how to determine what is causing the NC to not go into deep sleep will be immensely helpful. I have a 2-week Euro business trip coming up next month and I would really like to solve this before then.
Thanks!
Better Battery Stats might help. Try turning off sync before bed and see if you still lose 20%. If so, it's definitely some app that's the culprit. Grab something that will tell you what program is using data and how much/how often and you should be able to isolate it pretty quick.
mr72 said:
Hey guys --
I did a search and while there is much discussion of deep sleep problems, there is no clear way I could easily find to identify the cause.
I have CM7.20, the MiRaGe latest build on my NC, with the settings listed in my thread (see the sig). Recently I noticed that it is not entering into deep sleep, indicated by losing ~20% battery while it is asleep overnight in about 8 hrs. Battery results tell me it's "WiFi" taking like 30% of the battery, which seems quite odd, since I had it set to turn off WiFi while the screen off unless connected to the charger.
Any clues on how to identify the problem with deep sleep?
As for usage, I am using my NC 99% of the time with the following apps:
Moon+ Reader (probably 70% of time)
YouVersion Bible app (most of the rest of the time)
Dolphin Browser HD (maybe 2% of the time)
Enhanced Email and MailDroid - very occasionally but they are checking mail on 15 min intervals when wifi is on.
I have a ton of other apps installed but I almost never use them except for these.
Any help on how to determine what is causing the NC to not go into deep sleep will be immensely helpful. I have a 2-week Euro business trip coming up next month and I would really like to solve this before then.
Thanks!
Click to expand...
Click to collapse
envygreen said:
Better Battery Stats might help. Try turning off sync before bed and see if you still lose 20%. If so, it's definitely some app that's the culprit. Grab something that will tell you what program is using data and how much/how often and you should be able to isolate it pretty quick.
Click to expand...
Click to collapse
OK, but it should be turning off wifi, and therefore sync for ALL apps, when it is asleep. Can an app override this setting? That's my guess, is some app is doing this. How can I ID that?
mr72 said:
OK, but it should be turning off wifi, and therefore sync for ALL apps, when it is asleep. Can an app override this setting? That's my guess, is some app is doing this. How can I ID that?
Click to expand...
Click to collapse
Like envygreen said use that app to track wakelocks. Even if wifi is off, some app may be applying a wakelock to try to sync.
leapinlar said:
Like envygreen said use that app to track wakelocks. Even if wifi is off, some app may be applying a wakelock to try to sync.
Click to expand...
Click to collapse
Alright, I'm on it
So last night I finished charging it and read for a couple of minutes, then put it to sleep to see how it went overnight.
My Wi-Fi sleep policy is set to turn off wifi when the display is off.
When I got up this morning I checked it and it had lost over 10% battery over night, and I checked BetterBatteryStats and I think it is going into deep sleep but maybe not shutting off wifi.
I have attached the screenshots from BetterBatteryStats, and I think I need help interpreting them and finding the cause.
ok, so here I am replying to my own thread... If I am reading this right it seems to be looking like my wifi is on the entire time, not only when the screen is on. Is this the right way to read this? In this case, it looks like "Wi-Fi sleep policy" being set to "When screen turns off" is not actually working... right?
mr72 said:
ok, so here I am replying to my own thread... If I am reading this right it seems to be looking like my wifi is on the entire time, not only when the screen is on. Is this the right way to read this? In this case, it looks like "Wi-Fi sleep policy" being set to "When screen turns off" is not actually working... right?
Click to expand...
Click to collapse
It sure looks that way to me too. It says wifi on 8 hours. Did you try toggling the setting a few times? Also you are on Mirage and he may have done something in his tinkering that messed that setting up.
leapinlar said:
It sure looks that way to me too. It says wifi on 8 hours. Did you try toggling the setting a few times? Also you are on Mirage and he may have done something in his tinkering that messed that setting up.
Click to expand...
Click to collapse
yeah I did toggle the setting on and off, and in fact before I had it set to "On during sleep if plugged" for a long time, recently changed it, thinking maybe this was the cause.
But it does appear that maybe this is what is killing the battery. There doesn't appear to be any network activity when the screen is off, just looks like the wifi radio is powered up.
Any advice?
mr72 said:
yeah I did toggle the setting on and off, and in fact before I had it set to "On during sleep if plugged" for a long time, recently changed it, thinking maybe this was the cause.
But it does appear that maybe this is what is killing the battery. There doesn't appear to be any network activity when the screen is off, just looks like the wifi radio is powered up.
Any advice?
Click to expand...
Click to collapse
Switch to CM7.2 stable?
leapinlar said:
Switch to CM7.2 stable?
Click to expand...
Click to collapse
Hmm. that seems like an extreme step, but maybe ... wonder how much of the snappiness I will lose.
EDIT: OK I switched to CM7.2 stable. Nice I didn't seem to lose any settings. Let's see how it goes. Thanks for the advice, I'll report back here if it still does the same thing.
Also uninstalled beautiful widgets... figured maybe that could be causing an issue.
Oh, and I probably had a SOD kernel patch applied... perhaps that was the problem too
guess I should change only one variable at a time for a good test, but in reality I just want to get it fixed and not really diagnose it.
I was having a similar problem...what I did was run the V6 supercharger script, granted i am running CM9 atm but it took care of any problems I had with battery life and wifi signal.
Question: does having WiFi on keep the phone from going into deep sleep at all?
I have found that my phone is not going into deep sleep. I checked what is holding wake locks, and the time with wake locks is way less than the time the phone has the screen off, so it appears it is not deep sleeping, even though there are not wake locks.
I have an extended battery, so I get good battery life, but always interested in improving it. But I also have this thought that if I have to turn everything off, and only synch when I turn the screen on, that is not ideal either.
ewingr said:
Question: does having WiFi on keep the phone from going into deep sleep at all?
I have found that my phone is not going into deep sleep. I checked what is holding wake locks, and the time with wake locks is way less than the time the phone has the screen off, so it appears it is not deep sleeping, even though there are not wake locks.
I have an extended battery, so I get good battery life, but always interested in improving it. But I also have this thought that if I have to turn everything off, and only synch when I turn the screen on, that is not ideal either.
Click to expand...
Click to collapse
Get CpuSpy free on play store. It will tell you exactly how much deep sleep you are getting.
Having wifi on all the time should not prevent deep sleep. Only when things use it does it come out of deep sleep.
leapinlar said:
Get CpuSpy free on play store. It will tell you exactly how much deep sleep you are getting.
Having wifi on all the time should not prevent deep sleep. Only when things use it does it come out of deep sleep.
Click to expand...
Click to collapse
I have CPUSpy Free, and that is how I know I am not getting deep sleep. My challenge now is to identify why.
OK, so it seems that CM7.20 stable definitely fixes things. I didn't flash the SOD fix, so maybe the SOD fix was preventing deep sleep before, or maybe something else in the kang build was preventing deep sleep with wifi on when the screen is on.
However the better battery stats still seems to say my wifi is never actually going off. I am not sure I am interpreting the results correctly. It looks like the wifi is on all the time even though it's set to turn off when the screen is off. But I can let the NC sit on my night stand overnight and lose only a couple of % where it was like 10+% before. I still think my problem was due to some app that updated and not the ROM because the problem started weeks after I last updated the ROM.

Apps getting closed when phone goes into sleep.

I've tried everything I can think of to keep the apps from being closed when the phone goes into deep sleep. Turned off app battery optimizations, turned off "put apps to sleep" turned it on and set it for 7 days. Locked apps in recents and they still get closed. Anyone else seeing this? S10 Plus 12gb here so there shouldn't be an issue. Ideas?
I'm having the same issue. S10 here. Done the same things, Dropbox goes offline, Skype and other apps.
Is this like an overnight issue? Because there's a by default setting that will close all apps at 3 in the morning to optimize the device... If it's not happening overnight then you might want to look into other causes - although deep sleep itself shouldn't have any effect on apps.
Turned off that optimization setting, seems mostly games get closed when going into deep sleep. Really annoying because I have all that ram to spare.
Chengbyarmbar said:
Turned off that optimization setting, seems mostly games get closed when going into deep sleep. Really annoying because I have all that ram to spare.
Click to expand...
Click to collapse
Which optimization setting you turned off?
denzel09 said:
Which optimization setting you turned off?
Click to expand...
Click to collapse
Everyone I could find. Auto optimization off, adaptive battery off, put unused apps to sleep off

Question Battery Drain - Deep Sleep Issue - Redmi Note 10 Pro

Hello,
I am using the Redmi Note 10 Pro, OS - DotOS 5.1.3
My phone is not going to deep sleep, heavy battery drain, 2% battery drain every hour (When the screen is off).
Any help will be appreciated.
I have attached the batterystats.
On BBS, look at Wake Locks and Partial Wake Locks. What is at the top of those screens?
EEngineer said:
On BBS, look at Wake Locks and Partial Wake Locks. What is at the top of those screens?
Click to expand...
Click to collapse
i have run the BBS for 30 mins (when the screen is off). please have a look on the attached images and please guide what is the issue.
You're getting a lot of power manager wakelocks instead of an app wakelock. I'm not familiar with DotOS but I'm guessing you have a widget and/or a background app that is behaving badly and rudely waking up your device.
I'd disable background data for some or all of your apps and see if that makes a difference. Also from looking at your battery stats if you have a Google search widget on the desktop remove that and see if that helps.
EEngineer said:
You're getting a lot of power manager wakelocks instead of an app wakelock. I'm not familiar with DotOS but I'm guessing you have a widget and/or a background app that is behaving badly and rudely waking up your device.
I'd disable background data for some or all of your apps and see if that makes a difference. Also from looking at your battery stats if you have a Google search widget on the desktop remove that and see if that helps.
Click to expand...
Click to collapse
Thanks for the Help.
But i have got the solution.
The Solution to deep sleep in any custom rom is -
1. Disable AOD
2. Disable Edge lightning (generally disabling everything related to AOD).
3. Diable Pocket Mode (Very important)
reboot the device.
and Deep Sleep issue will be fixed after that.
Mayank170989 said:
Thanks for the Help.
But i have got the solution.
The Solution to deep sleep in any custom rom is -
1. Disable AOD
2. Disable Edge lightning (generally disabling everything related to AOD).
3. Diable Pocket Mode (Very important)
reboot the device.
and Deep Sleep issue will be fixed after that.
Click to expand...
Click to collapse
Since you have already rooted.Try servicely and naptime together for better bb and deep sleep.
w
RVSingh said:
Since you have already rooted.Try servicely and naptime together for better bb and deep sleep.
Click to expand...
Click to collapse
will give it a try, thanks.

Categories

Resources