Autostart function not working
-
And what happens after the Runcommand menu (i.e. the "launching screen") is shown?
/dev/shm/runcommand.log
is the full path of the file. The first/
marks the top of the directory tree in Linux. There's nothing "above" it in the directory hierarchy.Sorry, I meant
autostart.sh
(shame on me for involuntarily typing a Windows file extension 😳 ). It is located at/opt/retropie/configs/all/autostart.sh
.In the Retropie console, you can display these files easily by adding a
cat
before them, i.e.cat /dev/shm/runcommand.log
, or copy them to your home directory viacp /dev/shm/runcommand.log /home/pi
andcp ./opt/retropie/configs/all/autostart.sh /home/pi
, if you have better access to that location over the network or otherwise.edit: I'm going to sleep now. "See" you tomorrow.
-
I get this on the
cat /dev/shm/runcommand.log
Executing: stella /opt.retropie/supplementary/runcommand/runcommand.sh: line 1002: stella: command not found
-
With
/opt/retropie/configs/all/autostart.sh
I get:/opt/retropie/supplementary/runcommand/runcommand.sh 0_SYS_ stella /RetroPi/roms/atari2600/Yar_rev.bin
It's supposed to be /RetroPie/roms/atari, right?
-
As a last quick post before bedtime …
- Why
stella
and notlr-stella
? The error clearly says that it can't find a command namedstella
. You should look into that. - The path to the rom should begin with either
/home/pi/RetroPie/…
or~/RetroPie/…
. Your path is missing the~
at the beginning.
Good night. 😴
- Why
-
Hi @Clyde
Hope you had a restful weekend.
I'm trying this again with another Pi.
-Have not yet installed Stella on this one. I'm doubting whether that was necessary?
-I dropped the ROM into /retropie/roms/atari2600/Yar_rev.bin
-I manually edited the autostart script in Retro-Pie Setup to this:/opt/retropie/supplementary/runcommand/runcommand.sh 0_SYS_ atari2600 /home/pi/retropie/roms/atari2600/Yar_rev.bin
I performed a reboot to the system and when booting back-up I get a screen that states 'launching Yar_rev....press any key to configure'
I press a key and get to a menu where I can setup video. If I press 'Launch' I'm sent back to the Retropie GUI menu. If I don't press any keys, I'm set back to the Retropie GUI menu.
The runcommand log;
cat /dev/sh/runcommand.log
says this:Parameters: Executing: Atari 2600 /opt/retropie/supplementary/runcommand/runcommand.sh: line: 1002 atari2600: command not found
So the pi knows and attempts to boot into the game, but something happens int the process that makes it crash? Any thoughts on what that may be?
-
@Razak You mis-spelled the autostart line - there should be a space between the
0
and the_SYS_
. -
@mitu Ok, just added the space.
And still getting the same results where the runcommand displays a screen like the pic below:
And so, now,
cat /dev/shm/runcommand.log
gives me these results:Parameters: Executing: /opt/retropie/emulators/retroarch -L /opt/retropie/libretocores/lr-stella2014/stella2014_libreto.so --config /opt/retropie/configs/atari2600/retroarch.cfg "home/pi/retropie/roms/atari2600/Yarrev.bin" appendconfig /dev/shm/retroarch.cfg Failed to open /home/pi/retropie/roms/atari2600/Yarrev.bin: No such file or directory
By the way, I changed the name of the ROM from Yar_rev.bin to Yarrev.bin out of suspicion that it may have to do with the way the autostart script is failing. Is the runcommand log telling me I need to get lr-stella2014 or that I need to configure something in retroarch?
-
@Razak said in Autostart function not working:
By the way, I changed the name of the ROM from Yar_rev.bin to Yarrev.bin out of suspicion that it may have to do with the way the autostart script is failing. Is the runcommand log telling me I need to get lr-stella2014 or that I need to configure something in retroarch?
Linux is case sensitive, so if the filename doesn't match exactly, then the file cannot be found. The error message is pretty clear - the file is not where you tell the emulator it is.
Please post the complete command line. -
All hail the all-knowing
runcommand.log
. 😊At least the
retropie
in the rom's path is wrong. On a standard Retropie installation, it is calledRetroPie
. As @mitu said, Linux is case-sensitive, soretropie
is a different directory thanRetroPie
(i.e. you could even have both in the same parent dir). Thus, if the rom's name really is upper case, the path should be/home/pi/RetroPie/roms/atari2600/Yarrev.bin
. -
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.