02-16-2021, 05:55 PM
(02-07-2021, 04:31 AM)gcala Wrote: vkravenCould you try a fresh reboot of your phone, and see if the "settings -> modem" tab gets populated? If it is, I found that you need to run
Code:sudo ofonoctl wan --connect --append-dns
in order to get an IP address and DNS nameserver assigned to wwan0 for mobile data. I put this command into a systemd startup script just to make it more automatic.
Very thanks. It worked for me. Unfortunately my systemd service fails (modem not found):
Code:[Unit]
Description=Enable mobile data
After=ofono.service
[Service]
Type=oneshot
ExecStart=/usr/bin/ofonoctl wan --connect --append-dns
[Install]
WantedBy=multi-user.target
Hmm, your systemd looks fine to me (I put mine in After=NetworkManager.service). I suspect it's complaining about modem not found because systemd is running it before the modem has fully started up...
You could try putting it into an .sh file with a sleep param (to easily tune the required delay), or maybe having it run After=ofono.service