Re: [mythtv-users] program remote's power key to stop mythfrontend?

2005-09-22 Thread David Watkins
On 22/09/05, Brian J. Murrell [EMAIL PROTECTED] wrote: On Wed, 2005-09-21 at 19:03 -0700, Mark Kundinger wrote: You can have a shell script that responds to the power key and kills the frontend: Yeah. I have something similar. Killing off mythfrontend just so coarse. AFAIK there's no

Re: [mythtv-users] program remote's power key to stop mythfrontend?

2005-09-22 Thread Jo Shields
David Watkins wrote: On 22/09/05, Brian J. Murrell [EMAIL PROTECTED] wrote: On Wed, 2005-09-21 at 19:03 -0700, Mark Kundinger wrote: You can have a shell script that responds to the power key and kills the frontend: Yeah. I have something similar. Killing off mythfrontend

Re: [mythtv-users] program remote's power key to stop mythfrontend?

2005-09-22 Thread Brian J. Murrell
On Thu, 2005-09-22 at 11:21 +0100, David Watkins wrote: AFAIK there's no reason why killing the frontend should prevent it making a graceful exit. Indeed. But IMHO, if you are going to catch SIGTERM, it would be nice to pop up that are you sure you want to quit dialog. That way accidental

Re: [mythtv-users] program remote's power key to stop mythfrontend?

2005-09-22 Thread Craig Tinson
Brian J. Murrell wrote: On Thu, 2005-09-22 at 11:21 +0100, David Watkins wrote: AFAIK there's no reason why killing the frontend should prevent it making a graceful exit. Indeed. But IMHO, if you are going to catch SIGTERM, it would be nice to pop up that are you sure you want to

Re: [mythtv-users] program remote's power key to stop mythfrontend?

2005-09-22 Thread Dave Sherohman
On Thu, Sep 22, 2005 at 03:15:25PM +0100, Craig Tinson wrote: am not an expert on this.. but couldn't you just use irexec to send half-a-dozen ESC keys? no matter where you are in myth that should take you to the close screen? not exactly pretty but should do what your asking.. and you can

Re: [mythtv-users] program remote's power key to stop mythfrontend?

2005-09-22 Thread Craig Tinson
Dave Sherohman wrote: On Thu, Sep 22, 2005 at 03:15:25PM +0100, Craig Tinson wrote: am not an expert on this.. but couldn't you just use irexec to send half-a-dozen ESC keys? no matter where you are in myth that should take you to the close screen? not exactly pretty but should do what

Re: [mythtv-users] program remote's power key to stop mythfrontend?

2005-09-22 Thread Brian J. Murrell
On Thu, 2005-09-22 at 20:02 +0100, Craig Tinson wrote: Dave Sherohman wrote: Try pressing ESC half a dozen times... Once you get to the shutdown confirmation, ESC cancels the shutdown. So this would have a 50/50 chance of working, depending on how deep you are in the Myth menus. (Although

Re: [mythtv-users] program remote's power key to stop mythfrontend?

2005-09-22 Thread Craig Tinson
Brian J. Murrell wrote: On Thu, 2005-09-22 at 20:02 +0100, Craig Tinson wrote: Dave Sherohman wrote: Try pressing ESC half a dozen times... Once you get to the shutdown confirmation, ESC cancels the shutdown. So this would have a 50/50 chance of working, depending on how deep you

Re: [mythtv-users] program remote's power key to stop mythfrontend?

2005-09-21 Thread Mark Kundinger
You can have a shell script that responds to the power key and kills the frontend: http://www.wilsonet.com/mythtv/tips.php (half way down, about the wife button) I used a slightly tweaked out version which will also try to restart the backend if it's not running, but that isn't as useful as I