Network manager puts interface link down on suspend, despite wake on lan is enabled
Hey!
When suspending, Network Manager seems to put the network interface down, despite wake-on-lan being enabled:
Nov 12 23:15:29 neo NetworkManager[1485]: <info> [1636755329.4744] device (enp9s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Nov 12 23:15:29 neo systemd-resolved[327280]: enp9s0: Bus client set default route setting: no
Nov 12 23:15:29 neo systemd-resolved[327280]: enp9s0: Bus client reset DNS server list.
Nov 12 23:15:29 neo kernel: r8169 0000:09:00.0 enp9s0: Link is Down
Nov 12 23:15:34 neo systemd-logind[1366]: Delay lock is active (UID 500/bernat, PID 3287/xss-lock) but inhibitor timeout is reached.
Nov 12 23:15:34 neo systemd[1]: Reached target Sleep.
Nov 12 23:15:34 neo systemd[1]: Starting System Suspend...
Nov 12 23:15:34 neo systemd-sleep[412579]: Entering sleep state 'suspend'...
Nov 12 23:15:34 neo kernel: PM: suspend entry (deep)
Because the link is down, there is no way to receive the WOL magic packet.
I am using 1.32.12-1 from Debian unstable with 5.14 kernel. This problem happens since quite some time (more than a year?) and also happened with an e1000 NIC card.
10:53 CET ❱ nmcli connection show Wired\ connection | grep 802-3-ethernet
connection.type: 802-3-ethernet
802-3-ethernet.port: --
802-3-ethernet.speed: 0
802-3-ethernet.duplex: --
802-3-ethernet.auto-negotiate: yes
802-3-ethernet.mac-address: --
802-3-ethernet.cloned-mac-address: --
802-3-ethernet.generate-mac-address-mask:--
802-3-ethernet.mac-address-blacklist: --
802-3-ethernet.mtu: auto
802-3-ethernet.s390-subchannels: --
802-3-ethernet.s390-nettype: --
802-3-ethernet.s390-options: --
802-3-ethernet.wake-on-lan: magic
802-3-ethernet.wake-on-lan-password: --
802-3-ethernet.accept-all-mac-addresses:-1 (default)