Hi Al, here is some answers for you.
al.einstein wrote
My first Question is: how can i make Runeaudio send a WOL-Packet prior to playback?
Weird thing happens when i choose a file from the playlist to be played while the NAS is still asleep.......playback starts (clock ticks up) but there´s no output, understandably.
You have to follow
this guide and install the proper software.
Than you have to hook the WOL command with the system. I suggest you to not hook with playback commands but hook it with system startup, it is an easier task. You can do that in an easy way by adding this line:
sysCmd('wol MACADDRESS');
at the beginning of the RuneAudio system worker (
rune_SY_wrk), before
this line should be fine.
al.einstein wrote
My second Question is a little bit more complicated:
Same NAS is able to set itself to sleep-mode on various preconditions (i.e. checking for specific IP-adresses or monitoring the amount of data traffic). In my case the NAS checks if there are SMB/CIFS-Connections on Port 445. Server-Logs tell me that runeaudio doesn´t seem to close this connection after playback has stopped, so the NAS stays awake. Again: Openelec and Mediaportal work perfectly on that topic.
Is there a way to close the connection automatically - lets say - 5 mins after playback has stopped?
You are right, RuneAudio is intended to handle network connections in a
permanent way, so this behaviour is expected. But you can tweak the mount string acting on
this line of code.
Ciao.
Simone