I am trying to implement a sleep timer function for my combined mythtv frontend/backend. I have created menu entries for mythfrontend as follows:<br><br><button><br><type>SLEEP_35</type><br><text>Sleep 35 m</text>
<br><action>EXEC sudo shutdown -h +35</action><br></button><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). 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? 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>