2013-08-27, 13:43
Hi All
I'm not sure if this should be placed in Mac OS X, PVR or TVHeadend forum but I think its more generic mac script related.
Since setting up the PVR side of things recently I would really like to get "Wakeup before recording" up and running so I can have the box sleeping until a recording is due.
My setup:
OSX: 10.8.2
XBMC: Frodo 12.2
Mac Mini - 2012
TVBackend - TVHeadend (on Synology)
http://wiki.xbmc.org/index.php?title=Settings/Live_TV - I have set the wakeup time to 10 minutes. In theory do I just need to create appropriate script: /usr/bin/setwakeup.sh ? I cant find any examples for OS X but I did find this for linux by a guy called Frank-NL - http://forum.xbmc.org/showthread.php?tid=155128
Has anyone had any success getting this up and running in OS X?
I'm not sure if this should be placed in Mac OS X, PVR or TVHeadend forum but I think its more generic mac script related.
Since setting up the PVR side of things recently I would really like to get "Wakeup before recording" up and running so I can have the box sleeping until a recording is due.
My setup:
OSX: 10.8.2
XBMC: Frodo 12.2
Mac Mini - 2012
TVBackend - TVHeadend (on Synology)
http://wiki.xbmc.org/index.php?title=Settings/Live_TV - I have set the wakeup time to 10 minutes. In theory do I just need to create appropriate script: /usr/bin/setwakeup.sh ? I cant find any examples for OS X but I did find this for linux by a guy called Frank-NL - http://forum.xbmc.org/showthread.php?tid=155128
Code:
#!/bin/sh
#$1 is the first argument to the script. It is the time in seconds since 1970
#this is defined in mythtv-setup with the time_t argument
echo 0 > /sys/class/rtc/rtc0/wakealarm #this clears your alarm.
echo $1 > /sys/class/rtc/rtc0/wakealarm #this writes your alarm
Has anyone had any success getting this up and running in OS X?