<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
&gt; On Thu, Sep 13, 2012 at 1:52 PM, Joseph Fry &lt;<a href="mailto:joe@thefrys.com" target="_blank">joe@thefrys.com</a> &lt;mailto:<a href="mailto:joe@thefrys.com" target="_blank">joe@thefrys.com</a>&gt;&gt; wrote:<br>


<br>
    &gt;&gt;<br>
    &gt;&gt; How are your 10.04 and 11.10 machines configured to sleep.  I<br>
    know that<br>
    &gt;&gt; mythtv will pause the idle timer on Xscreensaver, but<br>
    xscreensaver can&#39;t<br>
    &gt;&gt; make my machine actually go to sleep, just the display.<br>
    &gt;<br>
    &gt;<br>
    &gt; Oops.  I assumed you meant blanking the display!  Sorry for the<br>
    confusion.<br>
<br>
    You have checked out the wiki article right?<br>
    <a href="http://www.mythtv.org/wiki/Putting_mythfrontend_to_sleep" target="_blank">http://www.mythtv.org/wiki/<u></u>Putting_mythfrontend_to_sleep</a><br>
<br>
<br>
Many times.  However it doesn&#39;t cover sleeping automatically when the system is idle.  My family is notorious for pausing a show and walking away for hours.  I want the system to wait 5 minutes, display my screensaver for 15 minutes, then go to sleep.  I can get the screensaver working no problem.  I can manually suspend, both from a menu option and from a button on my remote. And I can wake from remote.  But I cannot get the system to suspend when left idle.<br>


<br>
I can get the system to suspend automatically, but it does it even when I am watching something because mythtv does not deactivate the xfce4-power-manager when watching something.<br>
<br>
The only thing I can think of is creating some sort of cron script that checks the xscreensaver status every few minutes and when it has been active for a certain amount of time it kicks off a dbus command to suspend the system.<br>


<br>
I found a pretty good script here I may be able to adapt: <a href="http://www.mentby.com/Group/mythtv-users/how-to-make-idle-frontend-exit.html" target="_blank">http://www.mentby.com/Group/<u></u>mythtv-users/how-to-make-idle-<u></u>frontend-exit.html</a> but it seems like suspending on idle should be far simpler to implement than this.  Surely I&#39;m not the only person doing this.<br>


<br>
</blockquote>
<br></div></div>
I had the same problem, that is why I wrote the python script you mention in the link.  My system is a bit more complicated, as my frontend&#39;s are also slave backends to assist in commercial flagging, metadata lookups whilst they are on.  The python script can be simplified if you are only running a frontend, but it will need to be run via cron periodically to check the xscreensaver status.  Let me know, and I am happy to strip it down for you for frontend use, but will run via crontab for frontend only as it is.<br>


<br>
I did at one point create a &quot;screensaver&quot; stub that performed executed a real screen saver, waited for a defined period and shutdown the frontend, but I found this a bit of a kludge, and more difficult to setup.<br>


<br>
MythWelcome can shutdown frontend, but you have to exit the frontend for it to work, as of 0.25 (I think), there is suppose to be frontend idle detection, but in my experience it did not work effectivly, shutting down the frontend immediatly after watching a recorded program or video, during music playback, and sometimes just allowing the system to stay running when it has not been used in hours, it also does not shutdown the frontend cleanly (when it does shutdown the machine), so any Music Playlists you have created/edited in that session are lost.<div class="HOEnZb">

<div class="h5"><br></div></div></blockquote><div><br></div><div>Thanks for your script... I used it as a reference when I used mine.  My script is much simpler, and takes advantage of the fact that mythfrontend will disable xscreensaver during playback.  It&#39;s not suitable for a combined BE/FE, but it meets my needs really well.  I just have it start at boot in my session manager.  The script is here:  <a href="http://www.mythtv.org/wiki/Sleep(Suspend)_When_Idle">http://www.mythtv.org/wiki/Sleep(Suspend)_When_Idle</a></div>

</div>