I think a reboot is too heavy and uneeded. Simply reload network card kernel modules can rejuvenate that dead network card.
In recent time i have same problems with my network card to go up from sleep to ram. But in the past i am 100% sure i has no problems. I suspect is the new kernel drivers, 5.11.0-25-generic, to blame here
So in Ubuntu 20.04 with lshw -C network
i get the driver name, then with modprobe -rv driver_name
will remove and with modprobe -v driver_name
my cable ethernet network is back
Nothing else work, systemctl restart NetworkManager
cant wake up my ethernet card without modprobe driver recicle step. I suspect is that WOL thing the culprit i mean they are waiting for a lan wake up not a local resume from sleep
aug 27 01:54:53 berbecel NetworkManager[2357602]: <info> [1630018493.3313] manager: sleep: sleep requested (sleeping: no enabled: yes)
aug 27 01:54:53 berbecel NetworkManager[2357602]: <info> [1630018493.3314] manager: NetworkManager state is now ASLEEP
aug 27 01:54:53 berbecel NetworkManager[2357602]: <info> [1630018493.3317] device (enp2s0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed')
aug 27 01:54:53 berbecel NetworkManager[2357602]: <info> [1630018493.3692] device (enp2s0): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed')
aug 27 01:54:53 berbecel NetworkManager[2357602]: <info> [1630018493.3881] dhcp4 (enp2s0): canceled DHCP transaction
aug 27 01:54:53 berbecel NetworkManager[2357602]: <info> [1630018493.3881] dhcp4 (enp2s0): state changed bound -> done
aug 27 01:54:53 berbecel NetworkManager[2357602]: <info> [1630018493.3920] device (enp2s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
aug 28 02:24:11 berbecel NetworkManager[2357602]: <info> [1630106651.3796] manager: sleep: wake requested (sleeping: yes enabled: yes)
aug 28 02:24:11 berbecel NetworkManager[2357602]: <info> [1630106651.3797] device (enp2s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'managed')
aug 28 02:24:11 berbecel NetworkManager[2357602]: <info> [1630106651.3812] manager: NetworkManager state is now DISCONNECTED
but then
aug 28 02:47:59 berbecel NetworkManager[2368981]: <info> [1630108079.2431] device (enp2s0): driver '(null)' does not support carrier detection.
aug 28 02:47:59 berbecel NetworkManager[2368981]: <info> [1630108079.2433] device (enp2s0): driver 'alx' does not support carrier detection.
aug 28 02:47:59 berbecel NetworkManager[2368981]: <info> [1630108079.2436] manager: (enp2s0): new Ethernet device (/org/freedesktop/NetworkManager/Devices/2)
aug 28 02:47:59 berbecel NetworkManager[2368981]: <info> [1630108079.2445] device (enp2s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
aug 28 02:47:59 berbecel NetworkManager[2368981]: <info> [1630108079.2565] device (enp2s0): state change: unavailable -> disconnected (reason 'none', sys-iface-state: 'managed')
aug 28 02:47:59 berbecel NetworkManager[2368981]: <info> [1630108079.2577] device (enp2s0): Activation: starting connection 'rdslink' (7ef38c4e-886b-3738-b740-eb3b676cde2d)
aug 28 02:47:59 berbecel NetworkManager[2368981]: <info> [1630108079.2578] device (enp2s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
aug 28 02:47:59 berbecel NetworkManager[2368981]: <info> [1630108079.2586] device (enp2s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
aug 28 02:47:59 berbecel NetworkManager[2368981]: <info> [1630108079.2592] device (enp2s0): state change: config -> failed (reason 'config-failed', sys-iface-state: 'managed')
aug 28 02:47:59 berbecel NetworkManager[2368981]: <warn> [1630108079.2606] device (enp2s0): Activation: failed for connection 'rdslink'
so look like device (enp2s0): driver 'alx' does not support carrier detection.
means my QCA8171 Gigabit Ethernet has no WOL suport and going to sleep means will sleep forewer waiting for a WOl signal who will never arrive?