• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Autostart function not working

Scheduled Pinned Locked Moved Help and Support
autostart helpautostartrom directory
51 Posts 5 Posters 4.4k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    Razak @mitu
    last edited by 9 Sept 2019, 18:41

    @mitu D'oh, the pi is not connected to internet. I don't want it to be connected to wi-fi... but I guess it's okay temporarily for installing Stella?

    C 1 Reply Last reply 9 Sept 2019, 18:58 Reply Quote 0
    • C
      Clyde @Razak
      last edited by 9 Sept 2019, 18:58

      @Razak It depends on whether your Pi is behind a router with a firewall, then it should be safe without further measures. If the Pi is directly connected to the Internet (e.g. with a modem without a firewall), you should change the password for the user Pi to a safe one (three links) with the command passwd in Retropie's command shell that you land in if you press F4 in Emulation Station. You exit the shell and return to ES with the command exit.

      1 Reply Last reply Reply Quote 0
      • R
        Razak
        last edited by 10 Sept 2019, 15:00

        Hi @mitu @Clyde

        So I verified in the file manager that my ROM is in the /home/pi/RetroPie/roms/atari2600 folder, and I'm now connected to a wifi network.

        When I go into Retropie -setup, and attempt to install Stella from source, I'm still getting the following error:
        Error running 'tar -xv -J -c /home/pi/Retropie-Setup/tmp/build/stella--strip-components 1' returned 2'

        Then, it tells me to check the logs at
        /home/pi/retropie-setup/logs/rps_2019_04_20_002846.log.gz

        When I go there through the file manager, I get this:


        *Installing dependencies for 'stella' : Atari2600 emulator STELLA
        /home/pi/RetroPie-Setup/tmp/build/stella /home/pi

        Getting sources for 'stella' : Atari26000 emulator STELLA

        xz: (stdin): file format not recognized
        tar: Child returned status 1
        tar: Error is not recoverable: exiting now
        /home/pi
        Error running 'tar -xv -J -C /home/pi/RetroPie-Setup/tmp/build/stella --strip-components 1' -returned 2*

        Any thoughts on what may be happening?

        M 1 Reply Last reply 10 Sept 2019, 15:52 Reply Quote 0
        • M
          mitu Global Moderator @Razak
          last edited by 10 Sept 2019, 15:52

          @Razak said in Autostart function not working:

          Any thoughts on what may be happening?

          The error indicates that the emulator's archive is corrupted and you're still not connected to the internet to download. You can check by exiting Emulationstation, and typing at the command line

          ping retropie.org.uk
          

          If you get a reply, then it means you're connected, otherwise you may be just connected to Wifi, but without internet access.

          1 Reply Last reply Reply Quote 0
          • R
            Razak
            last edited by 10 Sept 2019, 20:20

            @mitu The emulator archive meaning the ROM?

            I pinged the retropie site and got no response. :(

            Is there a way of installing Stella as an optional package that does not necessitate that I get on the internet?

            I'm attempting to jump on a public wifi network and it's giving me the error describe above, while my other option is to get on a network that requires I authenticate myself using a username and password.

            C 1 Reply Last reply 10 Sept 2019, 21:41 Reply Quote 0
            • M
              mitu Global Moderator
              last edited by 10 Sept 2019, 20:22

              The emulator archive meaning the ROM?

              No, I mean file containing the emulator, packed and compressed (archive), which should be downloaded from either the RetroPie site, if you're using a binary installation.

              Is there a way of installing Stella as an optional package that does not necessitate that I get on the internet?

              No, you need to connect to the internet.

              1 Reply Last reply Reply Quote 0
              • C
                Clyde @Razak
                last edited by Clyde 9 Oct 2019, 22:42 10 Sept 2019, 21:41

                @Razak said in Autostart function not working:

                I'm attempting to jump on a public wifi network and it's giving me the error describe above, while my other option is to get on a network that requires I authenticate myself using a username and password.

                The easiest way would be to connect your Pi with an Ethernet cable to an internet router with a built-in firewall. Then you should be able to install any packages you want. Is that an option?

                If not, please explain in detail how your "attepting to jump on a public wifi network", why that doesn't work (errors in detail, please), and what other network you're trying to connect to that asks for authentication.

                Finally, please put any quoted output in a code block like @mitu did with the ping command. See https://commonmark.org/help/ on how to do that in this forum.

                It's much more readible this way. ;)
                
                R 1 Reply Last reply 11 Sept 2019, 19:52 Reply Quote 0
                • R
                  Razak @Clyde
                  last edited by 11 Sept 2019, 19:52

                  @Clyde

                  I was wondering how to do block quotes on here. Thank you for clearing this up for me and providing a link! :)

                  Okay, so I connected the pi to the Internet using an Ethernet cable and was able to download Stella as an optional package. It now says 'installed' next Stella. Great.

                  Should I now go to autostart or runcommand on the Retropie-Setup script menu?

                  And if I manually edit the runcommand script, should it now read like so:

                  /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ lr-stella /home/pi/RetroPie/roms/atari2600/Yar_rev.bin
                  emuluationstation #auto
                  M 1 Reply Last reply 12 Sept 2019, 02:59 Reply Quote 0
                  • M
                    mitu Global Moderator @Razak
                    last edited by 12 Sept 2019, 02:59

                    @Razak If it's installed, then boot to Emulationstation, run the game and then use the Runcommand launch menu to choose stella as the default emulator for atari2600 system. You won't have to modify the autostart file, just leave it as is, runcommand will choose the correct emulator.

                    In stella, you can press Tab on the keyboard to access the configuration menu and map your inputs the way you want.

                    1 Reply Last reply Reply Quote 0
                    • R
                      Razak
                      last edited by 12 Sept 2019, 14:11

                      Hey @mitu
                      When you say boot to Emulationstation, do you mean through the GUI/booting up the pi as normal or through the commandline?

                      I was able to see the runcommand launch screen, like in the picture below a few days ago, but for some reason I can't anymore. I changed the runcommand on the Retropie-Setup back to

                      emulationstation #auto
                      

                      3a9583e9-f18f-462f-b523-b2c523b8af51-image.png

                      C 1 Reply Last reply 12 Sept 2019, 14:18 Reply Quote 0
                      • C
                        Clyde @Razak
                        last edited by 12 Sept 2019, 14:18

                        @Razak said in Autostart function not working:

                        Hey @mitu
                        When you say boot to Emulationstation, do you mean through the GUI/booting up the pi as normal or through the commandline?

                        Though I'm not @mitu, it shouldn't matter as long as you don't add custom commands to your autostart.sh.

                        I was able to see the runcommand launch screen, like in the picture below a few days ago, but for some reason I can't anymore.

                        Any chance that you've disabled it? See here how to check on that: https://retropie.org.uk/docs/Runcommand/#configuring-runcommand

                        R 1 Reply Last reply 12 Sept 2019, 14:22 Reply Quote 0
                        • R
                          Razak
                          last edited by 12 Sept 2019, 14:18

                          @mitu Nevermind. Just realized that the runcommand launch menu was disabled on Emulationstation.

                          THANK YOU SO MUCH, YOU'RE AN ANGEL!!

                          1 Reply Last reply Reply Quote 0
                          • R
                            Razak @Clyde
                            last edited by 12 Sept 2019, 14:22

                            @Clyde You too, Clyde! Thanks a million for your patience!!!

                            1 Reply Last reply Reply Quote 0
                            • R
                              Razak
                              last edited by 12 Sept 2019, 19:29

                              Wait, wait. I'm a bit confused.

                              After using the runcommand launch menu to choose stella as the default emulator for atari2600, do I have to go back to the retropie-setup menu to manually edit the autostart script of emulationstation?

                              I'm still not booting up to my game. I want for the pi to boot directly into the game and eliminate the emulationstation and/or retropie splash screens or console menus.

                              M 1 Reply Last reply 12 Sept 2019, 19:42 Reply Quote 0
                              • M
                                mitu Global Moderator @Razak
                                last edited by 12 Sept 2019, 19:42

                                @Razak said in Autostart function not working:

                                do I have to go back to the retropie-setup menu to manually edit the autostart script of emulationstation?

                                if you disabled the auto-start line, then yes.

                                1 Reply Last reply Reply Quote 0
                                • R
                                  Razak
                                  last edited by 12 Sept 2019, 20:11

                                  Ok, and should I manually edit the autostart script like so?

                                  /opt/retropie/supplementary/runcommand/runcommand.sh 0_SYS_ lr-stella ~/home/pi/RetroPie/roms/atari2600/Yar_rev.bin
                                  

                                  or

                                  /opt/retropie/supplementary/runcommand/runcommand.sh 0_SYS_ lr-stella ~/RetroPie/roms/atari2600/Yar_rev.bin
                                  

                                  and do I need to eliminate the emulationstation #auto on the second line?

                                  Can you confirm that I'm supposed to disable the auto-start line in which menu?

                                  1 Reply Last reply Reply Quote 0
                                  • C
                                    Clyde
                                    last edited by Clyde 9 Dec 2019, 22:50 12 Sept 2019, 21:49

                                    Your first line has one error: There shouldn't be a ~ before /home/pi/…. In Linux, ~ stands for the home directory of the logged-in user, i.e. /home/pi in this case. So, ~/home/pi would expand to /home/pi/home/pi which is wrong. Is my explanation comprehensible? :)

                                    Apart from that, both lines should work, since /home/pi/Retropie/… and ~/Retropie/… are interchangable.

                                    If you keep emulationstation #auto after your custom line in the script, Emulation Station will be started when you exit the game. Nothing more, nothing less.

                                    R 1 Reply Last reply 13 Sept 2019, 20:33 Reply Quote 0
                                    • R
                                      Razak @Clyde
                                      last edited by 13 Sept 2019, 20:33

                                      @Clyde Yes, now I understand much better! I inserted the line like so. and included the emulationstation #auto line at the bottom.

                                      After re-booting–quitting out of emulationstation and the system, the pi will boot back into the retropie/emulation station menu.

                                      I would it that after I interrupt the power on the pi (like, disconnect from the wall for example) that the pi boots directly into the Game and that I don't have to select the emulator/game. Is there a way to do this?

                                      C 1 Reply Last reply 13 Sept 2019, 20:48 Reply Quote 0
                                      • C
                                        Clyde @Razak
                                        last edited by 13 Sept 2019, 20:48

                                        @Razak said in Autostart function not working:

                                        After re-booting–quitting out of emulationstation and the system, the pi will boot back into the retropie/emulation station menu.

                                        Seems like that for some reason lr-stella doesn't start the game, or exits immediately, after which Emulation Station is started. You could look into /dev/shm/runcommand.log for any error messages.

                                        Does the game start if you enter the line with lr-stella directly in Retropie's command console?

                                        For further diagnoses, please show us the complete contents of your autostart.bat and, to check the validity of your path and file permissions of Yar_rev.bin, also the output of this command:

                                        ls -l ~/RetroPie/roms/atari2600/Yar_rev.bin
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • R
                                          Razak
                                          last edited by 13 Sept 2019, 20:58

                                          Does the game start if you enter the line with lr-stella directly in Retropie's command console?

                                          I get the 'launching screen/ press button to configure menu'

                                          Where is /dev/shm/runcommand.log and autostart.bat?

                                          1 Reply Last reply Reply Quote 0
                                          41 out of 51
                                          • First post
                                            41/51
                                            Last post

                                          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.

                                            This community forum collects and processes your personal information.
                                            consent.not_received