<!DOCTYPE html><html><head>
<style type="text/css">body { font-family:'DejaVu Sans'; font-size:13px}</style>
</head>
<body>On Mon, 02 Sep 2013 22:27:17 +0100, Daryl McDonald &lt;darylangela@gmail.com&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 class="im">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 &gt; /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>
&nbsp; &nbsp; sudo sh -c 'echo $SECS &gt; /sys/class/rtc/rtc0/wakealarm'<span class=""><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'm noticing is that the "&nbsp;/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&nbsp;</div></div><br></div>
</blockquote><br><div>Haven't we been here last Thursday ?&nbsp;</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 &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 "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 &amp; alrm_tme being set. Choose an appropriate time, shut down &amp; wait for it to wake-up</div><div><br></div><br></body></html>