Cellular data to wifi handoff

I am now back home and no longer traveling. I am going to test things and report back; however, I notice that now the same apps that were not functioning before because they wanted to only use cellular are functioning as normal and using wireless.

What I wonder then is why did my particular location or wifi router(?) make such a difference in the place I was traveling to? Why would the device not simply recognize wifi as wifi, with priority, regardless of location?

Thank you.

1 Like

Donā€™t get me wrong. The second command probably only becomes essential if /etc/resolv.conf gives you 127.0.0.53

Right now on my Librem 5 (presumably reflective of most peopleā€™s phones) /etc/resolv.conf does contain the actual DNS server IP address.

So if I start off with WiFi on and cellular on (via HKS) then this file gives me my LANā€™s DNS server IP address. If I then kill WiFi then this file gives me the DNS server IP address associated with the mobile service. If I then turn WiFi back on then this file goes back to giving me my LANā€™s DNS server IP address.

So the command that you gave is fine on my Librem 5. However I guarantee you that it would not work on my desktop or on my server (which would always just show 127.0.0.53).

Note though that DNS is only one piece of the puzzle. Routing and application behaviour are two other pieces of the puzzle.

1 Like

Gotta agreeā€¦ mostly. Just before starting this reply, I see it is using cellular data. However, when cycling HKS WIFI only and again checking, I find it using WIFI. Did it honor the priority or just grab the new thing? :man_shrugging:

2 Likes

I am always interested to see how people solve problemsā€¦ lots of ways to skin a rabbit.

When I want to where my data is coming from, I use Speedtest CLI. Default output shows provider as well as test server and stats.

4 Likes

Where is this priority checkbox in the ADM?

1 Like

I tried the order, turn off the mobile first, it become much faster, then turn on, it is slower. Reversely, turn off the wifi connection first, slower, then turn the wifi on, faster. It might just grab the new thing.

2 Likes

1 Like

So this will set the priority, right? I also heard that it is also determined by metrics? When I do Ip r, mobile always has a higher metrics than the wifi.

1 Like

I would not know since I do not use cellular data whatsoever.

Also to be considered is whether you have a metered connection. Even if Connection A is faster than Connection B, if Connection A is costing you real money to use GB then you may prefer Connection B.

2 Likes

I saw the toggle metered connection in advance network management under mobile network section-> general, just check it? It doesnā€™t allow me to do anything further than that.

1 Like

Only you can really tell whether a mobile internet connection is metered or not. If you are on an unlimited* plan then you might consider it unmetered.

But my actual point was that only you can determine your priorities i.e. whether you prioritise cost ahead of speed or vice versa - and those priorities might depend on what you are doing at the time.

2 Likes

Thanks, but no setting is working. i set the priority lower than wifi, and enabled the metered connection. i tested against an extra bought 1gb mobile data. wifi the metric is always lower than mobile. and except foe browser(maybe, streamming is using wifi), other apps just use mobile data, expecially terminal like update, install stuffs. it consumed all 1gb in just half day in the house with both mobile and wifi enabled on the phone. this js not fixed like one post said above sadly, and not sure if there way to see if phone is using mobile data.

1 Like

Settings ā†’ Mobile ā†’ Mobile Data toggle.

that takes away from being a phone. i do use mms a lot, and group test. I hoe purism can fix it with some updates or in Crismson.

2 Likes

Or using the mobile settings and setting Scale down for that app/any windows it opens up.

1 Like

Whether this is relevant depends on which mobile service provider you use. Perhaps for your provider, disabling mobile data also disables MMS.

1 Like

I forced the wifi metric over the wwan0 using if metric, and set the priority in the advance network manager. Hopefully it will work. I use this as daily phone, no reason or not practical to disable mms. Phone has to be working normally as android or iso phones except it is running on linux, basic mms/sms need to work. Wifi handoff should work. Lol

I will update if the tweak works. Ha.

Update
I think it is working, but install apps from the terminal somehow is sticking to the mobile. I miss disable the mobile data if I use the terminal to install.

2 Likes

I tried the postmarketos with phosh, it handles the handoff just fine, even terminal is using wifi. Pureos hasnā€™t fixed this bug. But postmarketos mobile data connection is inconsistent, disconnect often.

1 Like

And note the comment about potentially disabling IPv6 if it is even an option.

1 Like