[Q] Enable "Aggressive Wi-Fi to Cellular handover" - Tasker Tips & Tricks

Using a Nexus 6 with NP5.
I frequently walk in and out of Wi-Fi range near my home. The Wi-Fi signal gets weak, and data communications start to suck. If I turn off Wi-Fi the phone switches to LTE and everything is fine.
There is an option in Developer options labeled "Aggressive Wi-Fi to Cellular handover." If I enable this option my data connection remains stable because as the Wi-Fi gets weak the phone switches to LTE sooner.
The difficulty is that this setting reverts to "Off" every time the phone reboots.
I have recently started using Tasker and have another task that runs a shell command on boot. That task is working great.
I am trying now to figure out how to change this setting for aggressive cell handover in dev options using a tasker task that I can assign to the same Device Boot event and I am running into difficulty. I simply do not see how to flip this device setting toggle within a tasker task.
Am I missing something? This seems like it would be a simple thing to do, straightforward, and the type of thing Tasker is designed for, but my noob-ness is showing.
I go to Tasks, add a task, name it, add an action, select Settings, but I don't see anything matching "Developer options." If I go to "All Settings" i just get a prompt to enter a variable name. I have no idea what to type to select the variable represented by the "Aggressive Wi-Fi to Cellular handover" toggle option, or if its range is 0/1, true/false, whatever.
Any guidance would be greatly appreciated.
Thanks!

No suggestions? Not possible? Wrong tool?

rgraville said:
No suggestions? Not possible? Wrong tool?
Click to expand...
Click to collapse
on s7 its a built in feature to switch to mobile data when a wifi network is unstable

Related

Tasker (or Locale / SetProfiles): Automatically switch to 2G only

Goal: Automatically switch to Use only 2G networks without opening Mobile Networks Settings dialog and checking the box manually
I know that this is not possible on stock, but is there any way to accomplish this for root users or with any of the mentioned apps or otherwise:
I do not want to disable APN, and I've already used APNdroid to much dismay. There is a bug for Nexus One users when restoring APN settings that leaves mobile data disabled.
I've used the apps mentioned in the thread title to automate my phones settings (ringer volume, GPS on/off, bluetooth on when phone ringing, data syncing, etc.), and now I simply want to disable 3G radio connection whenever certain conditions are met and have my network type as "GSM only"
I've searched through different forums here and sorted through a litany of Google search results, so please no lmgtfy because "2G only" returns no results in this section and no relevant results elsewhere; "2g only auto" nothing; "2g only automatic" nothing, but you can flame if you post a solution
fourinthoughts said:
...I simply want to disable 3G radio connection and have my network type as "GSM only" whenever I'm connected to WiFi, and I want to automate this so that I don't forget to do it manually at night when I'm not using my phone.
Click to expand...
Click to collapse
If you don't mind me asking - what is the reason for it? When you switch WiFi on, the data is turned off anyway. So why?
Jack_R1 said:
If you don't mind me asking - what is the reason for it? When you switch WiFi on, the data is turned off anyway. So why?
Click to expand...
Click to collapse
Yes, when your device is connected to WiFi the GPRS service for data is disabled. However, the 3G band radio in your phone is still being used which consumes more power than the global GSM band radio that is used when connected to the EDGE network type. This is always true whether you are connected to WiFi or not. (correct me if I'm wrong)
Regardless, the answer to this would help a lot of android users. This is not specifically tailored for me, because the entire OP relates to battery performance which should be an important issue for all Nexus One users. If this task could be automated it would dramatically improve battery performance during off-peak use (nighttime, work, meetings, etc.) by improving execution and eliminating forgetfulness. Automating this adds to the user experience and would just make your phone that much more enjoyable, period.
I'm simply amazed that I can't find a resolution to accomplishing this.
fourinthoughts said:
Yes, when your device is connected to WiFi the GPRS service for data is disabled. However, the 3G band radio in your phone is still being used which consumes more power than the global GSM band radio that is used when connected to the EDGE network type. This is always true whether you are connected to WiFi or not. (correct me if I'm wrong)
Regardless, the answer to this would help a lot of android users. This is not specifically tailored for me, because the entire OP relates to battery performance which should be an important issue for all Nexus One users. If this task could be automated it would dramatically improve battery performance during off-peak use (nighttime, work, meetings, etc.) by improving execution and eliminating forgetfulness. Automating this adds to the user experience and would just make your phone that much more enjoyable, period.
I'm simply amazed that I can't find a resolution to accomplishing this.
Click to expand...
Click to collapse
The cellular standby / talk time power doesn't vary much between GSM and UMTS, the difference is less than ~20% in both modes in case of Nexus, judging by official specs. I'll check your assumption that UMTS connectivity isn't dropped to GSM when WiFi connects (most probably correct), but the power gain isn't significant in places that have proper UMTS connectivity (which is not the case for the whole world, I know).
The easiest way I can think of would be to use SwitchPro widget, for example (or any other free widget that has the same functionality), and instead of pressing only "WiFi On" button, press 2 buttons - "WiFi On" and "2G/3G connection" (the same as pressing the "Use 2G networks only" checkbox).
I would suppose that such a plug-in or setting might be available for Locale/Profiles/etc.
2 things that I've found:
1) The connection indeed stays UMTS.
2) Android system prevents the programs from toggling 2G/3G mode, it's only allowed manually. The widgets I've seen only take you to the correct Settings submenu, but you have to click the checkbox yourself.
Thank you Jack_R1,
I appreciate the replies and the confirmation. That is the conlussion that I have been stuck with for a while. I had assumed that there may be a way to control this with superuser permissions.
I guess I'm going to have to dust off my Java, contact some app developers, and start exploring how to come up with a solution myself.
I apreciate your feedback.
You're welcome.
I suppose that this thread might be useful:
http://forum.xda-developers.com/showthread.php?t=736095
What you're looking for might also be one of the lower level system functions, requiring system permissions, not only root.
Might be worth contacting Cyanogen's team or Enomther, to make an option for it on ROM level and incorporate in the next AOSP-based ROMs.
Jack_R1 said:
You're welcome.
I suppose that this thread might be useful:
http://forum.xda-developers.com/showthread.php?t=736095
What you're looking for might also be one of the lower level system functions, requiring system permissions, not only root.
Might be worth contacting Cyanogen's team or Enomther, to make an option for it on ROM level and incorporate in the next AOSP-based ROMs.
Click to expand...
Click to collapse
Thanks again. That post helped. The settings are not accessible in the current framework. When I get enough time this week I think I can start on getting this fixed for root users. I will take your advice and will contact some of the masters here who would know the libraries well.
in addition, one scenario could be:
At home, I do have pretty poor 3G connection with my service provider, so I would like to switch when I am near my WiFi to 2G mode
PseudoReal said:
in addition, one scenario could be:
At home, I do have pretty poor 3G connection with my service provider, so I would like to switch when I am near my WiFi to 2G mode
Click to expand...
Click to collapse
ditto for me.
Surprised that it is so difficult to toggle 2g/3g with tasker...
dew.man said:
ditto for me.
Surprised that it is so difficult to toggle 2g/3g with tasker...
Click to expand...
Click to collapse
And ditto again.
I have the same desire as the op. It must be possible to do since one can easily toggle 2G/3G from the power control widget in cm6. Maybe if there was an intent that was published tasker should be able to launch an app with that intent to accomplish this.
on a recent trip overseas, I was presented with a very weird situation. I bought a local sim and got a 3g data plan which was 3gb of 3g data and 200mb of 2g data (dont ask i have no idea why they are different). When I plugged it in i could do 3g data no problem but if 3g was turned on i could not make or receive calls. so like the op I wanted an automated way of switching between 2g only and 3g
I was able to do it on my nexus one and tasker with
Toggle 2G/3G
hope this helps you
-208
^ +1 best toggle I've seen and used.
Search for Toggle 2G in the main android forum.

[Q] Can i setup my T-mobile Galaxy Tab to use wifi only?

Im trying to make my tab use wifi only becuase i don't have t-mobile service anymore. Is there anyway to get it to stop saying "searching" all the time? I have factory reset my tab but unlike other devices, there is no initial setup so i can choose WIFI only. Anyone have any ideas?
I use;
https://market.android.com/details?id=myc.phone.PhoneInfo&feature=search_result
then turn off the radio.
(also popped the sim out as I was getting occasional SIM Detached messages and reboots, so figured it was simpler to just take the SIM out and turn off the radio)
jadamson145 said:
Im trying to make my tab use wifi only becuase i don't have t-mobile service anymore. Is there anyway to get it to stop saying "searching" all the time? I have factory reset my tab but unlike other devices, there is no initial setup so i can choose WIFI only. Anyone have any ideas?
Click to expand...
Click to collapse
Go into Airplane mode, and then turn on the wifi.
Thats what I do. It uses less battery.
Also deactiveate "Data network mode"
captirwin said:
Go into Airplane mode, and then turn on the wifi.
Thats what I do. It uses less battery.
Also deactiveate "Data network mode"
Click to expand...
Click to collapse
Me too, same as above, but then bluetooth headsets, printers, and keyboards won't work.
rangercaptain said:
Me too, same as above, but then bluetooth headsets, printers, and keyboards won't work.
Click to expand...
Click to collapse
Rangercaptain...where do you think I got the idea from? YOU.
THANKS.
Well, thanks for sharing! You have a good answer!
I disconnect my data plan and using tab as phone. join wifi at work and home and enjoy phone and tab same time lol.
jadamson145 said:
Im trying to make my tab use wifi only becuase i don't have t-mobile service anymore. Is there anyway to get it to stop saying "searching" all the time? I have factory reset my tab but unlike other devices, there is no initial setup so i can choose WIFI only. Anyone have any ideas?
Click to expand...
Click to collapse
Just flash overcome! Then follow simple instructions to turn off radio.. I its really simple.
Edit:
(copy/pasted directly from Overcome tweaks guide)
"Turning the 3G-based Tab into a "Wi-Fi only" device (Disabling the GSM Radio!)
To disable the GSM Radio:
- Bring up your Phone/Dialer program
- Enter: *#*#4636#*#*
- Select Device Information
- Scroll to the bottom
- Tap the "Turn Off Radio"
This will disable all Cell/GSM/EDGE connections – should only be used for those who do not subscribe to a data/cell package. This will leave Bluetooth/Wi-Fi (I think) on so you can still connect Bluetooth devices etc., as opposed to switching to Airplane mode which turns everything off! "
Thanks team Overcome. I have done this on two tabs and this works perfectly. Hope it helps?
Sent from my GT-P1000 using XDA Premium App
I use this:
https://market.android.com/details?id=net.geekherd.airplanemode
You can turn off the radio, use wifi and I believe it allows you to use bluetooth as well.
Sorry to dig up an old thread, but I wanted to offer an alternative solution for anybody still trying to find a persistent solution to creating a Wifi only Galaxy Tab. I use Llama to set up a start up event that turns Airplane mode on, waits 1 minute, and enables Wifi. It has worked well for me for the past several months. Here's the run down of my Llama configuration:
Event Name > Start Up
Conditions -
Phone reboot > After start up
Actions -
Toggle Airplane Mode > Airplane Mode On
Queue Another Event >
Event Name > WiFi On
Event delay > 1 minute
Actions -
Toggle WiFi > WiFi On
I hope this helps someone out.

Auto Turn Off Mobile Data When Connected to WiFi

Does anyone know of an app that will automatically turn off mobile data when i'm successfully connected to a WiFi connection have have internet access through it.
The app should do something like this...
1. Check for WiFi connection
2. If WiFi = connected, then test WiFi connection
3. If connection = Good, then turn off Mobile Data, else leave Data connection ON
If you suggest Tasker, then you better follow it up with a full write-up on how to set it up on Tasker.
I believe (someone will correct me if I'm wrong) that Android is programmed to use wifi when it's available, even though your data connection looks as if it's on.
If you're not happy with that, Automate It should be able to do something for you. I have Automate It Pro set to turn off wifi & data at midnight, for example, to avoid the nuisance of emails pinging me in the middle of the night. And it switches wifi & sync on at 09:00 each day. Very useful tool, simpler than Tasker, so no tutorial from me...
There are a few Automate apps in the Play Store - it's this one:
https://play.google.com/store/apps/details?id=AutomateIt.mainPackage
This free version allows you 3 (as I recall) triggers - if you need more it's not too expensive to buy Pro.
I use RadioControl to handle that for me.
https://play.google.com/store/apps/details?id=com.nikhilparanjape.radiocontrol&hl=en
It requires root, and it's not perfect. But it works well enough for me.
[NG]Owner
Try smart radio xposed module.
pr0ndigy said:
Does anyone know of an app that will automatically turn off mobile data when i'm successfully connected to a WiFi connection have have internet access through it.
The app should do something like this...
1. Check for WiFi connection
2. If WiFi = connected, then test WiFi connection
3. If connection = Good, then turn off Mobile Data, else leave Data connection ON
If you suggest Tasker, then you better follow it up with a full write-up on how to set it up on Tasker.
Click to expand...
Click to collapse
Tasker does it pretty simply, but it needs root access..
Set up (2) tasks - I called mine Data Off & Data On. You will need to select "Net/Mobile Data" and then set "On" or "Off" respectively. Next set up your profile. Select "State/Net/Wifi Connected", and leave everything empty and save. This will trigger the profile when any wifi is connected. (Optionally, you could set it to your home or work wifi, etc). Your "task" will be "Data Off", then add an "exit task" for "Data On" (by long pressing the Data On and selecting "exit task").
dahawthorne said:
I believe (someone will correct me if I'm wrong) that Android is programmed to use wifi when it's available, even though your data connection looks as if it's on.
Click to expand...
Click to collapse
^^^^ This. Android has done this for years. Some devices have the ability to keep mobile data on with wifi, but those usually default to OFF.
Note in the screenshot below that my Cellular network state (mobile data) is "Disconnected"
Pkt_Lnt said:
^^^^ This. Android has done this for years. Some devices have the ability to keep mobile data on with wifi, but those usually default to OFF.
Note in the screenshot below that my Cellular network state (mobile data) is "Disconnected"
Click to expand...
Click to collapse
Interestingly, I bring up the same screen on my phone (when connected to wifi) and it shows cellular is still connected??
jbaumert said:
Interestingly, I bring up the same screen on my phone (when connected to wifi) and it shows cellular is still connected??
Click to expand...
Click to collapse
Do you have a ROM that has that option and it is enabled?
Pkt_Lnt said:
Do you have a ROM that has that option and it is enabled?
Click to expand...
Click to collapse
Running SIX ROM - Just checked, that option is disabled in the Dev Settings / connected to good wifi / and cellular is active...
¯\_(ツ)_/¯
Now it is a question for that rom dev.

Why tasker doesn't always work?

Hi
Often on my galaxy A5 2016 rooted I see that a task is active but it doesn't really active the function on my phone...
For example: I've a task to turn wifi on when I'm at home (based on location). Often the task is active (is green on tasker) but wifi isn't turned really on! Why this??
copeppe said:
Hi
Often on my galaxy A5 2016 rooted I see that a task is active but it doesn't really active the function on my phone...
For example: I've a task to turn wifi on when I'm at home (based on location). Often the task is active (is green on tasker) but wifi isn't turned really on! Why this??
Click to expand...
Click to collapse
On my s8 I've had to turn on reliable alarms for when screen is of as I noticed that some profiles like turning Bluetooth on weren't working when the screen was off. Maybe that could help turning this on in the settings?
Sent from my SM-G950F using Tapatalk
mgdorbit said:
On my s8 I've had to turn on reliable alarms for when screen is of as I noticed that some profiles like turning Bluetooth on weren't working when the screen was off. Maybe that could help turning this on in the settings?
Sent from my SM-G950F using Tapatalk
Click to expand...
Click to collapse
Maybe... but can you explain me better what alarms I must turn on?
copeppe said:
Maybe... but can you explain me better what alarms I must turn on?
Click to expand...
Click to collapse
Go to preferences > monitor > Use reliable alarms. I have mine set for screen off
Location is not a reliable trigger (never was for me).
Try using variables. These are better.
For example.
I'm using 2 variables to CONFIRM I'm at home and trigger my home profile.
First... I use Cell near to verify the proximity and enable my WiFi. So my variable is set to "1".
Then... After my phone connects to my network I set another variable to "1".
When both variables are equal to "1" my home profile kicks in.
This way I do not rely on Location (and my power consumption is lower).
Sent from my LG-D855 powered by Aosp Extended and Tapatalk.
So the way tasker works is when a profile activates, the entry task runs, then when the profile deactivates the exit task runs.
If something interferes with the entry task, or if you have profiles that overlap (changing the same settings for instance) the profile will be active, but the desired actions may not be able to run.
However, when it comes to wifi on/off actions, you have to do a few things to ensure the actions can run.
1. Make sure you give yourself enough time to enable wifi before continuing.
Eg: 1. Turn on wifi
2. If connected to my home ssid do the following
This will never work because tasker enables the wifi and immediately goes to the next action, but you need at least 5 seconds (really 15) to connect, so it will never be connected when if statement is checked
2. Or say you want to disable wifi every time The wifi is disconnected from any ssid and whenever you're in range of your homer ssid another profile turns on wifi.
The following WILL NEVER WORK but will take a long time to realize the simplicity of why if not careful
If wifi=on and wifi is not connected
Disable wifi and do these things
The reason is the home profile will always enable wifi and for 15 seconds the disable WiFi profile will trigger because the wifi is on but not connected...so it'll disable WiFi.. which will... you get the idea.
P.s. if the profile is active then reliable alarms has nothing to do with why the actions didn't run. Tasker correctly activated the profile... something interfered elsewhere

Strange text on WiFi settings screen

So the other day I noticed strange text in the wifi settings menu. This text is visible in both the mini menu accessed through clicking on the name of the currently connected wifi network on the wifi toggle in the notification menu, as well as in the full settings menu. Please see screenshot attached. Does anyone know what might be causing this? Not a huge issue, but a little annoying and I'd love to make this stuff go away.
What is the text you say is strange? The picture shows the network you are connected to, and a list of all the networks detected, so, what is the problem?
I think he means the text after his active wifi connection. Have a look in settings > developer options > wi-if verbose logging, if it’s on turn it off.
That did the trick! No idea how wifi verbose logging got turned on, but everything is back to normal now. Thank you!
It is in developer settings option. You must activated more detailed ssid option.
margentieri said:
Admin Note: This is a special Q&A-formatted thread. Please follow this link to view it in your browser:
Click to expand...
Click to collapse
Thats detailed wifi signal info. You must have turned it on in developer options.
I believe those are the mac address of each WiFi Access Point that is available within the WiFi reception range of your device.

Categories

Resources