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

    New problem after setting up with new Raspian Stretch for background music?

    Scheduled Pinned Locked Moved Help and Support
    backgroundmusiemulationstatinoobwhy no sound
    12 Posts 2 Posters 639 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.
    • mituM
      mitu Global Moderator @Hankola
      last edited by

      @Hankola said in New problem after setting up with new Raspian Stretch for background music?:

      /opt/retropie/configs/all/autostart.sh: line 4: syntax error: unexpected end of file

      There's an error on line 4 on your autostart.sh start-up script. How did you edit the file ?

      1 Reply Last reply Reply Quote 1
      • HankolaH
        Hankola
        last edited by Hankola

        I dragged my old file from my previous pi set up. I copied file over the network connection.

        mituM 1 Reply Last reply Reply Quote 0
        • mituM
          mitu Global Moderator @Hankola
          last edited by

          @Hankola Can you upload the file's contents on pastebin.com ? Make sure you open it with an editor that understands Unix line-endings (Notepad++).

          HankolaH 1 Reply Last reply Reply Quote 0
          • HankolaH
            Hankola @mitu
            last edited by

            @mitu I haven't ever done this; I am not very good at this stuff; just enough to get by. Do I create an account for this and then it gives me a nice copy for you to see?

            mituM 1 Reply Last reply Reply Quote 0
            • mituM
              mitu Global Moderator @Hankola
              last edited by mitu

              @Hankola There's no account needed on pastebin.com. Open the page and paste the contents of the file, submit it and then copy the browser's URL and paste it here.

              HankolaH 1 Reply Last reply Reply Quote 1
              • HankolaH
                Hankola @mitu
                last edited by

                @mitu https://pastebin.com/mjESkyrw

                mituM 1 Reply Last reply Reply Quote 0
                • mituM
                  mitu Global Moderator @Hankola
                  last edited by

                  @Hankola Looks fine to me. Did you install mpg123 on your new system ? Run

                  sudo apt-get install mpg123
                  

                  and see if your music comes back.

                  HankolaH 1 Reply Last reply Reply Quote 1
                  • HankolaH
                    Hankola @mitu
                    last edited by

                    @mitu it's installed. So, on start up it pushes me out of ES and gives me the /opt/retropie/configs/all/autostart.sh:line4:systax error: unexpected end of file

                    If I type in the emulationstation at this point; it of course loads and then gives me no music, but it does bring stuff up. Then once I exit a game it gives me music after I come out. So I know the problem is somewhere in the autostart.sh ; but for the life of me I cannot find it.

                    HankolaH 1 Reply Last reply Reply Quote 0
                    • HankolaH
                      Hankola @Hankola
                      last edited by

                      @mitu can I simply delete the autostart.sh file, reboot, retype? I think something in the file is wonky.

                      mituM 1 Reply Last reply Reply Quote 0
                      • mituM
                        mitu Global Moderator @Hankola
                        last edited by

                        @Hankola Sure, remove it, then create it again with the lines you posted. Make sure you make it executable afterwards

                        chmod +x /opt/retropie/configs/all/autostart.sh
                        
                        1 Reply Last reply Reply Quote 1
                        • HankolaH
                          Hankola
                          last edited by

                          Ok, lesson learned. Copying stuff can lead to compounding errors. Thank you @mitu for the guidance!

                          1 Reply Last reply Reply Quote 0
                          • First post
                            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.