Pi 5 Ubuntu 24 HDMI bugs/fixes

Hey, wanted to crosspost this as I believe it’s a Roonbridge bug.

I installed all the ALSA prerequisites before installing Roonbridge. The issue is that the device_ files under /var/roon/RAATServer/Settings end up with the raw HDMI device names instead of the virtual device names. The raw HDMI devices (hw:CARD…) can’t take PCM, so Roon player will skip all tracks eventually reporting “Too many errors.”

Editing the JSON files with the virtual devices (hdmi:CARD…) fixes the problem, for now, but I have no idea when they get created/recreated. AI recommends that in the future I add audio.target as a prerequisite, but I have no idea if that would make a difference.

Doh, I just realized I installed Ubuntu 24.10, instead of 24.04!

So doing more reading on the systemd changes in 24.10. I’m not an expert, but I’m curious to know if it may be necessary to explicitly set audio.target as a requirement before RoonBridge starts just to make sure all the devices are consistently enumerated before. It certainly won’t hurt anything, and in some cases may make things stable. I’d love to hear what real Linux devs think.