<div dir="ltr">So possibly a dumb question, but why not do it like I am?<br><br>dbus-send --system --print-reply 
--dest=&quot;org.freedesktop.<div class="gmail_extra">UPower&quot; /org/freedesktop/UPower 
org.freedesktop.UPower.Suspend<br><br></div><div class="gmail_extra">Is this somehow wrong?  Does this not work for you?<br><br></div><div class="gmail_extra">Not saying the way I did it is right or wrong.  Just asking.<br>

<br></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 12:49 PM, Thomas Boehm <span dir="ltr">&lt;<a href="mailto:mythtv-users@lists.boehmi.net" target="_blank">mythtv-users@lists.boehmi.net</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 20/07/14 03:45, Kevin Johnson wrote:<br>
</div><div><div class="h5">&gt; Is there a way to easily enable suspend with mythtv?<br>
&gt;<br>
&gt; I hate to make the comparison, but I have 3 different computers running<br>
&gt; mythtv and xbmc.  With xbmc, I have the option to suspend with the<br>
&gt; remote.  This option works on all 3 computers.  I do not see this option<br>
&gt; with myth.  Is this easily enabled?<br>
<br>
</div></div>I do it on my frontends like this. I removed gnome-screensaver and<br>
installed xscreensaver. When the user logs in, he starts xscreensaver<br>
and this little perl script<br>
<br>
----------------------<br>
#!/usr/bin/perl<br>
<br>
my $blanked = 0;<br>
open (IN, &quot;xscreensaver-command -watch |&quot;);<br>
while (&lt;IN&gt;) {<br>
        if (m/^(BLANK|LOCK)/) {<br>
                if (!$blanked) {<br>
                        system &quot;sudo pm-suspend&quot;;<br>
                        $blanked = 1;<br>
                }<br>
        } elsif (m/^UNBLANK/) {<br>
                system &quot;sound-on&quot;;<br>
                $blanked = 0;<br>
        }<br>
}<br>
---------------------<br>
<br>
Then set the screensaver idle time and the system suspends after that<br>
time when there is no activity. No fiddling with buttons on your remote<br>
control needed and you can&#39;t forget to suspend. When you&#39;re watching<br>
something on the frontend, it pokes the screensaver every minute.<br>
<br>
With xbmc it gets a bit more complicated though as it doesn&#39;t poke the<br>
screensaver as far as I know. So you could terminate xscreensaver when<br>
you start xbmc and start it again when you quit.<br>
<br>
HTH<br>
<span class="HOEnZb"><font color="#888888">Thomas<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a><br>
</div></div></blockquote></div><br></div>