Wake on LAN Persistance Issues 22.04

Hello,

Tried enabling Wake on LAN through ethtool sudo /usr/sbin/ethtool --change eno1 wol g however this only works until the last reboot.

When I reboot, I run sudo ethtool eno1 and "Wake-on:" always gets reverted back to "d". Even tried to create a service to automatically change the configuration but this never seems to work.

Wake on LAN in enabled on the BIOS correctly since I installed Pop OS 22.04 on the same system and everything works even after reboots. The system is an Intel NUC6i3SYB.

Thank you for your help in advance.

Here are my notes from way back, create a wol.service

REF: Persistent Wake-On-LAN option? | Proxmox Support Forum

cat <<EOF | sudo tee /etc/systemd/system/wol.service

[Unit]
Description=Wake-on-LAN for eth0
Requires=network.target
After=network.target

[Service]
ExecStart=/usr/sbin/ethtool -s eth0 wol g
ExecStop=/usr/sbin/ethtool -s eth0 wol g

[Install]
WantedBy=multi-user.target 
EOF


systemctl start wol.service
systemctl enable wol.service
systemctl is-enabled wol.service
systemctl daemon-reload
1 Like