I have a notebook (AMD chips) connected to a hub (via USB-C), with two
monitors hooked up to the hub (via HDMI). The monitors have built-in
speakers, and I use one monitor's speakers for default audio. I'm
running Fedora 35 MATE desktop (with Pipewire). The problem is that
which monitor's speakers are which flips around.
Right now, the main monitor is "Renoir Radeon High Definition Audio
Controller HDMI / DisplayPort 1 Output" and the second monitor is
"<same> 4 Output". After a suspend/resume cycle though, they randomly
swap, so I have to go into Sound Preferences and change the default
output device.
The video side always keeps the correct monitor mapped as the correct
part of the display layout, so it seems either there's a unique ID or
something that keeps them in the right order. Is there something
similar to keep it right for audio?
--
Chris Adams <linux(a)cmadams.net>