<br><br><div><span class="gmail_quote">On 22/11/2007, <b class="gmail_sendername">Paul Harrison</b> &lt;<a href="mailto:mythtv@dsl.pipex.com">mythtv@dsl.pipex.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Paul Mason wrote:<br>&gt; At the beginning of the month I set up my mythtv box to<br>&gt; shutdown/wakeup automatically using ACPI, mythshutdown and<br>&gt; mythwelcome. Prior to that it was running 24/7.<br>&gt;<br>&gt; I have a cron job which does a db backup, optimize, xfs defrag etc -
<br>&gt; which is set to run daily at 3am. In order to allow for this I&#39;ve set<br>&gt; one of the wake-up periods to 2:45 - 3:45. I&#39;ve also put a<br>&gt; &quot;mythshutdown --lock&quot; at the top of my script and a &quot;mythshutdown
<br>&gt; --unlock&quot; at the bottom.<br>&gt;<br>&gt; I use the other wake-up period to have the box awake during my main<br>&gt; viewing period - 19:00 - 23:59 (the box is both BE and FE).<br>&gt;<br>&gt; So far so good. I set it up following the wiki with very little
<br>&gt; trouble and it&#39;s been working perfectly. Or so I thought. It always<br>&gt; wakes up for recordings, it always wakes up for 19:00 but it hasn&#39;t<br>&gt; been waking up for 2:45. I hadn&#39;t realised this until last night
<br>&gt; because often it had been still awake running a job after a recording,<br>&gt; so the backups were getting done (mostly).<br>&gt;<br>&gt; Anyway I&#39;ve been looking into this, searching the archives of this<br>
&gt; list, the wiki and elsewhere and I can&#39;t find any report of a similar<br>&gt; problem, or any note of why one of the wakeup periods would work but<br>&gt; not the other. The script I use to set the wakeup time in the BIOS
<br>&gt; writes to a log, so I can see that it never gets called for the 2:45<br>&gt; wakeup.<br>&gt;<br>&gt; The only thought I had was whether the wakeup periods need to be in<br>&gt; order i.e. at the moment period1 is 19:00 - 23:59 and period2 is 02:45
<br>&gt; - 03:45 - perhaps I need to switch them? I&#39;ll try that tonight in any<br>&gt; case.<br>&gt;<br>&gt; I&#39;m running SVN trunk from about a couple months ago. (I also searched<br>&gt; Trac but didn&#39;t find anything on this)
<br>&gt;<br>&gt; --<br>&gt; Paul Mason<br><br>I wasn&#39;t aware of having to have the wakeup periods in the correct order<br>but it looks like you could be right. Basically what happens is if&nbsp;&nbsp;the<br>start times for both daily wakeup periods has passed for today then the
<br>next wake time will be set to the first daily wakeup time tomorrow even<br>if the second daily wakeup time is before the first. There should really<br>be a check to make sure that the earliest daily wakeup time is used.
<br>Swapping the period around should fix things for now.</blockquote><div><br><br>Thanks. Yes that confirms what I just discovered. It&#39;s one of those things that doesn&#39;t necessarily need fixing&nbsp; but it perhaps needs documenting. So I updated the wiki to reflect this.
<br></div></div><br clear="all">Thanks again<br>-- <br>Paul Mason