Everything posted by walnuthead
-
Apple Bonjour Sleep Proxy Client Implementation (Wake on Demand)
Sorry, but I have not had time to work on it Sent from my iPhone using Tapatalk
-
Apple Bonjour Sleep Proxy Client Implementation (Wake on Demand)
[quote name="alxscott" post="192850" timestamp="1343505044"] =;eth0;IPv4;50-35-10-70\032Alex\039s\032AirPort\032Express;_sleep-proxy._udp;local;Alexs-AirPort-Express.local;169.254.85.73;63516 This shows your airport express with a link-local or self assigned ip address of "169.254.85.73" why is this? Are you intentionally using that address for some reason or is there a problem on your router. I would recommend against using 169.254.*.* IP addresses if this was by choice. First thing I would recommend is fixing the issue with the airport express ip address.
-
Apple Bonjour Sleep Proxy Client Implementation (Wake on Demand)
run this command on your unRAID server, it is the command used in the script to detect the sleep proxy avahi-browse --resolve --parsable --no-db-lookup --terminate _sleep-proxy._udp Does that list your sleep proxy?
-
Apple Bonjour Sleep Proxy Client Implementation (Wake on Demand)
ok, finally had time to test and work out issues, but not to package it all up. I'll post everything here and you can test while I try to find the time to put it together in a package. For this to work you'll need python-2.6.6-i486-1.txz which you probably already have, and dnspython-1.8.0-i686-3sl.txz which you probably don't have. You can get these packages here: http://slackware.cs.utah.edu/pub/slackware/slackware-13.37/slackware/d/python-2.6.6-i486-1.txz http://repository.slacky.eu/slackware-13.37/libraries/dnspython/1.8.0/dnspython-1.8.0-i686-3sl.txz The sleepproxyclient.py python script is here: sleepproxyclient.zip You'll need to install the two python packages either by putting them in /boot/extra and rebooting or running installpkg python-2.6.6-i486-1.txz and installpkg dnspython-1.8.0-i686-3sl.txz Then you'll need to setup the sleepproxyclient.py to be executed prior to sleep, you can do this by editing your sleep script and adding it before the "echo -n mem >/sys/power/state" command; or if you are using the SimpleFeatures Sleep plugin you can add it to the settings. command line for sleepproxyclient.py needs to be in this format: /path/where/you/put/the/script/sleepproxyclient.py eth0 192.168.1.100 xx:xx:xx:xx:xx:xx replace the args with your interface ipaddress hwaddress Right now this is all manual but I'll put it together in a plugin as soon as I get the time. I updated the simpleFeatures webGUI and Sleep plugins so the SimpleFeatures Sleep plugin is used by the Sleep button on the Main page, if you want this feature you can get the modified plugins here: http://www.walnuthead.com/unraid/simpleFeatures-v1.0rc2-base-webGUI-walnuthead.tgz http://www.walnuthead.com/unraid/simpleFeatures-v1.0rc2-s3-sleep-addon-walnuthead.tgz Greg
-
Apple Bonjour Sleep Proxy Client Implementation (Wake on Demand)
I was finally able to work on this today. The only package that's needed is the pythondns. I'll post a modified script you can test tomorrow morning Greg Sent from my iPhone using Tapatalk
-
Apple Bonjour Sleep Proxy Client Implementation (Wake on Demand)
I have not had time to work on this yet, but I have not forgotten about it Greg Sent from my iPhone using Tapatalk
-
Apple Bonjour Sleep Proxy Client Implementation (Wake on Demand)
I have this working on my unRAID server using my AppleTV as the Sleep proxy. I'll try to get it packaged and posted tomorrow. Greg Sent from my iPhone using Tapatalk
-
Looking for better ideas how how to sleep/suspend my unraid box
Here is my s3.sh script, I'm using this on 5.0b14. I modified the original with info from the SimpleFeatures Sleep.php file. #!/bin/bash drives="/dev/sdb /dev/sdc /dev/sdd /dev/sde" timeout=5 count=5 while [ 1 ] do hdparm -C $drives | grep -q active if [ $? -eq 1 ] then count=$[$count-1] else count=$timeout fi if [ $count -le 0 ] then # Do pre-sleep activities echo 'Inactive - Going to Sleep' | logger ethtool -s eth0 wol g sleep 5 # Go to sleep echo 'Stopping Services' | logger /etc/rc.d/rc.samba stop /etc/rc.d/rc.nfsd stop /etc/rc.d/rc.atalk stop /etc/rc.d/rc.avahidaemon stop /etc/rc.d/rc.avahidnsconfd stop echo 'Syncing Filesystems' | logger /bin/sync /bin/config/beep-down echo 'Sleeping' | logger echo -n mem >/sys/power/state # Do post-sleep activities # ethtool -s eth0 speed 1000 echo 'Wake Up' | logger /boot/config/been-up echo 'Starting Services' | logger /etc/rc.d/rc.samba start /etc/rc.d/rc.nfsd start /etc/rc.d/rc.atalk start /etc/rc.d/rc.avahidaemon start /etc/rc.d/rc.avahidnsconfd start ethtool -s eth0 wol g sleep 5 count=$timeout fi # Wait a minute echo COUNT $count sleep 60 done
-
Looking for better ideas how how to sleep/suspend my unraid box
On 5.0b14 use "echo -n mem >/sys/power/state" to sleep the server. Yes.