<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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'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" target="_blank">http://www.mythtv.org/wiki/<u></u>Sleep(Suspend)_When_Idle</a> <<a href="http://www.mythtv.org/wiki/Sleep%28Suspend%29_When_Idle" target="_blank">http://www.mythtv.org/wiki/<u></u>Sleep%28Suspend%29_When_Idle</a>><br>
<br>
</blockquote>
Thats nice and simple, but;<br>
If you do not have a visualizer running, mythmusic allows screensaver and DPMS to activate whilst playing music<br>
MythBrowser will allow the screensaver to activate whilst viewing web pages, and thus cause your script to shutdown machine<br>
My script checks if a recording/video is paused, and sets a bookmark before shutting down. (Or clears the bookmark if one is set, I havent as yet worked out how to check if there are any bookmarks set)</blockquote>
<div><br></div><div>Thanks for the feedback. </div><div><br></div><div>I should check if music is playing... I'll have to figure that one out.</div><div><br></div><div>I'm not too concerned about mythbrowser, if the screensaver activates and you ignore it, your no longer looking at the page anyway.</div>
<div><br></div><div>Because I am just suspending, the system wakes up right where you were in the video if you had it paused... no need to check it or set a bookmark.</div></div>