Posts: 34
Joined: Oct 2013
Reputation:
0
sovaby
Junior Member
Posts: 34
$ sudo ethtool eth0 | grep -i wake-on
Supports Wake-on: pumbg
Wake-on: d
d - disabled
g - enabled
On terminal
Enable magic packet on the card
Enable every time at boot
#!/bin/bash
ethtool -s eth0 wol g
exit
Wake on lan - wakeonlan 01:23:45:67:89:ab If the same subnet
or wakeonlan -i 192.168.1.2 -p 7 01:23:45:67:89:ab If different
-p optional port. default 9
Posts: 283
Joined: Mar 2012
Reputation:
13
2015-12-16, 19:17
(This post was last modified: 2015-12-16, 19:34 by t4_ravenbird.)
Your logs are fine but shows no attempt to use anything on the server 192.168.1.2 so then wake-on-lan function will not kick in.
Kodi will not - and should not - try to start server just because Kodi is starting up or resuming from suspend-mode, it will only try to wake server when you actually need it (when you try to use a MySQL server or a file on a file-server)
Did you try to play or otherwise access a file on the server, if not please do so and if server is not woken and thus the file fails to play please make a log of that
Edit :
I see now that your smb-shares are set up by name while in the wakeonlan.xml settings it is by ipaddress. The safest way is to use only ipaddress and not rely on DNS lookups or at least you need to have an entry in wakeonlan.xml for the server by name as it is given in the 'declaration of sources'.
This should be auto-detected and auto-generated by Kodi when you enabled the wakeup-option so I dont understand why it is missing. Try to go into settings and disable the wake-option, exit settings, go back and re-enable it. That should kick a new discovery and generation of wakeonlan.xml
Posts: 283
Joined: Mar 2012
Reputation:
13
Mac discovery will fail if KONTOR is turned off. You need to enable wake-on-lan at a time when the server is reachable.
If mac discovery fails when KONTOR is on then please make a log during that sequence
Posts: 283
Joined: Mar 2012
Reputation:
13
09:17:33 T:139997361444608 ERROR: Unable to lookup host: 'KONTOR'
09:17:33 T:139997361444608 ERROR: DoWork - can't determine ip of 'KONTOR'
09:17:33 T:139997361444608 ERROR: OnJobComplete - Mac discovery failed for host 'KONTOR'
You are using a server by name, not ipaddress. Depending on a lot if networking details on your LAN it can be difficult for the network stack to figure out the ipaddress from the hostname which is required for this discovery.
If you have already communicated with the server I am puzzled that it fails - can you try again and make sure to;
1 start server
2 start kodi and navigate to a file on the server (start a movie by navigating the shaed files for instance)
3 do discovery
*
Alternatively ; reconfigure your sources to not use 'KONTOR' but rather use '192.168.1.2' which is much safer
*
Alternatively ; in your old wakeonlan.xml where you had an entry for '192.168.1.2' , duplicate this entry and replace '192.168.1.2' with 'KONTOR' so you have two entries.
Posts: 283
Joined: Mar 2012
Reputation:
13
11:16:00 T:140272867555200 NOTICE: WakeOnAccess [192.168.1.2] trigged by accessing : smb://192.168.1.2/
11:16:00 T:140272867555200 NOTICE: WakeOnAccess success exit, server already running
Good, progress, now wake-on-lan has kicked in and tried to wake server but found it was already running so did not do anything.
If it can not wake server when it is sleeping, please post a log of that also
btw:the screenshot is using another ip?
Posts: 825
Joined: Jun 2009
Reputation:
2
Why it is using another IP I can`t answer for, but I think it has something to do with that it just broadcast it on the whole network and the right MAC pics it up?
Suddenly it just worked :-)
I did not do anything else, just rebooted everything once ore twice. Hope it keeps this way.
Very much thank you! :-)
Petter
Petter :-)
Many thanks for all the effort YOU all do! THANKS! :-)
nVidia Shield TV (2015), Samsung QE75Q70R and Yamaha RX-V767
Posts: 21
Joined: Jan 2015
Reputation:
0
vnser
Junior Member
Posts: 21
I had the same issue on LibreELEC 8.0 (KODI 17.0)
I had to solve it by adding IP-HostName record in /storage/.config/hosts.conf before I found your easy and useful solution.
Thank you much!
Posts: 7,650
Joined: Jun 2011
Reputation:
287
you edit the media source in kodi, replacing the host name with the IP