Forum

Full Version: Lirc and emulationstation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I installed emulationstation from source onto my xbian setup. I'm trying to figure out a way to launch emulationstation from the command prompt with only a streamzap remote.

I already have the streamzap remote and lirc functional along with irexec. I edited /etc/lirc/lircrc to map two of my buttons, one to stop xbmc, and another to start xbmc. That part works fine (launching and stopping xbmc with irexec/lirc). I want to use the same method with lirc/irexec to start/stop emulationstation. Is this possible?

Here is is my /etc/lirc/lircrc:

Code:
# Example with modes
# MAIN BEGIN (irexec mode) - Application Selection Mode
# ---------------
begin irexec

BEGIN
        prog   = irexec
        remote = Streamzap_PC_Remote
        button = GREEN
        config = service xbmc start
END
BEGIN
        prog   = irexec
        remote = Streamzap_PC_Remote
        button = RED
        config = service xbmc stop
END
BEGIN
        prog   = irexec
        remote = Streamzap_PC_Remote
        button = BLUE
        config = emulationstation
END
BEGIN
        prog   = irexec
        remote = Streamzap_PC_Remote
        button = YELLOW
        config = killall -9 emulationstation
END
BEGIN
        prog   = irexec
        remote = Streamzap_PC_Remote
        button = POWER
        config = /usr/bin/navixsearch
END
end irexec
Reference URL's