HTC Desire :: Wifi Turn Off When Sleep
May 2, 2010How do I set the policy to switch WiFi off after say 15 minutes of inactivity?

How do I set the policy to switch WiFi off after say 15 minutes of inactivity?
Is there an app that can turn off my wifi whenever I put my phone to sleep? To conserve battery, I always have to turn off my wifi before I turn it off, and turn it back on when I unlock it. After a few days of this, it gets pretty annoying. I'm used to the iPod touch where when you sleep it, the wifi automatically turns off to save battery,and when you unlock it, and turns it back on. It would really save me the time.
Also I noticed this Wifi sleep policy thing. I don't really understand, can someone elaborate or explain more. Is it that when your not using your wifi for +15 min, it automatically turns off? Do you turn it on manually, or does it do it auto when you starting using wifi programs like browser.
My android 4.1.2 really turns off the wifi when in sleep mode. I see it in the battery monitor.
But after I formated the cellphone, It started with the bug of not turning off the wi-fi in the sleep mode, even when set to do it Maybe some app that I installed before has changed some internal settings!
Before, my battery was lasting almost 4 days, I not use it too much, but now it lasts 2 days only... and I have sure that it's because of the wi-fi bug.
i have just got a new htc desire and love it have read this http://androidforums.com/htc-desire/59664-htc-desire-tips-tricks.html which is very good but have a few qu's:
1) do background apps use any/much power?
2) does wi-fi switch itself off if it is not needed or when there is no connection available? (i have wi-fi at home and unlimited internet so if i leave wi-fi on when i'm at home, after i leave will it switch itself off?)
3) is there an app for sleep that monitors your sleep using the inbuilt sensor so that it wakes you up when you are ready with a set time period (for example 7:30-8:00) and monitors how much you move about at night?
I installed juice defender this morning then deciding i didnt want it i uninstalled it, since then my wifi keeps going into sleep mode after about 15 mins which i dont want. before i installed juice defender it just stayed on all the time so i got notifications etc. ive reinstalled juice defender and disabled all its features as far as im aware but wifi is still going into sleep mode. what can i do to get my wifi back on all the time.
View 4 Replies View RelatedBut I dont know where to get the apps listed below. Am I missing something?
Turn your phone into a WiFi hotspot. Other devices can connect via wireless and share your phones internet. Take screenshots of your phone from your phone. Better memory management, your phone will never slow down. Overclock your phone, more speed! (If possible!) Full backup ability. Backup your whole phone state. Restoring this backup puts your phone in the exact same condition as the backup. Use 'Market Enabler' to access paid apps if currently unavailable in your country.
I've recently installed and flashed SVHD 1.7 Android 4.1 Rom. Now my WiFi wont turn on! It says "turning on" and after a while it says "error" instead! I did exactly as the instructions on the Rom page but still,no WiFi
I have a HTC Desire S. My kernel is 3.0.42 Fallout 1.0 Tiexiera. My radio/basebandversion is 20.76.30.035U_3831.19.00.110.
Do I need to update those or shall I do something else?
I have the Motorola droid 3 and i can turn sleep on but the only way to turn it off is to take out the battery..
View 3 Replies View RelatedI recently started having this problem. I set the screen time out for 15 seconds but the phone won't go to sleep unless I manually turn it "off." I've tried restarting the phone which helps but eventually it starts acting up again. As i type this, I haven't touched the phone in about 3 mins and the screen is still on. Any help? I;m wondering if it's an app I installed?
View 2 Replies View RelatedI'm seeing that some users are downloading data via my application and their connection is dropped because the WiFi is going to sleep. Could I somehow take control over WiFi to keep it alive and once I'm done I return it to it's default state?
View 3 Replies View RelatedAnyone else having a problem of not having the screen turn on when you press the power button from sleep? It doesn't happen often but it does happen. This is my second Captivate as my last one would shut itself off randomly and that phone also had this problem.Yes, I make sure I pressed the power button and waited a couple seconds to make sure it just wasn't lag but I can guarantee you it is not. Like I said, it doesn't happen all the time but maybe once every 2 days. I'm guessing it's a slight problem with other users as it happened on my last phone but I'm not sure. Hopefully it's a software issue.
View 11 Replies View RelatedI've heard everyone mention that setting wifi to never sleep has helped battery life but I can't figure out where to find the controls for that policy.
View 2 Replies View RelatedI have a smartq t20 tablet (great cheap tablet!) running ICS, my question is, when I leave wifi on all the time, what happens when the tablet goes to sleep (not awake according to the battery details)?I can leave a download running and it would continue when the screen is off, does this mean my tablet is never going into deep sleep? Or is that unrelated?
I know the wifi itself drains more battery when left on even if it isn't being utilized but I was wondering about the CPU side of it.
I'm confused about the WifI Sleep Policy. What does it mean for wifi to sleep, does it mean to stop searching? Mine is currently set to "when screen turns off", but I've seen others suggest that it be set to "never".
View 6 Replies View RelatedI downloaded Locale recently and it looks like a good app. I have set it to turn on my Wifi shortly before I get up in the morning to allow it to download some files (Guardian App and hopefully some podcasts). I've set Guardian to only download the newspaper via Wifi. For some reason Locale doesn't seem to be able to switch the Wifi on unless I awake the phone from sleep. I've been into the Wifi sleep policy Setting menu on the Hero and set it to never. Any ideas why it's not working?
View 2 Replies View RelatedI don't own an Android 4.3 tablet yet but I need to know the following things.I wanted to restrict my device so that a user is unable to change any settings (in particular turn on/off WiFi) and disable all applications except one.How strict is the restriction?
If I disable all apps except one what will the restricted user be able to do?
In an ideal scenario I'd like the restricted user to do only 3 things:
a) turn the tablet on/off
b) turn the application of my choosing on/off
c) all other options would be disabled
d) the restricted user should NOT see any data of the administrator
I have a service which polls a server at certain intervals. I use an AlarmManager and a BroadcastReceiver to start the service. My problem is that after a certain duration, even though the WiFi is still enabled, but for some reason, my application can't contact the server. I get an "Unreachable network" error. Note that I've already acquired a partial wake lock as well as a wifilock. Here's my code for the BroadcastReceiver.
public class ServiceAlarmBroadcastReceiver extends BroadcastReceiver {
public void onReceive(Context context, Intent intent) {
WakeLock wakeLock = null; WifiLock wifiLock = null;
try { PowerManager pm = (PowerManager) context .getSystemService(Context.POWER_SERVICE);
// acquire a WakeLock to keep the CPU running
wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "MyWakeLock");
if(!wakeLock.isHeld()){ wakeLock.acquire();
} Log.i("ServiceAlarmBroadcastReceiver", "WakeLock acquired!");
WifiManager wm = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
wifiLock = wm.createWifiLock(WifiManager.WIFI_MODE_FULL , "MyWifiLock");
if(!wifiLock.isHeld()){ wifiLock.acquire();
} Log.i("ServiceAlarmBroadcastReceiver", "WifiLock acquired!");
context.startService(new Intent(context, ThePollerService.class));
} finally { // release the WakeLock to allow CPU to sleep
if (wakeLock != null) { if (wakeLock.isHeld()) {
wakeLock.release(); Log.i("ServiceAlarmBroadcastReceiver", "WakeLock released!");
} } // release the WifiLock if (wifiLock != null) { if (wifiLock.isHeld()) { wifiLock.release();
Log.i("ServiceAlarmBroadcastReceiver", "WiFi Lock released!"); } } } } }
back with 2.1 there was the issue with GPS, and once it was activated not allowing the phone to "sleep." You could see the results of this in the "Battery History" screen that Spare Parts would give you.First of all this does not seem to be fixed with 2.2 unless im missing something in my settings, and actually it seems to have gotten worse.Even when i change my WiFi Sleep Policy to turn off when "screen is off" it seems as though the phone cannot go to sleep, and my Wifi is not turning off as it should.
View 6 Replies View RelatedWhat is your take on the WiFi sleep policy. I do like the fact that Wi-Fi can remain on all the time, but will it be a drain on my battery? Is it better to keep the Wi-Fi to sleep on screen shut off? I am near a Wi-Fi connection for most of the day and always at home.
View 25 Replies View RelatedIf you go to Settings->Wireless and Networks -> Wifi Settings and then hit the Menu button (the one with for squares on the bottom left) and go to advanced there is an option for Wi-fi Sleep Policy. It looks like the default is to turn off wi-fi and switch to mobile data when the screen turns off? Is this the optimal setting? Wouldn't you want it to never turn off (assuming you are in range of wifi)? That way any alerts etc. are all handled over wifi instead of data?
View 3 Replies View RelatedI am trying to write the system setting using:
Settings.System.putInt(getApplicationContext().getContentResolver(), Settings.System.WIFI_SLEEP_POLICY, Settings.System.WIFI_SLEEP_POLICY_NEVER_WHILE_PLUGGED);
But it force closes my application. Any Idea? My has user following permissions:
<uses-permission android:name="android.permission.WRITE_SETTING"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/
I am new to smartphones and thought that this might be good for others who are new and don't have the unlimited data plan grandfathered in to know.
This was posted in reply to another question I had had about Pandora so the credit goes to poster MeVirtually.
By default the wi-fi setting is set to go to sleep (and use cellular data instead) when the screen is off, which will most likely happen while you are streaming music as well as other things. To change it so the wi-fi never turns off, to into the phone's menu -> wireless and network -> wi-fi settings -> tap the menu button and select advanced which has an option for wi-fi sleep policy that had been defaulted to sleep "when screen turns off". There you have the option to change it to "never" or "never when plugged in".
I have samsung galaxy S2 with 4.1.2; when my phone goes in sleep/lock mode the wifi disconnects. when i unlock my phone then wifi connects again. I installed many wifi keep alive applications but none of them work wifi keep alive application which keeps my wifi session on -- even if my phone is in sleep mode
View 7 Replies View RelatedWhenever I am on a WiFi network, I keep my 3G mobile network on. Mainly for visual voicemail purposes. So, does that mean that I am wasting my battery by having it on?
View 12 Replies View RelatedAfter the screen goes off after 1min (or whatever you have it configured to) is the only way to get it back on to press the power button at the top of the phone? I find it a little awkward - can't I just press the button on the bottom front of the phone?
View 21 Replies View RelatedSo I use the task killer...and at the moment say when I kill tasks it'll tell me there is about 200M avaliable memory free...if I use the phone for a day it'll maybe go down to 150M even if I am still killing apps and there is nothing in 'running services'. If i turn off the phone and turn it back on it goes up to 250M. What is running that I can't stop myself to make it go down from the 250M but that I can just eliminate by turning off the phone?
View 5 Replies View RelatedAfter noticing my battery was draining quickly, and then after reading this thread, I installed Android System Info to see what was draining my battery so fast. I notice that whenever I would turn on WiFi, the phone will never go to sleep , regardless of what I set the WiFi sleep policy to. After turning off WiFi, the battery still drains heavily.
The WiFi will shut off after 15mins (if you set it to "When screen turns off" or "never when plugged in"). However it seems to keep the CPU on causing it to drain down the battery.
It would seem that whenever WiFi is enabled, the Android system process creates a partial wakelock that does not go away even if you turn off WiFi. The only way to resolve this is by powering off or rebooting the phone.
You can verify this in Android System Info by going into Battery-History-Other Usage-Partial Wake usage to see how much time the "Android System" process holding a partial wake.
I even did a factory reset on the device; and it is still happening so it doesn't appear to be any app that caused the issue. As I said, it works fine as long as I don't enable WiFi.
I already know of two users having this issue, but I'm wondering if folks having battery problems are going through this as well. Is anyone else having similar issues after using WiFi? I'm hoping someone will be able to identify what exactly is putting the wakelock on and we'll be able to find a fix for it. Other than not using WiFi at all or rebooting the phone after using Wifi.
I'm having to move networks from Virgin back to o2.
I'll be returning the Virgin Desire and just received the o2 Desire today.
Setting it up went well, accounts added etc. but I'm having trouble with the WiFi - I can't disable it, every time I do it switches itself back on - I'm assuming that's something to do with the o2 firmware and it wouldn't be a big deal if the WiFi worked properly
I set it to install all my apps, but wouldn't over Wifi, only over 3G, I can't browse the internet or check for software updates in settings... I've got 2 email accounts set up - Gmail & Exchange (just as I did on the other handset), and it's just told me it can't sync to the Exchange server now though it seems to have been fine so far...
Yet I've just sent myself a test email over WiFi successfully - it appeared straight away in the webmail and then back on the handset, so some part of it's working...
I have just got my HTC desire. And i cant stand that i have to press the power button to get out of sleep mode to show the lock screen. wish i could just press menu/home or any of the buttons but the power one right at the top. I only say this as i swear my htc tattoo unlocked in this way. if not this could get quite annoying. So is there anyway to change this. I have tried looking through settings but i have a bad feeling you cant change it.
View 3 Replies View Relatedis there any way to use the trackpad to wake the phone instead of the button on the top?
View 12 Replies View Related