Score:0

Select default sound output on display port/hdmi

bq flag

After starting my PC sound ouput "HDMI/Display Port - Eingebautes Tongerät" is selected in the options GUI, which doesn't work so I have to switch to "HDMI/Display Port 3 GP 106 High Defintion Audio Controller".

I tried some solutions from this post How do you set a default audio output device in Ubuntu? but they don't work for me.

What I realized was that as long as I don't change my sound output pactl list short sinks lists

2   alsa_output.pci-0000_00_1b.0.hdmi-stereo    module-alsa-card.c  s16le 2ch 44100Hz   SUSPENDED
7   alsa_output.pci-0000_01_00.1.hdmi-stereo    module-alsa-card.c  s16le 2ch 44100Hz   SUSPENDED

But as soon as I change my output also the result of pactl list short sinks changes to

2   alsa_output.pci-0000_00_1b.0.hdmi-stereo    module-alsa-card.c  s16le 2ch 44100Hz   SUSPENDED
8   alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2 module-alsa-card.c  s16le 2ch 44100Hz   IDLE

I think, that alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2 is actually the sink I'm looking for but I cannot set it as default since it's only available after changing outputs manually.

Is there any solution for my problem or is possible to have a script that selects the correct output at OS start?

OS Version is Ubuntu 22.04.1 LTS.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.