Always Use Mobile Data
#1
Question 
Hello there Everyone,

I am messing around with using the PP to send myself email message reports with metrics from some yard equipment that are all connected on a WLAN.

I'm running into an issue where the PP will not use mobile data for internet access while it is connected to my WLAN, even though the WLAN itself is not connected to the internet.

Does anyone know of a way to set the PP to always use mobile data for connecting to the internet while also still being able to talk to other devices on a WLAN?

(04-18-2023, 11:54 AM)DingDangDoong Wrote: Hello there Everyone,

I am messing around with using the PP to send myself email message reports with metrics from some yard equipment that are all connected on a WLAN.

I'm running into an issue where the PP will not use mobile data for internet access while it is connected to my WLAN, even though the WLAN itself is not connected to the internet.

Does anyone know of a way to set the PP to always use mobile data for connecting to the internet while also still being able to talk to other devices on a WLAN?

I got it lol Big Grin 

For some reason I thought the wireless data connection would be handled differently from other internet connections but when I ran "ip route list" it was there!

I added the ip address from the mobile data connection as a default with "ip route add default via xxx.xxx.xxx.xxx dev wwan0" and now I can use WLAN and connect to the internet via mobile data!

-Doong
  Reply
#2
Be warned that "ip route add default" does not persist across reboots. The defaults are normally handled by NetworkManager.
  Reply
#3
(04-19-2023, 12:46 AM)Kevin Kofler Wrote: Be warned that "ip route add default" does not persist across reboots. The defaults are normally handled by NetworkManager.

Thank you for that tip!

I've un-marked this as solved because of something else I've noticed...

Flushing the default IP routes and making a new one with wwan0's ip address works for only a limited time, even if the phone is not power cycled.

Something running in the background is noticing that I'm removing the wlan0 route as default and putting it back! I'm having a difficult time figuring out what that is. 

Does anyone know what service puts the wlan0 IP as a default route? I'd rather suppress that behavior than make a new service to continually monitor and clear the wlan0 default that keeps popping up.
  Reply
#4
Probably the NetworkManager service.

You want to configure the metric of the connections in NetworkManager, keeping in mind that a lower metric = higher priority.

See, e.g., https://dev.to/emamirazavi/how-to-set-me...ystem-4525
  Reply
#5
(04-19-2023, 04:12 PM)Kevin Kofler Wrote: Probably the NetworkManager service.

You want to configure the metric of the connections in NetworkManager, keeping in mind that a lower metric = higher priority.

See, e.g., https://dev.to/emamirazavi/how-to-set-me...ystem-4525

That's got it! Thank you so much!

-Doong
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Gnome mobile user641 1 603 01-06-2024, 11:06 AM
Last Post: Uturn
  NextCloud Gnome Mobile Uturn 4 1,145 12-03-2023, 07:54 AM
Last Post: Uturn
  Plasma mobile latest stable @pp1.2b voice calling audio issue n05ph3r42 3 758 10-03-2023, 06:32 PM
Last Post: Kevin Kofler
  PostmarketOS v22.06 Plasma Mobile on PinePhone Pro & No MMS X0X0X0X0X0 1 1,384 11-07-2022, 10:34 PM
Last Post: X0X0X0X0X0
  PostmarketOS v22.06 Plasma Mobile on PinePhone Pro & WiFi Connect to SSID X0X0X0X0X0 1 1,147 11-06-2022, 06:41 PM
Last Post: Chief
  No Application Data PMOS 21.12.1 Captain1ndustry 4 3,831 08-12-2022, 07:42 AM
Last Post: Gon
  Disable mobile data auto-enable on boot 64_Tesseract 3 2,268 08-11-2022, 02:48 AM
Last Post: 64_Tesseract
  wwan0 (cellular data) ip configuration is POINTTOPOINT not BROADCAST dc2daylight 0 1,059 04-07-2022, 07:16 PM
Last Post: dc2daylight
  Calls don't work on Softbank. Cellular data & SMS work. yasmi 1 1,602 03-24-2022, 04:10 AM
Last Post: yasmi
  [PostmarketOS with Plasma Mobile] Angelfish adblock + wpa supplicant time out Egolep 0 2,006 03-23-2021, 10:25 AM
Last Post: Egolep

Forum Jump:


Users browsing this thread: 1 Guest(s)