<!DOCTYPE html><html><head>
<style type="text/css">body { font-family:'DejaVu Sans'; font-size:13px}</style>
</head>
<body>On Thu, 29 Aug 2013 17:16:12 +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"><div class="gmail_extra"><div class="gmail_quote"><div>Test failed!&nbsp;</div><div><br></div><div>daryl@daryl-A780L3C:~$ cat /proc/driver/rtc</div>
<div>rtc_time<span class="" style="white-space:pre">        </span>: 12:00:42</div><div>rtc_date<span class="" style="white-space:pre">        </span>: 2013-08-29</div><div>alrm_time<span class="" style="white-space:pre">        </span>: 12:05:26</div>
<div>&gt;&gt;&gt;in the command line I used 12:30:00, Why would it show as 12:05?</div><div>alrm_date<span class="" style="white-space:pre">        </span>: 2013-08-29</div><div>alarm_IRQ<span class="" style="white-space:pre">        </span>: no</div>
<div>&gt;&gt;&gt;Wiki show above value as "yes"&nbsp;</div><div>alrm_pending<span class="" style="white-space:pre">        </span>: no</div><div>update IRQ enabled<span class="" style="white-space:pre">        </span>: no</div><div>
periodic IRQ enabled<span class="" style="white-space:pre">        </span>: no</div><div>periodic IRQ frequency<span class="" style="white-space:pre">        </span>: 1024</div><div>max user IRQ frequency<span class="" style="white-space:pre">        </span>: 64</div>
<div>&gt;&gt;&gt;The four lines above are not on the Wiki</div><div>24hr<span class="" style="white-space:pre">                </span>: yes</div><div>periodic_IRQ<span class="" style="white-space:pre">        </span>: no</div><div>update_IRQ<span class="" style="white-space:pre">        </span>: no</div>
<div>HPET_emulated<span class="" style="white-space:pre">        </span>: yes</div><div>&gt;&gt;&gt;Wiki shows above value as "no"</div><div>BCD<span class="" style="white-space:pre">                </span>: yes</div><div>&gt;&gt;&gt;above line not in Wiki</div>
<div>DST_enable<span class="" style="white-space:pre">        </span>: no</div><div>periodic_freq<span class="" style="white-space:pre">        </span>: 1024</div><div>batt_status<span class="" style="white-space:pre">        </span>: okay</div>
<div>daryl@daryl-A780L3C:~$&nbsp;</div><div><br></div><div>Where I have noticed differences, I have inserted comments into the terminal output from "cat /proc/driver/rtc" with "&gt;&gt;&gt;" Am I getting close?</div>
<div><br></div><div>Daryl</div></div><br></div></div>
</blockquote><br><div>The only relevant lines are 'alrm_time/date' &amp; 'alarm_IRQ'. The others don't matter.<br></div><div><br></div><div>I get the same. The "sudo sh -c" method doesn't work. I don't know why.</div><div><br></div><div>There is also an RTC quirk in that resetting the alarm or failing to write it sets the alarm date/time to 5 mins in the future. Again I don't know why, but that explains your 12:05.</div><div><br></div><div>I don't see any alternative to using the root user. Avoiding it is generally wise advice but if you're scared of it, you'll be alright. And you are doing proper 'root' stuff, after all. </div><div><br></div><div>If game, try the following commands in a terminal (but not the bracketed bits). Cut &amp; paste is a good idea.</div><div><br></div><div>sudo bash &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (enter password &amp; note the different prompt - you're now root user)</div><div>SECS=`date -u --date "2013-08-29 12:30:00" +%s` &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(use appropriate date/time)</div><div>echo 0 &gt; /sys/class/rtc/rtc0/wakealarm</div><div>cat /proc/driver/rtc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (alarm_time should be 5 mins in future, alarm_IRQ=no)</div><div>echo $SECS &gt; /sys/class/rtc/rtc0/wakealarm</div><div>cat /proc/driver/rtc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (alarm_time should be set, alarm_IRQ=yes)</div><div>&lt;CTRL&gt; D &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (logs you out of root)</div><div><br></div><div>Shutdown &amp; wait for restart. I'm assuming you have set the BIOS "Wake on RTC" option &amp; have already disabled the hwclock updates, as per wiki</div></body></html>