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

    How can i add Menu (MP3) Music to my Retropie on Linux Xubuntu 18.04 LTS ? (Solved)

    Scheduled Pinned Locked Moved Help and Support
    menumusicmp3mpg123mpg123 bgm
    8 Posts 5 Posters 1.2k 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.
    • SingingCoyote13S
      SingingCoyote13
      last edited by SingingCoyote13

      I have a working raspberry pi 3b with menu music,
      i followed some googled docs on how to get the retropie
      to have (mp3) background menu music playing with use of
      mpg123 and editing bash.rc runcommand etc,

      now i also have retropie installed on a linux Xubuntu 18.04LTS
      machine, but i cannot seem to get menu music in it. i dont
      know what to do. can anyone helpme out

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

        What guide did you follow and what steps did you do from the said guide ?

        SingingCoyote13S 1 Reply Last reply Reply Quote 0
        • wmarcioW
          wmarcio
          last edited by wmarcio

          Hi, i use this script on Lubuntu 18.04.3

          https://retropie.org.uk/forum/topic/347/background-music-continued-from-help-support

          And here: https://retropie.org.uk/forum/topic/347/background-music-continued-from-help-support/43
          its another, your choices.

          Sorry my bad english, i am a Brazilian.

          1 Reply Last reply Reply Quote 0
          • SingingCoyote13S
            SingingCoyote13 @mitu
            last edited by

            @mitu for my raspberry pi is used the following steps
            https://retropie.org.uk/forum/topic/9133/quick-and-easy-guide-for-adding-music-to-emulatonstation-on-retropie-noob-friendly
            and on my raspberry pi everything works well,
            however i do not know how to get this working likewise
            with retropie installed on top of an os like Xubuntu in my case.

            1 Reply Last reply Reply Quote 0
            • SingingCoyote13S
              SingingCoyote13
              last edited by SingingCoyote13

              i found out how to do it ! i used this link and adjusted it;
              https://retropie.org.uk/forum/topic/9133/quick-and-easy-guide-for-adding-music-to-emulatonstation-on-retropie-noob-friendly
              used partial above link (adjusted for Xubuntu)

              i did the following;

              install mpg123 from synaptic package manager !

              i copied the mp3 music to my home/user/bgm folder

              then i went to opt/retropie/configs/all
              and i created the following 3 files in this folder;
              runcommand-onend.sh and runcommand-onstart.sh
              and a file start.sh

              start.sh contains

              while pgrep omxplayer >/dev/null; do sleep 1; done
              mpg123 -Z /home/user/bgm/*.mp3 >/dev/null 2>&1 &
              gnome-terminal --full-screen --hide-menubar -e emulationstation
              

              Do not forget to replace your username with ´user´ in the line /home/user/bgm/*.mp3

              runcommand-onend.sh contains

              pkill -CONT mpg123
              

              runcommand-onstart.sh contains

              pkill -STOP mpg123
              

              then i ran in a terminal in the /opt/retropie/configs/all folder

              chmod +x *.sh
              

              and now i can start retropie with menu music in (x)ubuntu
              with the following command in a desktop starter

              /opt/retropie/configs/all/start.sh

              omly thing is that the music keeps playing afer shutting down
              emulationstation/retropie. so i use

              pkill mpg123
              

              in a terminal to stop the music.

              hooperreH 1 Reply Last reply Reply Quote 0
              • hooperreH
                hooperre @SingingCoyote13
                last edited by

                @SingingCoyote13 Does this method work with ports? IIRC, it skips runcommand. I could be wrong.

                4B ~ RPi PSU 5.1V / 3.0A ~ 32GB SanDisk microSD ~ 128GB USB

                cyperghostC SingingCoyote13S 2 Replies Last reply Reply Quote 0
                • cyperghostC
                  cyperghost @hooperre
                  last edited by cyperghost

                  @hooperre said in How can i add Menu (MP3) Music to my Retropie on Linux Xubuntu 18.04 LTS ?:

                  @SingingCoyote13 Does this method work with ports? IIRC, it skips runcommand. I could be wrong.

                  You are wrong

                  1 Reply Last reply Reply Quote 0
                  • SingingCoyote13S
                    SingingCoyote13 @hooperre
                    last edited by

                    @hooperre dont know if it works with ports, my retropie version is latest 4.5.1 latest setup-script and runs on linux Xubuntu 18.04LTS.
                    btw, this is exact how it worked on my linux pc
                    its exact what i did to get music in the menus,
                    maybe do not forget to install mpg123 from synaptic package manager

                    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.