Hi all
I have installed the lasest version of Pi OS onto a Raspberry Pi 4. I wont Mopidy to output via the headphone jack.
I have tried to folllow the instructions at:
https://docs.mopidy.com/stable/installation/raspberrypi/
The test
aplay /usr/share/sounds/alsa/Front_Center.wav
is correctly playing sound out of the headphone jack into the speaker.
However Mopidy it’s self outputs no sound. I think this is possbly becuase Rpi OS not uses pipewire be default and not alsa.
Is there a newer of the instrustions available with the solution to this please?
I think you were meaning to say that Rpi OS uses pipewire by default. And for anyone curious, their bookworm lite image still uses ALSA.
Got a pipewire setup, try Add documentation for running as a user service · Issue #1974 · mopidy/mopidy · GitHub
Hi
I’ve just tried this and no dice.
And you have pipewire-pulse installed?
I do indeed.
pipewire-pulse is already the newest version (0.3.65-3+rpt6+deb12u1).
mej
June 6, 2024, 3:44am
6
Just ran into this issue. The problem is that the install script modifies /boot/config.txt, but in bookworm, the file that needs to be modified is /boot/firmware/config.txt.
You can fix this by modifying the install script before running it:
if [ "$RESULT" == "0" ]; then
inform "Stopping Mopidy service..."
systemctl stop mopidy
echo
fi
# Enable SPI
raspi-config nonint do_spi 0
# Add necessary lines to config.txt (if they don't exist)
add_to_config_text "gpio=25=op,dh" /boot/config.txt
add_to_config_text "dtoverlay=hifiberry-dac" /boot/config.txt
if [ -f "$MOPIDY_CONFIG" ]; then
inform "Backing up mopidy config to: $MOPIDY_CONFIG.backup-$DATESTAMP"
cp "$MOPIDY_CONFIG" "$MOPIDY_CONFIG.backup-$DATESTAMP"
EXISTING_CONFIG=true
echo
fi
# Install apt list for Mopidy, see: https://docs.mopidy.com/en/latest/installation/debian/.
just change the path to the config.txt file. Also, @kingosticks or any other maintainer, I put up a PR to fix this.
I have the same problem in the same config.
@mej , is there a way to fix it after I have already installed Mopidy? Will it work if I manually edit /boot/firmware/config.txt
?
EDIT: I added the following to the bottom of /boot/firmware/config.txt
, under [all]
gpio=25=op,dh
dtoverlay=hifiberry-dac
and rebooted the Pi, but I still get no sound. I’m not using a DAC though btw, the sound comes out of the 3,5 mm jack.
EDIT2: This is my config file (running as a service):
~ $ sudo cat /etc/mopidy/mopidy.conf
[http]
hostname = 0.0.0.0
[audio]
output = audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! filesink location=/tmp/snapfifo
[spotify]
client_id = 6ebafebe-fd6a-4bec-9010-a50b22bb5b28
client_secret = <REDACTED>
[local]
media_dir = /home/ben/Music
enabled = true
I doubt the proposal by @mej will help you, it’s very specifically for the pirate audio board which isn’t what was being discussed here.
Your config seems to contain settings for using Snapcast which is something else entirely again! We cannot mix 3 different problems/solutions in the same thread, please start a new thread and spell out exactly what you want, what you’ve got, and what you’re using.