Force Nexus 4 to stay awake when screen is off? - Nexus 4 Q&A, Help & Troubleshooting

I am using Cyanogenmod on Nexus 4 to perform some current measurements.
Now I have one problem where Nexus 4 will go to sleep whenever I disconnect USB cable (with screen turned off). The idle current goes down to almost zero (from 0.10A) and anything that I started to execute over adb finishes only when I turn on the screen or connect USB back to Nexus 4.
Does anyone know how I can fix this and force Nexus 4 to stay awake when I turn off the screen?

Anyone? Is there some settings in Android/Cyanogenmod that I can set?

Play a tune or something.
Or I bet there's an app in the app store.

kdar1987 said:
I am using Cyanogenmod on Nexus 4 to perform some current measurements.
Now I have one problem where Nexus 4 will go to sleep whenever I disconnect USB cable (with screen turned off). The idle current goes down to almost zero (from 0.10A) and anything that I started to execute over adb finishes only when I turn on the screen or connect USB back to Nexus 4.
Does anyone know how I can fix this and force Nexus 4 to stay awake when I turn off the screen?
Click to expand...
Click to collapse
Try SafeCharge application and there is a setting to keep a wakelock manually so that the phone won't sleep with screen off

orangeyes said:
Try SafeCharge application and there is a setting to keep a wakelock manually so that the phone won't sleep with screen off
Click to expand...
Click to collapse
Thanks. That's pretty much how I solved my problem.
I downloaded app that enables wake lock. Before device would always go into standby mode and lock everything up.
The idle current was pretty low with wake lock enabled (like 22mA)... not sure if this is normal.

Related

How to keep the N1 from locking?

How can I turn off auto locking when the Nexus One is being charged? Because In the car it gets annoying if it keeps locking.
Go to settings then applications then development and check the box to have it stay awake while plugged in
Sent from my Nexus One

Wifi sleep once screen shuts down

Wifi Sleep when locked not working
Hello, I have a problem, my wifi sleep policy is turned on to "when screen turns off" but when my phone is locked, the wifi is still on! I just pressed the lock button after 5-10 mins but the wifi is still on.
How long does it take for you for the wifi to turn off?
Any suggestions?
Sent from my Nexus S using XDA App
Not a suggestion as such but I'm reading that using the wifi sleep policy is detrimental to the battery life. Can't confirm as I'm still experimenting.
Yeah battery life is destroyed if you use WiFi sleep policy. Set it to never for best battery life. It's counter intuitive.
But to answer your question, I think it takes closer to half hour for sleep policy to kick in. You would notice WiFi off if you woke up in the morning etc or after long periods like hours of inactivity.
tempera said:
Hello, I have a problem, my wifi sleep policy is turned on to "when screen turns off" but when my phone is locked, the wifi is still on! I just pressed the lock button after 5-10 mins but the wifi is still on.
How long does it take for you for the wifi to turn off?
Click to expand...
Click to collapse
I'm having the opposite issue. As soon as my screen goes off I lose WiFi connectivity and get disconnected on adbWireless which is a huge pain for me when I'm developing... Maybe I'll enable sleep policy and see if that fixes my issue! Lol! I'm on stock 2.3.1
Anderdroid said:
I'm having the opposite issue. As soon as my screen goes off I lose WiFi connectivity and get disconnected on adbWireless which is a huge pain for me when I'm developing... Maybe I'll enable sleep policy and see if that fixes my issue! Lol! I'm on stock 2.3.1
Click to expand...
Click to collapse
There's an option in Settings>Application Settings>Development to not turn the screen off when charging, that should solve your adbWireless problem so long as your phone is charging.
tempera said:
Hello, I have a problem, my wifi sleep policy is turned on to "when screen turns off" but when my phone is locked, the wifi is still on! I just pressed the lock button after 5-10 mins but the wifi is still on.
How long does it take for you for the wifi to turn off?
Click to expand...
Click to collapse
this is exactly how it works on the Galaxy S
there is an option in settings to keep WiFi on when the screen is Off in the SGS
but not sure if the NS has the same option (still waiting for my phone to arrive)
littlesthobo said:
There's an option in Settings>Application Settings>Development to not turn the screen off when charging, that should solve your adbWireless problem so long as your phone is charging.
Click to expand...
Click to collapse
That's only if I'm doing adb over USB. I hate wires
I went to my wifi setting to make my wifi sleep once my screen shuts off but the setting doesn't stay. Is there a fix to this by any chance? Want my wifi to always sleep when my screen shuts off......
Believers b3ar fruit with their Nexus S.....
B3arfruit said:
I went to my wifi setting to make my wifi sleep once my screen shuts off but the setting doesn't stay. Is there a fix to this by any chance? Want my wifi to always sleep when my screen shuts off......
Believers b3ar fruit with their Nexus S.....
Click to expand...
Click to collapse
What do you mean it doesn't stay, it changes the setting to something else? When you have wifi set to sleep on screen off, it doesn't sleep immediately once the screen goes off, it takes awhile. I use "sleep when screen off" and I get great battery life.
Wait so is it good that my wifi turns off when my phone sleeps or not?
tominater12 said:
Wait so is it good that my wifi turns off when my phone sleeps or not?
Click to expand...
Click to collapse
it depends on what you want
if you want to maintain connectivity then it's no good
if you want to save power, then it is good
ikon8 said:
What do you mean it doesn't stay, it changes the setting to something else? When you have wifi set to sleep on screen off, it doesn't sleep immediately once the screen goes off, it takes awhile. I use "sleep when screen off" and I get great battery life.
Click to expand...
Click to collapse
Once I turn my screen off than turn it back on after a while my setting goes back to never even after I change the setting to shut wifi off once I shut off screen. Weird bit it does. I read in another forum that it saves battery but my setting keep changing back.
Believers b3ar fruit with their Nexus S.....
Wi-Fi connectivity lost when screen goes off.
Anderdroid said:
As soon as my screen goes off I lose WiFi connectivity and get disconnected. Maybe I'll enable sleep policy and see if that fixes my issue! Lol! I'm on stock 2.3.1
Click to expand...
Click to collapse
I've the same issue. I've try various app from the market for fix that, but all is the same. It's a hardware problem? The router will can cause this problem?
Thanks

[Q] Screen off while charging in CM7

Did anyone ever solve the issue of the screen never turning off while charging in CM7? Still seems there in 7.2. Is there any workaround for this besides simply pressing the power button after plugging in the charger? I've turned off "stay awake" and debugging, but they didn't make any difference.
I noticed that before, but now on mirage 7.2 the screen will stay off once I turn out off. At least I have not noticed it.
Sent from my MB860 using xda app-developers app
It's not a problem of the screen staying off - they all do that. The problem is that the screen won't automatically turn off.
Turn the option ti keep screen on while plugged in off in settings/development
Sent from my SPH-D710 using xda app-developers app
doncaruana said:
I've turned off "stay awake" and debugging, but they didn't make any difference.
Click to expand...
Click to collapse
krylon360 said:
Turn the option ti keep screen on while plugged in off in settings/development
Click to expand...
Click to collapse
Isn't that the same thing I mentioned? The one I mentioned is under settings->Applications->Development. Is there a different one?
I think it must be a bug in CM7. I was able to successfully turn off the 'stay awake' toggle in CM9 and it turned the screen off after the display timeout while charging. But choosing the same setting in CM7.2 stable caused the screen to dim after the display timeout like it was getting ready to turn off, but just stayed dim and never did completely turn off while charging.
leapinlar said:
I think it must be a bug in CM7. I was able to successfully turn off the 'stay awake' toggle in CM9 and it turned the screen off after the display timeout while charging. But choosing the same setting in CM7.2 stable caused the screen to dim after the display timeout like it was getting ready to turn off, but just stayed dim and never did completely turn off while charging.
Click to expand...
Click to collapse
That's what I found as well. I found an old thread around here stating it was a kernel bug. Looks like it's one that was never fixed.
Slightly off topic, but is CM9 useable as it stands? When I played with it about a month and half ago, it was far too laggy to be used (for me at least).
doncaruana said:
Slightly off topic, but is CM9 useable as it stands? When I played with it about a month and half ago, it was far too laggy to be used (for me at least).
Click to expand...
Click to collapse
I haven't used just straight CM9 in a while, but the ParanoidAndroid based on the latest non-opengl build works great. I was having trouble with the prior PA build using opengl.
If I manually turn my screen off while charging (CM7), it immediately turns back on, and stays on. Not sure what's going on there but I'm having a number of odd issues with my Nook.

phone won't enter sleep on it's own

All,
I've got a stock Nexus 6P, Android 6.0.1, build MHC19Q.
Sometimes the phone will go to sleep and sometimes it won't. In the settings, Display Sleep setting I have 30 seconds as the value, but I've seen my phone stay on for way longer, sometimes until I hit the power button.
I've tried several changes to the time but it doesn't seem to help the times it stays on, it just changes the time for the sleep when it does work.
To explain exactly, when I stop using my phone and I'm on the home screen, if I leave the phone alone for several minutes, it will not sleep, no matter what value I put in the setting. Other times it seems to sleep without a problem.
I've not been able to determine if some app is holding it awake, and I don't see any pattern the would point to any other condition that keeps the phone awake.
I looking for additional ideas to troubleshoot the problem, it just stays on and runs down the battery.
Ideas?
MB
Download and install GSAM. It will tell you specifically which app is keeping the screen on.
If it days Android, System, or Media Playback is the highest, it may be a tweak / custom rom / kernel issue.

Data connection goes off when phone is idle.

I have noticed this frequently. When the phone is in idle state, all data connection (wifi or mobile date) goes to sleep. It's only after i turn screen on or go to lock screen that the connection gets back. So much so that even google reminders don't come through in idle state. This is extreemely frustrating. I haven't even put the phone on any power saving mode. Even the wifi settings don't show any options to keep the connection always alive even if screen is off. Defeats the purpose of having a smart phone. Does any one have any solutions?
Asus sucks at network
Not sure if happened with mine also but if i turn off the screen when using youtube and turn it on then the app shows "no internet connection" for a moment and gets back to normal
are u using any custom rom / kernel
noob858 said:
I have noticed this frequently. When the phone is in idle state, all data connection (wifi or mobile date) goes to sleep. It's only after i turn screen on or go to lock screen that the connection gets back. So much so that even google reminders don't come through in idle state. This is extreemely frustrating. I haven't even put the phone on any power saving mode. Even the wifi settings don't show any options to keep the connection always alive even if screen is off. Defeats the purpose of having a smart phone. Does any one have any solutions?
Click to expand...
Click to collapse
Same here
anandushari said:
are u using any custom rom / kernel
Click to expand...
Click to collapse
None. All stock.

Categories

Resources