for those who have installed bluetooth steaming ([Deprecated] [TESTING] Bluetooth audio streaming (A2DP)).
Here’s a “not very pretty” workaround.
FYI, i’m not using PulseAudio for anything else than Ad2p audio streaming.
First i made sure that PA doesn’t auto spawn once it’s killed
sudo nano $HOME/.config/pulse/client.conf
On my install of OSMC this file did not exist, so i simply added
autospawn = no
Then we want to kill PS when emulationstation is launched and restart PS (so bluetooth streaming works again) when emulationstation exits.
Side note: with this workaround. bluetooth audio does not work in ES, just in kodi.
This can be done many ways. One easy way is to modify the retropie_watchdog.sh script
For my personal pleasure i followed mcobit’s strategy and used a variable PULSEAUDIO=1 to easily enable/disable the fix (this adds complexity but only slightly):
sudo nano $HOME/osmc/RetroPie/scripts/retropie_watchdog.sh
To kill PS,add the following lines right after “. /home/osmc/RetroPie/scripts/retrosmc-config.cfg”:
if [ “$PULSEAUDIO” = 1 ]; then
sudo killall -9 pulseaudio
fi
To start PS when ES exits, right after the commented line “#restart kodi”, add:
if [ “$PULSEAUDIO” = 1 ]; then
sudo pulseaudio -D --system
fi
Save the file
Lastly, edit the retrosmc config file:
sudo nano $HOME/osmc/RetroPie/scripts/retrosmc-config.cfg
and add :
PULSEAUDIO=1
Save the file, That should do it.
To disable the fix, just change the variable PULSEAUDIO=0 in the config file
One little warning: it seems like the watchdog script gets overwritten when you update Retrosmc.
Last note: Since i’m not using PS for anything else, i did not bother changing back autospawn to yes
Hope this helps