<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:courier,monaco,monospace,sans-serif;font-size:12pt">Chad,<br><br>I don't see that anyone responded yet to your inquiry.<br><br>I too, had trouble making sense of all the settings.<br><br>I ended up leaving all the settings you mentioned in nvram-setup (Myth Backend settings) as shown in the wiki, except for the PreShutdown Check Command, but that's a long story -- I wrote a script to do more processing besides calling "mythshutdown --check" buried inside the script.<br><br>The time format specifies how the $time parameter will be formatted in the "Set wakeup time command" command string.<br><br>You might try changing this:<br>&nbsp; echo "$time" &gt; /proc/acpi/alarm<br>to this for testing purposes:<br>&nbsp; echo "$time" | tee -a /tmp/alarmtimes &gt; /proc/acpi/alarm<br><br>Then you can see exactly what is being sent to /proc/acpi/alarm by viewing the contents of
 /tmp/alarmtimes.&nbsp; Once you have everything working to your satisfaction, remember to change the command back and delete the /tmp/alarmtimes file.&nbsp; Otherwise, it could grow too big and potentially crash your system.<br><br>I chose to take advantage of whatever processing mythshutdown provides for checking what's going on before it decides it is ok to shutdown the system and let it pass the wakeup time along per the settings in MythWelcome's configuration page (as also explained in the wiki page).<br><br>It looks like your settings might work, but the best way to check is to follow these steps:<br>1) Bring up the system and see what the setting in /proc/acpi/alarm is with<br>&nbsp;&nbsp;&nbsp; # cat /proc/acpi/alarm<br>2) Change it to some other value following the format of the response you get (in case your set up is working already ;-] )<br>3) Let your system shutdown as you reported before<br>4) Bring it back up immediately and see what the alarm setting is
 now.<br><br>If it is working correctly, the response will match the time your system should wake up for the next recording to start (with whatever lead time you specified to allow the system to come up completely).<br><br>On my system, I mostly changed the settings in the MythWelcome Settings dialog.&nbsp; I ended up not using nvram-wakeup and wrote my own scripts to set the alarm time and shut down my system and put them in the appropriate places in that dialog.&nbsp; If nothing else, I don't have to worry about nvram-setup and MythBackend conflicts ;-).<br><div>&nbsp;</div>Craig Huff<br><div style="font-family: courier,monaco,monospace,sans-serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Chad &lt;masterclc@gmail.com&gt;<br>To: Discussion about mythtv &lt;mythtv-users@mythtv.org&gt;<br>Sent: Friday, May 11, 2007 2:52:31 AM<br>Subject: [mythtv-users] Shutdown/Wakeup wiki
 question<br><br><div>Hello!<br><br>I'm finally getting around to setting up shutdown/wakeup stuff on my<br>system.&nbsp;&nbsp;This is really quite cool!<br><br>I'm mostly confused on the settime script (and what follows it).<br><br>Here is what I do manually to "make it work":<br><br>echo "YYYY-MM-DD hh:mm:ss" &gt;/proc/acpi/alarm<br>shutdown -h now<br><br>where YYYY-MM-DD hh:mm:ss is something like 2007-05-11 23:10:00 to<br>have the system woken up on May 11th 2007 at 11:10pm.<br><br>So, what I've put in the first box (wakeup time format) is:<br>yyyy-MM-dd hh:mm:ss<br><br>And then in the second box (set wakeuptime command):<br>echo "$time" &gt;/proc/acpi/alarm<br>and the server halt command:<br>shutdown -h now<br><br>And I'm not sure if it will work.&nbsp;&nbsp;But nonetheless I would like to<br>understand what the settime script is supposed to be doing.<br><br>*update*<br>My backend just shutdown automatically.&nbsp;&nbsp;I don't know when it will be<br>coming back up,
 but so far the auto shutdown seems like it may have<br>worked!&nbsp;&nbsp;:)<br><br>Anyway, so if some kind soul could explain why the settime script (and<br>the related scripts/setup) would want to be used, it would be much<br>appreciated.&nbsp;&nbsp;I've spent a considerable amount of time reading up on<br>hwclock and date, both of which are amazingly in depth and pretty<br>cool.&nbsp;&nbsp;So I sort of understand it a bit better, but I still don't see<br>the rationale.<br><br>Thanks!<br><br>-Chad<br>_______________________________________________<br>mythtv-users mailing list<br>mythtv-users@mythtv.org<br><a target="_blank" href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br></div></div><br></div></div><br>
      <hr size=1>Moody friends. Drama queens. Your life? Nope! - their life, your story.<br> <a href="http://us.rd.yahoo.com/evt=48224/*http://sims.yahoo.com/">Play Sims Stories at Yahoo! Games. </a></body></html>