Issue
A fresh install of the Fedora 38 KDE spin left me without sound via my built-in docking station in my monitor.
How-to
Run below command to see the available sinks. Then scroll through the output until you find something relevant.
pactl list sinks |less
In my case I found a port with the name of my monitor under the “Ports” section
on one of my audio devices. From the last line there I got the needed profile
name, output:hdmi-stereo
.
Ports:
hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, latency offset: 0 usec, availability group: Legacy 4, available)
Properties:
port.type = "hdmi"
port.availability-group = "Legacy 4"
device.icon_name = "video-display"
card.profile.port = "5"
device.product.name = "LEN T32h-20"
Part of profile(s): output:hdmi-stereo, output:hdmi-stereo+input:analog-stereo
Now scroll back up and find the name of that sink.
Sink #530
State: RUNNING
Name: alsa_output.pci-0000_00_1f.3.hdmi-stereo
Great! All that remains is to make that profile the default for that specific card. Do that by issuing the following command:
pactl set-card-profile alsa_card.pci-0000_00_1f.3 output:hdmi-stereo