So i have repurposed an old Fujitsu Office PC (to be exact an Esprimo D556/2/E85+) as a NAS and its working wonderful. But i have a slight Problem, everytime i shut down the NAS using the Web-UI or when i am at the system itself, the networkcard also shuts down. Because of that WoL dosent Work anymore, i tried everything, WoL is activeted in TrueNAS (and/or in the Linux Debian system below), its also active in the BIOS and Works (networkcard dosent shutdown) when the PC is shutdown through an Windows Installation or trough BIOS. The PC was delivered with Windows (when it was new) so maybe Linux cant really control the integrated networkcard?
Does anyone know what i could do next? I am kind out of options.
There are typically settings controlling NIC power states and if WoL is enabled or not in the BIOS. Start by going through every screen there.
Edit: Sorry, I misread, I now see that you say it works when you shut it down running Windows.
In that case I am not sure why it would behave like that.
Someone else here might know.
It would help to know what NIC it is.
Does your BIOS have a setting that lets you set what can control the WoL capability? You would likely find that in the PCIe settings, NIC settings or power settings.
If there is something like that, and it’s set to OS-controlled, try changing that.
Hey, great idea, small problem though, i tired running the command in the Shell, just to find out i do not have ethtool install. when trying to install it trough the Shell the Shell gives back that i cannot install anything using the Shell (has been deactivated in TrueNAS) so how am i supposed to install ethtool?
Just wanted to confirm that I was having the same problem with Wake on LAN not working and your post solved it for me! Thank you!
For anyone else troubleshooting WOL or may be a beginner when it comes to Linux here are some tips. Remember to use sudo first in the TrueNAS shell or from SSH.
To list your network devices: sudo ifconfig
NICs will appear listed enp1s0, enp2s0, eth0 or similar etc.
This is what you put into the example above.
To test if your NIC has WOL enabled you can run: sudo ethtool enp1s0 | grep -i wake-on
If its active it should say something like: Supports Wake-on: pumbg
** Wake-on: g**
If its not active you wont get any output.
To manually enable WOL: sudo ethtool -s enp1s0 wol g
Then re-run the previous command to check that it sticks.
To have it be re-enabled after reboot though so you need to create a Init/Shutdown script as instructed by prez02 above. If your NIC device name is enp1s0 your command to enter into the init/shutdown script will be: ethtool -s enp1s0 wol g
To issue a wake on LAN from a different linux machine you can install wakeonlan via: sudo apt install wakeonlan
Then to send the magic packet to wake the machine up: wakeonlan -i <YOUR_IP_ADDRESS> <YOUR_MAC_ADDRESS>
Hope this helps if anyone else is looking for the same thing!
Best Regards