Enabling persistent WOL WakeOnLAN on Bazzite 41+

WOL is not enabled by default in Bazzite 41. I've tried multiple ways to get it to enable persist a reboot. I can enable it like so:
sudo nmcli connection modify enp2s0 802-3-ethernet.wake-on-lan magic
sudo nmcli connection up enp2s0
sudo nmcli connection show enp2s0 | grep 802-3-ethernet.wake-on-lan
sudo nmcli connection modify enp2s0 802-3-ethernet.wake-on-lan magic
sudo nmcli connection up enp2s0
sudo nmcli connection show enp2s0 | grep 802-3-ethernet.wake-on-lan
However, on reboot, it gets disabled again. I can't seem to get it to persist.
4 Replies
tacomilkshake
tacomilkshakeOP2mo ago
Universal Blue
Make wake on LAN persistent after reboot
On Bazzite 41, wake on LAN does not seem to be enabled by default. The output of sudo ethtool enp3s0 | grep Wake-on initially looks like this: Supports Wake-on: pumbg Wake-on: d And after enabling it with sudo ethtool -s enp3s0 wol g, the above command results in this: Supports Wake-on: pumbg Wake-on: g When I put my system to sleep and try ...
tacomilkshake
tacomilkshakeOP2mo ago
I found this, and it's where I got the instructions from, but it doesn't persist reboot.
Грюндик
Грюндик2mo ago
I had WoL stop working after I updated the system via the "system update" shortcut I found in the GNOME desktop environment ¯\_⁠༼⁠ ⁠•́⁠ ͜⁠ʖ⁠ ⁠•̀⁠ ⁠༽⁠_⁠/⁠¯ It turns out that ethtools is pre-installed on the system, which means you can use the guide from arch wiki, namely: Create the file /etc/udev/rules.d/81-wol.rules And paste the following into it: ACTION=="add", SUBSYSTEM=="net", NAME=="enp*", RUN+="/usr/bin/ethtool -s $name wol g".
tacomilkshake
tacomilkshakeOP5w ago
This worked great. I used this syntax as ethtool is in sbin:
ACTION=="add", SUBSYSTEM=="net", NAME=="enp5s0", RUN+="/usr/sbin/ethtool -s enp5s0 wol g"
ACTION=="add", SUBSYSTEM=="net", NAME=="enp5s0", RUN+="/usr/sbin/ethtool -s enp5s0 wol g"

Did you find this page helpful?