<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"><<a href="mailto:dizygotheca@ntlworld.com" target="_blank">dizygotheca@ntlworld.com</a>></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 <<a href="mailto:darylangela@gmail.com" target="_blank">darylangela@gmail.com</a>> 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"><<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>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'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 "2013-09-02 15:45:00" +%s`<br>
daryl@daryl-A780L3C:~$ sudo sh -c 'echo 0 > /sys/class/rtc/rtc0/wakealarm'<br>
<br>
And when I ask for a report of the alarm state, IRQ is always "= no" :<br>
</blockquote>
<br></div>
Hopefully it's just a typo in your email, but there's a step missing:<br>
<br>
sudo sh -c 'echo $SECS > /sys/class/rtc/rtc0/wakealarm'<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&pasteO. That line was in there, something else I'm noticing is that the " /sys/class/rtc/rtc0/wakealarm" file is blank, I opened it via the GUI file system. Is that normal and/or functional? Shouldn't I be able to see a script?</div>
<div><br></div><div>Daryl </div></div><br></div>
</blockquote><br></div></div><div>Haven't we been here last Thursday ? </div><div><br></div><div>You need root permissions to write to the alarm and 'sudo sh -c' 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're reluctant to do that you can use Bill's idea of running a script via sudo instead. Paste the following into a file "test.sh"</div>
<div><br></div><div>#!/bin/sh<br>SECS=`date -u --date "2013-09-03 15:45:00" +%s`<br>echo 0 > /sys/class/rtc/rtc0/wakealarm<br>echo $SECS > /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 "chmod +x test.sh", then run it using "sudo sh test.sh"</div><div><br></div><div>cat /sys/class/rtc/rtc0/wakealarm simply reports the interval (in secs) to the next RTC alarm. It's blank/empty if the alarm isn't set. This is the first line of the output. The rest shows the alarm_IRQ & alrm_tme being set. Choose an appropriate time, shut down & 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 "root" 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>