A Cure for the Moble Data Blues (KDE Community Edition)
#5
Here's a quick script (note that it doesn't have the --append-dns so it doesn't use the operator DNS):
Code:
#!/bin/bash COLUMNS=15 PS3="Select the action: " options=(Mobile_on Mobile_off Data_on Data_off quit) select opt in "${options[@]}" do WWAN="wwan0" case $opt in Mobile_on)     ofonoctl poweron    ofonoctl online     sudo systemctl restart ofono ofonoctl sleep 5     ofonoctl     break     ;; Mobile_off) ofonoctl offline        ofonoctl poweroff     sudo systemctl restart ofono     ofonoctl     break     ;; Data_on)     ofonoctl poweron     ofonoctl online     sudo ip link set dev $WWAN up str=$(ofonoctl wan | grep $WWAN) #echo "str=["$str"]" #if [ str == "" ]; then     sudo ofonoctl wan --connect #fi ip_addr=$(ip a | grep $WWAN | awk '/inet / {gsub("addr:","",$2); print $2}') #echo "ip_addr="$ip_addr ip_route=$(ip r | grep $WWAN | grep default) #echo "ip_route="$ip_route sudo ip r del $ip_route #echo "Adding route "$ip_route" proto dhcp metric 900" sudo ip r add $ip_route proto dhcp metric 900 echo "ip a:" ip a | grep $WWAN echo "ip r:"   ip r | grep $WWAN     break     ;; Data_off) ip_addr=$(ip a | grep $WWAN | awk '/inet / {gsub("addr:","",$2); print $2}') sudo ip link set dev $WWAN down sudo ip a del $ip_addr dev $WWAN echo "ip a:" ip a | grep $WWAN echo "ip r:"     ip r | grep $WWAN break ;; quit)     break     exit     ;; "")     echo "Invalid input."     ;; esac done read -p "Press enter to exit."

Adjust / correct as required. Hopefully it works most of the time until things are fixed by the devs.

Note that the wwan0 default route has a higher metric (900) than the wifi metric (600) so wifi has priority if it is on.

Hope @neil2ball might be able to help, even though turning modem on, ofonoctl says registered, no ringing on incoming call, and no text message.
Do you reckon eg25-manager needs to be restart too?

As it stands, 1) does not work yet...

Thought the poweroff was the culprit so I removed it. Makes no difference.
Still when you do:
Code:
ofonoctl offline
you get:
Code:
Modem Status SIM ------------ --------- ------- quectelqmi_0 Unpowered Unknown

As soon 2) is run, running 1) gives you the registration message. Running 3) gets mobile data working. But no incoming calls or SMS / text messages....
Pinephone v1.2 UBports CE. Adelaide, Australia using Amaysim SIM (Optus network, VoLTE enabled) with Mobian SD card. VoLTE working also with Felix / Vodafone AU and Aldimobile / Telstra AU.
Manjaro Plasma Mobile on EMMC.
  Reply


Messages In This Thread
RE: A Cure for the Moble Data Blues (KDE Community Edition) - by dcinoz - 02-25-2021, 03:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PinePhone Beta Edition will not boot from MicroSD card Timothy_Ecc 10 19,920 10-04-2024, 12:01 AM
Last Post: spazz
  debugging issue realted to iso image wth extra data eror penguins_rule 3 5,585 06-18-2024, 01:18 AM
Last Post: waderatke
  Manjaro Plasma Beta and Cellular Data Service Fred Zyphal 7 12,320 03-17-2022, 05:50 PM
Last Post: Fred Zyphal
  No incoming SMS. Outgoing SMS, calls and data working. HardwarePunk 3 6,872 11-20-2021, 12:53 AM
Last Post: HardwarePunk
  No mobile data working itwurketnet 3 5,785 10-14-2021, 09:04 AM
Last Post: itwurketnet
  Plasma Mobile - no data connection KNERD 9 16,622 02-25-2021, 03:44 AM
Last Post: dcinoz
  Anbox on KDE Community Edition (Manjaro) neil2ball 8 13,156 02-21-2021, 08:53 PM
Last Post: neil2ball
  Mobile Data toggle not retained after reboot Shane 0 2,736 12-23-2020, 07:42 AM
Last Post: Shane
  Todays Manjaro CE Update Broke my AT&T Data cyberbillp 4 7,309 12-14-2020, 06:39 PM
Last Post: cyberbillp
Exclamation PinePhone Manjaro Edition, does not boot vdiazroa 2 5,652 11-28-2020, 02:00 PM
Last Post: bcg7

Forum Jump:


Users browsing this thread: 1 Guest(s)