how to autostart a rom directly on boot?

  • Themer

    @tonificante try to comment the content of S31emulationstation script ?

    But yeah anyway Recalbox is not really designed for that usage

  • Just for the records, and in case somebody is trying something similar, I managed it in this way:

    • in /etc/init.d , disable emulationstation service and custom service this way: sudo chmod -x S31emulationstation S99custom and disable also all the services that you don't need (in my case S02splash S11upgrade S24lircmod S25hyperion S25lircd S31sixad S32bluetooth S92steamcontroller S92virtualgamepads S94manager)
    • create a new service in /etc/init.d with following name S99customrom and sudo chmod +x S99customrom and add the following code:
    case "$1" in 
       /recalbox/share/system/ &
       echo $!>/var/run/
       kill `cat /var/run/`
       rm /var/run/
       $0 stop
       $0 start
       if [ -e /var/run/ ]; then
          echo is running, pid=`cat /var/run/`
          echo is NOT running
          exit 1
       echo "Usage: $0 {start|stop|status|restart}"
    exit 0 
    • and now, in the share folder, in the system folder, edit the and add the line to launch the game, that you got when you played it normally and used ps -ef | grep emulatorlauncher , like voljega said, BUT add this at the end: && poweroff
    • for example, in my case:
    python /usr/lib/python2.7/site-packages/configgen/emulatorlauncher.pyc -p1index 0 -p1guid 03000000830500006020000010010000 -p1name "USB,2-axis 8-button gamepad" -p1nbaxes 2 -p1devicepath /dev/input/event2 -p2index 1 -p2guid 03000000830500006020000010010000 -p2name "USB,2-axis 8-button gamepad" -p2nbaxes 2 -p2devicepath /dev/input/event3 -p3index 2 -p3guid 03000000451300000031000001010000 -p3name "Sony SPEEDLINK USB GAMEPAD" -p3nbaxes 4 -p3devicepath /dev/input/event4 -system snes -rom "/recalbox/share/roms/snes/Breath of" -emulator default -core default -ratio auto && poweroff

    If you did everything fine, recalbox will start directly on the rom, and when you press select + start (or whatever your back-to-menu is) then you will shutdown the system safely and you can turn the raspberry off after 5 or 10 seconds

    If you make S31emulationstation executable again, and disable the customrom script, then you can enter to emulationstation and modify settings like shaders, video configs, etc, and this will affect also your custom rom.

    The only problem that I still have is that in this way I cannot manage to get the audio output through my external usb audio card. I have a typical behringer uca222 to increase the sound quality, but the sound is still going through the hdmi signal, although it works fine if I boot the rom from the emulationstation menu. If I manage it on the autostarted rom, I will let you know.

  • Banned

    Hello, guys! I tried doing this for Batocera and it worked very well! What I'm wanting is to make a script for the Batocera to boot already inside a system, for example, SNES, in the game list, without appearing the main menu. Does anyone have any idea how to create a script to direct the system into the folder?

  • Themer

    @mago we are not the batocera forum, please go there if you want help for batocera, it is clearly not our problem

  • @mago in Recalbox you can do it directly from the menus, I remember that I saw the option a couple of times, I think it is under some kind of interface options menu or theme menu, maybe batocera also has it, otherwise you can try recalbox :)

  • Banned

    @tonificante Thanks for reply, i just need to know the command to do the system start inside a folder, like Favorites, if i know it, i could do Batocera autostart inside the games list!

  • Banned

    @voljega I know that here is not the forum of Batocera, but in case you do not know the system, the kernell is the same , and someone can always help, regardless of the place, whether it's your problem or not, that does not interest me!

  • Moderator

    @mago I’ll say it clear and politely... we do not give support for other OS's, regardless how similir to ours it might be. And we don't want to keep loosing our time explaining this. So please, go to your respective forum. Thank you!

  • Banned

    @paradadf my apologizes... I see your ignorance, signs of those who do not know how to share knowledge. Save "your time" for yourself, friend, one day you may need and no one will help you!

  • Moderator

    @mago ok, here I stop answering you. I didn’t insult you in any way, but you just did and I won’t accept such behaviour.

Want to support us ?

Join us on :





Looks like your connection to Recalbox Forum was lost, please wait while we try to reconnect.