batocera-linux / batocera.linux

batocera.linux
https://batocera.org
Other
2.03k stars 522 forks source link

[v38] No sound at Raspberry Pi 4 with Hifiberry DAC+ #10351

Open Partyzifist opened 1 year ago

Partyzifist commented 1 year ago

Batocera build version

v38

Your architecture

Raspberry Pi 4

Your Graphic Processor Unit (GPU)

None

Graphical brand

None

Issue description

I have a Hifiberry DAC+ Soundcard at my Raspberry Pi 4. After the update from Batocera 37 to Batocera 38 there is no sound output.

Expected result

No response

Reproduction steps

Updated with the Batocera-Update-Tool

Logs and data

No response

dmanlfc commented 1 year ago

Did you enable the correct overlay in the config.txt file?

Partyzifist commented 1 year ago

Hey, thank you for the answer!

I think I enabled the correct overlay, because in v37 the same overlay worked fine and I changed nothing before or after the update to v38.

The two lines I added (at the initial setup of Batocera) to the config.txt where: force_eeprom_read=0 dtoverlay=hifiberry-dacplus

The soundcard cloud be chosen in the the Batocera-Settings but there is no sound.

Partyzifist commented 1 year ago

Update: Sound on HDMI works perfect Sound on headphonejack works perfect At the systemsettings in Batocera i choose my Hifiberry-soundcard but after a few moments going back to systemsettings Batocera shows batocera alsa_output.platform-soc_sound.stereo-fallback as sound output. You can hear some sound but the background tracks of batocera e. g. are very very slow.

dmanlfc commented 11 months ago

@Partyzifist try the v39 update from my share here: https://drive.google.com/drive/folders/1mGfpALzSkzXRdZPxE3JLnpqBNWPjyx4b?usp=drive_link

Partyzifist commented 11 months ago

I have found out a few more things about my problem. I think the problem is caused by GPIO. I have this slow sound or sometimes no sound at all. When there is slow sound and I kill the process pigpio (killall pigpio) the sound gets a bit faster. The error here is probably similar: https://github.com/batocera-linux/batocera.linux/issues/10438

Are there more processes that do something with GPIO? Then I would try to terminate them as well.

dmanlfc commented 11 months ago

Did you try v39?

Partyzifist commented 11 months ago

The download limit is reached on your Googledrive

dmanlfc commented 11 months ago

I don't have a limit...

Partyzifist commented 11 months ago

ah, now it works. But there are the same issues on v39

Partyzifist commented 11 months ago

If i take a look at the processes of v37 (ps -e), there is no process "pigpio". Maybe another process is also using gpio in v38 and this leads to the slow sound. @dmanlfc Do you know if another process is using the gpio or is there a way to start the system without "pigpiod"?

dmanlfc commented 11 months ago

@ from the terminal or ssh, do - /etc/init.d/S50pigpio stop does that improve the audio?

Partyzifist commented 11 months ago

I think that /etc/init.d/S50pigpio stop does the same as killall pigpio It improves the audio a bit but is still too slow.

Is there a way to start Batocera without pigpio und don't kill the process when the system is ready? If i do /etc/init.d/S50pigpio and restart the system there is still a process called "pigpio"

An additional info: the Batocera startup-video sounds "OK"

dmanlfc commented 11 months ago

rm /etc/init.d/S50pigpio batocera-save-overlay

Then reboot

Partyzifist commented 11 months ago

OK!

rm /etc/init.d/S50pigpio
batocera-save-overlay

solved the problem! Thank you for the help.