No sound on raspberry pi bookworm

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).

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:

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. :man_shrugging:

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.

Ok, will do, thanks.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.