Hey @dewen,
Moved to this thread
Kind Regards,
Moving various threads into a single discussion with discovery and analysis of the volumioconfig.txt resulted by adding Pi3A+ boards cma boot values.
Dear Volumionauts,
I have updated Pi Screen Setup plugin to handle this scenario, where the [device_type] config class is blocked by [serial_id] (legacy) from processing. Perhaps the way to combat the situation until Volumio OS has the recipe reworked.
Kind Regards,
(I filed a bug report with the log and screenshot directly through the Nova UI — BTW, very nice! — of 4.239, but since I found a workaround in this thread, I want to let you know, in case someone else runs into the same issue.)
I recently updated Volumio from 4.119 to 4.239 on a Raspberry Pi 5 (8GB RAM), and after the update the two HDMI ports could not be selected as Audio Output devices, although the HDMI ports worked fine when connecting an external monitor (I could see the Volumio boot splash screen and eventually the login console.) External USB DACs worked fine (I tested with a Fiio Q3 and RME ADI-2/4 Pro SE).
I also tried a fresh full install of Volumio 4.239 (as opposed to an update from 4.119) using the published IMG image, with the same results.
aplay -l only listed the USB DAC:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 5: Q3 [FiiO Q3], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
and alsamixer failed to start with a cannot find card '0' error, unless I added the --card 5 option, which selects the USB DAC.
The workaround (inspired by the discussion in this thread) to make the HDMI ports appear again as audio outputs consists in adding dtoverlay=vc4-kms-v3d-pi5 to /boot/userconfig.txt:
cat /boot/userconfig.txt
# Add your custom config.txt options to this file, which will be preserved during updates
dtoverlay=vc4-kms-v3d-pi5
This made aplay -l show again the vc4-hdmi-0 and vc4-hdmi-1 cards:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 5: Q3 [FiiO Q3], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
and selecting the attached one in the Volumio UI makes use of it.
Note: either dtoverlay=vc4-kms-v3d-pi5 or dtoverlay=vc4-kms-v3d-pi5,cma=64 worked for this specific audio issue. From the documentation I understand that cma=64 just reserves 64 MB of CMA memory, which is probably irrelevant for the audio part, but it might influence actual video issues.
EDIT: dtoverlay=vc4-kms-v3d works as well, I guess that is because the overlay map https://github.com/raspberrypi/linux/blob/rpi-6.12.y/arch/arm/boot/dts/overlays/overlay_map.dts#L506 selects the appropriate variant based on the chip.
Dear Volumionauts,
A longer note on why this one is neither quick nor easy, now that the thread holds enough reports to see its shape.
What the thread shows
Working theory, unchanged and proven on bench: a change made for the Pi 3A+ inserted two conditional sections ahead of the Pi 3, 4 and 5 sections in the stock boot file, and the way the firmware combines conditional sections means the sections after them no longer take effect. Five boards across three models fit it; the bench proof and the corrected layout are in progress.
Why it only surfaces on some players
The boot file is read by the Raspberry Pi firmware, before Linux. A section that matches nothing produces nothing and leaves no record. The kernel then sees a driver that is simply not enabled, which is a normal state for a headless player. Every layer above treats absence as valid: no graphics device means legacy mode, no HDMI card means nothing connected. So a player with a USB DAC and no display runs 4.231 without a symptom, and the same build on a Pi 3 with a DSI panel, a Pi 4 with a Waveshare panel or a Pi 5 on HDMI audio hits a wall, each looking like a different problem. One cause, four faces, and no log line that says “requested but not applied”. That is also why the help template matters: the board, the display and the full boot files are the only way to see which face you are looking at.
Why it is not a quick edit
What to do meanwhile
What would help
For anyone who wants to prove the theory on their own board rather than take it on trust: first comment out the dtoverlay=vc4-kms-v3d line in /boot/userconfig.txt (put a # in front of it) so the stock file is the only thing requesting the driver, back up the stock file with sudo cp /boot/volumioconfig.txt /boot/volumioconfig.txt.bak, then open it with sudo nano /boot/volumioconfig.txt and insert one line containing exactly [all] immediately above the line [pi3], changing nothing else. Reboot and run ls -l /dev/dri/. If card0 appears with the stock file otherwise untouched, the only difference is that the two [0x…] sections above have been closed before [pi3], which is the whole theory in one line; if it does not appear, say so here, that is a result too. This is a test, not a fix: volumioconfig.txt is replaced on every update, so afterwards restore it with sudo cp /boot/volumioconfig.txt.bak /boot/volumioconfig.txt, remove the # from your userconfig.txt line again, and reboot, so your player is back on the interim measure that survives OTA.
This is what the part of the file should look like:
[pi2]
dtoverlay=vc4-kms-v3d
# Pi 3A+ (0x9020e0): Before applying to [pi3], apply with lower 128MB contiguous memory setting
# Pi 3A+ has only 512MB RAM and suffers boot issues otherwise
[0x9020e0]
dtoverlay=vc4-kms-v3d,cma-128
[0x9020e1]
dtoverlay=vc4-kms-v3d,cma-128
# Release serial scope
[all]
# Continue after releasing serial scope
[pi3]
dtoverlay=vc4-kms-v3d
[pi4]
dtoverlay=vc4-kms-v3d
[pi5]
dtoverlay=vc4-kms-v3d
Kind Regards,