There are multiple settings in the MSI bios that need to be changed: “ERP Ready” must be disabled and “Resume by PCI-E Device” must be enabled.
The package ethtool must be installed:
Debian/Ubuntu:
Arch:
Find the network interface name and MAC address of the machine using:
Use the network interface name with ethtool to check the the wake settings :
The Wake-on mode must be on g:
Check the Wake-on mode has changed:
To keep the Wake-on mode set to g after a reboot, a crontab can be used:
Insert this line to the crontab to set the Wake-on mode to g after a reboot:
The WOL is now fully set up on the client.
To wake this machine from another machine on the local network, the wakeonlan command is used with the MAC address found earlier: