Benjamin Lawetz wrote:
> Hello Everybody,
> 
>       I have my Freevo all setup with my ATI USB remote. Everything was 
> (and is) working fine. I recently purchased myself a nice LG LCD screen to 
> go with it and to my joy and surprise there was an RS-232 port on the TV 
> with the information on how to use it.
> 
>       I'm looking to use my ATI remote as a multi-remote to control and 
> Freevo, and my TV but with the same buttons of the remote.
> 
>       For example:
> 
>       - I press the "TV" button on the remote and then the "Channel UP"
>            button and the "Volume Down" button, and it will channel up on
>            the TV and volume down on the TV
>       - I then press the "WEB" button and then the "Channel UP" button
>            and "Volume Down" button, and it will channel up on Freevo and
>            lower the volume on Freevo
> 
>       Pressing the "TV" or "WEB" buttons would switch the remote into 
> Freevo or TV mode.
> 
> Anyone see any way of doing this?

By using the modes function of lircd it may give you what you want.

Attached in an example of a lircrc that can do this.

An here is the output when you press play and menu.

# ircat --config=/etc/freevo/irexecrc irexec
echo "mode1 PLAY"
echo "mode1 -> mode mode2!"
echo "mode2 PLAY"
echo "mode2 -> mode mode1!"
echo "mode1 PLAY"

Googling for "lirc multi mode" may help.

HTH,
Duncan


# multiple lirc modes
begin
    flags = startup_mode
    mode = mode1
end

begin mode1
    begin
        prog = irexec
        button = PLAY
        config = echo "mode1 PLAY"
    end

    begin
        prog = irexec
        button = MENU/I
        #config = gnome-osd-client -f "<message id='irexec' 
osd_fake_translucent_bg='on' osd_vposition='center' animations='on' 
hide_timeout='1000' osd_halignment='center'>Changed to mode 2</message>"
        config = echo "mode1 -> mode mode2!"
    end

    begin
        prog = irexec
        button = MENU/I
        mode = mode2
        flags = mode quit
    end

    begin
        prog = irexec
        button = SkipForward
        config = echo "mode1 SkipForward"
        repeat = 3
    end

    begin
        prog = irexec
        button = Replay/SkipBackward
        config = echo "mode1 Replay/SkipBackward"
        repeat = 3
    end
    
    begin
        prog = irexec
        button = CH+
        config = echo "mode1 CH+"
        repeat = 3
    end
    
    begin
        prog = irexec
        button = CH-
        config = echo "mode1 CH-"
        repeat = 3
    end
end mode1
    
begin mode2
    begin
        prog = irexec
        button = PLAY
        config = echo "mode2 PLAY"
    end
    
    begin
        prog = irexec
        button = SkipForward
        config = echo "mode2 SkipForward"
    end
    
    begin
        prog = irexec
        button = Replay/SkipBackward
        config = echo "mode2 Replay/SkipBackward"
    end
end mode2
    
begin
    button = MENU/I
    mode = mode1
    flags = mode quit
    prog = irexec
    #config = gnome-osd-client -f "<message id='irexec' 
osd_fake_translucent_bg='on' osd_vposition='center' animations='on' 
hide_timeout='1000' osd_halignment='center'>Changed to mode 1</message>"
    config = echo "mode2 -> mode mode1!"
end
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to