<!DOCTYPE html><html><head>
<style type="text/css">body { font-family:'DejaVu Sans'; font-size:13px}</style>
</head>
<body>On Mon, 02 Sep 2013 00:23:19 +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>Well I mirrored your settings and scripts and scheduled a recording for 7p.m. gave the system two minutes to shutdown the backend and set the alarm then powered off, and waited until 7:05p.m. and it did not come on. Does the last line of the following output indicate UTC time?:</div>
<div>&nbsp;daryl@daryl-A780L3C:~$ &nbsp;sudo grep -i rtc /var/log/dmesg</div><div>[sudo] password for daryl:&nbsp;</div><div>[ &nbsp; &nbsp;0.199663] RTC time: 19:04:25, date: 09/01/13</div><div>[ &nbsp; &nbsp;1.222545] rtc_cmos 00:03: RTC can wake from S4</div>
<div>[ &nbsp; &nbsp;1.222673] rtc_cmos 00:03: rtc core: registered rtc_cmos as rtc0</div><div>[ &nbsp; &nbsp;1.222692] rtc0: alarms up to one month, y3k, 114 bytes nvram</div><div>[ &nbsp; &nbsp;1.229942] rtc_cmos 00:03: setting system clock to 2013-09-01 19:04:26 UTC (1378062266)</div>
</div></div></div></blockquote><div><br></div><div>Yes. On startup the system reads the RTC clock to get the current time/date. I suspect it's interpreting the time as UTC (rather than localtime) because your file "/etc/default/rcS" contains "UTC=yes". You should change that. Type "man /etc/default/rcS" to read more about it.</div><div><br></div><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><br></div><div>This is what my disable hwclock script looks like:</div><div><div>daryl@daryl-A780L3C:~$ cat /etc/init/hwclock-save.conf</div><div># hwclock-save - save system clock to hardware clock</div><div># hwclock-save - save system clock to hardware clock</div>
<div>#</div><div># This task saves the time from the system clock back to the hardware</div><div># clock on shutdown.</div><div><br></div><div>description<span class="" style="white-space:pre">        </span>"save system clock to hardware clock"</div>
<div><br></div><div>start on runlevel [06]</div><div><br></div><div>task</div><div><br></div><div>script</div><div>&nbsp; &nbsp; . /etc/default/rcS</div><div>&nbsp; &nbsp; [ "$UTC" = "yes" ] &amp;&amp; tz="--utc" || tz="--localtime"</div>
<div>&nbsp; &nbsp; [ "$BADYEAR" = "yes" ] &amp;&amp; badyear="--badyear"</div><div>&nbsp; &nbsp; ACPITIME=`cat /proc/acpi/alarm`</div><div>&nbsp; &nbsp; exec hwclock --rtc=/dev/rtc0 --systohc $tz --noadjfile $badyear</div>
<div>&nbsp; &nbsp; echo "$ACPITIME" &gt; /proc/acpi/alarm</div><div>end script</div><div>daryl@daryl-A780L3C:~$&nbsp;</div></div><div><br></div></div></div></div></blockquote><div><br></div><div>That doesn't look right to me. Up until last year the solution was to simply not write the clock. In January someone changed the wiki to re-write the alarm after setting the clock but /proc/acpi/alarm is only applicable to (old) 2.6 kernels, so it won't have any effect on recent kernels (like yours); i.e. hwclock updates aren't being disabled.<br></div><div>However, following Stefan comments, I can confirm that Mythbuntu 12.04 doesn't need its hwclock disabled so, for you, changing this file is an unnecessary distraction and I suggest you put it back to default (delete the 2 lines containing ACPITIME) &amp; forget this step.</div><div><br></div></body></html>