aubuti;391654 Wrote: 
> I've searched through this thread and haven't found the answer to this
> -- sorry if I've overlooked something. The problem is that after
> suspending to SN, I can't figure out how to wake up my server using an
> SB Controller. I try changing the Music Source to my SC server, but
> that doesn't seem to send the WOL packet to nudge the machine awake, so
> the SBC won't switch sources. 
> 
> Waking up from suspend-to-SN is fine with the IR remotes and Boom
> controls. If I wake it up from the IR remote, then the SBC switches
> over to SC automagically. And waking up from a simple suspend (no SN)
> works with all devices, including the SBC. I tried the clever idea of
> using the RetroBrowser in the SBC, but only ended up hanging the
> RetroBrowser....
> 
> So it's just sending the WOL from a SN-connected SBC that's got me
> stumped for now. Any guidance most appreciated! Thanks again for a
> great plugin.

This works reliably for me.  I'm running SC 7.3.3 from the svn code at
rev 24836 and the SBC is running jive_7.3_r3856.  I do have to press
the center button TWICE when selecting the local server as the music
source when I'm on SqueezeNetwork in order for the WOL to be sent. 
Other than that little glitch, it's working fine for me.

If this continues to be a problem, I suggest you first try a factory
reset of your SBC, making sure your local server is up and awake when
you re-setup the SBC.

If you STILL have the problem, here is my primitive, "last resort, fail
safe" SBC->WOL->Server solution, which involves creating a script on the
SBC (/etc/init.d/rcS.local) that will send a WOL packet to the server
when the SBC first starts up:

1). On the SBC, turn on Remote Login: Settings->Advanced->Remote
Login->Enable SSH, and make note of the SBC's ip address.

2). Using PuTTY or another ssh client, connect to your SBC and login as
root with the password "1234".

3). Paste the following into the Putty window, having first fixed up
the values for scserver and scservermac to reflect your actual server's
values:

Code:
--------------------
    
  echo '#!/bin/sh
  scserver=192.168.0.100
  scservermac=00:19:DB:E4:3D:04
  timestr=`date`
  /bin/ping -c 1 $scserver || { /bin/echo "$scserver does not respond to ping" 
>&2 ; /bin/sleep 5 ; /bin/echo "Waking up $scserver.." ; /usr/bin/ether-wake -b 
$scservermac ; /bin/echo "WOL sent to $scservermac at $timestr" 
>/mnt/mmc/wol.log ; }
  ' >/etc/init.d/rcS.local ; chmod a+x /etc/init.d/rcS.local ; 
  
--------------------

4). Check to see that the file was created: ls /etc/init.d -l

5).  Test it by shutting down your server, waiting a few moments and
then executing the script from the PuTTY prompt: /etc/init.rcS.local 
..the script should WOL the server and it should boot up.

6). Finally, logout of the SBC by typing 'exit' and then turn off
Remote Login on the SBC.

Now, whenever your SBC 'cold boots' (i.e. you turn it on) it will check
to see if your SC server is awake (responds to a ping) and will send a
WOL if it doesn't.  So..this script won't get called when you select
the local music source from SN, but as a very, very last resort, you
could turn off the SBC and turn it on again.


-- 
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to