Related
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...
Anyone here using it? what is this app for? is it worth buying? does it give u battery life? im really interested but i cant find no videos on it on youtube. please share your thoughts.
It is worth every penny. The best app for android IMO. It is not very easy to master it, but even the basic stuff has made a vast difference too the behavior of my phone.
For example, I have extended my battery life to 38 hours simply by having it automatically go into airplane mode between midnight and 6am.
It will turn off wifi, back screen brightness down, change screen timeout to 10 seconds and give me a notification popup and sound when my battery drops below 15%.
It will turn on gps when Wavesecure is activated, something Wavesecure can't do by itself.
It will turn my ringer off when I get within 200m of the two cinemas I go to.
It turns wifi on when I get home, and off when I leave. Same for work.
It loads my music app when I plug my headphones in.
Tasker can make widgets! I have one set up to (with one press from my home screen) turn up screen brightness, turn on gps, turn up speaker volume to max, wait 2 seconds, then launch google navigation. It will then turn everything back when I exit out of navigation.
It will, on weekdays, text my girlfriend at a certain part of my journey home after work. That way my dinner is ready when I get home!!!
I would say try out the free 1 week trial. There is even a wiki and web site with extensive instructions and examples uploaded by other users. You can also import profiles as well as create your own. The really handy ones I have exported to my sd card, and e-mailed them to a friend when he bought Tasker. Not sure I helped him though as there is a steep learning curve for this app, and it is worth being patient with it to learn its ways for yourself.
I think it is worth much much more than the asking price.
Sent from my HTC Desire using XDA App
wow sounds sooo nice . i already bought full version yesterday but havnt even opened the app once . well i did open it once it seems hard to understand lol . so for all this task does the gps need to be on? or not? and can u turn off 3g?
You can turn off APN, but don't think that works well in the UK. Sorry, my knowledge of 3g is limited.
Basically, you can have tasker turn on and off nearly any feature of your phone that your want. There are two sides to tasker. The "Profile" and the "Task".
I have found it is best to first set up the "task". Say you want to save battery power at night. Select the task button and select "new". Call it "power save" or something. Select the + symbol and select "Net". In this menu, pick "Airplane mode" and select to ' on'. Then hit ok, then save.
Now to create the 'Profile' where you define the contexts that will activate the "power save" task you just created.
Select 'new' then select the 'time' context. Enter the time you would like to have your phone go into airplane mode. After hitting 'ok' it will take you to the profile page where you set up what now happens between the times you just specified. From the drop-down at the to of the page, select the "power save" task you created earlier. Hit 'ok'.
Done. Your Tasker will now shut off all your radios between the times you entered.
Sent from my HTC Desire using XDA App
Worth every penny. I use it to:
- turn on GPS for programs that need it (turns back of when editing the program)
- turn notifications off when starting desk clock
- change volume when connecting head phones
There are endless possibilities, try it and then buy it.
i've bought it for little things but want it to be able to handle 3g data which it doesn't
i,e turn on wifi, if no conn after 10 secs, turn on 3g, auto sync for a min, then turn data off.
works fine and dandy with wifi, but not 3g.
tommo123 said:
i've bought it for little things but want it to be able to handle 3g data which it doesn't
i,e turn on wifi, if no conn after 10 secs, turn on 3g, auto sync for a min, then turn data off.
works fine and dandy with wifi, but not 3g.
Click to expand...
Click to collapse
You need APNDroid to disable 3G.
tasker really is worth every penny!
Wort every cent. Must have
I used to check periodically (every 3 minut) if my car Bluetooth near. If yes connect and and hold on the connection. If disconnect wait 15 minutes and seek again... save really battery... fantastic...
Sent from my HTC Desire using Tapatalk
Tyderion said:
You need APNDroid to disable 3G.
tasker really is worth every penny!
Click to expand...
Click to collapse
it still doesn't work. it turns apndroid on, but 3g flashes up then dissapears.
wnp_79 said:
It will, on weekdays, text my girlfriend at a certain part of my journey home after work. That way my dinner is ready when I get home!!!
Click to expand...
Click to collapse
Now that i like. This app sounds amazing.
Thanks for bringing it to my attention.
wnp_79 said:
It is worth every penny. The best app for android IMO. It is not very easy to master it, but even the basic stuff has made a vast difference too the behavior of my phone.
For example, I have extended my battery life to 38 hours simply by having it automatically go into airplane mode between midnight and 6am.
It will turn off wifi, back screen brightness down, change screen timeout to 10 seconds and give me a notification popup and sound when my battery drops below 15%.
It will turn on gps when Wavesecure is activated, something Wavesecure can't do by itself.
It will turn my ringer off when I get within 200m of the two cinemas I go to.
It turns wifi on when I get home, and off when I leave. Same for work.
It loads my music app when I plug my headphones in.
Tasker can make widgets! I have one set up to (with one press from my home screen) turn up screen brightness, turn on gps, turn up speaker volume to max, wait 2 seconds, then launch google navigation. It will then turn everything back when I exit out of navigation.
It will, on weekdays, text my girlfriend at a certain part of my journey home after work. That way my dinner is ready when I get home!!!
I would say try out the free 1 week trial. There is even a wiki and web site with extensive instructions and examples uploaded by other users. You can also import profiles as well as create your own. The really handy ones I have exported to my sd card, and e-mailed them to a friend when he bought Tasker. Not sure I helped him though as there is a steep learning curve for this app, and it is worth being patient with it to learn its ways for yourself.
I think it is worth much much more than the asking price.
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Wow sounds like you have a good understanding and has some good stuff. I don't know if you can, but I posted a page where maybe people can leave profiles for those of us who are a bit more chronologically challenged.
This is the greatest
I use tasker for everything. I am very forgetful so I have it pop up astrid tasks when I leave the house or work. The quiet mode works well for work and there is even a way to auto check in to foursquare.
Worth every penny, it makes your phone 10 times better and is a must have app.
I have profiles that do the following:
-During work hours and within range of the office set Vibrate, turn off wi-fi.
-When within range of home turn on Wi-Fi
-If at home after certain time in evening go silent
-When leaving car (detected by bluetooth connection to stereo), store time and location. Have icon on desktop to retrieve info and show on map to find car.
-When on call (by checking diary) if a colleague calls always ring regardless of silent.
-Say caller/texter name
-Send magic packet to wifes phone to report location and show on map (handy when shopping)
Plus many other scripts....
I find that this program has a pretty high learning curve...
Is there a wiki I can read up or a way to import other people's profiles?
YoYoost said:
I find that this program has a pretty high learning curve...
Is there a wiki I can read up or a way to import other people's profiles?
Click to expand...
Click to collapse
http://tasker.dinglisch.net/
Using "Cell Near" instead of GPS
I was using Tasker to turn WIFI on and off based on GPS locations. However, I found an alternate method that does not use GPS calls (and waste battery use). Instead, I am now using "Cell Near" to find the cell tower near home and turn WIFI off when I am not within distance of it.
I have posting walkthroughs of all of the most useful profiles I have collected. Check it out at http://dbilliter.blogspot.com
Tasker rules my phone... With all the taks i made.... Love the app!!!
You can do almost everything if you know how to use it... Little variable programming and your phone will get his own life haha...
GREAT APP
the_ahmadzais said:
Anyone here using it? what is this app for? is it worth buying? does it give u battery life? im really interested but i cant find no videos on it on youtube. please share your thoughts.
Click to expand...
Click to collapse
If you're interested I've put together this thread http://forum.xda-developers.com/showthread.php?t=1018245 on how to use the CPU Profiles - I hope it's good enough to replace SetCPU!?
Let me know what you think.
problem with deleting profiles
i am also new to tasker. made a simple sms schedular, which worked fine, but when i deleted all the profiles, contexts and tasks...somehow sms is still going on scheduled time... tried to clear data, force stop it, but still sending sms.
any suggestion.
thanks
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.
Hi, I have rubbish Orange signal at home and at work, so I started using Orange Signal Boost, which you may or may not know if the (somewhat misleading) name for an app that redirects the phone signal through any connected wifi router. So as long I have a wifi connection I have phone signal. Great. Apart from one thing, say now if I come home and my phone (Galaxy S2) is in sleep mode, it will not look for wifi and therefore not connect to Orange Signal Boost. So I miss calls/texts because I have no signal. And this situation will remain until I happen to wake my phone up for whatever reason, then it will connect almost immediately.
What I want is an app (or to change the settings of my phone somehow) that will, even in sleep mode, periodically turn on wifi, see if it can connect to any router. If it can't then I would like the app to turn off wifi, but if it can then it would connect automatically (which will then turn signal boost on) - I'm sure this would then keep signal boost on even if the phone is in sleep mode.
For obvious battery life reasons, I want the app to be as small as possible, and only check for wifi every, say 10 mins.
Do you know of an app (or phone setting) that would help me? If someone fancies developing one (can't imagine it would be that difficult for a developer) I'd be willing to pay for it. Plus, I think this would be useful for every user of Orange Signal Boost.
Thanks.
I just upgraded from a Samsung captivate to the HTC One X. Actually, I have two of these devices - one for the wife. We went to a rural area yesterday with bad reception, and by the middle of the afternoon both of our phones were dead. Looking at the power usage, cell standby ate up 60-something percent of the battery with 22-percent of the time with no signal. Is this the accepted behavior? I never had this problem with other phones. Searching the forums basically returns answers like "put your phone in airplane mode when you have bad reception." It just seems like the phone should figure out how to quit wasting power somehow (like I assume other phones do). Any advice? Any way to limit the max power of the radio when in a poor reception area?
bignate2k1 said:
I just upgraded from a Samsung captivate to the HTC One X. Actually, I have two of these devices - one for the wife. We went to a rural area yesterday with bad reception, and by the middle of the afternoon both of our phones were dead. Looking at the power usage, cell standby ate up 60-something percent of the battery with 22-percent of the time with no signal. Is this the accepted behavior? I never had this problem with other phones. Searching the forums basically returns answers like "put your phone in airplane mode when you have bad reception." It just seems like the phone should figure out how to quit wasting power somehow (like I assume other phones do). Any advice? Any way to limit the max power of the radio when in a poor reception area?
Click to expand...
Click to collapse
From the dialer type *#*#4636#*#* (*#*#INFO#*#*)
Go to phone information
scroll down to set preferred network type, it probably have in 'WCDMA preferred'
click on it and choose 'GSM AUTO (PRL)'
This will lower the power usage of the radio searching for a better signal, this will be ideal in low signal areas, i use this also and it saves a lot of battery.
If your phone is rebooted this setting will probably revert back to WCDMA preferred by the way :highfive:
Ok, thanks, I'll give that a try.
25092992 said:
From the dialer type *#*#4636#*#* (*#*#INFO#*#*)
Go to phone information
scroll down to set preferred network type, it probably have in 'WCDMA preferred'
click on it and choose 'GSM AUTO (PRL)'
This will lower the power usage of the radio searching for a better signal, this will be ideal in low signal areas, i use this also and it saves a lot of battery.
If your phone is rebooted this setting will probably revert back to WCDMA preferred by the way :highfive:
Click to expand...
Click to collapse
Since when does this work? When you check the setting again it's back on WCDMA. Not just reboot.
He could just shutdown data and use GSM from the menu... That will stick...
Settings > Mobile network > Network mode
Sent from my HTC One X using Tapatalk 2
Hello, i tried on mine, and it gets back on WCDMA preferred on reboot.
I didn't noticed that.
I set it "again" to GSM Auto (PRL) and it looks to stay active
but i have to quit the menu with the home button.
I noticed that if i quit parameters menu with the back button, it is resetted to WCDMA preffered
when i get back in the hidden options ...
No way to force this parameter to stay ?
Yeah, my phone won't event let me change it from "gsm/wcdma/lte auto". Every time I try, it just changes right back. I thought about trying to set up tasker to detect no signal and turn off data. Then when back in range, turn data back on. Any other ideas?
bignate2k1 said:
Yeah, my phone won't event let me change it from "gsm/wcdma/lte auto". Every time I try, it just changes right back. I thought about trying to set up tasker to detect no signal and turn off data. Then when back in range, turn data back on. Any other ideas?
Click to expand...
Click to collapse
Isn't this how this actually works now? What about just setup tasker on location or time. Or just have a manual switch to turn to gprs/edge. Not entirely data of. But then again slow data much syncing big drain.
Sent from my HTC One X using Tapatalk 2