On 12/20/07, <b class="gmail_sendername">Jonathan Rogers</b> &lt;<a href="mailto:jonner@teegra.net">jonner@teegra.net</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
There already is some documentation at<br>&lt;URL:<a href="http://mythtv.org/wiki/index.php/ACPI_Wakeup">http://mythtv.org/wiki/index.php/ACPI_Wakeup</a>&gt;.<br><br>Since I use Ubuntu, I found this slightly more useful:<br>
&lt;URL:<a href="https://help.ubuntu.com/community/MythTV/Install/WhatNext/ACPIWake?highlight=%28wakeup%29%7C%28acpi%29">https://help.ubuntu.com/community/MythTV/Install/WhatNext/ACPIWake?highlight=%28wakeup%29%7C%28acpi%29
</a>&gt;</blockquote><div><br>Yup, I&#39;ve been through both of those documents.&nbsp; Waking up is not a problem.&nbsp; Shutting down is.&nbsp; I don&#39;t know how to make Myth take the settings I give it (I&#39;ve restarted Mythbackend after making changes) but it simply won&#39;t sleep.&nbsp; Is it because I have nothing scheduled to record so it doesn&#39;t have a wake-up time?
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I am using SVN trunk, so some mythwelcome/mythshutdown settings have changed.</blockquote>
<div><br>I&#39;m using Mythbuntu 7.10 and whatever version of Myth comes with that -- probably the latest in Ubuntu&#39;s Gutsy repos.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
For my Abit motherboard, I found two things in those docs essential:<br>* I disabled the wakeup feature in the BIOS setup.<br>* I modified my hwclock.sh script so that the wakeup time is written<br>to /proc/acpi/alarm twice after the hardware clock is set.
</blockquote><div><br>I haven&#39;t disabled wakeup in BIOS (quite frankly don&#39;t know if it&#39;s set) but since it wakes up without a problem, I never bothered to change it.&nbsp; Do you think the BIOS wakeup could possibly prevent Myth from shutting down?&nbsp; I doubt it.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Yeah, I&#39;ve been testing my setup and saw the same thing. I set a short<br>
idle timeout in mythtv-setup of 30s. My mythtvbackend log contains<br>lines like &quot;I&#39;m idle now... shutdown will occur in 30 seconds.&quot; and<br>&quot;Waited more than 60 seconds for shutdown to complete - resetting idle
<br>time&quot;. I don&#39;t know if there&#39;s a bug in mythbackend or mythshutdown or<br>what. However, it does eventually shut down, though it takes longer<br>than it seems it should.</blockquote><div><br>How did you get it to output that?&nbsp; I see nothing like it in my logs.&nbsp; Just for fun I ran the following:
<br><br>myth@libra:~$ sudo sh -c &#39;echo &quot;+00-00-00 00:05:00&quot; &gt; /proc/acpi/alarm&#39;<br>myth@libra:~$ mythshutdown -v all --shutdown<br>2007-12-20 09:59:47.203 Mythshutdown: --shutdown<br>2007-12-20 09:59:
47.204 MSqlQuery: SELECT data FROM settings WHERE value = &#39;DailyWakeupStartPeriod1&#39; AND hostname IS NULL;<br>2007-12-20 09:59:47.204 MSqlQuery: SELECT data FROM settings WHERE value = &#39;DailyWakeupEndPeriod1&#39; AND hostname IS NULL;
<br>2007-12-20 09:59:47.204 MSqlQuery: SELECT data FROM settings WHERE value = &#39;DailyWakeupStartPeriod2&#39; AND hostname IS NULL;<br>2007-12-20 09:59:47.205 MSqlQuery: SELECT data FROM settings WHERE value = &#39;DailyWakeupEndPeriod2&#39; AND hostname IS NULL;
<br>2007-12-20 09:59:47.205 no daily wakeup times are set<br>2007-12-20 09:59:47.205 MSqlQuery: SELECT data FROM settings WHERE value = &#39;MythShutdownNextScheduled&#39; AND hostname IS NULL;<br>2007-12-20 09:59:47.205 no recording time is set
<br>2007-12-20 09:59:47.205 no wake up time set and no scheduled program<br>2007-12-20 09:59:47.206 MSqlQuery: DELETE FROM settings WHERE value = &#39;MythShutdownWakeupTime&#39;;<br>2007-12-20 09:59:47.207 MSqlQuery: INSERT INTO settings ( value, data ) VALUES ( &#39;MythShutdownWakeupTime&#39;, NULL );
<br>2007-12-20 09:59:47.207 MSqlQuery: SELECT data FROM settings WHERE value = &#39;MythShutdownNvramRestartCmd&#39; AND hostname = &#39;libra&#39; ;<br>2007-12-20 09:59:47.207 everything looks fine, shutting down ...<br>
2007-12-20 09:59:47.208 MSqlQuery: SELECT data FROM settings WHERE value = &#39;MythShutdownPoweroff&#39; AND hostname = &#39;libra&#39; ;<br>2007-12-20 09:59:47.208 ..<br>2007-12-20 09:59:47.208 .<br>2007-12-20 09:59:47.208
 shutting down ...<br>2007-12-20 09:59:47.274 SSDPCache - Destructor<br>2007-12-20 09:59:47.274 UPnpDeviceDesc - Destructor<br>myth@libra:~$<br>Broadcast message from myth@libra<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (/dev/pts/1) at 9:59 ...<br><br>
The system is going down for maintenance NOW!<br>Connection to libra closed by remote host.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;ve been using the hibernate command as the mythwelcome/mythshutdown<br>shutdown command. It can use several different suspend methods<br>including suspend to RAM and suspend2. Right now I&#39;m wondering if<br>mythbackend isn&#39;t expected to still exist after running a shutdown
<br>command. Maybe everything would be smoother if I shut down mythbackend<br>before suspending and restarted it after resuming.</blockquote><div><br>I&#39;d like to get regular shutdowns working before I start playing with suspend, though at some point that is a goal as well.
</div></div><br>I think the gap that I&#39;m missing is how to get Myth to consider itself idle and then shutdown (even if it doesn&#39;t have a wake up time).&nbsp; After that I&#39;ll look into WOL to force it to wake if it&#39;s asleep.
<br><br>Thanks for your help,<br>Brion<br>