Wake on lan

Starting in v13, Kodi can automatically issue a 'wake-on-lan' packet to MySQL or a file sharing server right before it needs to connect to it.

Basic setup
Enable wake-on-lan under Settings → System → Power saving → Try to wake remote servers on access

When feature gets enabled or shares gets added an autoscan will be done for any servers specified, either in shares or in MySQL settings. The autoscan will if necessary create a file called 'wakeonlan.xml' and will add entries for these servers including macaddress which should be picked up in the scan.

Advanced settings
While not required for basic operation, some additional settings can be made to the wakeonlan.xml file that is stored in the userdata folder.


 * Sample 'wakeonlan.xml'

Useful pingport/pingmode combinations

 * is used by samba (windows file sharing) and can be used for 'ping-probing' (but only pingmode = 0)
 * is default MySQL port and useful if your server is the MySQL host

port 21 (ftp), 22 (ssl), 23 (telnet) are also likely to work OK if your server has that service installed

When using pingport = 0 (normal icmp ping) it is recommended to use waitservices = (ca) 5 to allow services on server to startup after server responds to ping. If using a different pingport it is normally not nessesary to add additional wait time.

Limitations / Pitfalls

 * Wake on Lan does not wake PVR-servers (Forum request)
 * Wake on Lan does not wake UPnP-servers, including other Kodi- installations (Pending PR)
 * Wake on Lan can come 'out of sync' if you force-sleep the server (if server stays on shorter time than specified in parameter 'timeout' before it suspends)
 * Wake on Lan can fail to bring up the progress-dialogue depending on where playback was initiated from. It will still wake the server and start playback, but visual feedback is poor. (Pending PR)

Changelog / Improvements

 * Wake on Lan could fail to wake servers specified by name (not ip-address) but this is solved in Kodi v14 (Github PR)
 * Wake on Lan did not support profiles but this is solved in Kodi v14 (Github PR)