I've been using Ubuntu Mate 18.04 since it's release in 2018. I have audio output throught DisplayPort on my GTX 1060. Recently I've been experiencing a strange issue.
Sometimes after boot my audio won't start working until I do following steps (I don't use english as my system language so I don't know exact names of menus and options):
Open system settings
Open audio preferences
In audio preferences, select tab Hardware
At the bottom of the window, in the Profile: option select "Digital Stareo (HDMI 2) output" (this option is blank by default)
Click on button "Test speakers" right next to the option
And second or two after opening the testing windows audio starts working.
Do you have any idea how to prevent this from happening? I never change my audio output and I'm using the same PC since time of instalation of the OS.
Hi.
Open a terminal window (ctrl+alt+t) and enter this command: pacmd list short sinks.
Scroll with your mouse to figure out the name of your card and the right output in the profiles list.
Here's a bit of what it looks like in my case:
You want to grab the name of the card you use, in this case alsa_card.pci-0000_01_00.1 and since I use Digital Stereo output (HDMI 6) in the preferences, I want the output:hdmi-stereo-extra5 output.
Once you get the right card name and output, you can set the default output using this command: pactl set-card-profile card output so in my case, pactl set-card-profile alsa_card.pci-0000_01_00.1 output:hdmi-stereo-extra5.
When your command is ready, add it to the startup applications in the preferences. Add a new one, give it a name, paste your command in the command field and you should be good to go.