I have a fresh install of EndeavourOS (Gnome) on a new PC. I’ve tried various ways to persistently enable WOL, but I cannot make it work after a reboot. Right now, it looks as if it is enabled after a reboot:
However, it does not work. If I then run sudo ethtool -s eno1 wol g I can suspend and wake the PC until the next reboot.
I’ve tried various ways of making it persistent from https://wiki.archlinux.org/title/Wake-on-LAN (systemd.link, a systemd service and a cron task) but none of them works for me. I also found this topic (Wake on LAN not working - #4 by mbod) on the forum, which looks similar, but I don’t have tlp installed, so this unfortunately does not solve my problem. However, it might be a similar issue, that some other service on the system disables WOL after e.g. my systemd service (or the Cron task may run before the network interface is up? I’m not sure), but I cannot figure out which one.
I get basically the same response. But alas, it seems to be working after i disabled the wol-systemd service and enabled it again. I’m not sure what exactly was the problem, but I consider the problem solved for now.
❯ sudo systemctl status email@example.com
○ firstname.lastname@example.org - Wake-on-LAN for eno1
Loaded: loaded (/usr/lib/systemd/system/wol@.service; enabled; preset: disabled)
Active: inactive (dead) since Sat 2023-03-11 18:35:35 CET; 1min 10s ago
Process: 753 ExecStart=/usr/bin/ethtool -s eno1 wol g (code=exited, status=0/SUCCESS)
Main PID: 753 (code=exited, status=0/SUCCESS)
mar 11 18:35:35 flow systemd: Starting Wake-on-LAN for eno1...
mar 11 18:35:35 flow systemd: email@example.com: Deactivated successfully.
mar 11 18:35:35 flow systemd: Finished Wake-on-LAN for eno1.