<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 2, 2013 at 6:14 PM, Roger Siddons <span dir="ltr">&lt;<a href="mailto:dizygotheca@ntlworld.com" target="_blank">dizygotheca@ntlworld.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>


<div><div><div class="h5">On Mon, 02 Sep 2013 22:27:17 +0100, Daryl McDonald &lt;<a href="mailto:darylangela@gmail.com" target="_blank">darylangela@gmail.com</a>&gt; wrote:<br><br><blockquote style="margin:0 0 0.80ex;border-left:#0000ff 2px solid;padding-left:1ex">
<div dir="ltr"><br><div class="gmail_quote">On Mon, Sep 2, 2013 at 4:37 PM, Bill Meek <span dir="ltr">&lt;<a href="mailto:keemllib@gmail.com" target="_blank">keemllib@gmail.com</a>&gt;</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>On 09/02/2013 02:43 PM, Daryl McDonald 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">
Greetings Mythizens, I&#39;m still having trouble test setting the alarm<br>
wakeup. I enter the test script into the terminal as per the wiki:<br>
<br>
daryl@daryl-A780L3C:~$ cat /sys/class/rtc/rtc0/wakealarm<br>
daryl@daryl-A780L3C:~$ SECS=`date -u --date &quot;2013-09-02 15:45:00&quot; +%s`<br>
daryl@daryl-A780L3C:~$ sudo sh -c &#39;echo 0 &gt; /sys/class/rtc/rtc0/wakealarm&#39;<br>
<br>
And when I ask for a report of the alarm state, IRQ is always &quot;= no&quot; :<br>
</blockquote>
<br></div>
Hopefully it&#39;s just a typo in your email, but there&#39;s a step missing:<br>
<br>
    sudo sh -c &#39;echo $SECS &gt; /sys/class/rtc/rtc0/wakealarm&#39;<span><font color="#888888"><br>
<br>
-- <br>
Bill<br>
_______________________________________________<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/listinfo/mythtv-users</a></font></span></blockquote><div><br></div><div>Yes Bill it was a typo, or rather a copy&amp;pasteO. That line was in there, something else I&#39;m noticing is that the &quot; /sys/class/rtc/rtc0/wakealarm&quot; file is blank, I opened it via the GUI file system. Is that normal and/or functional? Shouldn&#39;t I be able to see a script?</div>

<div><br></div><div>Daryl </div></div><br></div>
</blockquote><br></div></div><div>Haven&#39;t we been here last Thursday ? </div><div><br></div><div>You need root permissions to write to the alarm and &#39;sudo sh -c&#39; does not work in this case.<br></div><div><br>
</div><div>The simplest way is to log in as root and run the commands, but as you&#39;re reluctant to do that you can use Bill&#39;s idea of running a script via sudo instead. Paste the following into a file &quot;test.sh&quot;</div>
<div><br></div><div>#!/bin/sh<br>SECS=`date -u --date &quot;2013-09-03 15:45:00&quot; +%s`<br>echo 0 &gt; /sys/class/rtc/rtc0/wakealarm<br>echo $SECS &gt; /sys/class/rtc/rtc0/wakealarm<br>cat /sys/class/rtc/rtc0/wakealarm<br>
cat /proc/driver/rtc</div><div><br></div><div>Make the file executable using &quot;chmod +x test.sh&quot;, then run it using &quot;sudo sh test.sh&quot;</div><div><br></div><div>cat /sys/class/rtc/rtc0/wakealarm simply reports the interval (in secs) to the next RTC alarm. It&#39;s blank/empty if the alarm isn&#39;t set. This is the first line of the output. The rest shows the alarm_IRQ &amp; alrm_tme being set. Choose an appropriate time, shut down &amp; wait for it to wake-up</div>
<div><br></div><br></div><br>_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a></blockquote><div><br></div><div>Yes we have, and after getting a little side tracked, I started from scratch, and actually tried a test as &quot;root&quot; and was unsuccessful.</div>
<div>However this time, implementing as directed, I am very grateful to all mythizens for my first test success.  :-))</div><div>Now all that remains is configuring the backend as per the wiki, right?</div><div><br></div>
<div>The vast wisdom, and patience that resides in this list is greatly respected and appreciated. </div><div><br></div><div>Daryl</div></div><br></div></div>