(24-Oct-2019, 06:17 AM)mkysimes Wrote: [ -> ]Not sure if this is the right sub-forum for this but has anyone successfully configured WOL in Snakeoil? I want to use a PC in another room for my LMS duties but I don't want to leave it on all the time. I do have an app for my phone that will wake it up but I figured I'd ask if anyone has a way to send the "magic packet" from within the Snakeoil interface. Any ideas?
Thanks in advance.
I don't think WOL is a kernel feature so the existing kernels will work. You just need to turn on WOL in the BIOS, and any tools should be able to wake the PC up.. You'll know WOL is working if
- If the PC actually powers on when you send the comman (e.g. using etherwake)
- The connect LED of your network card is still lit when on standby
Once your confirm your LMS server is capable. Perhaps just install etherwake on the Snakeoil PC, and add the code into /etc/rc.local file. This script is executed everytime the machine reboots, so should work well. Perhaps can
follow this article as a guide.
Having said that, WOL is kind of old technology, and not particularly power efficient. Ideally you want something to be consuming < 0.5 W when on standby.
You might want to consider some efficient smart wifi plugs that'll only consumes < 0.5 W. I've set the computers in my home to turn on if AC is back on. This means the PC will turn on automatically if I turn on the power from mains. This works wonders IMO and is better than WOL as it conserves more power.
Only question is not entirely sure if the addition of a plug will be detrimental to the sound or not. Using this smart wifi plugs, together with things like
home assistant, one can introduce some very powerful automations concepts. e.g. if I turn on this plug, set the lights to warm and dim it to 20%, turn on the remote server, turn on the Hifi, etc.
And when I power off the streaming PC, the action will trigger some other automations, e.g. shutdown remote machine, then power off the plug that powers the remote machine, set the lights back to daylight at 100%, and so on.
Edit: I've created a
feature request to allow you to insert startup/shutdown commands in the WebApp. Not sure when it'll be implemented, but at least it's in the system now so I wouldn't forget. :p. Also here's the readout of one of my computers (AC on, but PC Is powered off). It's consuming 5.83 W. This is higher than usual because it also has a remote console interface, and of the six network ports, 2 are on WOL.
If you are using a good Intel NIC, and with a good PSU, probably can get < 0.5 W on standby. So far none of my old computers can get to to that (Havn't checked my new Ryzen to see how much power draw when it's off).