Related
How/What do i need to do for the wifi internet sharing to continue sharing when the phone goes to sleep, I know there are apps that will keep the phone awake while the wifi is ON, but internet sharing is already battery unfriendly as it is, to top it off with the screen being ON all the time, so I would like the phone to go to sleep but the wifi still be ON, I apologize if this subject was addressed before I just couldn't find it. Thank you in advance.
TD2 Tools has a setting for allowing Wifi in stanby mode.
I've never tested it though.
Hello. Does anyone knows how to make a script for tasker which switch mobile data off if WiFi is connected and mobile data back on if there's no WiFi connection? For the last 3 or 4 hours I'm searching for this and can't find nothing.
Also, I want if there's no WiFi network, to switch WiFi off (so mobile data will be turned on).
I managed to do something, but it didn't worked. When I enabled the profiles with WiFi and mobile data both turned on, the mobile data turned off, then WiFi off, then mobile data on and so on, in a loop.
Wouldn't that be redundant? The os already does that.
Sent from my Nexus 7 using Tapatalk
Thanks for the response. I know that if WiFi is connected, I'm using the internet from it, but mobile data is still active, right? Even if there's no traffic from mobile data, that's still on. Wouldn't that be a source of battery drain?
I set my data to turn off if my phone is connected for 5 minutes to a wifi. Important: set collision handling to 'abort existing task'.
Here you got pictures.
Edit:
if you are further interested in battery savings, you can read my thread "[BATTERY LIFE] How to get up to 7+h of screen-on-time"
This is absolutely redundant and unnecesary, when the phone connects to a wifi, it disables 3g/LTE data connection by itself. When you connect to a wifi you can see how the 3g/H/H+ icon above radio signal dissapears. The radio chip inside this phones can be used in Wifi mode or 3g/4g mode for data connection, but not both at a time. It is technically not possible.
Accidentally sent from my Xperia Z using Tapatalk
RoberM said:
This is absolutely redundant and unnecesary, when the phone connects to a wifi, it disables 3g/LTE data connection by itself. When you connect to a wifi you can see how the 3g/H/H+ icon above radio signal dissapears. The radio chip inside this phones can be used in Wifi mode or 3g/4g mode for data connection, but not both at a time. It is technically not possible.
Click to expand...
Click to collapse
The moment you don't have wifi anylonger, the phone starts a fullburst search for wifi and 3G/4G networks (even if I don't want wifi/data at the moment). and this drains a hell of a lot of battery. then (if you go out e.g.) it finds a 3g/4g-connection which it tries to keep up (drains a lot battery) and in the same time searches for wifi-networks (also drains battery)... very inefficient use of battery
So I deactivate data after 5 mins automatically via tasker and turn it on manually when I need it (could also automate that, but I'm lazy). This way I circumvent all these battery drains
Additionally:
Under normal circumstances I'd also set wifi to "turn off if not connected" (in settings) and "optimize wifi for battery life", but I use a custom stock kernel that has issues with these settings so I need to leave wifi on all day
sea2605 said:
The moment you don't have wifi anylonger, the phone starts a fullburst search for wifi and 3G/4G networks (even if I don't want wifi/data at the moment). and this drains a hell of a lot of battery. then (if you go out e.g.) it finds a 3g/4g-connection which it tries to keep up (drains a lot battery) and in the same time searches for wifi-networks (also drains battery)... very inefficient use of battery
So I deactivate data after 5 mins automatically via tasker and turn it on manually when I need it (could also automate that, but I'm lazy). This way I circumvent all these battery drains
Additionally:
Under normal circumstances I'd also set wifi to "turn off if not connected" (in settings) and "optimize wifi for battery life", but I use a custom stock kernel that has issues with these settings so I need to leave wifi on all day
Click to expand...
Click to collapse
Umm, ok... But this has nothing to do with what the OP asked, or what I said.
You may try e-robot from play store.
I have a command for that, after wifi disconnects, wait for 30 sec. If still wifi is not connected, automaticcaly disables wifi.
Same as for bluetooth. When i leave my phone in my desk and gone for a while, 60 sec later disable bt.
You can do what ever you want.
Sent from my C6603 using Tapatalk
Hi everyone
I have a profile that that kicks in every 30 mins from 8 am to 9pm, to sync my account. I have set it up to use wifi first, but if there is no wifi connection it will go to my mobile data instead.
Now here is the problem if my phone is on standby it always connects via mobile data regardless of a wifi connection is available. But if I am using my device at the time when the task runs then it will connect to wifi. I have checked my, keep wif on in sleep option and it is set to always.
Could anyone explain as to what this is happening?
Thanks in advance
What is your Android version?
I am currently using a custom rom called exodus which is currently based on marshmallow.
Check if Tasker is excludied from Battery Optimization and whether Wi-Fi is not deactivated while the phone is in sleep mode in Settings/Wi-Fi/Advanced/Keep Wi-Fi on during sleep.
yep tasker is excluded from battery optimisation and the allow wifi during sleep policy is always.
If you're turning wifi on with tasker action wifi turn on, try instead of that shell script "svc wifi enable".
Ok thanks, I will let you know the out come of this. I was using secure settings to enable Wifi as the command built in tasker, is not compatible from kitkat and onwards if I remember correctly.
I found out "svc wifi enable" command does exactly the same thing
Discovered I'm having the very same problem on cm13 and the batch jobs have been done by initialized mobile data. Finally found out a solution to initialize wifi instead of mobile data. I've no limited data plan, but wifi is more battery friendly.
taisto said:
Discovered I'm having the very same problem on cm13 and the batch jobs have been done by initialized mobile data. Finally found out a solution to initialize wifi instead of mobile data. I've no limited data plan, but wifi is more battery friendly.
Click to expand...
Click to collapse
Care to share the solution?
After all this is a community that people use to, find solutions to problems and to get the most out of their device. Which also help others who experience the issue for future reference.
Does anyone else know a solution to this?
HatchetEgg said:
Does anyone else know a solution to this?
Click to expand...
Click to collapse
Do you actually wait for wifi to connect?
Does your phone do the low power screen off wifi thingy?
rignfool said:
Do you actually wait for wifi to connect?
Does your phone do the low power screen off wifi thingy?
Click to expand...
Click to collapse
Yes under normal circumstances it takes about 20 seconds to connect.
No because for some reason my wifi will only switch on if the screen is on.
I also have uninstaled my custom kernel, but this issue still appears from time to time.
There's a setting in wifi connection settings that you can set to that says "keep Wi-Fi on during sleep"
This same setting is often repeated in battery apps like powernap, naptime, better battery saver etc.
Even though the wording is the same, I don't believe they are all touching the same setting so go find those apps if you have them installed.
Also, disable all native battery savers (including Samsung 2 or 3 different ones,, doze, battery optimization etc etc just to see if your problem goes away.... Which it will. At least you'll know though
I have the same problem with Wi-Fi connection.
I have a profile to turn Wi-Fi on and try to connect when certain conditions meet and the screen is off in that case.
It seems that the phone has difficulties turning Wi-Fi on and connecting to it when screen is off. Tasker does manage to turn Wi-Fi on but the phone somehow does not connect *reliably* in all cases.
Tasker is excluded from battery optimization, Wi-Fi on during sleep. I tried turning cpu on for a short time hoping that it will connect, but still no result.
The only possible solution might be turning the screen on briefly at that moment.
If anybody has a better idea, you are more than welcome to share!
alienyd said:
I have the same problem with Wi-Fi connection.
I have a profile to turn Wi-Fi on and try to connect when certain conditions meet and the screen is off in that case.
It seems that the phone has difficulties turning Wi-Fi on and connecting to it when screen is off. Tasker does manage to turn Wi-Fi on but the phone somehow does not connect *reliably* in all cases.
Tasker is excluded from battery optimization, Wi-Fi on during sleep. I tried turning cpu on for a short time hoping that it will connect, but still no result.
The only possible solution might be turning the screen on briefly at that moment.
If anybody has a better idea, you are more than welcome to share!
Click to expand...
Click to collapse
I can certainly say that turning the screen on will enable wifi, as I have resulted to this as well. But unfortunately I do not know any other solutions to try.
loogielv said:
There's a setting in wifi connection settings that you can set to that says "keep Wi-Fi on during sleep"
This same setting is often repeated in battery apps like powernap, naptime, better battery saver etc.
Even though the wording is the same, I don't believe they are all touching the same setting so go find those apps if you have them installed.
Also, disable all native battery savers (including Samsung 2 or 3 different ones,, doze, battery optimization etc etc just to see if your problem goes away.... Which it will. At least you'll know though
Click to expand...
Click to collapse
My Wifi is set to always "keep wifi on during sleep"
I'm going to resort to flashing stock rom again and see if that helps. As I am only using doze and amplify to save battery, all settings for that has been adjusted to the guide I found.
HatchetEgg said:
My Wifi is set to always "keep wifi on during sleep"
I'm going to resort to flashing stock rom again and see if that helps. As I am only using doze and amplify to save battery, all settings for that has been adjusted to the guide I found.
Click to expand...
Click to collapse
Before reflash, just disable xposed and see what you get... I will bet half of this soft taco I'm eating your problem disappears with greenify and or amplify. I'm not saying don't use them at all... Just make sure it works without them. I used to have some serious battery apps, but found after disabling, my battery was IMMENSELY better. And I had no config to deal with. But first things first... IT'S without a doubt, no question, a battery app setting or a system app that's being put to sleep that should be white listed
I have it enabled and it says it auto turns off WiFi and back on when near used wifi locations but it doesn't do that at all. Does it simplyeave WiFi on but low energy?
Screenshot l
Yeah it works.
How do you know it doesn't do it? Cellular phones hand off betwixt cellular and wifi all the time.
When and how often it does is based on some under the hood shenanigans that we dont know about.
marctronixx said:
How do you know it doesn't do it? Cellular phones hand off betwixt cellular and wifi all the time.
When and how often it does is based on some under the hood shenanigans that we dont know about.
Click to expand...
Click to collapse
I drive away from my house. WiFi stays on but not connected. Screenshot says wifi will turn on when near known connections but it never turns off ?
masri1987 said:
I drive away from my house. WiFi stays on but not connected. Screenshot says wifi will turn on when near known connections but it never turns off ?
Click to expand...
Click to collapse
I don't think it's supposed to turn off. What that phrase means is that it will connect to WiFi when it's near a saved access point and will use mobile data when none are nearby, but WiFi will still remain on.
What adaptive WiFi does is it will use mobile data even if it's connected to a WiFi access point if the WiFi signal is bad.
I'm not sure what adaptive wifi supposed to do, I have it off and it switches between wifi and cell as it should. Is it switching in the middle of data transfer or something? Because right now I probably drop connection if move outside wifi range and will be on cell tower on the next redial. But to tell truth I never tested it.
So basically it's a gimmick, because Wifi as it is, will auto-connect to previously connected networks as long as you had wifi on. If i'm interpreting the screenshot properly the feature "turns on" wifi, therefore, it must be able to turn it off? I've even manually turned it off to see if it will turn itself back on when i get back home and nothing either.
No documentation on Samsung's site as far as i can find
masri1987 said:
So basically it's a gimmick, because Wifi as it is, will auto-connect to previously connected networks as long as you had wifi on. If i'm interpreting the screenshot properly the feature "turns on" wifi, therefore, it must be able to turn it off? I've even manually turned it off to see if it will turn itself back on when i get back home and nothing either.
No documentation on Samsung's site as far as i can find
Click to expand...
Click to collapse
Basically if you're connected to WiFi but have crappy signal like .2 kbps, it will start using your mobile data even if you're still connected to that WiFi. With adaptive WiFi turned off, it will keep using the crappy WiFi connection until you manually turn WiFi off or manually disconnect from the crappy network. Pretty much the reverse of WiFi calling (use WiFi if phone signal is crappy). Note the exceptions sentence at the bottom, it will not use mobile data even if the WiFi has a crappy signal if the crappy WiFi is exempted.
The "turn on" statement is correct, it will automatically turn on and connect to WiFi when it's in range of "trusted" access points (similar to "trusted devices" and "trusted places") but there is no automatic "turn off", at least, it hasn't done that while I've been using it.
OK i see what you are saying
wifi does not PHYSICALLY TURN OFF. wifi is still connected--the phone will auto switch to the stronger of the two. it won't turn the on screen "switch" off if that is what you are looking for.
its not a gimmick. it works if you are in an area with robust wifi and/or cellular. its supposed to work "in the background" so you don't know its going on.
google fi kinda does this. since google fi uses tmobile and sprint, the phone auto switches between the two carriers depending on which is stronger at the time. i've seen this happen by monitoring an app.
masri1987 said:
So basically it's a gimmick, because Wifi as it is, will auto-connect to previously connected networks as long as you had wifi on. If i'm interpreting the screenshot properly the feature "turns on" wifi, therefore, it must be able to turn it off? I've even manually turned it off to see if it will turn itself back on when i get back home and nothing either.
No documentation on Samsung's site as far as i can find
Click to expand...
Click to collapse
Not a gimmick at all. I work at a hospital that has wireless routers throughout that all piggy back the same access point. I see Adaptive wifi in action all day. Keeps me from losing my connectivity from my work portal.
don't think I want to have this on: I have limit on my cell data, let's say I start downloading something large, let's say 5- 10 GB movie from Amazon on wifi, then I go to my upstairs bedroom, wifi gets weaker, so it switches itself to stronger cell tower and eats my whole month data allotment in one evening, before I even notice? And all I had to do is keep the phone downstairs, next to the router to avoid it. Or am I missing something?
harveydent said:
Basically if you're connected to WiFi but have crappy signal like .2 kbps, it will start using your mobile data even if you're still connected to that WiFi. With adaptive WiFi turned off, it will keep using the crappy WiFi connection until you manually turn WiFi off or manually disconnect from the crappy network. Pretty much the reverse of WiFi calling (use WiFi if phone signal is crappy). Note the exceptions sentence at the bottom, it will not use mobile data even if the WiFi has a crappy signal if the crappy WiFi is exempted.
The "turn on" statement is correct, it will automatically turn on and connect to WiFi when it's in range of "trusted" access points (similar to "trusted devices" and "trusted places") but there is no automatic "turn off", at least, it hasn't done that while I've been using it.
Click to expand...
Click to collapse
Exactly what happens to me when I leave home. My phone (old Note 7) will stay connected to my home network but won't be able to pull down any data from the net. It has to be manually turned off.
Sent from my SM-N950U using XDA-Developers Legacy app
thanks for the education!!
Any 3rd party apps you can recommend that would do what i am looking for?
so an update. It work exactly how it says it would. I had to drive 7 miles out, but wifi automatically turned off, even with scanning off, once i got home it turned back on.
I like it. It works great for me.
masri1987 said:
so an update. It work exactly how it says it would. I had to drive 7 miles out, but wifi automatically turned off, even with scanning off, once i got home it turned back on.
Click to expand...
Click to collapse
Ah, that's the thing. I noticed my WiFi would automatically turn off sometimes and sometimes not, and I couldn't reproduce it reliably. It's most likely either distance or time you have to be away from the "trusted" access point.
Congrats, now you can forget about toggling WiFi forever!
I think this setting has been screwing with my wifi related Tasker profiles. Suspect it really does turn wifi off.
I used to switch my wifi off manually when leaving the house.
All this #[email protected]\%! public wifi, blocking my internet because asking to log in....
Any shop or restaurant where you walk in does it.
And you do not know it, till you search the web and see that there is no internet at all till you switch your wifi off or log in to the shops fishing routers.
Adaptive wifi is a must have and a great improvement.
E.g. walk in a MacDonald's with adaptive switched on or off, you will see it is mother's little helper.
You need to have enough data from your provider of course.
Huib
masri1987 said:
thanks for the education!!
Any 3rd party apps you can recommend that would do what i am looking for?
Click to expand...
Click to collapse
Ifttt on Google play store
marctronixx said:
How do you know it doesn't do it? Cellular phones hand off betwixt cellular and wifi all the time.
When and how often it does is based on some under the hood shenanigans that we dont know about.
Click to expand...
Click to collapse
Now that is some sweet use of the English language!
Im turn WiFi every time ON per Wifi disonnect or lose intensity. Im turn ON screen and WiFi connect/intensity up
Settings - WiFi - Settings icon - Wi-Fi always ON during sleepmode: ALWAYS.
PD: Sorry my bad english
¿solutions?
PD: use b156 patch1
EDIT:
I think I have found the problem. Wi-Fi+ activated. Turn OFF
No. Huawei has completely buggered the wifi implementation. It is easily the worst I have ever seen on a modern phone.
I have access to conformance test equipment as part of my daily work and so I have tested some more difficult to pass test cases.
The P20 pro fails nearly all wifi alliance handover tests that I have checked.
For example, when you are on a cellular connection and then you access a wifi network which requires a login, like at an airport or McDonalds, the cellular connection must be kept until a data connection via wifi can be positively initiated.
The P20 does not wait. You can see that it performed a PDP context deactivation on the cell side and trys to use only wifi. Fail
I have the same issue. WiFi is set to not sleep with screen off, but if I'm streaming from my Plex server over WiFi, it always cuts out after a couple of minutes after the screen being off.
What do you mean by "Wifi+ activated"? Where do you turn that off?
I have the same problem and it really sucks.
SpanCox said:
What do you mean by "Wifi+ activated"? Where do you turn that off?
I have the same problem and it really sucks.
Click to expand...
Click to collapse
The only solution is to get a different phone. Huawei has completely F'ed up Android with their EMUI nonsense.