• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login

Background Music [Continued from Help/Support]

Scheduled Pinned Locked Moved General Discussion and Gaming
musicbgm
343 Posts 109 Posters 324.8k 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
    retronerd
    last edited by 1 Feb 2017, 21:59

    Thanks but that doesnt solve my problem????

    B 1 Reply Last reply 1 Feb 2017, 22:09 Reply Quote 0
    • B
      backstander @retronerd
      last edited by backstander 2 Jan 2017, 22:14 1 Feb 2017, 22:09

      @retronerd
      Oh, make sure in /etc/rc.local that (sudo python /home/pi/PyScripts/Test1.py) & is all on one single line.

      Your 1st picture shows it on 2 lines.

      1 Reply Last reply Reply Quote 0
      • R
        retronerd
        last edited by 1 Feb 2017, 22:50

        ive changed to 1 line but doesnt work

        B 1 Reply Last reply 1 Feb 2017, 23:02 Reply Quote 0
        • B
          backstander @retronerd
          last edited by 1 Feb 2017, 23:02

          @retronerd

          ive changed to 1 line but doesnt work

          Hmmm....just to verify, did you run sudo apt-get install python-pygame

          R 1 Reply Last reply 1 Feb 2017, 23:20 Reply Quote 0
          • R
            retronerd @backstander
            last edited by retronerd 2 Jan 2017, 23:25 1 Feb 2017, 23:20

            @backstander yes what im doing wrong?
            0_1485991500169_eeee.jpg
            look at the S on script is that right? its from 1 page here

            B 1 Reply Last reply 2 Feb 2017, 15:42 Reply Quote 0
            • R
              retronerd
              last edited by 2 Feb 2017, 12:07

              0_1486037212864_fff.png

              1 Reply Last reply Reply Quote 0
              • B
                backstander @retronerd
                last edited by 2 Feb 2017, 15:42

                @retronerd

                what im doing wrong?

                Hmmm...I'm kind of stumped right now.

                look at the S on script is that right? its from 1 page here

                That uppercase 'S' is correct in /home/pi/PyScripts/Test1.py

                Your picture of the Test1.py looks correct as well.

                R 1 Reply Last reply 2 Feb 2017, 16:00 Reply Quote 0
                • R
                  retronerd @backstander
                  last edited by 2 Feb 2017, 16:00

                  @backstander thats strange! ?????

                  R 1 Reply Last reply 2 Feb 2017, 21:09 Reply Quote 0
                  • R
                    retronerd @retronerd
                    last edited by 2 Feb 2017, 21:09

                    @backstander
                    can i unistall this and install it again somehow?

                    B 1 Reply Last reply 2 Feb 2017, 22:14 Reply Quote 0
                    • B
                      backstander @retronerd
                      last edited by backstander 2 Feb 2017, 22:17 2 Feb 2017, 22:14

                      @retronerd
                      To uninstall use the step I posted above here:
                      https://retropie.org.uk/forum/topic/347/background-music-continued-from-help-support/125

                      Also here is an alternative script that kind of does the same thing. Maybe try to follow this one instead:
                      https://retropie.org.uk/forum/topic/347/background-music-continued-from-help-support/43

                      R 1 Reply Last reply 3 Feb 2017, 15:57 Reply Quote 0
                      • R
                        retronerd @backstander
                        last edited by 3 Feb 2017, 15:57

                        @backstander ive tried the alternative script but i got this error?
                        0_1486137456294_ppp.png

                        B 1 Reply Last reply 3 Feb 2017, 16:14 Reply Quote 0
                        • B
                          backstander @retronerd
                          last edited by 3 Feb 2017, 16:14

                          @retronerd
                          Try this first:
                          sudo apt-get update

                          Then try:
                          sudo apt-get install mpg123

                          1 Reply Last reply Reply Quote 0
                          • R
                            retronerd
                            last edited by 3 Feb 2017, 18:28

                            its seems to download:)
                            how do i edit /opt/retropie/configs/all/autostart.sh which command?

                            B 1 Reply Last reply 3 Feb 2017, 19:18 Reply Quote 1
                            • B
                              backstander @retronerd
                              last edited by 3 Feb 2017, 19:18

                              @retronerd

                              how do i edit /opt/retropie/configs/all/autostart.sh which command?

                              Most of us use that program "nano" to edit files from the command line. Examples below!

                              step 2:
                              nano /opt/retropie/configs/all/autostart.sh

                              step 3:
                              nano /opt/retropie/configs/all/runcommand-onstart.sh

                              step 4:
                              nano /opt/retropie/configs/all/runcommand-onend.sh

                              step 5:
                              nano /home/pi/.bashrc

                              If any of those won't let you save your changes, then add sudo before the nano like sudo nano blah blah blah...

                              1 Reply Last reply Reply Quote 0
                              • R
                                retronerd
                                last edited by 3 Feb 2017, 20:34

                                Thanks! but where shall i put [[ $(tty) == "/dev/tty1" ]] && pkill mpg123 in last step?
                                where shall i put my music?
                                in step 2: shall i put it the row under emulationstation #auto?

                                B 1 Reply Last reply 3 Feb 2017, 20:58 Reply Quote 0
                                • B
                                  backstander @retronerd
                                  last edited by 3 Feb 2017, 20:58

                                  @retronerd

                                  but where shall i put [[ $(tty) == "/dev/tty1" ]] && pkill mpg123 in last step?

                                  inside the file /home/pi/.bashrc
                                  or nano /home/pi/.bashrc

                                  where shall i put my music?

                                  In a folder named /home/pi/bgm/

                                  "bgm" stands for Back Ground Music ;-)

                                  in step 2: shall i put it the row under emulationstation #auto?

                                  I believe so.

                                  R 1 Reply Last reply 3 Feb 2017, 21:03 Reply Quote 0
                                  • R
                                    retronerd @backstander
                                    last edited by 3 Feb 2017, 21:03

                                    @backstander said in Background Music [Continued from Help/Support]:

                                    inside the file /home/pi/.bashrc

                                    i mean under wish line in the file?

                                    B 1 Reply Last reply 4 Feb 2017, 07:06 Reply Quote 0
                                    • B
                                      backstander @retronerd
                                      last edited by 4 Feb 2017, 07:06

                                      @retronerd

                                      in step 2: shall i put it the row under emulationstation #auto?

                                      Correction! you put that before emulationstation #auto like this:

                                      while pgrep omxplayer >/dev/null; do sleep 1; done
                                      mpg123 -Z /home/pi/bgm/*.mp3 >/dev/null 2>&1 &
                                      emulationstation #auto

                                      inside the file /home/pi/.bashrc
                                      i mean under wish line in the file?

                                      I just put it at the very end of that file and it worked for me.

                                      1 Reply Last reply Reply Quote 0
                                      • R
                                        retronerd
                                        last edited by retronerd 2 Apr 2017, 10:10 4 Feb 2017, 10:09

                                        everything is working ecept the music is still playing if i quit emualationstation.
                                        thats why i dont know where to put
                                        [[ $(tty) == "/dev/tty1" ]] && pkill mpg123 Before which line?

                                        B 1 Reply Last reply 4 Feb 2017, 19:14 Reply Quote 0
                                        • B
                                          backstander @retronerd
                                          last edited by 4 Feb 2017, 19:14

                                          @retronerd
                                          I just put mine at the very end and it works for me.

                                          Here is what the very bottom of my /home/pi/.bashrc looks like:

                                          retropie_welcome
                                          # RETROPIE PROFILE END
                                          [[ $(tty) == "/dev/tty1" ]] && pkill mpg123
                                          
                                          1 Reply Last reply Reply Quote 0
                                          156 out of 343
                                          • First post
                                            156/343
                                            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