A note about WiFi sleep policy - Wildfire Android Development

Just wanted to put this here for the record in case it comes up at a later date.
The Wildfire suffers from the same symptoms of WiFi sleep policy being incorrectly followed as detailed at: http://forum.xda-developers.com/showthread.php?t=727332 when the screen is off.
The only available fix as of this post is to modify the kernel source.
Best,
Martin

hmm i am having the issue with my nexus one at my home router at home
but at the same router i dont have the issue with my wildfire

Related

is there a fix for wifi going to sleep

I have tried all current fix's i have found on this site and none of them work is there some thing i am missing thanks .
The spare parts setting works well for me, not 100% of the time, but enough that it doesnt bother me.
I'm looking too....
Spare parts fix did't help me either
Grab Settings Profile Lite from the market. Set WiFi off when Screen off in the rules. Now Wifi will turn on and off with the screen. Fixed all my WiFi issues.
I also have Spare Parts set to Never.
ThrowingKs said:
Grab Settings Profile Lite from the market. Set WiFi off when Screen off in the rules. Now Wifi will turn on and off with the screen. Fixed all my WiFi issues.
I also have Spare Parts set to Never.
Click to expand...
Click to collapse
Correct me if I'm wrong, but I think that is exactly what the OP doesn't want.
I think he wants the wifi to stay on when he powers the screen back on, instead of having it disconnect when the screen turns back on.
The Nook I believe loses the connection when you turn on the screen.
ThrowingKs said:
Grab Settings Profile Lite from the market. Set WiFi off when Screen off in the rules. Now Wifi will turn on and off with the screen. Fixed all my WiFi issues.
I also have Spare Parts set to Never.
Click to expand...
Click to collapse
Thats how the NC works by default.
Spare parts did not work for me at all. I set it to always on and it still shuts off.
eggman618 said:
Correct me if I'm wrong, but I think that is exactly what the OP doesn't want.
I think he wants the wifi to stay on when he powers the screen back on, instead of having it disconnect when the screen turns back on.
The Nook I believe loses the connection when you turn on the screen.
Click to expand...
Click to collapse
That is what this does. When the screen is on, the WiFi is on. When the screen is off, the WiFi is off. It got rid of all my intermittent issues.
ThrowingKs said:
That is what this does. When the screen is on, the WiFi is on. When the screen is off, the WiFi is off. It got rid of all my intermittent issues.
Click to expand...
Click to collapse
How long have you been running this fix? I ran it for 10 days or so and started having issues, basically it quit working.(would turn off but not back on). Are you using it with spare parts? I am still looking for a permanent solution.
^ I have had it for probably a week and a half. I do also use Spare Parts with WiFi Sleep set to Never.
I also have my Nook set to DHCP, and my DD-WRT router set to give a "Static DHCP" to my Nook.
http://www.dd-wrt.com/wiki/index.php/Static_DHCP
ThrowingKs said:
^ I have had it for probably a week and a half. I do also use Spare Parts with WiFi Sleep set to Never.
I also have my Nook set to DHCP, and my DD-WRT router set to give a "Static DHCP" to my Nook.
http://www.dd-wrt.com/wiki/index.php/Static_DHCP
Click to expand...
Click to collapse
Thanks, will look at this when I have time.
Wifi Lock works for me...
Ok.. I read all the posts I could find and installed Wifi Lock, this is the only one I tested and works great for me. (Tested using Pandora radio)
This is what I did:
1- Install Wifi Lock (Android Market)
2- Reboot Nook Color
3- Go to your Extras and run the app. (It doesn't have a user interface, it only displays a message every time you click on it: Default / Never)
4- If you are using Advanced Task Killer (or any other) make sure you deselect Wifi Lock and add it to your Ignore List (I did it right away, I guess that's a VERY important step)
I just tested it several times for about an hour using Pandora radio, I have no idea how much it will drain the battery... If something goes wrong I'll let you know...

[Q] NC Rooted 1.1 WiFi not reconnecting after sleep

My rooted NC 1.1 has stopped reconnecting automatically to my wifi network after sleep. It had been working fine for a while so I am not sure what changed. To get it to reconnect I either need to toggle the wifi on/off or select the network using wifi settings. After that it is fine. If I just put it to sleep and turn it back on after a minute or so it connects fine. The problem occurs after several minutes (say 10) of sleep.
I have deleted all my network connections, rebooted and then connected to my network with no change. Again this had been working fine in its current state.
I then reimaged it to a known working 1.1 image using CWR but the wifi issue remains.
This is more nuisance then anything else but it sure is annoying.
Look forward to any suggestions since I dont know what else to try.
Bob Silver
NC 1.1 rooted 1.1ghz
Ipad 3g 4.2.1
Iphone 4 IOS 4.1 jailbroken
same problem here, sometimes it works but after waiting too long it doesn't reconnect. I think after being asleep so long it just fails to refresh/rescan. Kind of silly they dont have a rescan/refresh button in the wifi settings...
You can try going into Settings/Wireless/Wifi Settings/hit the menu again and go to Advanced, set the sleep option to Never. This helps but it still shuts off the wifi after being locked for a few minutes.
The fix I use is called "SoftLocker Free" in the market. This basically prevents it from sleeping, but still allows the screen to turn off. It draws more power from the battery since the wifi stays on, but I've had good luck with it.
Strange question, but do you have AT&T? I've seen a ton of folks with non-rooted nooks have this issue on the official Barnes and Noble forum, all with Uverse.
No i am not using att.
Thanks for the tips so far.
Bob
ZTE blade has a similar issue, there's a couple of workarounds.
1. Keep the device awake when screen is off (holds wifi connection but uses battery power)
2. Automatically toggle wifi when you turn the screen back on.
I've made an app that does (1.) when you leave wifi on and turn the screen off. (similar to softlocker, but it automatically grabs the lock when wifi is left on and has other features). Search for "Advanced wifi lock"
If you want (2.) grab "Blade wifi fix".
This seems to be common among Android devices judging by the sheer volume of WiFi fix and Wifi lock applications in the market. Now, we just have to figure out which one works better with NookColor. Free would be better of course
Mine does it as well - WiFi on after waking up. Can stay awake for 10 minutes not connecting, bus as soon as I'll go to wireless settings, I can see it obtaining IP immediately. I also noticed it goes away from time to time and comes back by itself.

[Q] CM7 shutdown issue

Have anyone other than me experienced that the phone suddenly is turned of? It's not the BSOD or reboot, but just turned off and can be turned on right away..
I've saw it yesterday when it was in my pocket, and this morning when i woke up.
I'm using the CM7 RC1 ROM straight from the box.
Yes. I get this to... (With every build of CM that is)
Same happens to me also with the latest CM7.
Me and my brother also get this, started with cm7 57 I think
Sent from my Optimus 2X using Tapatalk
Does anyone know how to use ADB to log? Then we could maybe capture some logs when this happens and post to aremcee to see if he can help us..
The same thing has happend to me 2 times in the week a have had this replacement device. It's worse than the one I traded this one for
But I'm on stock havn't rooted or anything.
Just had a BSOD aswell.. Gotta hate this phone. It's works on stock so I can't send it to my dealer and get my money back
Install a Froyo Rom
Profit.
My findings on the CM7 sod (sleep of death) issue (I post this here, as I don't have enough posts to post it to dev area):
I've been using CM7 occasionally since the first nightly. About 2 months ago I suddenly had 3 sods in 2 days. This was after I bought JuiceDefender Ultimate. In JD I had sync enabled once per hour, and JD set to first try to connect to wifi and then mobile data. In Android wifi settings I had wifi sleep policy set to "when screen turns off".
After I set JD to use only mobile data on sync events, and turned wifi sleep policy to "never", I haven't had a single sod since. If I remember correctly, I once managed to induce a sod by turning wifi on or off (can't remember which) through the power control widget, and immediately after that I turned the screen off normally by pressing the power button (while wifi was "dimmed" in the power control widget meaning it was changing it's state).
So I strongly believe that my sods were caused by the combination of turning wifi on or off (either through widget or JD doing it) and turning the screen off at the same time. I didn't experiment any more, since I found my solution above.
I wrote this here, because people try hard to hunt down what's causing the sods, and I wanted to share my thoughts. If it is of no help, then sorry.
it happens sometime... don't trust your phone's alarm to wake up. you could have bad surprise (just had the experience 2 days ago) :'(
i am running cm7 no. 165. and vork kernel clocked to 1504 no reboots or black out issues. i also have green power managing my network data only... good luck all... just remember that cm7 is still nightly and is not considered stable.
Hi, I'm about to get one LG, but I've had the same issue with an Orange Boston mobile with a 2.3.5 CM7. I disabled Wi-Fi sleep too and it seems to help.
Before the scren weirdly shut down and the phone rebooted.
Hmm might try this out and see if it works.
I can't seem to get this issues myself. I will try and test this later on my other phone.
That is the reason why I don`t use CM7 anymore ...
Moderator Message
Extensive discussion going on here >
http://forum.xda-developers.com/showthread.php?t=997705
THREAD CLOSED

[Q] WiFi Randomly Turning Itself On

Ive been having an issue with my WiFi randomly turning itself on. Ill turn it off to save battery, then check it 30-60 minutes later and its turned itself back on. Ive scanned through other threads and most people say that its from dock mode and to go into dock mode, then go to the settings and disable "auto connect to wifi". I dont have a dock and have never had it in dock mode, but I manually went into dock mode to check check the settings and I dont even have that option in the settings menu. I didnt seem to have the problem (or at least didnt notice it) until after I upgraded to ICS using the OTA update. Is there just a setting that Ive overlooked someplace where I can fix the problem, an app thats got permission to do it that I didnt know about, or is it just a bug thats baked into ICS? Btw, my phone is Locked, Stock, and Unrooted.
Noticed this yesterday on rumfloat4 as well
Sent from my HTC PH39100 using XDA
I have the same frustrating issue, locked and stock here, upgraded to ICS with the RUU. Sometimes it will stay off for several hours, sometimes not even an hour. I haven't been able to pinpoint which app is causing this.
I believe that it maybe an ICS issue.
I have done a complete factory reset on the phone three times, and network and wifi turn on at exactly midnight.
SO far spoken to HTC customer support.....lol
They advised me yo take back to retailer and let them examine it...wtf???
Regards
Paul
Check your Wi-Fi settings. Drop the drop bar and enable Wi-Fi connection then touch the bar next to the off-on switch. Touch the icon next to the home icon on the bottom of the phone and click on advanced. See the screen shots.
Hope this helps.
vivid x2 said:
Check your Wi-Fi settings. Drop the drop bar and enable Wi-Fi connection then touch the bar next to the off-on switch. Touch the icon next to the home icon on the bottom of the phone and click on advanced. See the screen shots.
Hope this helps.
Click to expand...
Click to collapse
Doesn't do a thing.
Sent from my HTC Vivid
Too bad. I noticed mine came on the first night after I installed ICS. Took awhile to find the settings I posted. When I found the settings and clicked on the one in the picture I never noticed Wi-Fi come on on its own since.
I am curious how ICS determines "sleep". Is it phone sleep of human sleep? I also wonder if it is somewhat tied into automatic time settings. Say for instance you lose your signal during sleep, does ICS re-set the time and that triggers Wi-Fi turning on based on going setting the phone into a different time zone momentarily?
Just throwing a couple things out there in hopes it helps to solve the mystery.
vivid x2 said:
Too bad. I noticed mine came on the first night after I installed ICS. Took awhile to find the settings I posted. When I found the settings and clicked on the one in the picture I never noticed Wi-Fi come on on its own since.
I am curious how ICS determines "sleep". Is it phone sleep of human sleep? I also wonder if it is somewhat tied into automatic time settings. Say for instance you lose your signal during sleep, does ICS re-set the time and that triggers Wi-Fi turning on based on going setting the phone into a different time zone momentarily?
Just throwing a couple things out there in hopes it helps to solve the mystery.
Click to expand...
Click to collapse
I believe in later versions of GB, there was a distinct sleep setting that was separate from simply turning off the screen after a certain amount of time. As far as I can see, ICS did away with this and just sets the phone to sleep after a certain amount of time, which inherently turns off the screen.
Is this happening on new phones as well as refurbished ones? Whatever the problem is, its becoming annoying enough for me to return this phone and keep my Inspire.
Sent from my HTC Vivid
Yep, GB did have sleep time settings. That's why I was curious as to how ICS determines sleep.
Look at the permissions on HTC Sync. They're pretty intrusive as far as Wi-Fi settings. It may be worthwhile to go into each app and trying to force stopping each one one at a time that changes the Wi-Fi state at will.
---------- Post added at 06:53 PM ---------- Previous post was at 06:21 PM ----------
Something else you can try is to go into the usage counter and clear the data from the wi-fi tab. Don't use Wi-Fi for a period of time then check if there was any usage and if there was it would be listed which apps used the data and how much they used. Some apps even allow you to access the settings from there as well.
Juice Defender or similar apps should be able to keep it off when you want it off.
The Airplane Mode also should keep WiFi turned off (as well as data) as long as you don't need to take phone calls while you sleep. Not to mention, it saves on the battery if you're not charging at night.
if anyone still interest on this , i found the solution !
on ics you go to:
settings
WLAN
Advanced
WLAN frequency band
and uncheck the auto set radio to use only 2.4 or 5gh
thats all

(Q) Wi-Fi switches off automatically when screen turns off

So I'm on 5.1 stock and this is really annoying me now. Wi-Fi switches off randomly when screen is off. Wi-Fi always on is checked. Any suggestions?
Sent from my XT1095 using XDA Free mobile app
Is the battery saver option turned on? If so is it starting up to save your battery and killing wifi?
I'm also having this problem. My wifi is configured to aways on, I'm not using any battery saver and even initialized my device in security mode, but the problem continued, so it is not a 3rd party program problem. I even posted on official Motorola forums (and on a lot forums through the internet), but no one could help. I guess it is a bug on 5.1 because I didn't have this problem on 5.0.
I installed a program to solve this problem, but it needs to keep running:
https://play.google.com/store/apps/details?id=com.roamingsoft.manager
Use the wifi repair option. This is the only way that I find to solve this problem. I hope they fix it on the next version.
Sorry for my english.
muiriddin said:
Is the battery saver option turned on? If so is it starting up to save your battery and killing wifi?
Click to expand...
Click to collapse
Nope. No battery saver mode.
Sent from my XT1095 using XDA Free mobile app
pulley06 said:
Nope. No battery saver mode.
Sent from my XT1095 using XDA Free mobile app
Click to expand...
Click to collapse
I tried a few things to investigate this and without root on my device I'm potentially unable to get to logs that we could then compare. So since that approach didn't work, I have some environmental questions. Does the problem occur when you are carrying the phone in your pocket, or when it sits on a table unused for a period of time (or both). I'm trying to eliminate shaking causing the issue. You also mention that it happens with the screen off are you sure that it only occurs in that situation (that is a strange detail).
I can confirm this. It is as if the Wifi Always On setting did not work. When screen sleeps, 3G/LTE kicks in. When you wake the phone up, it'll go from 3G/LTE to Wifi. This has indeed arrived with 5.1, as 5.0 did not have the issue.
muiriddin said:
I tried a few things to investigate this and without root on my device I'm potentially unable to get to logs that we could then compare. So since that approach didn't work, I have some environmental questions. Does the problem occur when you are carrying the phone in your pocket, or when it sits on a table unused for a period of time (or both). I'm trying to eliminate shaking causing the issue. You also mention that it happens with the screen off are you sure that it only occurs in that situation (that is a strange detail).
Click to expand...
Click to collapse
Yeah it only occurs when the screen is off. The minute I switch on the screen I can see that it goes from mobile data to Wi-Fi even if Wi-Fi is on. Also, it is irrespective of where my phone is pocket or on a table top.
Sent from my XT1095 using XDA Free mobile app
I have a XT1094 (Moto X 2014) and have not noticed this. Based upon a post above you have the XT1095. We have the same Android version, just a different carrier version of the hardware. It sounds like when your device is going into one of the lower power states (the screen going off etc), the wireless is erroneously included in that transition. On my tablet I had a similar issue in that going to a lower power state would kill the sdcard which would then not properly reconnect when coming out of that lower power mode. If you prevented the tablet from going into that lower power state, the sdcard problem would not occur. Unfortunately the side effect was worse battery life in that case.
Do you have root on the device? If you do you might be able to do do a test similar to what I did on the tablet, however it would only prove the theory not solve the problem since worse battery life is an ugly trade off for a phone and the only way to actually change the sleep state transitions was to build a modified kernel that changed the sleep state itself (for my LG tablet one of the developers solved the issue and I just used the custom kernel provided)
Info on the "Sleep State" C-State is here https://plus.google.com/+PaulReioux/posts/9R8fjQdHDXD
For the tablet I had to disable the C3 (power collapse) sleep state, my post over there: http://forum.xda-developers.com/showpost.php?p=57719782&postcount=138
No idea if this will help...
I have an XT1095 stock 5.1 un-rooted, and I do not have this issue. I remember reading a similar thread here when 5.0 came out, so this is not a problem specific to 5.1. I don't know what is causing it, but it is clearly not a universal problem.
muiriddin said:
I have a XT1094 (Moto X 2014) and have not noticed this. Based upon a post above you have the XT1095. We have the same Android version, just a different carrier version of the hardware. It sounds like when your device is going into one of the lower power states (the screen going off etc), the wireless is erroneously included in that transition. On my tablet I had a similar issue in that going to a lower power state would kill the sdcard which would then not properly reconnect when coming out of that lower power mode. If you prevented the tablet from going into that lower power state, the sdcard problem would not occur. Unfortunately the side effect was worse battery life in that case.
Do you have root on the device? If you do you might be able to do do a test similar to what I did on the tablet, however it would only prove the theory not solve the problem since worse battery life is an ugly trade off for a phone and the only way to actually change the sleep state transitions was to build a modified kernel that changed the sleep state itself (for my LG tablet one of the developers solved the issue and I just used the custom kernel provided)
Info on the "Sleep State" C-State is here https://plus.google.com/+PaulReioux/posts/9R8fjQdHDXD
For the tablet I had to disable the C3 (power collapse) sleep state, my post over there: http://forum.xda-developers.com/showpost.php?p=57719782&postcount=138
No idea if this will help...
Click to expand...
Click to collapse
Don't have root. And have never rooted the device either. Somehow I'm just massively dissapointed with 5.1
Doesn't seem like a finished product at all. Battery life has plummeted from 3.5-4 hours sot easily to barely making it 3 hours
Sent from my XT1095 using XDA Free mobile app
Had this problem suddenly in 5.0 and continued in 5.1, the only fix was back to 4.4.4.
This has been posted before.
http://forum.xda-developers.com/mot...d-5-1-bugs-t3075232/post61724472#post61724472
http://forum.xda-developers.com/moto-x-2014/help/wifi-off-phone-idle-sleeping-t3053603
Here is the link to Motorola Forums that I've posted:
forums.motorola.com/posts/791e7e30c7
Hopefully this bug gets fixed in Android M.
Same problem that I'm getting. I'm sending mine back to Motorola and you guys can try that too to see if they can fix it. Apparently there's a speical dedicated team working on Moto X faults in Germany.
Anybody have any news?
Is there a way to fix this problem without going back to 4.4.4?

Categories

Resources