Activate wake on lan on DietPi Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
dori4n
Posts: 8
Joined: Mon Oct 28, 2019 8:08 pm
Location: Germany

Activate wake on lan on DietPi

Post by dori4n »

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.

Thanks
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Activate wake on lan on DietPi

Post by johnvick »

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.

What's the device?
dori4n
Posts: 8
Joined: Mon Oct 28, 2019 8:08 pm
Location: Germany

Re: Activate wake on lan on DietPi

Post by dori4n »

johnvick wrote: Mon Oct 28, 2019 10:15 pm What's the device?
Argh...sorry..it should have been the first thing to write, is a Raspberry Pi 4.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Activate wake on lan on DietPi

Post by johnvick »

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.

Just read Pi4 does not support WoL.
dori4n
Posts: 8
Joined: Mon Oct 28, 2019 8:08 pm
Location: Germany

Re: Activate wake on lan on DietPi

Post by dori4n »

:(

Shame, do you have any link ? I didn´t found any info about it.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Activate wake on lan on DietPi

Post by johnvick »

dori4n
Posts: 8
Joined: Mon Oct 28, 2019 8:08 pm
Location: Germany

Re: Activate wake on lan on DietPi

Post by dori4n »

Thanks.
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: Activate wake on lan on DietPi

Post by MichaIng »

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.
Post Reply