• 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

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.
  • S
    SingingCoyote13
    last edited by SingingCoyote13 17 Oct 2019, 10:08

    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
    • M
      mitu Global Moderator
      last edited by 17 Oct 2019, 11:01

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

      S 1 Reply Last reply 18 Oct 2019, 08:16 Reply Quote 0
      • W
        wmarcio
        last edited by wmarcio 18 Oct 2019, 01:22

        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
        • S
          SingingCoyote13 @mitu
          last edited by 18 Oct 2019, 08:16

          @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
          • S
            SingingCoyote13
            last edited by SingingCoyote13 18 Oct 2019, 08:48

            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.

            H 1 Reply Last reply 18 Oct 2019, 14:43 Reply Quote 0
            • H
              hooperre @SingingCoyote13
              last edited by 18 Oct 2019, 14:43

              @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

              C S 2 Replies Last reply 18 Oct 2019, 15:35 Reply Quote 0
              • C
                cyperghost @hooperre
                last edited by cyperghost 18 Oct 2019, 15:35

                @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
                • S
                  SingingCoyote13 @hooperre
                  last edited by 19 Oct 2019, 09:39

                  @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
                  8 out of 8
                  • First post
                    8/8
                    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