Force audio output

Hi there,
I'm looking for a solution to force the sound output device to a specific HDMI/DP output port.

pactl list sinks only reports my HDMI/DP as one output device, with one port however I still got two options to pick from in the Settings.
HDMI / DisplayPort 5 & HDMI / DisplayPort 3

How to force ZorinOS to ALWAYS use HDMI / DisplayPort 5.

On every lock, or reboot, It sets itself to output 3, while I need it on 5.

How to permanently disable output 3?

pactl list sinks
Sink #20
State: RUNNING
Name: alsa_output.pci-0000_28_00.1.hdmi-stereo-extra4
Description: Navi 10 HDMI Audio Digital Stereo (HDMI 5)
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 7
Mute: no
Volume: front-left: 14420 / 22% / -39,45 dB, front-right: 14420 / 22% / -39,45 dB
balance 0,00
Base Volume: 65536 / 100% / 0,00 dB
Monitor Source: alsa_output.pci-0000_28_00.1.hdmi-stereo-extra4.monitor
Latency: 68488 usec, configured 75000 usec
Flags: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS
Properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "HDMI 4"
alsa.id = "HDMI 4"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "10"
alsa.card = "0"
alsa.card_name = "HDA ATI HDMI"
alsa.long_card_name = "HDA ATI HDMI at 0xfcba0000 irq 93"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:28:00.1"
sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:26:00.0/0000:27:00.0/0000:28:00.1/sound/card0"
device.bus = "pci"
device.vendor.id = "1002"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
device.product.id = "ab38"
device.product.name = "Navi 10 HDMI Audio"
device.string = "hdmi:0,4"
device.buffering.buffer_size = "352768"
device.buffering.fragment_size = "176384"
device.access_mode = "mmap+timer"
device.profile.name = "hdmi-stereo-extra4"
device.profile.description = "Digital Stereo (HDMI 5)"
device.description = "Navi 10 HDMI Audio Digital Stereo (HDMI 5)"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
Ports:
hdmi-output-4: HDMI / DisplayPort 5 (priority: 5500, available)
Active Port: hdmi-output-4
Formats:
pcm

Hi, welcome to the forum.

You may find If you're wondering helpful. Please post the outcome and if this is what you were referring.

1 Like

Also, this post may be helpful after we identify some of your other reported troubles:

Perhaps if you can set it to your preferred port, then lock it in so that it survives reboot.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.