<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Sep 5, 2013 at 7:23 PM, Bill Meek <span dir="ltr"><<a href="mailto:keemllib@gmail.com" target="_blank">keemllib@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On 09/05/2013 06:05 PM, Daryl McDonald wrote:<br>
...<br></div><div class="im">
>> Well that script definitely shuts the box down, I had closed the FE, and<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
was responding to this thread when it did shut down. The next recording was<br>
for 19:00, so I waited and it did not turn back on. So As Jerry recommends<br>
if I use the script from further down and change "UTC = false" and paste it<br>
from the Wiki instead of from Stefan's E-mail I should get a working<br>
script? I'm going to give that a shot.<br>
</blockquote>
<br></div>
Note that when you manually turn you backend on, with your current settings,<br>
it will shutdown in 600 seconds. (if the mythbackend isn't doing anything)<br>
<br>
So, to hold it up, you can type:<br>
<br>
mythshutdown --lock<br>
<br>
It may be -l in 0.25. mythshutdown -h will tell you. Don't forget to<br>
unlock it with --unlock (again check with -h.)<br>
<br>
Your latest pastebin looks fine. But I like Roger's idea. That's what<br>
I do in my script. I'd even go a step further and add the following<br>
3 lines at the end of the script:<br>
<br>
cat /proc/driver/rtc > /tmp/rtc<br>
cat /sys/class/rtc/rtc0/wakealarm >> /tmp/rtc<br>
echo "Argument 1 = $1, SECS = $SECS" >> /tmp/rtc<br>
<br>
It would be interesting to compare the value of Argument 1 and SECS.<br>
I expect they will be the same, as I showed in a previous email.<span class=""><font color="#888888"><br>
<br>
-- <br>
Bill</font></span><div class=""><div class="h5"><br>
______________________________<u></u>_________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/<u></u>listinfo/mythtv-users</a></div></div></blockquote><div><br></div><div>If I'm not mistaken, I can keep the system from shutting down by leaving the FE up. To further clarify, Bill, are you suggesting I use the earlier "setwakeup.sh" from the wiki and add the three lines so it would look like the following? Instead of the one more suited to Mythwelcome?</div>
<div><br></div><div> #!/bin/sh</div><div>#$1 is the first argument to the script. It is the time in seconds since 1970</div><div>#this is defined in mythtv-setup with the time_t argument</div><div><br></div><div>echo 0 > /sys/class/rtc/rtc0/wakealarm #this clears your alarm.</div>
<div>echo $1 > /sys/class/rtc/rtc0/wakealarm #this writes your alarm</div><div><br></div><div><div>cat /proc/driver/rtc > /tmp/rtc</div><div>cat /sys/class/rtc/rtc0/wakealarm >> /tmp/rtc</div><div>echo "Argument 1 = $1, SECS = $SECS" >> /tmp/rtc</div>
</div><div><br></div><div>Daryl</div></div><br></div></div>