Hi all, I´m pretty new in the Linux/Raspi/DietPi world, so forgive me if I say something wrong.
I basically want to activate the WOL on DietPi in order to turn it on with my Windows laptop. So, I connected it with a LAN cable (eth0) gave it a static ip address and run this command to check sudo ethtool eth0 | grep Wake.
The result shows the following: Supports Wake-on: gs Wake-on: d.
From what I´ve read here https://wiki.archlinux.org/index.php/Wake-on-LAN it means that the WOL it is supported but it has to be activated (because of the “d” after Wake-on, while it should be a “g” in order to be active).
After I ran this command sudo ethtool -s eth0 wol g I get the following result: Cannot set new wake-on-lan settings: Unknown error 524, not setting wol
Does anyone know a solution ? I already googled the error but was unable to find an answer.
This depends on whether or not the device supports WoL - the response to the query you give is not always correct in my expereince. I have WoL working on some QNAP devices, an Intel NUC Chinese clone and Intel/AMD desktops but I haven’t got it to work on Odroid SBCs.
Check and see if this device supports WoL, I’d be surprised if it does. A lot of ARM SBC devices are either power on or off, no intermediate low power state that WoL needs.
It is not related to this issue but just if someone else finds this when searching for wakeonlan package to wake other devices from DietPi: It requires the netbase package but does not pull it automatically as dependency, hence:
apt install wakeonlan netbase
is required to use it. etherwake is an alternative that does not require this.