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?
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.
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?
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.
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.
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.
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.
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.
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.
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.
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.