Network manager ASLEEP on UC 20 rpi

Hi.

I am using network-manager from beta to build the custom UC 20 image for rpi. During some of my testing ssh went down. Reboot did not help. I managed to connect over wifi later on and from logs I found out that network manager went to ASLEEP state.

How can that even happen? Is there a way to disable this functionality? I did not manage to get all the logs because we have log rotate on.

Jun 29 00:36:21 srly-r7d8mg4oj4eo0go NetworkManager[749]: [1624916181.5512] manager: disable requested (sleeping: no enabled: yes)
Jun 29 00:36:21 srly-r7d8mg4oj4eo0go NetworkManager[749]: [1624916181.5516] device (eth0): state change: unavailable -> unmanaged (reason ‘sleeping’, sys-iface-state: ‘managed’)
Jun 29 00:36:21 srly-r7d8mg4oj4eo0go NetworkManager[749]: [1624916181.5631] device (wlan0): state change: disconnected -> unmanaged (reason ‘sleeping’, sys-iface-state: ‘managed’)
Jun 29 00:36:22 srly-r7d8mg4oj4eo0go NetworkManager[749]: [1624916182.1099] device (p2p-dev-wlan0): state change: disconnected -> unmanaged (reason ‘sleeping’, sys-iface-state: ‘managed’)
Jun 29 00:36:22 srly-r7d8mg4oj4eo0go NetworkManager[749]: [1624916182.1123] manager: NetworkManager state is now ASLEEP

This suggests that something requested NM to be disabled, eg. by running nmcli networking off?

Hmm, ok, got it. I thought sleep was called going by the resulting state.