I am trying to implement a sleep timer function for my combined mythtv frontend/backend.&nbsp; I have created menu entries for mythfrontend as follows:<br><br>&lt;button&gt;<br>&lt;type&gt;SLEEP_35&lt;/type&gt;<br>&lt;text&gt;Sleep 35 m&lt;/text&gt;
<br>&lt;action&gt;EXEC sudo shutdown -h +35&lt;/action&gt;<br>&lt;/button&gt;<br><br>The problem is mythfrontend stops responding after the command executes, the shutdown command does however correctly execute (ie the PC shuts down after the specified time period).&nbsp; Running the shutdown command from a terminal window works correctly and allows me to continue using mythfrontend.
<br><br>Trying sudo shutdown -h -q +5 or sudo shutdown -h +5 does not make any difference.<br><br>Any ideas?&nbsp; eg do I need to background this or write a script instead of using shutdown directly?<br><br>Also, any ideas how to pop up a warning that the system will shut down when there is 1 minute to go?
<br>