Integrated Music Player for RetroPie [IMP] 2021.10 (Background Music for RetroPie and More)
-
@RapidEdwin08 Bit more info:
Running these from the cmd line:
bash /opt/retropie/configs/imp/boot.sh
Waits 30 seconds then starts playing music beautifully ,then gives me this error output:
sed: -e expression #1, char 0: no previous regular expression sed: -e expression #1, char 0: no previous regular expression sed: -e expression #1, char 0: no previous regular expression pi@SpaceInvader:/opt/retropie/configs/all $
pi@SpaceInvader:/opt/retropie/configs/all $ cat autostart.sh #while pgrep omxplayer >/dev/null; do sleep 1; done emulationstation --no-splash#auto bash /opt/retropie/configs/imp/boot.sh > /dev/null 2>&1 & #auto emulationstation #auto
Two ES entries, is this by design?
-
@RapidEdwin08
Manually changed autostart.sh to#while pgrep omxplayer >/dev/null; do sleep 1; done bash /opt/retropie/configs/imp/boot.sh > /dev/null 2>&1 & #auto emulationstation --no-splash#auto
And lo and behold it works! BGM happiness :)
-
@hopwon said in Integrated Music Player for RetroPie [IMP] 2021.10 (Background Music for RetroPie and More):
Two ES entries, is this by design?
No, I'm pretty sure IMP added the Extra emulationstation #auto entry by mistake due to the installer not taking into account the emulationstation --no-splash#auto entry.
Basically the autostart was loading Emulationstation Twice, and IMP was only set to start before the 2nd entry.
In this state, if you were to Quit ES, it would have reloaded a 2nd time, this time with IMP playing.
Glad you found this.There should be a backup named autostart.sh.b4imp
Can you confirm the content of the Backup autostart.sh before IMP?
I will try to update the installer to accommodate.cat /opt/retropie/configs/all/autostart.sh.b4imp
Thanks for the Feedback
-
@RapidEdwin08 said in Integrated Music Player for RetroPie [IMP] 2021.10 (Background Music for RetroPie and More):
@hopwon said in Integrated Music Player for RetroPie [IMP] 2021.10 (Background Music for RetroPie and More):
Two ES entries, is this by design?
No, I'm pretty sure IMP added the Extra emulationstation #auto entry by mistake due to the installer not taking into account the emulationstation --no-splash#auto entry.
Basically the autostart was loading Emulationstation Twice, and IMP was only set to start before the 2nd entry.
In this state, if you were to Quit ES, it would have reloaded a 2nd time, this time with IMP playing.
Glad you found this.There should be a backup named autostart.sh.b4imp
Can you confirm the content of the Backup autostart.sh before IMP?
I will try to update the installer to accommodate.cat /opt/retropie/configs/all/autostart.sh.b4imp
Thanks for the Feedback
Here you go:
pi@SpaceInvader:/opt/retropie/configs/all $ cat autostart.sh.b4imp #while pgrep omxplayer >/dev/null; do sleep 1; done emulationstation --no-splash#auto pi@SpaceInvader:/opt/retropie/configs/all $
You are correct, I put the second ES line back in and tried what you suggested and indeed, when I quit ES, it restarted with BGM!
-
@hopwon For the Fade issue...
Are you able to Adjust/Retain Volume in ES Sound Settings?
Or does the Volume setting get lost when you try to adjust from ES.
If Volume does not retain, try to find the correct Combination of AudioDevice/AudioCard, then you can try to Enable Fade again in IMP and Test.If Volume is working fine and AudioDevice/AudioCard Settings are correct, can you confirm the output of these commands:
cat /opt/retropie/configs/all/emulationstation/es_settings.cfg | grep "AudioCard" cat /opt/retropie/configs/all/emulationstation/es_settings.cfg | grep "AudioDevice" amixer | grep "Simple mixer control" | grep -v 'Capture'
-
@RapidEdwin08 Took me a few days to get this tested. I ended up using the method from ~/imp/imp_setup.sh - selecting Add quit song option from the [PC/0ther] Utilities. And it did work!
But before that, when I entered:
cat /etc/systemd/system/impquit.service
I did get this message returned:
[Unit] Description=IMP Stop + Quit Song DefaultDependencies=no Conflicts=reboot.target power off.target halt.target shutdown.target After=network.target [Service] Type=oneshot RemainAfterExit=yes ExecStart=/bin/true ExecStop=/opt/retropie/configs/imp/impquit.sh [Install] WantedBy=multi-user.target
I don't know enough to figure out what was going on from there, but if that's helpful, thought I'd pass it along.
-
@RapidEdwin08 said in Integrated Music Player for RetroPie [IMP] 2021.10 (Background Music for RetroPie and More):
@hopwon For the Fade issue...
Are you able to Adjust/Retain Volume in ES Sound Settings?
Or does the Volume setting get lost when you try to adjust from ES.
If Volume does not retain, try to find the correct Combination of AudioDevice/AudioCard, then you can try to Enable Fade again in IMP and Test.If Volume is working fine and AudioDevice/AudioCard Settings are correct, can you confirm the output of these commands:
cat /opt/retropie/configs/all/emulationstation/es_settings.cfg | grep "AudioCard" cat /opt/retropie/configs/all/emulationstation/es_settings.cfg | grep "AudioDevice" amixer | grep "Simple mixer control" | grep -v 'Capture'
Hi, been away for a few days.
The fade issue fixed itself once we worked out that that IMP was not starting due to the duplicate entries in autostart.sh.
Everything is working perfectly now :)
Massive thanks again for your time. -
@RapidEdwin08 reading @hopwon 's responses and despite me pretty much getting things to work, you mention a few things that might solve my problem.. Previously I was copying a lot of old configs from backups of RetroPie 4.7.x for fresh installs onto a new card, which probably impacted my RetroPie 4.8.3 setup. I pulled up some of the log files and I was getting some error messages that made sense- I wouldn't be surprised if some of that stuff might have been interfering with IMP in certain ways.
Working on a fresh install with a fresh card- been careful to sort through the configs I'll need only, from my old backup, and we'll see what happens. Thanks- I'll report back.
-
@hopwon said in Integrated Music Player for RetroPie [IMP] 2021.10 (Background Music for RetroPie and More):
emulationstation --no-splash#auto
Current version of IMP Setup has been updated to adjust for the issue @hopwon experienced with multiple emulationstation entries in autostart .sh.
The installer was already configured to look for [--no-splash #auto], but Not [emulationstation --no-splash#auto].
@hopwon I don't know if it was a typo or not, but I'm pretty sure there's supposed to be a SPACE before #auto in your entry here:
emulationstation --no-splash#auto
emulationstation --no-splash #autoI'd venture to guess you are probably still seeing the ES splash screen without that space before #auto.
Either way, IMP Setup will now accommodate this scenario, and correct it. -
@RapidEdwin08 said in Integrated Music Player for RetroPie [IMP] 2021.10 (Background Music for RetroPie and More):
@hopwon I don't know if it was a typo or not, but I'm pretty sure there's supposed to be a SPACE before #auto in your entry here:
emulationstation --no-splash#auto
emulationstation --no-splash #autoNo, a space is not required after the parameters. If your detection script tries to look for the line where
emulationstation
command is started, either look for^emulationstation
or#auto
to find it, both should work fine. -
@mitu said
No, a space is not required after the parameters. If your detection script tries to look for the line where
emulationstation
command is started, either look for^emulationstation
or#auto
to find it, both should work fine.@mitu Thanks for the feedback (and everything else you do for the community), it's always appreciated.
I've seen some Pi Images where emulationstation is not at the beginning of the line, so I do not use ^ for the detection here.Also, I thought the same thing about the space not making an impact, until I added it to my autostart .sh for testing the issue previously experienced by @hopwon.
In my case, on a stock retropie 4.8 build, the ES Splash screen still displays when there's no space in [emulationstation --no-splash#auto]. -
[v2023.03] Released
LITE Mode Now Retains Last Track/Position at Poweroff if Properly Shutdown.
New Feature 0ptional User Gamelist (imp-user-gamelist.xml)
Added x2 More [SomaFM] Internet Radio Stations to [Streams] (cliqhop,darkzone)
Various Visual Tweaks Added to Utilities Menu and Main Menu
Tweaks to Installer applying to [autostart .sh] (emulationstation --no-splash)Again, Thanks All for the Feedback...
-
@RapidEdwin08 Quick question, will it play VGM, SPC etc. like Naprosnia's player? I use it for that feature as they're small files and I can have authentic game music in EmulationStation.
Thanks for all your work on this, looks ace!
-
@segasonic No...
IMP uses mpg123 as the main player, so only mp3 support + .pls and m3u. -
@RapidEdwin08 Thanks for the reply! I'll try it out anyway, got plenty of game music mp3s.
-
@RapidEdwin08 said in Integrated Music Player for RetroPie [IMP] 2021.10 (Background Music for RetroPie and More):
@hopwon said in Integrated Music Player for RetroPie [IMP] 2021.10 (Background Music for RetroPie and More):
emulationstation --no-splash#auto
Current version of IMP Setup has been updated to adjust for the issue @hopwon experienced with multiple emulationstation entries in autostart .sh.
The installer was already configured to look for [--no-splash #auto], but Not [emulationstation --no-splash#auto].
@hopwon I don't know if it was a typo or not, but I'm pretty sure there's supposed to be a SPACE before #auto in your entry here:
emulationstation --no-splash#auto
emulationstation --no-splash #autoI'd venture to guess you are probably still seeing the ES splash screen without that space before #auto.
Either way, IMP Setup will now accommodate this scenario, and correct it.It was a typo :)
-
Great player! I'm only missing one feature to be happy - changing the song using the button on the pad/keyboard (like in batocer for example, where the button is used - in this case by clicking the left analogue). Is this feasible to implement?
-
@Grassini Thanks for the feedback.
I'm sure it's possible with some kind of PyScript, similar to GPi Safe Shutdown or something else...
We would just need something to monitor when those Joypad Inputs are pressed, and bash a script.
But I have not really looked into it, and honestly may not for a bit as I'm not too familiar.Fix for a recent issue added to IMP.
Issue #5: Music Plays After ROM Exit despite Music Disabled at B00TYou can Uninstall/Reinstall IMP to apply the fix.
Or just run these Commands to apply the Fix for the x1 File with Issue:rm /opt/retropie/configs/imp/mpg123loop.sh wget https://raw.githubusercontent.com/RapidEdwin08/imp/main/main-imp/configs-imp/mpg123loop.sh -P /opt/retropie/configs/imp/ chmod 755 /opt/retropie/configs/imp/mpg123loop.sh
-
[v2023.11] Released
RemovedOMX Monitor
from Settings +omxplayer
wait from[autostart.sh]
(Deprecated)
Added + Updated[SomaFM]
Specials (doomed,deptstore,tikitime,bossa,insound)
Updatedmpg123
Utilities to include[v1.32.3]
Thanks All for the Feedback...
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.