[Q] Force WiFi to stay active when screen is off? - Desire Q&A, Help & Troubleshooting

Hi everyone!
I'm using OpenDesire 4.0.4, and while it's more or less the perfect ROM for me, I'm getting a little annoyed at the WiFi. As the ROM is based on CyanogenMod, it has the same WiFi behaviour: When the screen turns off, the WiFi enters power saving mode, regardless of the apps that are active at the time, or the amount of traffic over WiFi at the time.
The problem here is that any application that's using WiFi pretty much just stops as soon as you turn the screen off.
1. Sipdroid during a call: Massive packet loss as soon as the screen turns off. You may hear a garble or two, but nothing intelligible.
2. SwiFTP and other FTP servers: Connecting to the FTP server and navigating to folders takes ages when the phone is in standby. Transferring files is more or less impossible (times out)... Everything's fine when the screen's on. If you transfer a big file and turn off the screen during the transfer, you basically pause the transer - turn the screen back on and the transfer goes back to full speed
3. Market: If you turn off the screen while a lot of apps are going to download, like after pressing "Update all" for a few apps, more often than not they'll just fail in the background.
Now, I could beg and ask the ROM developers (Kali for CyanogenMod on Desire, or AdamG for OpenDesire) to just change this behaviour, but it seems that most people are happy with the situation, as it causes the WiFi to use very little battery on standby... so I'm asking if anyone knows how I could change this myself. Is it even possible to do this at runtime without baking it into the ROM directly?
Or am I SOL until (or rather unless) AdamG or Kali takes pity on me?
I'd love to hear some input - hell, maybe I'm just doing it wrong ... Thanks in advance!
PS: Yes, my WiFi Sleep Policy is set to Never, and the Desire DOES stay connected when the screen is off. Just in a very low power mode...
-edit- Should have searched, sorry: http://forum.xda-developers.com/showthread.php?t=752856
-edit2- Looks like there really isn't a fix for this... Anyone found a way to completely disable PSP on the Desire/Nexus WiFi?

I'm on the same ROM as yourself. What value is your "screen-off lock screen delay" set to?
In my observations, the transfer in the state you mention still persists albeit at a very slow rate and the WiFi chip is certainly placed in the LOW power state, although on.
I'm unaware of any workaround but what I use myself when transferring bulk 1-7GB files through WiFi from my PC/Laptop, which is to change the value of the screen lock delay at screen off under Settings>OpenDesire>User Interface>(last option) to a high figure, like 10-30m, depending on how long I'm expecting the transfer to take. It's a trade-off but you'll still save over 95% of the power since your screen is off but the WiFi/SD/CPU remain working as when the screen is on. Maybe you've tried this already?
-----------------------------------
- Sent via my HTC Desire -

That's not a bad idea... brb testing .
-edit- Didn't work
As soon as the screen times out, my transfer speed drops to nearly 0 - even with the lock delay set to 30m... :'(

OK, that's confusing. I'll be back by tonight or morning... I have much testing to do on this since for sub-20mins, my connection runs plus 200Kbps according to the PowerTutor log in such a state. Usually it would drop to 0.3-8Kbps when the screen switched off.
-----------------------------------
- Sent via my HTC Desire -

th3 said:
OK, that's confusing. I'll be back by tonight or morning... I have much testing to do on this since for sub-20mins, my connection runs plus 200Kbps according to the PowerTutor log in such a state. Usually it would drop to 0.3-8Kbps when the screen switched off.
-----------------------------------
- Sent via my HTC Desire -
Click to expand...
Click to collapse
Mine drops to practically 0. So low that due to overhead, FTP transfers pretty much stop completely...

I've seen that the linked kernel module provides a temporary workaround for you guys now. During the course of my testing your concern I basically found my WiFi module isn't ever turning off nor switching any connections off - it's always awake and can always transfer some data. Even in the LOW state it is connected at 24Mbps. Whatever I did I couldn't change this behavior on 4.0.4. Time for another wipe...
OD has many user preferred options baked in working fine alongside the conventional options so it'd probably be best suited for a toggle of this feature to be implemented for you guys (if at all possible). Not sure if that WiFi module power state behaviour is write-able and changeable on-the-fly before a reboot, should be, as it's only changing a hardware state.
-----------------------------------
- Sent via my HTC Desire -

The new Wifi module is working perfectly here. No more performance problems, and my power consumption has actually gone DOWN. Probably because I have a bunch of connected apps running in the background and PSP is very inefficient for that.
Also, the delays in Chrome To Phone and Appbrain web installs are gone...
I'm loving this fix...

Related

Doubled battery life - but there's a down side

there is a setting under settings / wireless and networks / mobile networks that says "enable always on mobile data"
Switching this to off about doubled my battery life and everything still seemed to work okay as far as data goes. All my apps worked including things that check or update periodically in the background - so I'm not sure what this feature does.
The only downside is that the phone would crash periodically in areas with poor reception. It would go back to the sprint boot animation and come up after a minute and the uptime would not be reset.
Imconvinced part of the battery life problem is due ton inefficient use of data, but I'm wondering what can be done about it without sacrificing stability. Ahylne else have a similar experience or willing to try it out or have more information?
Trying this out, seeing what it effects it has on my normally used apps. So far (first 20 minutes of doing it) everything seems to run fine. I would guess this causes the phone to "hibernate" the 3g radio whilst locked.
I started doing this on Hero and continue to do it on the Evo. The biggest issue is that if you are using pandora (or similar app), it causes problems when the phone goes to sleep.
The setting stops your 3g connection when the screen goes to sleep. This prevents the phone from updating email, twitter or whatever else you use. As soon as you turn the screen on, it turns on 3g, downloads your email etc.
I check my phone often enough (for the time or whatever) that I don't mind not getting my email immediately (it downloads when I turn the screen on).
This has saves a ton of battery life. The only time I enable always on mobile network is to listen to pandora. I have done this since day 1 and have had no issues.
I tried this last week and it made a massive difference in battery life. I turned it back on though because I do like my phone to download things while it is idle. I also don't want to get used to the improved battery life just to have to switch it back later.
i dont know if any of you have heard of juice defender what it does the same thing pretty much. with a few exceptions. whereby you can set the program up to allow your phone to take data even if your screen is off at a certain duration of time, then it will go back to sleep.
thats a really simple explanation of what the app does. if anyone of you does decide to use the app let me know i can share my settings more specifically. I have increases my battery life by 87% and i have have 0 problems.
I have this option unchecked and not only has my battery life improved, but I don't notice any performance or stability issues.
Also, my data continues to download in the background as normal (regardless of whether the screen is on or off). I have Facebook and Twitter set to download data every so often and it continues to do so. Even Google Voice will notify me of messages even if the screen is off.
I think what this option does is, when checked, makes the radio work hard to find and keep a data connection (especially in low signal areas). I notice that with the option unchecked, my data connection drops a bit more often than with it on. I don't mind that though seeing that the data connection simply reconnects automatically and almost instantly.
thanks!
10char
Would you all mind doing an experiment for me? Turn this option off (so data is not constantly on) and turn your screen on and put it in your microwave so it loses signal*.
Watch it and see if it crashes. I suspect something about this setting being off is causing the phone to crash when it loses its cell connection momentarily.
*Don't turn on your microwave.
Okay so after more research I'm pretty sure the main instigator of poor battery life is the data connection constantly going wild. According to SystemPanel my phone hangs out doing nothing downloading at 100-200Kbps for large amounts of time. Not sure what it's downloading.
To find out what apps were causing this I used Spare Parts and saw this:
Click for full size
So a process with the PID of "0" is what is using most of the data connection, followed by UID 10011 which is contact/calendar/mail sync. I can click through to 10011 and get details, but if I try to click on PID "0" I get a force close.
There is also another preference under Accounts & Sync for "background data" and "auto-sync." I'm not sure what the difference is between this background data setting and the one in wireless & networks that says "enable always-on mobile data." Anyone have any thoughts on that?
Also interesting is what was happening when I had always on data disabled:
Click for full size
You can see where my phone was crashing but look at my battery life before and after the crash. It looks like it has dipped significantly. Also, the crashes only lasted a minute while the phone rebooted, not nearly as long as what was recorded here - so it's possible something was going on with the battery life before the phone crashed.
juice defender settings
mastermayhm069 said:
i dont know if any of you have heard of juice defender what it does the same thing pretty much. with a few exceptions. whereby you can set the program up to allow your phone to take data even if your screen is off at a certain duration of time, then it will go back to sleep.
thats a really simple explanation of what the app does. if anyone of you does decide to use the app let me know i can share my settings more specifically. I have increases my battery life by 87% and i have have 0 problems.
Click to expand...
Click to collapse
Could you please post you settings that you use with Juice Defender. Also, please post any suggestions about Juice Defender and Ultimate Juice.
Thanks, John.........
mastermayhm069 said:
i dont know if any of you have heard of juice defender what it does the same thing pretty much. with a few exceptions. whereby you can set the program up to allow your phone to take data even if your screen is off at a certain duration of time, then it will go back to sleep.
thats a really simple explanation of what the app does. if anyone of you does decide to use the app let me know i can share my settings more specifically. I have increases my battery life by 87% and i have have 0 problems.
Click to expand...
Click to collapse
I swore Juice Defender only works with GSM and not CDMA.
It even say this when you go to download the app. Although I did just google it an apparently people have it going on the Motorola Droid rooted.
Who with Android experience wants to prove this?
OMGWTF_BBQ said:
I swore Juice Defender only works with GSM and not CDMA.
It even say this when you go to download the app. Although I did just google it an apparently people have it going on the Motorola Droid rooted.
Who with Android experience wants to prove this?
Click to expand...
Click to collapse
+1 I thought this was the case too. i unchecked the data option. It's been a full day and no reboots
I'm running Juice Defender today and my battery life seems even worse. I'm talking 20-25% drop per hour.
SOMETHING is wrong here.
prjkthack said:
I have this option unchecked and not only has my battery life improved, but I don't notice any performance or stability issues.
Also, my data continues to download in the background as normal (regardless of whether the screen is on or off). I have Facebook and Twitter set to download data every so often and it continues to do so. Even Google Voice will notify me of messages even if the screen is off.
I think what this option does is, when checked, makes the radio work hard to find and keep a data connection (especially in low signal areas). I notice that with the option unchecked, my data connection drops a bit more often than with it on. I don't mind that though seeing that the data connection simply reconnects automatically and almost instantly.
Click to expand...
Click to collapse
The option is not meant to enable/disable applications from using the data connection when the screen is off, so applications should be able to continue updating.
What the option is meant to do is to determine whether your phone should maintain data connectivity all the time, even when there are no apps using data. Unchecking the option means that when an app needs data, it must first connect, then make its request. This makes it take a little longer (or maybe a lot longer for 4G which seems to take longer to initialize a connection).

[Q] Save battery by turning off mobile data (Tasker)

I'm trying to figure out if it's worthwhile to turn off mobile data when the screen is off, and turn data back on when the screen is turned on. It would also be necessary for me to occasionally switch mobile data on even when the screen is off in order to check email. (I'm thinking something like 15 minutes off, 3 minutes on)
Does anybody have any success stories or advice whether I am likely to see any noticeable battery savings by doing this?
I started doing this from when I first got my evo. Just turn off mobile data, you can still get texts and make calls, and then turn it on when you need it. Also turning off background data in settings also adds additional battery, but just enable it when you need the market. I went most of all day with about 80% of my battery still good between it just being off, using the mobile data here and there, and some texting.
Edit: I don't use a tasker, I just use the power widget in my notification, so I can turn on my mobile data on/off with just a tap. And if you're like me you don't know when you actually need it or for how long. So I find it easier and more effective to do it manually.
teh roxxorz said:
I started doing this from when I first got my evo. Just turn off mobile data, you can still get texts and make calls, and then turn it on when you need it. Also turning off background data in settings also adds additional battery, but just enable it when you need the market. I went most of all day with about 80% of my battery still good between it just being off, using the mobile data here and there, and some texting.
Edit: I don't use a tasker, I just use the power widget in my notification, so I can turn on my mobile data on/off with just a tap. And if you're like me you don't know when you actually need it or for how long. So I find it easier and more effective to do it manually.
Click to expand...
Click to collapse
X2, i use switch pro to toggle mine. Battery drops about 2% per hr while data is of with screen off even when listening to music from my play lists.
I turn off the "always on " mobile data and noticed a big difference. The data turns on and off with the screen.
Sent from my Evo using Tapatalk
Over the months I have been an Evo user, I have collected some valuable information that all users should probably know in regards to maximizing battery life. Besides the stuff about 4G and a few specific options, these steps apply to pretty much any other android phone running 2.2, and a lot of them apply to versions below Froyo.
General Lithium Ion Battery Information
^^This link includes stuff about charging, including trickle charging aka SBC (Why NOT to use it, or at your own peril)
My tips for good battery life:
Tips for Non-Rooted users:
1. Turn off all radios when not in use.
(gps, Bluetooth, wifi, data, 4g) Use a widget like the default HTC power widget or Switchpro from the market. The radios of the phone draw power if on even if the user isn't actually utilizing the radio's functions.
To manually turn off radios without a toggle, go to menu>settings>wireless & networks.
Wifi uses less battery than 3G, so use wifi when you can.
**IMPORTANT DISCOVERY**When you turn on your 4G radio, then turn it off, it will keep scanning and turning off all by itself.
The problem is apparently exacerbated by a 4G toggle widget, which causes the phone to automatically turn on 4G at boot. This repeating of scanning and disconnecting severely drains battery life, and sadly, no matter what ROM or kernel you use, there is only one way to fix it:
-If you don’t use the toggle widget, then you have to reboot your phone after turning off 4G
-If you do use a toggle widget, then you have to remove the widget from your homescreens, then turn off 4G via settings, then reboot.
**To check to see if this is happening, download alogcat off of the market. Look for the lines saying: I/Wimax ( xxx): <DC> Try to establish a connection to DC server.
E/Wimax ( xxx): <DC CONNECT> IO error: msg=’/xxx.x.x.x:xxxx –
Connection refused’
Over and over again.
2. Juice Defender is one of my favorite apps. Basically it controls your data for you to maximize life.
More explanations are on their page, search it on the market for free, or upgrade for more features.
Here are my settings for it: Click me
Note that for me at least, juice defender likes to deny apps data privileges whether you allow them or not, so screen on = data on works best for me.
3. I love live wallpapers, and I’ve always been a fan of pixel zombies, but they are really only good for showing off due to their battery drain.
4. Go to menu<settings<wireless & networks<mobile networks<disable always on mobile data.
Product F(RED) said:
To clarify, "Always On Mobile Data", when turned off, lets the 3G modem go to sleep after the screen has been off for 5 minutes. It doesn't interfere with anything like email or any other application that requires an internet connection at that moment because it turns on on-demand rather than being on all the time and wasting battery.
Click to expand...
Click to collapse
5. Set your screen timeout to something that fits you
This will prevent your phone from staying on when you don’t manually turn off the screen. Also with this, manually turn off your screen when you’re done with your phone.
6. Everyone has that issue where the first ten percent go the fastest.
This is due to two things. One is that these types of batteries stop charging once they get to 100% to prevent damage, and begin charging again at 90%. This means that you could potentially unplug your seemingly fully charged phone at 90% actual charge. The second is number 7.5.
6.5. Use the trick described in this thread, it works.
My idea behind how often you should do it is once a month, if you flash a new ROM, or if you stop noticing the benefits.
This is the calibration technique recommended by HTC themselves. Check it out!​
7. Task killers used to be the shiz, but no longer.
Here is the ultimate, in depth, graphically assisted, explanation by the famous Fresh ROM's chef, Flipz. Shortly, in light of recent testing, really don’t do anything but force apps that the android OS needed to be open, and thus didn’t close, to re-open. So try not using them, unless for stuff like trying to figure out why your phone isn’t sleeping with system panel. You really won’t notice a performance difference, and the adverse effects you aren’t seeing will stop
+=+ A good alternative is the application SystemPanel Pro. It has a free version, but I highly reccomend purchasing the paid app. It basically monitors everything going on with your phone's usage both in real time an in terms of usage history. If your battery is draiging fast, it tells you what app was doing it, how much it was doing it, and allows you to stop it.
8. People posting screenshots of the Battery screen as proof of long lasting battery are giving statistically irrelevant information.
See HERE That screen shows time since last REBOOT, not last charge. This isn't always the case, but a lot of people will post a lot of things about battery life, but look for definitive screenshots and testing results before you break down and cry due to the poster's life and yours.
9. I'm sure you have all heard around that your phone isn't "sleeping".
This is referring to the phone's "awake" time, hence the name. When you go to menu>settings>about phone>battery, you can compare the two numbers, "up time" vs. "awake time." Generally, up time refers to the amount of time since the last reboot. The "awake time" is how long the screen has been active. The problem is, a lot of the time, due to the endless possibilities of inconsistencies between apps/ROMs/kernels/phones, the phone will not go to "sleep", drawing power proportionate to the screen being in use when it reality the phone is sitting idle.
If you compare these numbers, and they are the same, or if you note the difference, turn off the screen for a minute, then re-check and they are the same, then your phone is not sleeping.
One solution is to reboot.
Usually, SystemPanel will show an app that has gone "rouge" and is keeping your phone awake.
Uninstall applications/reinstalling them slowly, checking after every install to see what is causing it is one tedious but surefire solution.
Lastly,
Follow these steps that I have discovered almost always work.
1. Reboot phone.
2. Instantly upon reboot, as soon as you gain control, open up some type of monitor/taskkiller
3. "kill all" tasks on startup; about 5 times in quick succession should do the trick.
4. Turn off the screen and leave it for about five minutes.
5. Check the up time v. awake time and see if they are the same.
6. If they are, repeat steps 1-5. If they are different, you are good.
Tips for Rooted users:
1. Try out custom kernels.
By going to the EVO 4G Android Development section of the forums, you can see all of the different kernels being developed. These allow for all kinds of modifications like underclocking the CPU and undervolting, both of which save battery. To see how to use them, read the FAQ's in each thread's OPs.
Here is a great guide to custom kernel's by mroneeyedboh.
2. Use SetCPU in compliance with whatever your custom kernel allows.
This site will explain the basics of SetCPU: http://www.pokedev.com/setcpu/
-Profiles from SetCPU should usually involve these for battery life optimization:
-Screen off at the minimum clock speed for both, with the max raised on level if sluggishness is apparent
-A temperature greater than “X”
-General power related profiles that lower cpu speed at lower battery levels
-Here are my SetCPU profiles: 1 , 2 , 3
-My profiles change a lot as time goes by, because different kernel creators recommend different settings. I suggest reading up on whatever kernel you are using to gather settings.
------------------------------------------------------------------------------------------------------
NOTES:
*Some apps or processes begin to run at startup and keep the phone awake. These apps are not detected by things like spare parts or system panel, unless sometimes represented in the "system" process, in which case its usage will be unusually high.
This shouldn't take more than three repeats, and if it does, you need to factory reset, and slowly add apps back to see what's causing the problem.
___--- When it comes to actually "calibrating" one's battery, there are a couple of methods floating around. The method I first learned is to charge the phone all the way, boot into recovery immediately, and "wipe battery stats". Then reboot quickly, and run your phone all the way to death without charging it, then charge it all the way without interrupting it, and you should be good to go. Do this when changing ROMs/kernels for best results.
----When it comes to people claiming 20 plus hours of moderate/heavy use out of their current setup or other ridiculous absurdities, consider my position: No matter what you do, the Evo battery is the Evo battery. You can tweak it and customize it with kernels, ROMs, and settings, but none of that will turn it into a car battery. The main problem (besides a false sense of pride) that leads to these reports is the misunderstanding of what the usage levels are, so here’s my best summary:
* *Light usage – Phone screen actually on for maybe 4 hours. Things like a few texts, some emails, 20 minutes web browsing, etc.
* *Moderate usage – You watched a few youtube videos or similar apps, sustained web browsing, hundreds of texts, some games. Hours range from about 5-10 of screen on
* *Heavy usage – LOTS of video watching and games, or some high def gaming/movie watching for at least an hour to an hour and a half in total, with lots of emails and texts, browsing, and other app shenanigans
*I’m sure everyone doesn’t agree with all these numbers, but this is most likely a good average of what powerusers think. All specific hourage may vary due to differences in phones, batteries, ROMs, and kernels… Which also means that most battery comparisons are pointless; it’s only what you can improve on that counts!
I’ll update this whenever I see good stuff, people remind me, or I remember/come across things I do.
Hope it helps everybody!
Hit the "THANKS" button if I help you!
*All this is available in the link in my signature
hfuizo said:
I'm trying to figure out if it's worthwhile to turn off mobile data when the screen is off, and turn data back on when the screen is turned on. It would also be necessary for me to occasionally switch mobile data on even when the screen is off in order to check email. (I'm thinking something like 15 minutes off, 3 minutes on)
Does anybody have any success stories or advice whether I am likely to see any noticeable battery savings by doing this?
Click to expand...
Click to collapse
I am the owner of SuttCo. We developed the Locale Mobile Data Plugin (which can be used by Tasker). It has a condition that can keep tabs on your data use and a setting which can be used to shut off mobile data.
I know Tasker and Locale have screen off/on conditions. I don't have time to run any tests for you (busy working on a new plugin), but if you're willing to do a semi-scientific study and report the findings here... I'll comp you a copy of the plugin. Shoot me a PM.
Good stuff
Sent from my PC36100 using XDA App
glad i found this post... improving batt life all written up, great job!
Juice defender takes care of turning off ur mobile data and turning it on when needed, all by itself
Sent from my PC36100 using Tapatalk
Not to say that turning off mobile data when you're not using it is a bad idea but I've found during my own personal experience with trying to improve my battery life for daily use that using titanium backup to freeze Google Backup Transport.apk is also a helpful solution. Other things that helped are going into Accounts & Sync and turning off background data because believe it or not, that stuff eats your battery up like a fat kid eating cake...hahahaha...Anyways, another tip would be to hit up Display and turn off Automatic Brightness and play around with the scroll until you come to a setting where you can see because I've found that the Automatic brightness eats up your battery too, not as fast but it does! Another thing that I've done is this and although there are task killers that would do this for you....I've decided to do this myself and after using an app such as Facebook or the brand new CNN app, I've gone into Applications and force close them out just to save battery and all of this nonsense I'm talking about has helped me out alot......NOT TO BRAG but using these little tips of mine, I've gone from 2 and a half hours and I was at 70 percent to 4 hours, 36 minutes and 48 seconds and I'm at 68 percent.....and that's with out turning my phone off, that's talking on the phone, texting, checking my facebook, downloading some apps here and there and just leaving it on in front of me at my desk.
Please don't start posting "Oh what, you want a FUC%ing cookie now" and all of this....all I intend to do is help someone by sharing my story....that is all! I got to get my butt to working again...hahahahaha
hfuizo said:
I'm trying to figure out if it's worthwhile to turn off mobile data when the screen is off, and turn data back on when the screen is turned on. It would also be necessary for me to occasionally switch mobile data on even when the screen is off in order to check email. (I'm thinking something like 15 minutes off, 3 minutes on)
Does anybody have any success stories or advice whether I am likely to see any noticeable battery savings by doing this?
Click to expand...
Click to collapse
I have setup a few Tasker profiles to do this exactly. I did this instead of JD because the free JD doesn't do exactly what I want it to do, and I don't want to pay for JD when I can emulate it with Tasker.
The only thing I cannot do, that JD can, is keep data on while there is an active connection. With JD, if you turn off the screen while there is an active data transfer, it will wait until the transfer finishes to turn off data.
According to the Tasker website, there is plans to make a state/event "connection data rate" which would make it possible to do this. But that has been in their plans for quite some time. (I actually happened upon this post while searching for a way to check if there is an active data connection with Tasker.)
Also, with the way that Tasker views an "Open program", the program has to be open in the foreground in order to be considered open. This makes it tough to keep data on when a specific program is open, unless you're planning on keeping that program in the foreground all the time. To get around this, I created a profile that leaves data enabled while I have headphones plugged in, since I have headphones plugged in while using all the programs that I want to have constant data with.
EDIT: here are the profiles, and the tasks that go with them (I also included a profile that turns off the wifi antenna after disconnecting from a wifi access point.)
dl.dropbox dot com/u/4658512/profiles.zip
dl.dropbox dot com/u/4658512/tasks.zip
(It won't let me post links because I don't have enough posts, so just take out the spaces and replace dot with .)

wifi goes sleep even setting policy to "Always On"

I have set the Wifi policy to "Always on".
Many times (but not every time) when my One X goes into sleep mode, all data connections don't work. I notice it because I feel so strange there is no notification from Whatsapp and Line as usual. So, I press the power button and see no data connection at all. After a few second, 3G data connection appears but no wifi. Wifi then replaces 3G a few second later.
It usually happens and I feel so annoyed as I lost communication with my colleagues when One X is sleeping.
Is there somewhere in "Setting" that can override the "Always on" in Wifi policy? If I miss it, please let me know.
I feel very disappionted with my One X as it contains a lot of bugs.
jackie_jerk said:
I have set the Wifi policy to "Always on".
Many times (but not every time) when my One X goes into sleep mode, all data connections don't work. I notice it because I feel so strange there is no notification from Whatsapp and Line as usual. So, I press the power button and see no data connection at all. After a few second, 3G data connection appears but no wifi. Wifi then replaces 3G a few second later.
It usually happens and I feel so annoyed as I lost communication with my colleagues when One X is sleeping.
Is there somewhere in "Setting" that can override the "Always on" in Wifi policy? If I miss it, please let me know.
I feel very disappionted with my One X as it contains a lot of bugs.
Click to expand...
Click to collapse
It's happening to me too, it's very frustrating because when turned on it show as connected while it's false.. and i'm unable to browse/etc without re enabling wifi manually.
Same issue on the One S. This is most likely a driver related problem or something. I think the next firmware update should fix this, but if anyone of you can provide a hotfix or something I wouldn't be sad
Getting the exact same problem.
I have not noticed this so far.
same problem with wifi....and in the nights my Data also gets switched off after sometime of inactivity...couldnt find any setting related to that....do any of you know any hidden setting for it?
Yeah it happening to me as well. It could be kernel related.
Same Here
Mine is opposite, I want it to sleep on screen off but it keeps reverting to always on. Quite frustrating as it is the major cause of my battery loss
Sent from my HTC One X using XDA
Mine uses less battery with wifi on then normal 3g/4g
vallandil said:
Mine uses less battery with wifi on then normal 3g/4g
Click to expand...
Click to collapse
yeah same here, i've tested both over night and less battery used on wi-fi than 3g
I cant connect to my home wifi, it show connected then disconnect immediate
it no usaable now in my house
I just noticed this, too. Really annoying when you suddenly stop getting any notifications for E-Mails etc.
This is also not fixed in 1.28 :/.
I seem to only have this during the night hours, though. Like there is some sort of "Quiet Hours"-function but they forgot to put it in the settings >_<
I think this is the special Sleep Mode kicking in, and the WiFi Always-On is overridden by it.
When I turn the screen off, I can still ping my One X over the network. However, after some time (maybe 5-10 mins) it no longer responds and has dropped its WiFi connection.
The Always-On WiFi option has only ever applied to when the screen is off. The sleep mode thing is new and not related to android itself - an HTC hardware thing by the look of it.
Maybe it's fixable in the driver software, but I believe the "WiFi always on" function is behaving correctly - it's the new sleep state that is breaking it.
I could be wrong, but that's what it looks like.
If someone has the time, try setting up a PC to continuously ping the One X and see if it keeps it from going in to sleep mode.
Dave Trouser said:
I think this is the special Sleep Mode kicking in, and the WiFi Always-On is overridden by it.
When I turn the screen off, I can still ping my One X over the network. However, after some time (maybe 5-10 mins) it no longer responds and has dropped its WiFi connection.
The Always-On WiFi option has only ever applied to when the screen is off. The sleep mode thing is new and not related to android itself - an HTC hardware thing by the look of it.
Maybe it's fixable in the driver software, but I believe the "WiFi always on" function is behaving correctly - it's the new sleep state that is breaking it.
I could be wrong, but that's what it looks like.
If someone has the time, try setting up a PC to continuously ping the One X and see if it keeps it from going in to sleep mode.
Click to expand...
Click to collapse
Hello Dave,
Your analysis is quite impressive,
I also started dealing with this from "Special Sleep Mode" perspective.
I have got the FOTA, find data in my signature, and still suffering from the same issue.
To summarize my findings let me brief it:
When I first got the update, the problem seemed to be solved
I kept connected to my home WiFi router for several hours and got notifications from Whatsapp and Twitter
I thought the problem was solved and the bug was fixed, as I kept seeing my OneX on the WiFi Client on my router's managing interface on my PC
I shut down my phone, WiFi was on, and turn it back on
WiFi kicked in and connected with no problems,
An hour after, I sensed something wasn't good, notifications were silenced
I unlocked my phone and checked the status bar to find there were no DATA connections at all, nothing, no WIFi no Mobile Data, the usual bug
Now I started to think,
I Have got this problem after a full shut down, and at a battery below 15%
One thing to add,
I turned my phone off with WiFi enabled and when turned it on WiFi kicked in.
Now I am monitoring on the following basis.
I clicked all WiFi hot spots previously saved on my OneX and chose to "FORGET"
Connected to my preferred hotspot
Monitoring the WIFI, with battery over 15%, seems to be very healthy, more than an hour on sleep mode, and WiFi is on, uninterrupted and VERY CONNECTED
I will keep monitoring the behaviour till battery fall under 15% and will report back
I'll make sure to turn off WiFi before shutting down my phone if I have to, this is to eleminate the other variable and keep concentarting on one variable "Battery percentage"
A point to add:
On my previous Gingerbread SensationXE, there was an option on Settings> Battery to control phone's behavior and stop background sync and other activities when battery fall below a pre-defined percentage.
Default was 15%
I can't find this option on my One X, IceCream Sandwich
That's why I started to analyse the problem from the perspective of "Special Sleep Mode - Below 15%" bahaviour.
I will report back as soon as I have results.
Thank you
Update:
Started to experience same issue when battery falls below 50%.
All DATA gone down, no WiFI and no Mobile Data.
Charged my phone to 73%, "Forget" all WiFi network.
WiFi off
Monitoring Mobile Data only.
Mobile data gone down after 30 minutes sleep mode, 73% battery
Connecting to WiFi, and started monitoring WiFi
WiFi + Mobile Data gone down after 30 minutes.
Power down phone, and then on, 73% Battery, WiFi off
Monitoring Mobile Data only.
Failed, and disconnected
Failure
I've done a Factory Reset !!!
Update:
No problems on WiFi, nor Mobile data whatsoever for the whole day until battery falls below 10% !!!
WiFi disconnected after exactly 15 minutes, Mobile data kicks in, then disconnected as well !!!
I turn on the screen after 20 minutes to find NO DATA CONNECTION of any kind.
Mobile data kicks in, WiFi replaces mobile data, and start receiving all data dependent notifications!!!
I have the same problem, wifi is turned off sometimes when screen is locked.
Pabson said:
I have the same problem, wifi is turned off sometimes when screen is locked.
Click to expand...
Click to collapse
Hello Pabson,
Thanks for sharing.
Would you provide more information about your phone's software number, your location (Region, not specific).
Thanks again.
Same here, tried several roms and the same happens with every ROM out there. What is more, I cannot connect to WIFI at work (WPA PSK) but I can connect perfectly to my home WIFI network.
Hopefully this is not a hardware fault and will be fixed.
Monrad said:
Same here, tried several roms and the same happens with every ROM out there. What is more, I cannot connect to WIFI at work (WPA PSK) but I can connect perfectly to my home WIFI network.
Hopefully this is not a hardware fault and will be fixed.
Click to expand...
Click to collapse
If it happens on every single rom you you installed, then apparently this is a hardware fault.
What "Base" do the Roms, you installed, created on?!
I mean based on what version of RUU?
same problem here.
I mis the "power saving mode" options like in android 2.3
It might idd have something to do with power savings mode kicking in.

Here's my workaround for the annoying WiFi battery drain bug on CM10.1

This is no longer needed! The bug is fixed with the new quattrimus and the Wind kernels... and probably an upcoming official one as well. 3-30-13
This is for those of you on CM10.1 (or ROMs based on it) who use wifi and need a way to work around the Wifi battery draining bug. If you didn't know, the wifi bug will cause your device to lose power at at rate of 6-10% per hour while just sitting idle with wifi turned on. This is aggravating for those of us who use wifi a lot and are used to just leaving it on because normally wifi uses LESS power than other connections!
I was formerly using DS Battery Saver or Green Power to toggle my connections, but I like the following method better because it is a bit smarter (you'll see what I mean). Also, sometimes those connection toggler apps would screw up my autosyncing and messages wouldn't show up for hours.
I tried the wifi timeout hack, which kind of sucked because wifi still stayed on in areas with no wifi.
After trying a ton of apps and combinations of apps, I've found a solution that works pretty well. Here it is:
1) Install the app "Better Wifi On/Off" by Sven Knispel
2) Open it up and hit the settings button. Put a check on "Expert Mode", then back out of the settings and go back in.
3) Place check marks next to the following settings options only:
- Enable when user turns wifi on
- Start on boot
- On when screen unlocked
- On when plugged in
- Only if connected
- If wakelock is held
- If network activity
- If plugged in
- Off when unplugged
- Off when screen off
4) Now find the option marked 'Delay - Time to wait before checking Wifi status' and set it to 10s. 0s may also work well, but I haven't tested it.
5) Profit.
*If you have problems with the program stopping, you can go back into Settings and put a check on 'Run as foreground service'.
**The program has a widget you can add to a homescreen so you can quickly disable/enable it if you have to.
With this setup, Wifi simply turns on when I need it and automatically turns off when I don't. It checks for traffic and won't kill the connection until your download or stream is done. It checks for access points, and if there are none available it turns wifi off... something that DSBS and other similar apps don't do all that well.
I'm getting battery life similar to if I had DSBS, Juice Defender or Green Power running- but I never lose autosync and nothing is ever delayed, because mobile data never turns off. I tested my hotspot function and it worked just fine with no interference.
Hope this helps until (if) we ever get a real fix for the wifi drain bug.
I'm not sure if I had something set wrong or it was an interaction with another program or something else, but I tried it and it locked up my phone hard. Not even the buttons light or feedback goes off but no screen. Had to use the hold power to reset.
I hope they're able to get the power issues taken care of in CM10. With the newer nightlies and the wind kernel it's honestly about as stable as CM9 for me. Power usage is my only major issue now.
SeriousGeorge said:
I'm not sure if I had something set wrong or it was an interaction with another program or something else, but I tried it and it locked up my phone hard. Not even the buttons light or feedback goes off but no screen. Had to use the hold power to reset.
I hope they're able to get the power issues taken care of in CM10. With the newer nightlies and the wind kernel it's honestly about as stable as CM9 for me. Power usage is my only major issue now.
Click to expand...
Click to collapse
Yeah it must have been something else at play- the above app doesn't really do anything unusual that would cause a hang. It's been doing well for me today- I've been using my phone pretty steady since 7am and I'm at 40% battery (now almost 4pm). I'm currently on miroslav_mm's CM10.1 build.

A Root Battery Saver App (By Moi)

I've lately got into developing mobile apps and even though i've promoted this as beta, people seem to be using it, but nobody's reporting back! - same goes for all of my apps, i don't get it...
Anyway, i need real feedback and I was wondering if any folks here with a rooted android could help test this app out, it was made on Kitkat, so while yes, it works fine for me, it may not for you... I've had one feedback comment saying that his modem data was not switching off on lollipop, so i added support for that now allowing him or her to use the app as intended, but after replying via the playstore, nothing was heard of him since... almost suspicious lol
http://www.youtube.com/watch?v=YpsPnMRO86w
Find it on Android's Playstore... Craig's Battery Saver ROOT
https://play.google.com/store/apps/details?id=saver.battery.craigs.craigsbatterysaver :good:
How it works..... read on
How it works, if you're interested!
2 things use up battery power
1. apps that are CPU intensive, eg constantly repeating to connect (this would only happen under malware, as most apps would never do this, it would see the socket it closed/dead and stop and wait until user input, malware would constantly reconnect.. but 99/100 apps will just stop and then do nothing meaning all genuine apps should 'idle' not really using up cpu time....
2. Hardware services, bluetooth, mobile data, wifi, gps, these services are all hardware, so your cpu will switch on each of these services and each one has a significant drain on your battery, go bed at 11pm, by 9am it may have drained 30 - 40% or more... with this app, it will have drained under 1 - 3% depending on your battery (tablets for example should run for days with this app if rooted)
So this app does 2, it first remembers which hardware was on before the screen goes off, so no confusing switch wifi on when wifi's already on (as i've seen on other apps?!) reason why i wrote this because all the other apps i came across sucked really, almost but not quite etc etc..
With this tool, if you're a light user you could quite easily see 60% battery improvement! the bonus side affect of this app is also interesting, for 1, it charges quicker! if you accidentally fall asleep, it will conserve as much power as possible, obviously sms,telephone/mobile network is still running in the background so you can't completely stop a device from draining...
the other bonus side affect was, it kills dead all facebook notifications, twitter, well it would as it disables wifi, modem. 3g, bt when the screen goes off! :good:
1 more feature, if you drop your phone? then what?... take where's my droid, i sms it asking for location... it replies "GPS OFF" and "modem off" simple, send the text message to your phone with "on" without the " " around on, and the app will disable itself so it does not switch off the services and then at the same time it enables Wifi, Modem Data, Gps, Bt pretty useful huh... then on where's my droid, you'll get GPS combined with AGPS data from mobile data giving you pin point accuracy, as soon as you get the data of where it is... type in
off (to turn this feature off) or
on (to turn on all your services)
It also disables itself taking calls...
It has a smart check feature too, let's say after you switch the screen on and for some reason wifi failed to switch on ? after 3 seconds it will then check again to see if wifi is indeed on... if it's not on, it attempts to switch it on again...
Feedback is greatly appreciated so i can support a larger range of devices.... thank you for reading! (Suggestions, welcome!)
So basically what your device is and what's not working (along with build version, lollipop/kitkat etc) and i'll see if i can find a way to add it in to support your droid! - one more thing, i've been releasing updates like a crazy woman collecting cats lately and even though it does all this it's only supporting "Extreme power saving option" come tuesday i hope to have that sorted out so that every few minutes it can wake up to check for twitter/facebook messages for all of those who hate the sound of a phone being blissful quiet
if you're rooted and it does not look like that in the video [top of screen] (not the interface, but the services, i've already updated the UI)
anyway, help me to make it better for you...
One more thing, there are no push notifications, no popup adds, no huge banners, all my apps have one tiny advert to help support the countless hours of programming i'm putting into this apps, with each upgrade i aim to make them more stable and more usable, and i really need peoples help and support even if that is criticism - it's "beta" but i'm almost ready to bring it out after i add the wake up services....
Nobody has a rooted device?
Unlike other battery savers... it really does work

Categories

Resources