Related
I searched for Sleep Mode and GPS problems, and of course since those are very common words in most posts, I was having a hard time actually finding if anyone else has my problem.
I am running the most current kernel of FRX03. I have a sprint Rhod400. This problem pre-dates the current kernel, and I am not sure how long it has gone on, because I was having a lot more issues with sleep mode back in the earlier kernels anyway, as I think all people were. I am running with sleep mode set to 1.
Whenever I start a GPS program, usually it is foursquare, when I kill all the apps including foursquare using Advanced Task Killer, the phone will not go back to sleep. I have also looked at the "running services" setting and nothing is running besides Android. It seems to me the GPS stays active even though the GPS icon and all hints that it is actually running ceases to be found. I am guessing this is causing the phone not to go back to sleep. I have not really tested it out with navigation or maps to see if it happens there also, but if my memory serves me right it does.
Any suggestions on possible fixes?
Disable GPS. It's a known bug, which has already been filed on the bugtracker.
If GPS is enabled, phone will not sleep - and I don't mean enabled in that there's the GPS icon in your notification bar, I mean enabled (checked) in Location & Security. Uncheck it there, and the phone will sleep.
This is all interesting, because my RHOD400 seems to sleep just fine (much of the time) with GPS enabled!
gnnash said:
This is all interesting, because my RHOD400 seems to sleep just fine (much of the time) with GPS enabled!
Click to expand...
Click to collapse
Enable GPS, then open an app that uses it. Leave GPS enabled, but close the app. Now try to put your phone to sleep .
I've definitely seen intermittent issues with sleep and GPS. Not sure if it's every time, but I noticed when the phone doesn't sleep, I disable GPS in loc&sec and it'll go to sleep.
The only other serious sleep-related problems I've had is with rogue apps stealing processor cycles and keeping the phone awake.
I'm running NAND were pm.sleepmode = 1.
Yesterday I left my GPS enabled and I seemed to be getting better battery life? Maybe it is just a fluke... But you never know!
I will try it on my other phone running HARET.
Lmiller1708 said:
I'm running NAND were pm.sleepmode = 1.
Yesterday I left my GPS enabled and I seemed to be getting better battery life? Maybe it is just a fluke... But you never know!
I will try it on my other phone running HARET.
Click to expand...
Click to collapse
Well better battery life is probably related to usage.
However, that would be interesting if on NAND the GPS no sleep bug is non-existent...
I honestly haven't tested it in a while. No one has specifically looked at fixing it. I guess it's possible a commit happened to fix it - just usually doesn't work like that .
I use the 11/22/10 XDAndroid build from the .cab and the bug is present. LED doesn't turn from orange to green until I turn off GPS in settings and turn off the screen.
He probably thought that it was sleeping because the screen turned off (I used to think the same thing).
gallahad2000 said:
I use the 11/22/10 XDAndroid build from the .cab and the bug is present. LED doesn't turn from orange to green until I turn off GPS in settings and turn off the screen.
He probably thought that it was sleeping because the screen turned off (I used to think the same thing).
Click to expand...
Click to collapse
No I knew it wasn't sleeping. I know the purpose of the LED being on always(sleep mode debugging). I was just trying to figure out why, and if there was a fix, which there isn't. In the earlier version of XDAndroid builds it was more than just GPS that was causing sleep issues, so back then I didn't think much of it not going to sleep, as I couldn't get more than about 4 hours of battery life out of those builds anyway. Now I am getting at least 12 with heavy usage and way more than that with light usage. So things have improved indeed.
slickdaddy96 said:
No I knew it wasn't sleeping. I know the purpose of the LED being on always(sleep mode debugging). I was just trying to figure out why, and if there was a fix, which there isn't. In the earlier version of XDAndroid builds it was more than just GPS that was causing sleep issues, so back then I didn't think much of it not going to sleep, as I couldn't get more than about 4 hours of battery life out of those builds anyway. Now I am getting at least 12 with heavy usage and way more than that with light usage. So things have improved indeed.
Click to expand...
Click to collapse
Indeed! So that is the fix - disable GPS. It sucks, but it's on the punchlist of things to fix. Unfortunately I don't know of anyone looking at it specifically at the moment, but I'm sure it'll get addressed.
Anyone notice that when you have the screen off and wifi on your downloads from the browser dont continue to download? I have the same issue with dropbox exporting as well. I have the wifi sleep policy to always on (never turn off) in the settings too. Any idea?
I have noticed that also. It doesn't make sense to have the screen on the whole time you are downloading a large file though. I'm assuming the wifi never sleep setting is not working.
Sent from my Galaxy Nexus using XDA App
I have only noticed this with franco.Kernel when the Hotplug option is enabled.
samizad said:
I have only noticed this with franco.Kernel when the Hotplug option is enabled.
Click to expand...
Click to collapse
ah might be the issue, ill try with hotplug off
Did it work?
heavy power saving kicks in when the screen is off, so transfers pretty much drop dead. You'll have to keep the screen on when transferring large files
spamlucal said:
heavy power saving kicks in when the screen is off, so transfers pretty much drop dead. You'll have to keep the screen on when transferring large files
Click to expand...
Click to collapse
I wish there was a way to stop this from happening. Sometimes I transfer a bunch of music from my NAS over SMB. It takes a little time. It's a pain in the rear to keep touching the screen to make sure the transfer doesn't die. It seems like "Keep wifi on during sleep" policy should fix that but it doesn't. What exactly does that setting do if not that?
My guess is that maybe it would be nice if the file explorer apps had a setting to "Keep phone awake while transferring files". I'll have to start looking into that to see if I'm just missing that setting.
I dont know why the wifi sleep policy setting doesnt work for some people. But mine does, wifi stays on with the screen off for hours. I often download large files and it works just fine leaving it idle with screen off.
sorry to hijack - slightly off topic but i lose signal when the screen is off
any thoughts on that also guys?
RogerPodacter said:
I dont know why the wifi sleep policy setting doesnt work for some people. But mine does, wifi stays on with the screen off for hours. I often download large files and it works just fine leaving it idle with screen off.
Click to expand...
Click to collapse
Me too. Noticed randomly that the WiFi started turning off when the screen was off, and it seems the sleep policy was changed automatically somehow... but I switched it back and I haven't had any issues since.
martonikaj said:
Me too. Noticed randomly that the WiFi started turning off when the screen was off, and it seems the sleep policy was changed automatically somehow... but I switched it back and I haven't had any issues since.
Click to expand...
Click to collapse
Mine was set correctly. It appears changing it, exiting settings, then re-enabling it may have fixed it.
Sent from my GSM Galaxy Nexus on TMoUS using Tapatalk
i also face 3g data off when screen is off issue
Wifi Fixer by Zanshin-g1 once you download this app it will monitor your wifi real time and get rid of any connectivity issues when they are about to strike. I found it to be the perfect app to solve wifi issues. I hope it helps you aswell.
[hfm] said:
I wish there was a way to stop this from happening. Sometimes I transfer a bunch of music from my NAS over SMB. It takes a little time. It's a pain in the rear to keep touching the screen to make sure the transfer doesn't die. It seems like "Keep wifi on during sleep" policy should fix that but it doesn't. What exactly does that setting do if not that?
My guess is that maybe it would be nice if the file explorer apps had a setting to "Keep phone awake while transferring files". I'll have to start looking into that to see if I'm just missing that setting.
Click to expand...
Click to collapse
You could use an app like Tasker to set the display timeout to n hours if your file manager app is on the foreground. Add an exit task to reset it to default timeout if the file manager is no longer on the foreground.
So I've been trying to get more life out of my battery, I get decent now, but not the 18+ hours I've seen other people getting. I think the main problem here is, if I go view the Applications -> Battery Usage screen, the "Wi-Fi" and "Awake" bars are always full blue, even when the phone hasn't been touched in a couple hours.
Does anyone know what actually causes these to now sleep? Is it push email? Or some other setting I'm missing?
Thanks
RubenRybnik said:
So I've been trying to get more life out of my battery, I get decent now, but not the 18+ hours I've seen other people getting. I think the main problem here is, if I go view the Applications -> Battery Usage screen, the "Wi-Fi" and "Awake" bars are always full blue, even when the phone hasn't been touched in a couple hours.
Does anyone know what actually causes these to now sleep? Is it push email? Or some other setting I'm missing?
Thanks
Click to expand...
Click to collapse
Look and find out you can start by turning off wifi if not using it post your screen shots of battery use someone may help
Sent from my SPH-D710 using xda premium
RubenRybnik said:
So I've been trying to get more life out of my battery, I get decent now, but not the 18+ hours I've seen other people getting. I think the main problem here is, if I go view the Applications -> Battery Usage screen, the "Wi-Fi" and "Awake" bars are always full blue, even when the phone hasn't been touched in a couple hours.
Does anyone know what actually causes these to now sleep? Is it push email? Or some other setting I'm missing?
Thanks
Click to expand...
Click to collapse
Try Menu/Settings/Wireless and Network/Wi-Fi Settings. Then press Menu/Advanced/Wi-Fi- sleep policy.
Play with those settings. You are probably set to "Never". Folks have actually been reporting better battery life with this setting (powering on and shutting down the wifi eats up battery) You can play around with it to get your own results.
Hit thanks if this helps!
pojieps said:
Try Menu/Settings/Wireless and Network/Wi-Fi Settings. Then press Menu/Advanced/Wi-Fi- sleep policy.
Play with those settings. You are probably set to "Never". Folks have actually been reporting better battery life with this setting (powering on and shutting down the wifi eats up battery) You can play around with it to get your own results.
Hit thanks if this helps!
Click to expand...
Click to collapse
Ah...yes, it is set to never. So leaving it on "never" gets better results, say if you're at home and always have a wifi connection? Also, if the wi-fi is on, does that mean the device can't sleep I take it, that's what's keeping the device awake with screen off?
Thanks for the tip.
RubenRybnik said:
Ah...yes, it is set to never. So leaving it on "never" gets better results, say if you're at home and always have a wifi connection? Also, if the wi-fi is on, does that mean the device can't sleep I take it, that's what's keeping the device awake with screen off?
Thanks for the tip.
Click to expand...
Click to collapse
I've heard both sides to this argument, and frankly I don't think most people understand why changing it does, or in other cases does not help.
I suspect that the answer to your issue isn't going to be found here. Here's the theory:
- Setting wifi policy to "Sleep - Never" results in better battery life for some; it's likely because these individuals have a fairly low 3g signal, which tends to draw more battery when periodic updates/synchronization occurs (e.g., gmail, calendar, facebook, etc.). By leaving wifi Sleep set to never, the wifi (which THEORETICALLY uses less power than 3g) can do the work instead.
- Setting wifi policy to "Sleep - When Screen is Off" can result in better battery life for a number of reasons, many of the underlying issues being hard to identify. For example, if your router tends to send a lot of 'noise' and wake up your phone, having wi-fi disabled will prevent this. Location services in the OS - which you've probably permitted to 'help locate you faster' - even when you are NOT connected to a wifi network - will periodically ping wireless networks around you to help facilitate faster geolocation. This uses battery as well.
But don't confuse the generalities that have spawned from people's anecdotal situations with what could be a very different problem.
Was your phone primarily located in one location during most of the 'awake' period? If so, then it was probably connected to the same router most of that time. If so, it really shouldn't matter what the setting was for Advanced Wifi - the phone should still sleep.
If you turn off wi-fi on the device, and the device then sleeps, then you've narrowed the issue some, but that is not a solution, because what are you going to do, not use wifi?
You've got to dig deeper; your issue may be any of the following - rogue app that keeps a wakelock, rogue app that updates too frequently, wifi modem issue, router issue, OS issue, etc.
In short, you need to figure out what's keeping the phone awake. Get CPU Spy and Better Battery Stats to help you get insight into what's keeping the device awake.
Capp5050 said:
I've heard both sides to this argument, and frankly I don't think most people understand why changing it does, or in other cases does not help.
I suspect that the answer to your issue isn't going to be found here. Here's the theory:
- Setting wifi policy to "Sleep - Never" results in better battery life for some; it's likely because these individuals have a fairly low 3g signal, which tends to draw more battery when periodic updates/synchronization occurs (e.g., gmail, calendar, facebook, etc.). By leaving wifi Sleep set to never, the wifi (which THEORETICALLY uses less power than 3g) can do the work instead.
- Setting wifi policy to "Sleep - When Screen is Off" can result in better battery life for a number of reasons, many of the underlying issues being hard to identify. For example, if your router tends to send a lot of 'noise' and wake up your phone, having wi-fi disabled will prevent this. Location services in the OS - which you've probably permitted to 'help locate you faster' - even when you are NOT connected to a wifi network - will periodically ping wireless networks around you to help facilitate faster geolocation. This uses battery as well.
But don't confuse the generalities that have spawned from people's anecdotal situations with what could be a very different problem.
Was your phone primarily located in one location during most of the 'awake' period? If so, then it was probably connected to the same router most of that time. If so, it really shouldn't matter what the setting was for Advanced Wifi - the phone should still sleep.
If you turn off wi-fi on the device, and the device then sleeps, then you've narrowed the issue some, but that is not a solution, because what are you going to do, not use wifi?
You've got to dig deeper; your issue may be any of the following - rogue app that keeps a wakelock, rogue app that updates too frequently, wifi modem issue, router issue, OS issue, etc.
In short, you need to figure out what's keeping the phone awake. Get CPU Spy and Better Battery Stats to help you get insight into what's keeping the device awake.
Click to expand...
Click to collapse
Thank you for that very informative post. My phone was on my desk all day today( worked from home ) and wi-fi is set to always on, and it never slept, not even once.
I'll try disabling wi-fi( should have done this earlier to be honest and checked ) and then I'll download those apps, I just got Badass Battery Monitor, I'll check out the two you recommended as well. Thanks for the info!
Your phone should still go into deep sleep with wifi on. If it doesn't then you have something else wakelocking your phone. However, if wifi is set to never sleep, and wifi is enabled, the bar on the battery chart will always be solid blue.
So just installed CPU Spy, it looks like IM+ is the biggest user of wakelocks. I like to always be signed in to my accounts, but not at such a huge cost of battery, does anyone know of a better multi IM client that will push updates to you? I used to have IM+ on the iPhone( yea I know, just switched two months ago, and never looking back ) and the push on it worked great. The 'push' IM+ says it has is awful, most of the time I never get my IMs sent to me at all.
Also have skype signed on all the time, not sure if that is wakelock'ing anything, I'll have to keep an eye on it, it didn't show up on CPU Spy.
Try IMO, free from the Android Market. Its a multi-IM client that combines most common clients including Skype. I've used it. It creates some wakelocks, but not sufficient to wake the phone. I don't use IM very often so I'd be curious to hear how it works for you.
Capp5050 said:
Try IMO, free from the Android Market. Its a multi-IM client that combines most common clients including Skype. I've used it. It creates some wakelocks, but not sufficient to wake the phone. I don't use IM very often so I'd be curious to hear how it works for you.
Click to expand...
Click to collapse
Thanks ... Giving it a try today, I'll let you know how it goes.
Capp5050 said:
Try IMO, free from the Android Market. Its a multi-IM client that combines most common clients including Skype. I've used it. It creates some wakelocks, but not sufficient to wake the phone. I don't use IM very often so I'd be curious to hear how it works for you.
Click to expand...
Click to collapse
So been trying IMO the past couple days. Seems much better than IM+. Haven't seen any disconnects, I get my IMs about 30sec - 1min after the computer gets them, which is fine, and the wake-locking is extremely minimal. IM+ was awful with the wake-locking.
So that clears up the Always awake issue, flashed Blazer 3.8 last night, so can't comment on battery too much yet, also calibrating today.
RubenRybnik said:
So been trying IMO the past couple days. Seems much better than IM+. Haven't seen any disconnects, I get my IMs about 30sec - 1min after the computer gets them, which is fine, and the wake-locking is extremely minimal. IM+ was awful with the wake-locking.
So that clears up the Always awake issue, flashed Blazer 3.8 last night, so can't comment on battery too much yet, also calibrating today.
Click to expand...
Click to collapse
Thanks for the feedback, glad to hear it helped, and I now feel a little more confident leaving my IM 'on' more often.
Anyone have an issue with the WiFi sleep policy changing randomly? It seems I have to keep setting it to only stay connected when plugged in. It will save the setting for a while, but then after a day or two I'll notice a big amount of battery drain throughout the day and sure enough WiFi stayed on and the setting has been set to Always On.
Currently running ICS but I have had this issue on 3.2 and 3.2.1.
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.