[Q] Wifi Sleep Policy - Thunderbolt General

What is the purpose behind the wifi sleep policy. I flashed to gingeritis and it recommends setting the sleep to 15mins for battery life. It appears to go back to the 3G/4G radio when wifi goes to sleep which I thought was counter productive and wiFi was better for battery life. Can any explain this to me?

I can't say this works for everyone, but I have "enable always on mobile data" disabled, so when I don't use my phone for 10 minutes or so it disables mobile data. If I have the WiFi sleep period set to 15, then it will disable all data in 10-15 minutes. Very useful if you have extended periods of time where your phone remains off.

geoff5093 said:
I can't say this works for everyone, but I have "enable always on mobile data" disabled, so when I don't use my phone for 10 minutes or so it disables mobile data. If I have the WiFi sleep period set to 15, then it will disable all data in 10-15 minutes. Very useful if you have extended periods of time where your phone remains off.
Click to expand...
Click to collapse
How do you disable mobile data all the time?
Sent from my ADR6400L using XDA App

Powell730 said:
How do you disable mobile data all the time?
Sent from my ADR6400L using XDA App
Click to expand...
Click to collapse
hold down the power button

Powell730 said:
How do you disable mobile data all the time?
Sent from my ADR6400L using XDA App
Click to expand...
Click to collapse
HTC supplies a data widget that I use every day while I am at work. Go to personalize, then browse all HTC widgets and the data widget I use is the Data Dashboard. Its 43/58 on my phone but mine might not be right on as I remove a few of the widgets.
While I am at work I just click the mobile setting on the widget to turn data off while still maintaining my voice connect so I can receive txt and phone calls.
As for the OP I keep my wifi set to never sleep no matter what rom I'm on. This way when I'm at home my phone doesn't have to look for the network its always connected to my wifi access point. I have always heard the same as the OP that having wifi on is much better than using the network as far as battery life is concerned.

Setting wifi sleep policy to never is best for battery life. Letting the phone switch back to 3g uses more battery than just letting it stay on wifi all the time.

RogerPodacter said:
Setting wifi sleep policy to never is best for battery life. Letting the phone switch back to 3g uses more battery than just letting it stay on wifi all the time.
Click to expand...
Click to collapse
Thank you that's what I thought!

Related

[Q] Shorten wifi sleep timeout after screen off (Solved)

In the wifi sleep policy, it is possible to set wifi to sleep after screen off. However wifi does not sleep immediately but 15 minutes after screen off. I would like wifi to sleep earlier, say 5 minutes after screen off.
I searched around and found an app capable of doing this. But it is for samsung phones and doesn't work for defy. Does anyone know if and how it can be set manually?
Juicedefender. That is the exact app to use.
I tried Juice Defender. There are options to disable wifi based on connection existence, preset time, data flow etc, but there is no option to set the how long after screen off wifi would sleep.
Here you go, this should do what you want: http://forum.xda-developers.com/showthread.php?t=774507
Good luck
Hmm I actually set my wifi to never turn off automatically. For instance yesterday I made a phonecall with Skype. My mobile connection is too slow for that so I switched the wifi on. During the phonecall I had the screen turned off but of course the wifi needed to stay on.
I have a widgetsoid widget on my homescreen to enable/disable the wifi. Don't like it when things go automatic and it's just as easy when you need wifi only once in a while.
AgentSmith said:
Hmm I actually set my wifi to never turn off automatically. For instance yesterday I made a phonecall with Skype. My mobile connection is too slow for that so I switched the wifi on. During the phonecall I had the screen turned off but of course the wifi needed to stay on.
I have a widgetsoid widget on my homescreen to enable/disable the wifi. Don't like it when things go automatic and it's just as easy when you need wifi only once in a while.
Click to expand...
Click to collapse
Since i changed my ROM, my wifi actually goes to sleep after 15 minutes and I don't want it to turn off.
How do you set your wifi to never turn off automatically?
naenee said:
Here you go, this should do what you want: http://forum.xda-developers.com/showthread.php?t=774507
Good luck
Click to expand...
Click to collapse
Thanks! Unfortunately moto doesn't have the settings.db file. I tried putting the mentioned key "wifi_idle_ms" in several other files but no effect.
Edit:
Stupid me. I find the location of settings.db and it works perfectly now
For information, the location of defy's settings.db is:
/data/data/com.android.providers.settings/databases/settings.db
woonaval said:
Since i changed my ROM, my wifi actually goes to sleep after 15 minutes and I don't want it to turn off.
How do you set your wifi to never turn off automatically?
Click to expand...
Click to collapse
In the wifi settings screen, press the menu button to get the advanced options.
ABC_Universal said:
In the wifi settings screen, press the menu button to get the advanced options.
Click to expand...
Click to collapse
wow that was easy, thanks!
woonaval said:
wow that was easy, thanks!
Click to expand...
Click to collapse
Indeed!
Thanks guys; I can now listen to TuneIn radio as long as I want (or my battery allows me to).
If you intend to save battery, maybe you should consider leave "wireless policy" to "never sleep".
It might sound senseless but there are a lot of people reporting substantial battery savings with this, including me, i noticed at least +20 hours in battery life only with this little thing. Charts drawn with Battery Monitor showed the same consumption, Wireless OFF. vs Wireless policy to never sleep. And the most expensive was policy of sleep when screen turned off.
http://forum.xda-developers.com/showthread.php?t=1022390
unrafa said:
If you intend to save battery, maybe you should consider leave "wireless policy" to "never sleep".
It might sound senseless but there are a lot of people reporting substantial battery savings with this, including me, i noticed at least +20 hours in battery life only with this little thing. Charts drawn with Battery Monitor showed the same consumption, Wireless OFF. vs Wireless policy to never sleep. And the most expensive was policy of sleep when screen turned off.
http://forum.xda-developers.com/showthread.php?t=1022390
Click to expand...
Click to collapse
That's probably the case for 3g. But I'm using 2g and find 2g uses less battery than wifi in standby mode (with some background data sync).
naenee said:
Here you go, this should do what you want: http://forum.xda-developers.com/showthread.php?t=774507
Click to expand...
Click to collapse
Thanks, naenee, for the link. In case anyone is interested, I just made a simplified adaptation of RyanZA's guide, specifically for the DEFY: http://forum.xda-developers.com/showthread.php?p=22639770

[Q] WiFi Sleep Policy

My WiFI Sleep Policy is set to default (After 15 min) however the WiFi is always on. The icon is there when I turn my screen on. Checked the battery usage graph also, and WiFi is always on (as long as I don't turn if off manually).
I have a stock ROM, the latest European stock ROM.
Is this a bug? What does 'After 15 min' actually mean?
I believe it means the wifi will turn off 15 minutes after the screen goes off, and then back on with screen on.
I thought so too, but mine isn't doint that.
teomor said:
I thought so too, but mine isn't doint that.
Click to expand...
Click to collapse
I know there was a recommendation to set "Never" as the sleep policy. I can't find that post unfortunately. I know on my Desire with CM7 it resulted in better battery life, counter intuitive but......
I know. I've had it set to Never on my Desire. But now I'm seeing longer standby with the current setting (After 15 min) on my Sensation compared to the Desire. Although I suspect it isn't working and it's actually never turning off.
teomor said:
I know. I've had it set to Never on my Desire. But now I'm seeing longer standby with the current setting (After 15 min) on my Sensation compared to the Desire. Although I suspect it isn't working and it's actually never turning off.
Click to expand...
Click to collapse
Lol, same upgrade here. TBH I've left it at Never and not tried the other policies.
I use WiFi when at home, I'm on a 3G data plan ( I'm guessing WiFi sleeping means I wouldn't get updated Gmail. Or does it revert back to 3G ?
WiFi sleeping means going back to 3G, yes.
teomor said:
WiFi sleeping means going back to 3G, yes.
Click to expand...
Click to collapse
Thanks, might just try it and see.
Does anyone think that instead of going to sleep after 15 minutes of the screen being turned off (regardless of whether there are background apps that have active internet connections), the WiFi actually starts sleeping after 15 minutes of idle time? I think this would be a better efficiency algorithm, so, as long as you have apps that constantly use the internet, keep WiFi connected, but when no apps are doing auto-sync or any background data, only turn on WiFi when manually using the apps..
Applications can be programmed to call for a WiFi lock. If any active application does so, WiFi won't shut off when the phone is asleep.
gol_n_dal said:
I know there was a recommendation to set "Never" as the sleep policy. I can't find that post unfortunately. I know on my Desire with CM7 it resulted in better battery life, counter intuitive but......
Click to expand...
Click to collapse
I remember that old tips thread. It was set your wifi sleep policy to never. Install spare parts+ or pro and set end button behaviour to sleep. And something to do with Market app. Settings->notifications-> uncheck the box. For some reason market notifications were not allowing your phone to go to sleep properly or some garbage like that. Its worth a shot.

[Q] [ICS] Disable wifi when screen goes off ?

Hi everyone
I just flashed Android Revolution ICS Rom and I'm quite happy with that so far ! The only thing I cannot find is how to automatically disable the wifi antenna when the screen goes off...
Any help would be much appreciated
You can try in wifi setting and set wifi sleep policy to "screen off" out you can get Auto Airport Mode by Dan
Sent from my Transformer TF101 using Tapatalk
baseballfanz said:
You can try in wifi setting and set wifi sleep policy to "screen off" out you can get Auto Airport Mode by Dan
Sent from my Transformer TF101 using Tapatalk
Click to expand...
Click to collapse
It was there in HC but can't find it in ICS...
salv-ice said:
It was there in HC but can't find it in ICS...
Click to expand...
Click to collapse
Well I just took a look. Guess they changed it a round a little
In Settings under the WiFi, click on More and there's an "Airplane Mode" try that.
Or try Auto Airplane Mode (this is what I use and it work great)
https://market.android.com/details?id=com.blogspot.donkun3.autoairplane&feature=search_result
hit menu (3 dots in top right) when you are in the wifi menu hit andvanced then hit "Keep wifi on during sleep" and change to only when plugged in or never
mrevankyle said:
hit menu (3 dots in top right) when you are in the wifi menu hit andvanced then hit "Keep wifi on during sleep" and change to only when plugged in or never
Click to expand...
Click to collapse
Wow... wouldn't have found it by myself
Thanks a lot !
I'm noticing the native setting for disableing wifi when sleeping is working poorly. It takes a while to turn it off and then when it restarts the service does not seminar to be able to obtain the IP address and I have to manually turn wifi off and then on again for it to obtain an address. Very strange because the auto airplane app has no such issues.
I have just found out that:
(under GB) "Advanced > Wifi Sleep Policy > when screen turns off"
is NOT the same as
(under ICS) "Advanced > Keep Wi-fi on during sleep > never (increase data usage)"
It is supposedly to be the same thing but it is not.
As osho741 observed, it takes a very long time to turn off and most of the time it just does not.
I think this is one of ICS bug.
a1adin said:
I have just found out that:
(under GB) "Advanced > Wifi Sleep Policy > when screen turns off"
is NOT the same as
(under ICS) "Advanced > Keep Wi-fi on during sleep > never (increase data usage)"
It is supposedly to be the same thing but it is not.
As osho741 observed, it takes a very long time to turn off and most of the time it just does not.
I think this is one of ICS bug.
Click to expand...
Click to collapse
It does turn off fine here after around 10 minutes but it takes at least 30 seconds to activate and connect.
Sent from my Transformer TF101 using Tapatalk 2
Is there any specific reason youd want to turn off the wifi during sleep? In my experience it doesnt drain enough battery to bother turning it off.
In my case with wifi on and a few apps running that uses wifi all the time, the tablet drains around 15-20% over 12h while sleeping.
That gives at least 2.5 days batterylife if you keep it sleeping... I cant imagine you would have to have it turned on (sleeping) longer than that. In that case you could just shut it down completely when youre not using it
you should give juice defender a try. it revolves around battery optimization, but it isn't a task killer, it just lets you make whatever setting you want concerning turning off services like wifi, bluetooth, etc.. its highly customizable, so you can set it to turn the wifi off entirely while its asleep, or to keep it off, while turning on in whatever time increment you set, long enough.
i have mine set so that the wifi turns off and stays off entirely when its in sleep mode, but if i have a online radio app like pandora or 8tracks running, then they override the sleep settings, and keep the wifi on when the screen is off.or, when i use certain apps that don't need internet to run, like kindle or certain games, the wifi automatically turns off and remains off until i close the apps.
i really like it and i think its made a huge difference in battery. Before if used it, my transformer would drain 15-20% percent overnight with the wifi left on. now, it drains maybe 2-4%.
Turning off wifi during sleep makes a huge difference.
It really saves a lot of battery for me.
And juice defender, while it might help, but on my phone, it causes a lot of wakelocks.
You can check this with bbs.

Question for Tasker users

Reboot your phone, then see how long after your android desktop comes up that the tasker notification shows up.
I seem to have an issue where it takes like minutes, and only shows up after I lock/unlock my phone. This is new to KK for me, I'm running completely standard, no task managers or anything, just curious if its the same for anyone else.
Mine takes around 15 seconds
Sent from my XT1032 using xda app-developers app
No for me. All good here. en.EU.
I barely can tell the difference between the startup times with and without Tasker.
Sent from my XT1032 using xda app-developers app
What about battery consumption with and without tasker?
michalurban said:
What about battery consumption with and without tasker?
Click to expand...
Click to collapse
I can not tell, some of my Tasker stuff is about battery conservation (turns off mobile data and switches to 2G at home and work, switches to 3G and turns off the wifi outdoors, puts the phone to airplane between midnight and 5AM etc.) or messes up my battery stats (for example keeps the screen alive when USB debugging is connected) Of course it needs some juice, but it conserves me even more.
Mine takes about 15 seconds also

[Q] Never in Deep Sleep — *backup* always running?

Hi
I've got an issue with my stock and rooted Nexus 5 (4.4.2). Based on what Better Battery Stats shows, the device is always Awake (see attached screenshot "Nexus-5-Never-Sleeps_c.jpg"), or, put differently, never in Deep Sleep (→ "Nexus-5-Never-Sleeps_g.jpg"). Additionally, I see that there's a *backup* Partial Wakelock, which is always running (→ "Nexus-5-Never-Sleeps_d.jpg").
While the battery drain isn't that bad (-17% in 7 hours), I still find that pretty strange. The device was "idle" all that time (ie. just lying there, with constant Wi-Fi and screen basically always off, receiving SMS and vibrating at times).
I have switched from 4G to 3G data connection and have disabled Dropbox photo sync. I also turned off Google+ pictures auto backup (and also sync of Google Fotos and Google+ Fotos in the account sync settings).
Hm, ja, well, how to allow the device to go to sleep/how to find out, what's keeping it awake? What's that *backup* wake lock?
Thanks,
Alexander
That is strange. Hopefully someone can chime in on what backup might be doing but if I ever notice something running abnormally long like that a phone reboot usually fixes it right up.
17% in 7 hours is horrible. I lose maybe 3% in the same amount of time. Have you tried disabling your wifi? Or changing the sleep policy to "only when plugged in" or "never"?
Also, do you have your N5 setup to backup to google servers? I'd disable that as well.
What app did you use to edit your pictures?
Sent from my Nexus 5 using Tapatalk
bblzd said:
That is strange. Hopefully someone can chime in on what backup might be doing but if I ever notice something running abnormally long like that a phone reboot usually fixes it right up.
Click to expand...
Click to collapse
Yeah, a reboot often fixes it - I think I rebooted already. Will do now and report back tomorrow night. Thx.
_MetalHead_ said:
17% in 7 hours is horrible. I lose maybe 3% in the same amount of time. Have you tried disabling your wifi? Or changing the sleep policy to "only when plugged in" or "never"?
Also, do you have your N5 setup to backup to google servers? I'd disable that as well.
Click to expand...
Click to collapse
Disable wifi? How to get data then? That's no solution, as the N5 is then just a paper weight. Data is too expensive and slow.
I have backup enabled. And, well, for kicks and giggles, I'll disable that as well (after tomorrow, as to not mix up results with having rebooted). Where do I disable backup exactly?
FuMMoD said:
What app did you use to edit your pictures?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Skitch → https://play.google.com/store/apps/details?id=com.evernote.skitch
alexs77 said:
Disable wifi? How to get data then? That's no solution, as the N5 is then just a paper weight. Data is too expensive and slow.
I have backup enabled. And, well, for kicks and giggles, I'll disable that as well (after tomorrow, as to not mix up results with having rebooted). Where do I disable backup exactly?
Click to expand...
Click to collapse
I'm not 100% sure what that *backup* represents but I would guess it's the one you can find in Settings under Personal called Backup & Reset. It could also be related to Auto Sync.
alexs77 said:
Disable wifi? How to get data then? That's no solution, as the N5 is then just a paper weight. Data is too expensive and slow.
I have backup enabled. And, well, for kicks and giggles, I'll disable that as well (after tomorrow, as to not mix up results with having rebooted). Where do I disable backup exactly?
Click to expand...
Click to collapse
I'm not saying permanently disable wifi, just when you aren't using it. You can set your wifi to sleep when the phone sleeps. When you turn your screen back on, your wifi will turn back on as well. It's in advanced settings.
For backup, there is an option in settings called "backup and reset".
Ok in wifi go into settings and disable wifi analyze, in locations select Battery saver, if you have app Ops then use it to disable location in the Google play services.
Sent from my Nexus 5 using Tapatalk

Categories

Resources