So what i found is that you need to somehow prod networkmanager, that is, i can disable wifi and wait for minutes and be in this situation
phablet@ubuntu-phablet:/var/crash$ ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:9062 errors:0 dropped:0 overruns:0 frame:0 TX packets:9062 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2546884 (2.5 MB) TX bytes:2546884 (2.5 MB)
phablet@ubuntu-phablet:/var/crash$ qdbus com.ubuntu.connectivity1 /com/ubuntu/connectivity1/NetworkingStatus com.ubuntu.connectivity1.NetworkingStatus.Status online
then if i call nmcli the status changes immediately
phablet@ubuntu-phablet:/var/crash$ nmcli nm RUNNING STATE WIFI-HARDWARE WIFI WWAN-HARDWARE WWAN running disconnected enabled disabled enabled disabled phablet@ubuntu-phablet:/var/crash$ qdbus com.ubuntu.connectivity1 /com/ubuntu/connectivity1/NetworkingStatus com.ubuntu.connectivity1.NetworkingStatus.Status offline
So what i found is that you need to somehow prod networkmanager, that is, i can disable wifi and wait for minutes and be in this situation
phablet@ ubuntu- phablet: /var/crash$ ifconfig
collisions: 0 txqueuelen:0
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:9062 errors:0 dropped:0 overruns:0 frame:0
TX packets:9062 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:2546884 (2.5 MB) TX bytes:2546884 (2.5 MB)
phablet@ ubuntu- phablet: /var/crash$ qdbus com.ubuntu. connectivity1 /com/ubuntu/ connectivity1/ NetworkingStatu s com.ubuntu. connectivity1. NetworkingStatu s.Status
online
then if i call nmcli the status changes immediately
phablet@ ubuntu- phablet: /var/crash$ nmcli nm ubuntu- phablet: /var/crash$ qdbus com.ubuntu. connectivity1 /com/ubuntu/ connectivity1/ NetworkingStatu s com.ubuntu. connectivity1. NetworkingStatu s.Status
RUNNING STATE WIFI-HARDWARE WIFI WWAN-HARDWARE WWAN
running disconnected enabled disabled enabled disabled
phablet@
offline