How to enable Wake On Lan (WOL) in Ubuntu 16.04 LTS?
|
In order for WOL to work, make sure your ethernet interface is properly being shut down by your system when you poweroff. Try the following:
Now test to see if it works by powering down your machine with That was the only thing that worked for me. I found those steps at a bug report at launchpad.net. According to the author, Robbie Williamson, this works because of the following:
Source: https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/981461 |
||||
|
|
|
Run the following in the terminal:
you should see a g next to wake on lan after writing the second command |
||||
|
|
|
In Ubuntu 16.04 set http://linrunner.de/en/tlp/docs/tlp-configuration.html Add Enable Wake on LAN in
Enable wake on lan in BIOS, enter the BIOS setup and look for something called "Wake up on PCI event", "Wake up on LAN" or similar. Change it so that it is enabled. Save your settings and reboot. https://help.ubuntu.com/community/WakeOnLan Warning some motherboards / network controllers don't support WOL from the cold boot (S5 state, where the power to the system is physically turned off and back on again). In that case, at least one power cycle (power up, shutdown) has to be performed. To mitigate to the problem, the BIOS can be configured to power up when AC is restored and schedule a shutdown inside Ubuntu afterwards. Refer to the motherboard's manual for further details. |
|||||
|
|
I've found a better way that worked for me. At least a cleaner way. I'm posting this because while googling Ubuntu 16 wol and other similar searches I came across with this post several times. This could help somebody else. Apparently Ubuntu changed upstart for systemd, this in Ubuntu 15, Ubuntu 16 and presumably next versions too. I'm new to both systems but this worked for me. To keep WOL working, I had to re-enable it every time the system booted. To avoid doing this manually I used systemd for this purpose. This is what I did:
Sources:
|
|||||
|