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 are in the Myth menus.
(Although you could set it to send an odd number of ESCs, so that if
it left you at the main menu the first time, you can hit it a second
time and it will...)



 


ahh.. well spotted.. I should have checked this idea before posting it.. lol
   



Ahhh.  But this solution, prefixed by going to a jump-point -- where the
number of ESC's needed to exit are known could work.

 


excellent idea


Would look ugly though, all the screen flipping just before exiting.

 


agreed


An exit jump point is really what is needed I think.

 


I think so too.. shouldn't be too difficult for a programmer I would imagine


b.

 

 


c. :)




___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
 



___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


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 you could set it to send an odd number of ESCs, so that if
> >it left you at the main menu the first time, you can hit it a second
> >time and it will...)
> >
> >  
> >
> ahh.. well spotted.. I should have checked this idea before posting it.. lol

Ahhh.  But this solution, prefixed by going to a jump-point -- where the
number of ESC's needed to exit are known could work.

Would look ugly though, all the screen flipping just before exiting.

An exit jump point is really what is needed I think.

b.

-- 
My other computer is your Microsoft Windows server.

Brian J. Murrell


signature.asc
Description: This is a digitally signed message part
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


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 
asking.. and you can still press the OK to confirm
   



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 you could set it to send an odd number of ESCs, so that if
it left you at the main menu the first time, you can hit it a second
time and it will...)

 


ahh.. well spotted.. I should have checked this idea before posting it.. lol

Craig


___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


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 still press the OK to confirm

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 you could set it to send an odd number of ESCs, so that if
it left you at the main menu the first time, you can hit it a second
time and it will...)

-- 
The freedoms that we enjoy presently are the most important victories of the
White Hats over the past several millennia, and it is vitally important that
we don't give them up now, only because we are frightened.
  - Eolake Stobblehouse (http://stobblehouse.com/text/battle.html)
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


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 quit dialog".  That way
accidental presses of the power button can be aborted.

 


I thought that was what kill -9 was for.
   



That one's not "course", it's ruthless.  :-)

b.

 




___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
 


hey

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 still press the OK to confirm


just a thought

Craig


___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


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 presses of the power button can be aborted.

> I thought that was what kill -9 was for.

That one's not "course", it's ruthless.  :-)

b.

-- 
My other computer is your Microsoft Windows server.

Brian J. Murrell


signature.asc
Description: This is a digitally signed message part
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


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 just so
"coarse".
   



AFAIK there's no reason why killing the frontend should prevent it
making a graceful exit.

I thought that was what kill -9 was for.



I was annoyed enough by the lack of reasonable method for quitting 
mythfrontend with a remote, that I made some patches to handle it - 
added another event called SHUTDOWN, and assigned it to my remote's 
power button - which then gived a (modified) menu of Cancel or Exit & 
Shutdown.


I didn't bother sending the patches upstream, as they're for libmyth, 
which is being made obsolete.


--Jo Shields
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


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 reason why killing the frontend should prevent it
making a graceful exit.

I thought that was what kill -9 was for.
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


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 exit just like pressing Esc a bunch of
times.

It really seems that Exit needs to be a jump point (I think).

Thanx for the idea though.
b.

-- 
My other computer is your Microsoft Windows server.

Brian J. Murrell


signature.asc
Description: This is a digitally signed message part
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


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


--- "Brian J. Murrell" <[EMAIL PROTECTED]> wrote:

> 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 points"?  Is there a jump point for
> exit?
> I'm not seeing one in mythweb's key bindings screen.
> 
> Short of a jump point, anyone got any ideas?
> 
> Thanx,
> b.
> 
> -- 
> My other computer is your Microsoft Windows server.
> 
> Brian J. Murrell
> > ___
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> 

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


[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 points"?  Is there a jump point for exit?
I'm not seeing one in mythweb's key bindings screen.

Short of a jump point, anyone got any ideas?

Thanx,
b.

-- 
My other computer is your Microsoft Windows server.

Brian J. Murrell


signature.asc
Description: This is a digitally signed message part
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users