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 ar

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. > >

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 your

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 c

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 qu

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 accident

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 j

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 th

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

2005-09-21 Thread Brian J. Murrell
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". I would really prefer a more graceful exiting of mythfrontend; that confirms

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

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

2005-09-21 Thread Brian J. Murrell
Is there any way to program lircrc to immediately go to the "shutdown" screen when I hit the power control button on my remote? I know how to program lircrc and so, just not sure if there is a way in myth to "press a key" to immediately do what a bunch of 's will do. Is this what is called "jump