kodi wol Wake on lan
Enable wake-on-lan under
Settings → System → Power saving → Try to wake remote servers on access
虽然基本操作不需要,但可以对存储在userdata 文件夹中的 wakeonlan.xml 文件进行一些额外的设置。
Sample ‘wakeonlan.xml’
<onaccesswakeup>
<netinittimeout>60</netinittimeout>
<netsettletime>500</netsettletime>
<wakeup>
<host>10.0.0.6</host>
<mac>11:11:F2:11:DF:1E</mac>
<pingport>0</pingport>
<pingmode>1</pingmode>
<timeout>600</timeout>
<waitonline>38</waitonline>
<waitonline2>40</waitonline2>
<waitservices>0</waitservices>
</wakeup>
</onaccesswakeup>
Parameter | Description |
---|---|
netinittimeout [secs] | time Kodi will wait for network to (re)connect when booting or after resuming from suspend-mode |
netsettletime [milli secs] | time to wait for network to be consistently connected before progressing |
host | ipaddress (or network name) of machine you want to wake up |
mac | macaddress |
pingport | default 0 which will perform ordinary icmp ping. else a ‘connect’ attempt will be done to the specified port |
pingmode | only applicable if pingport!=0, if 1 will not only connect to pingport but also wait until data is actually read back |
timeout [secs] | specifies how long time (default 600) of inactivity must pass before a new ‘wake-on-lan’ check is performed. a good choice is to use same value as server’s idle-timeout before entering sleep-mode |
waitonline [secs] | time to wait for machine to wake up (advise is to set this to servers actual anticipated startup time) |
waitonline2 [secs] | time to perform extended wait for machine to wake up |
waitservices [secs] | additional time to wait after ping response, to allow server daemons to startup |
有用的 pingport/pingmode 组合
pingport = 445 / pingmode = 0 - port 445
由 samba(Windows 文件共享)使用,可用于“ping 探测”(但只能使用 pingmode = 0)pingport = 3306 / pingmode = 1 - port 3306
是默认的 MySQL 端口,如果你的服务器是 MySQL 主机,则很有用
如果你的服务器安装了这些服务,那么端口 21 (ftp)、22 (ssl)、23 (telnet) 也可能正常工作
当使用 pingport = 0(正常 icmp ping)时,建议使用 waitservices = (ca) 5 以允许服务器上的服务在服务器响应 ping 后启动。如果使用不同的 pingport,通常不需要添加额外的等待时间。