Thanks Alan, I was able to map a key by doing the following:

1.  Find a good place to launch irexec:

init.d was good.  In /etc/init.d/freevo_xserver

startx_freevo() {
    # Dan was here - thanks Rob for idea
    if [ "`ps -ef | grep irexec | grep -v grep`" = '' ]
    then
            /usr/bin/irexec /etc/freevo/lircrc &
    fi
    # End Dan
 openvt -c 9 -- su --shell /bin/sh freevo -c  "startx  $DAEMONLOG   --
:1 vt9  -quiet"
}

2.  Remap key:

Never did find the red button (LANG) to be useful anywhere, so 'vim
/etc/freevo/lircrc':

#NO OBVIOUS KEY AVAILABLE
#begin
#        remote = Hauppauge_350
#        button = Red
#        prog   = freevo
#        repeat = 0
#        config = LANG
#end
begin
        remote = Hauppauge_350
        button = Red
        prog   = irexec
        repeat = 3
        config = pkill -9 xine
end

3.  Hit Red button to kill ivtv xine when it crashes:

A bit lame, but it seems to work.

On 09/13/2010 09:21 AM, Alan wrote:
> Yes, irexec is the way to go.
>
> Just start irexec this way:
> irexec /path/to/config
>
> Then write in /path/to/config:
>
> begin
>    button = POWER (or whatever button you have)
>    config = sudo /sbin/reboot
> end
>
> The SysReq solution doesn't reboot your machine properly (it doesn't
> stop processes, etc).
>
> On Mon, Sep 13, 2010 at 1:17 AM, Dan Schmidt <helpdesk...@gmail.com> wrote:
>   
>> Thanks for the idea, I will try that when the weather gets cold.  Does
>> anybody have an example of how they've implemented irexec?
>>
>> On 09/11/2010 04:58 PM, Jonathan Isom wrote:
>>     
>>> On Sat, Sep 11, 2010 at 5:55 PM, Dan Schmidt <helpdesk...@gmail.com> wrote:
>>>
>>>       
>>>> On live TV, xine crashes on me all the time.  Can you get to another
>>>> shell?  ctrl-atl-f2, login, sudo killall xine, ctrl-alt-f9 & I'm good.
>>>> If I could map "killall xine" to an unused remote key, I would.
>>>>
>>>>
>>>>         
>>> look at "irexec" assuming you have an unused key.
>>> you can use it with freevo or any other app that uses lirc.
>>>
>>>
>>>       
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Freevo-users mailing list
> Freevo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freevo-users
>   

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to