We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2019-08-27 18:09:17 +0200

How to restart nerworking without restarting device?

Once in a while my XperiaX loses mobile network and os not able to reconnect, similarily as removing and reinserting simcard. My sw version is 3.1.0.11 and I vaguely remember it used to be possible to resgart networking simply by activating and deactivating airplane mode...

Restarting ofono does not help, so I wonder what ks the proper way to restart the whole network stack like from poweroff state but keeping the device fully powered all the time?

[root@Sailfish nemo]# systemctl status ofono.service● ofono.service - Telephony serviceLoaded: loaded (/lib/systemd/system/ofono.service; disabled; vendor preset: enabled)Active: active (running) since ti 2019-08-27 17:55:18 EEST; 4s agoMain PID: 20976 (ofonod)CGroup: /system.slice/ofono.service└─20976 /usr/sbin/ofonod -n --nobacktrace --noplugin=,he910,dun_gw_bl...elo 27 17:55:18 Sailfish ofonod[20976]: Excluding SpeedUp modem driverelo 27 17:55:18 Sailfish ofonod[20976]: Excluding Phone Simulator driverelo 27 17:55:18 Sailfish ofonod[20976]: Excluding CDMA AT modem driverelo 27 17:55:18 Sailfish ofonod[20976]: Excluding External Hands-Free Profile ...inelo 27 17:55:18 Sailfish ofonod[20976]: Excluding Dial-up Networking Profile P...nselo 27 17:55:18 Sailfish ofonod[20976]: Excluding CDMA provisioning Pluginelo 27 17:55:18 Sailfish ofonod[20976]: Register Profile interface failed: /bl...agelo 27 17:55:18 Sailfish ofonod[20976]: RIL1 version 11elo 27 17:55:18 Sailfish ofonod[20976]: SIM card OKelo 27 17:55:18 Sailfish ofonod[20976]: Power request failed: GENERIC_FAILURE

How to restart nerworking without restarting device?

(edit; fixed the log to look better and added a log from working case...)

Once in a while my XperiaX loses mobile network and os not able to reconnect, similarily as removing and reinserting simcard. My sw version is 3.1.0.11 and I vaguely remember it used to be possible to resgart networking simply by activating and deactivating airplane mode...

Restarting ofono does not help, so I wonder what ks the proper way to restart the whole network stack like from poweroff state but keeping the device fully powered all the time?

FAILURE-log looks like this;

[root@Sailfish nemo]# systemctl status ofono.service● ofono.service
● ofono.service - Telephony serviceLoaded: service
   Loaded: loaded (/lib/systemd/system/ofono.service; disabled; vendor preset: enabled)Active: enabled)
   Active: active (running) since ti Tue 2019-08-27 17:55:18 EEST; 4s agoMain ago
Main PID: 20976 (ofonod)CGroup: /system.slice/ofono.service└─20976 (ofonod)
   CGroup: /system.slice/ofono.service
           └─20976 /usr/sbin/ofonod -n --nobacktrace --noplugin=,he910,dun_gw_bl...elo --noplugin=,he910,dun_gw_bluez5,hfp_bluez5,cdma_pro...

Aug 27 17:55:18 Sailfish ofonod[20976]: Excluding SpeedUp modem driverelo driver
Aug 27 17:55:18 Sailfish ofonod[20976]: Excluding Phone Simulator driverelo driver
Aug 27 17:55:18 Sailfish ofonod[20976]: Excluding CDMA AT modem driverelo driver
Aug 27 17:55:18 Sailfish ofonod[20976]: Excluding External Hands-Free Profile ...inelo ...in
Aug 27 17:55:18 Sailfish ofonod[20976]: Excluding Dial-up Networking Profile P...nselo P...ns
Aug 27 17:55:18 Sailfish ofonod[20976]: Excluding CDMA provisioning Pluginelo Plugin
Aug 27 17:55:18 Sailfish ofonod[20976]: Register Profile interface failed: /bl...agelo /bl...ag
Aug 27 17:55:18 Sailfish ofonod[20976]: RIL1 version 11elo 11
Aug 27 17:55:18 Sailfish ofonod[20976]: SIM card OKelo OK
Aug 27 17:55:18 Sailfish ofonod[20976]: Power request failed: GENERIC_FAILURE

WORKING_OK-log looks like this;

● ofono.service - Telephony service
   Loaded: loaded (/lib/systemd/system/ofono.service; disabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-08-27 18:48:05 EEST; 1h 49min ago
 Main PID: 831 (ofonod)
   CGroup: /system.slice/ofono.service
           └─831 /usr/sbin/ofonod -n --nobacktrace --noplugin=,he910,dun_gw_bluez5,hfp_bluez5,cdma_pro...

Aug 27 19:40:36 Sailfish ofonod[831]: sms received, smsc_len is 8
Aug 27 19:40:55 Sailfish ofonod[831]: sms received, smsc_len is 8
Aug 27 19:44:32 Sailfish ofonod[831]: data reg changed 1 -> 0 (unregistered), attached 1
Aug 27 19:44:32 Sailfish ofonod[831]: Deactivating context: 1
Aug 27 19:44:32 Sailfish ofonod[831]: data reg changed 0 -> 1 (registered), attached 1
Aug 27 19:44:32 Sailfish ofonod[831]: Deactivating context: 1
Aug 27 19:44:32 Sailfish ofonod[831]: Deactivating context: 1
Aug 27 19:44:32 Sailfish ofonod[831]: Clearing active context
Aug 27 19:44:33 Sailfish ofonod[831]: Activating context: 1
Aug 27 19:44:33 Sailfish ofonod[831]: setting up data call

How to restart nerworking without restarting device?

(edit; fixed the log to look better and added a log from working case...)

Once in a while my XperiaX loses mobile network and os not able to reconnect, similarily as removing and reinserting simcard. My sw version is 3.1.0.11 and I vaguely remember it used to be possible to resgart networking simply by activating and deactivating airplane mode...

Restarting ofono does not help, so I wonder what ks the proper way to restart the whole network stack like from poweroff state but keeping the device fully powered all the time?

FAILURE-log looks like this;

[root@Sailfish nemo]# systemctl status ofono.service
● ofono.service - Telephony service
   Loaded: loaded (/lib/systemd/system/ofono.service; disabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-08-27 17:55:18 EEST; 4s ago
Main PID: 20976 (ofonod)
   CGroup: /system.slice/ofono.service
           └─20976 /usr/sbin/ofonod -n --nobacktrace --noplugin=,he910,dun_gw_bluez5,hfp_bluez5,cdma_pro...

Aug 27 17:55:18 Sailfish ofonod[20976]: Excluding SpeedUp modem driver
Aug 27 17:55:18 Sailfish ofonod[20976]: Excluding Phone Simulator driver
Aug 27 17:55:18 Sailfish ofonod[20976]: Excluding CDMA AT modem driver
Aug 27 17:55:18 Sailfish ofonod[20976]: Excluding External Hands-Free Profile ...in
Aug 27 17:55:18 Sailfish ofonod[20976]: Excluding Dial-up Networking Profile P...ns
Aug 27 17:55:18 Sailfish ofonod[20976]: Excluding CDMA provisioning Plugin
Aug 27 17:55:18 Sailfish ofonod[20976]: Register Profile interface failed: /bl...ag
Aug 27 17:55:18 Sailfish ofonod[20976]: RIL1 version 11
Aug 27 17:55:18 Sailfish ofonod[20976]: SIM card OK
Aug 27 17:55:18 Sailfish ofonod[20976]: Power request failed: GENERIC_FAILURE

WORKING_OK-log looks like this;

● ofono.service - Telephony service
   Loaded: loaded (/lib/systemd/system/ofono.service; disabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-08-27 18:48:05 EEST; 1h 49min ago
 Main PID: 831 (ofonod)
   CGroup: /system.slice/ofono.service
           └─831 /usr/sbin/ofonod -n --nobacktrace --noplugin=,he910,dun_gw_bluez5,hfp_bluez5,cdma_pro...

Aug 27 19:40:36 Sailfish ofonod[831]: sms received, smsc_len is 8
Aug 27 19:40:55 Sailfish ofonod[831]: sms received, smsc_len is 8
Aug 27 19:44:32 Sailfish ofonod[831]: data reg changed 1 -> 0 (unregistered), attached 1
Aug 27 19:44:32 Sailfish ofonod[831]: Deactivating context: 1
Aug 27 19:44:32 Sailfish ofonod[831]: data reg changed 0 -> 1 (registered), attached 1
Aug 27 19:44:32 Sailfish ofonod[831]: Deactivating context: 1
Aug 27 19:44:32 Sailfish ofonod[831]: Deactivating context: 1
Aug 27 19:44:32 Sailfish ofonod[831]: Clearing active context
Aug 27 19:44:33 Sailfish ofonod[831]: Activating context: 1
Aug 27 19:44:33 Sailfish ofonod[831]: setting up data call

How to restart nerworking mobile network without restarting device?

(edit; fixed the log to look better and added a log from working case...)

Once in a while my XperiaX loses mobile network and os not able to reconnect, similarily as removing and reinserting simcard. My sw version is 3.1.0.11 and I vaguely remember it used to be possible to resgart networking simply by activating and deactivating airplane mode...

Restarting ofono does not help, so I wonder what ks the proper way to restart the whole network stack like from poweroff state but keeping the device fully powered all the time?

FAILURE-log looks like this;

[root@Sailfish nemo]# systemctl status ofono.service
● ofono.service - Telephony service
   Loaded: loaded (/lib/systemd/system/ofono.service; disabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-08-27 17:55:18 EEST; 4s ago
Main PID: 20976 (ofonod)
   CGroup: /system.slice/ofono.service
           └─20976 /usr/sbin/ofonod -n --nobacktrace --noplugin=,he910,dun_gw_bluez5,hfp_bluez5,cdma_pro...

Aug 27 17:55:18 Sailfish ofonod[20976]: Excluding SpeedUp modem driver
Aug 27 17:55:18 Sailfish ofonod[20976]: Excluding Phone Simulator driver
Aug 27 17:55:18 Sailfish ofonod[20976]: Excluding CDMA AT modem driver
Aug 27 17:55:18 Sailfish ofonod[20976]: Excluding External Hands-Free Profile ...in
Aug 27 17:55:18 Sailfish ofonod[20976]: Excluding Dial-up Networking Profile P...ns
Aug 27 17:55:18 Sailfish ofonod[20976]: Excluding CDMA provisioning Plugin
Aug 27 17:55:18 Sailfish ofonod[20976]: Register Profile interface failed: /bl...ag
Aug 27 17:55:18 Sailfish ofonod[20976]: RIL1 version 11
Aug 27 17:55:18 Sailfish ofonod[20976]: SIM card OK
Aug 27 17:55:18 Sailfish ofonod[20976]: Power request failed: GENERIC_FAILURE

WORKING_OK-log looks like this;

● ofono.service - Telephony service
   Loaded: loaded (/lib/systemd/system/ofono.service; disabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-08-27 18:48:05 EEST; 1h 49min ago
 Main PID: 831 (ofonod)
   CGroup: /system.slice/ofono.service
           └─831 /usr/sbin/ofonod -n --nobacktrace --noplugin=,he910,dun_gw_bluez5,hfp_bluez5,cdma_pro...

Aug 27 19:40:36 Sailfish ofonod[831]: sms received, smsc_len is 8
Aug 27 19:40:55 Sailfish ofonod[831]: sms received, smsc_len is 8
Aug 27 19:44:32 Sailfish ofonod[831]: data reg changed 1 -> 0 (unregistered), attached 1
Aug 27 19:44:32 Sailfish ofonod[831]: Deactivating context: 1
Aug 27 19:44:32 Sailfish ofonod[831]: data reg changed 0 -> 1 (registered), attached 1
Aug 27 19:44:32 Sailfish ofonod[831]: Deactivating context: 1
Aug 27 19:44:32 Sailfish ofonod[831]: Deactivating context: 1
Aug 27 19:44:32 Sailfish ofonod[831]: Clearing active context
Aug 27 19:44:33 Sailfish ofonod[831]: Activating context: 1
Aug 27 19:44:33 Sailfish ofonod[831]: setting up data call