Raspberry-Pi-Installer-Scripts icon indicating copy to clipboard operation
Raspberry-Pi-Installer-Scripts copied to clipboard

i2samp.py doesn't comment out dtparam=audio=on from config.txt as required

Open Patronics opened this issue 1 year ago • 1 comments

Script Command

wget https://github.com/adafruit/Raspberry-Pi-Installer-Scripts/raw/main/i2samp.py
sudo -E env PATH=$PATH python3 i2samp.py

Operating System

64 bit Raspberry Pi OS (2024-07-04 release plus updates from apt update/apt upgrade).

Hardware

Raspberry Pi 4B

Behavior

Error message when trying to run the installer after the reboot to test the system:

XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e.g. happen if yu try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
ALSA lib pcm_dmix.c: 999: (snd_pcm_dmix_open) unable to open slave
speaker-test 1.2.8

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Playback open error: -524, Unknown error 524

ALL done!

Enjoy your new Sproductname!
REBOOT NOW? [Y/n]

And speaker output is nonfunctional.

also no output from speaker-test -c2 until I manually adjust /boot/firmware/config.txt to comment out dtparam=audio=on and reboot.

Description

No response

Additional information

No response

Patronics avatar Sep 09 '24 23:09 Patronics

Additionally, whenever audio starts playing there is a loud pop, despite the instructions claiming this issue has been resolved by the current installer.

This can be worked around by starting background audio playing, such as by running ffplay on a silent file.

Patronics avatar Sep 10 '24 04:09 Patronics

Thank you for this bug report, I had also encountered the same issue with no output from speaker-test -c2 until dtparam=audio=on was commented out.

greenlamb avatar Feb 20 '25 14:02 greenlamb

Tested recently with new changes and having the dtparam=audio=on did not cause issues.

makermelissa avatar Aug 26 '25 19:08 makermelissa