Wifi automation - Sony Xperia M

For couple weeks I'm trying to find a way automaticly turn on wifi for like a half min, while the screen is off, and then turn it back off. You know, just sync quickly with social media, emails, etc, but still not connect all the time, to save battery. But I can not do it... I tried numerous app from the Play(even bought Tasker...), but non off it works, when I turn off my screen its just wont connect to wifi no matter what. Maybe its related to Stamina mode, but I'm not sure.
Any suggestion how to resolve this?

Related

Wifi Setting switching itself off?

Hey,
I've noticed my wifi keeps getting set to "off" seemingly at random. It works fine when it's on, however a few times a day, I'd find that the wifi switched itself off (even while in range of a working wifi signal, say even if left at home on a table all day) and I'd have to reenable it via the communications settings screen.
It's somewhat annoying and chews up my mobile internet when I don't noticed wifi's off.
Anyone else have a fix/noticed this?
Thanks !
It usually goes off when the device enters standby. Have a look into this thread for how to keep it on in standby mode. Beware that this might eat your battery http://forum.xda-developers.com/showthread.php?t=524490
Kork said:
It usually goes off when the device enters standby. Have a look into this thread for how to keep it on in standby mode. Beware that this might eat your battery http://forum.xda-developers.com/showthread.php?t=524490
Click to expand...
Click to collapse
Ah I read that but I think you misunderstand what I meant, I know it goes off during standby, however when it comes out of standby, WiFi should automatically renable itself, which it does - sometimes.
I believe I figured out what the problem is, whenever I plug the TP2 into my PC, it uses my PC's net connection(?) and disables WiFi. When I remove the phone form the PC, it doesnt restart Wifi.
Any fix on that?

WiFi stays on in Stand By with Cellular Data Off

This week I noticed something really great... Normally I charge my phone during the night, but the other day I charged during the day and it was at 75% when I was going to sleep so to save battery I turned off Cellular Data but left WiFi on (I knew it would turn off in stand by).. I forgot battery saver LOL...
But in the morning my phone was all up to date, Weather, News, Emails.. Everyting...
The past days I've been doing the same and I noticed that as long as cellular data is off.. If I lock the phone with the WiFi connected it stays on and connected, if it's not connected or the router restarts during the night it doesn't connect.. Nice..
I'm using Omnia 7 with 8107 update...
Yeah... Tested it just after reading your post.. Wifi stays on
No
Wifi stays on only if the phone is charging.
yeah it stays only on if charging and 1/2h after you see your lockscreen before you go to sleep. i get sometimes email but all they arrive only 1/2 after the lockscreen, not during the night. and at the morning i get all the other emails, that arrived 1h after the lockscreen during last night...
I've been confused for 1.5 years what people mean by WiFi turns off with phone locked. If I start a download a file and shut the screen off it still downloaded it. When I plugged my phone in at night, all the things I selected to sync on my PC were on my phone in the morning. Are people just not setting up ' Wireless Sync ' via Zune phone settings? 10 minutes after my phone is on charger if I'm at the PC a message pops up showing a connection to my phone, and it syncs with Zune.
I'm sure I must be overlooking something, but what other reasons do we need the WiFi to work with the phone sleeping?
taxidriver9 said:
Wifi stays on only if the phone is charging.
Click to expand...
Click to collapse
this.
I don;t turn my data connection on but i have my wifi on.
The phone is right next to me and it can't update my email unless i unlock it.
Seed 2.0 said:
I've been confused for 1.5 years what people mean by WiFi turns off with phone locked. If I start a download a file and shut the screen off it still downloaded it. When I plugged my phone in at night, all the things I selected to sync on my PC were on my phone in the morning. Are people just not setting up ' Wireless Sync ' via Zune phone settings? 10 minutes after my phone is on charger if I'm at the PC a message pops up showing a connection to my phone, and it syncs with Zune.
I'm sure I must be overlooking something, but what other reasons do we need the WiFi to work with the phone sleeping?
Click to expand...
Click to collapse
Even if we don't need WiFi to work with the phone sleeping, but every time I unlocked the lockscreen, it will reconnect to WiFi for seconds, I have to wait a moment till I use my WiFi again, it's really inconvenient, and I cannot keep the phone charging all the day. IOS and Android have no such problem. I really think this is someting need to be improved.
I agree.... I think it's done this way to save the battery.

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.

3g network doesn't return when wifi turned off

So this has been bugging me for a while, and I'm not sure what the reason is... whenever I disconnect from wifi, my phone won't automatically turn mobile data/3g on. I'll turn wifi off, and then try to get on facebook, and it will give me the "failed to connect" screen and asking me to tap to refresh.
This is just an example, no data will work at all. I have to either wait quite some time for data to return, or restart the phone, which is often a little faster. Is there a reason this is happening? It's been going on for months while I've been on a variety of different roms/kernels. Currently running fxp142 cm9.1 with the appropriate kernel.
Bump - anyone have a suggestion?

wifi keeps turning itself on

Anyone have this issue, on a Verizon phone. I can literally watch my phone turn wifi on.
Ok this is real odd, when I turn on the screen it turns on wifi, connects, then disconnects wifi.. every time. Literally just started happening.
disregard.... my bad somehow Tasker profile for wifi being turned on when location sensed I am home somehow got turned on. I made the profile years ago, imported Tasker into mg G4 and it decided to turn that profile on so I was at a loss for what was going on since I never use said profile.

Categories

Resources