Raspberry Pi config cadence issues on Volumio 4.231, 4.239

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

  • Pi 3B / 3B+ with the official 7" (@mhz, @jt705, @The_Raven): display dark; the kernel graphics driver line in the stock boot file is not applied; the same line in userconfig.txt cures it.
  • Pi 4 with a Waveshare 7" DSI (@njaustin123): display rotated and backlight never off. Without the driver the firmware drives the panel itself, with different rotation and backlight behaviour. Same cause, different face.
  • Pi 5 (@alpe): HDMI audio outputs gone. The vc4-hdmi cards are created by that same driver; no driver, no cards. This has nothing to do with screens: any Pi 5 on 4.231/4.239 using HDMI audio is affected, display or not, and the same single line in userconfig.txt covers it.
  • Pi 5 with a 1080x1920 HDMI panel (@dewen): garbled until the line is restored, then working but without GPU acceleration. That last part is not explained by the missing line, since the line is back; it is a separate investigation and needs the Xorg log and the Glass diagnostics, in the Glass thread.

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

  • The file is shared by every Raspberry Pi model Volumio supports, and the firmware’s section rules can only be proven on hardware. A second mistake in that file costs more than the first, so the corrected layout has to be tested on the full set: 2B, 3B, 3B+, 3A+ in both revisions, CM3, 4B, 400, CM4, Zero 2 W, 5, 500, CM5, with HDMI audio and displays checked before and after.
  • The 3A+ protection has to stay, and its correct form has never actually been exercised on a 3A+, so that board decides part of the layout.
  • Many players now carry the driver line in userconfig.txt, and Pi Screen Setup carries it in its own file since its update this week. When the corrected build lands, those players would request the driver twice unless the fix tolerates it or the line comes out on the right day. That coordination between the OS, the plugin and this thread is part of the fix, not an afterthought.
  • The fix lives in the image recipe. It reaches you through a full image build, the test channel and a stable release; there is no hot patch for a boot file.

What to do meanwhile

  • Keep the single dtoverlay=vc4-kms-v3d line in /boot/userconfig.txt (Pi 3, 4 and 5; the firmware picks the board variant). It covers the display cases and the Pi 5 HDMI audio case. Remove it only when this thread says a corrected build is out.
  • If your symptom is not one of the four above, post the board revision code, the display, the exact version and a log link; it may be the same cause with a fifth face, or something else entirely.

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,