Score:0

Disable HDMI sound

dz flag

I'm running Ubuntu 20.04, and I have 2 sound cards, one onboard on my msi B450 Tomahawk max, and another on my Radeon RX 5700 XT. I Want to use the onboard one, with headphones.

Whenever I launch a wine app, or lock the screen, it switches to the navi sound card, ie. the one on the GPU. I installed pavucontrol, I forced it to use the onboard audio in its config file, and it does, and any time I open the UI of pavucontrol, it shows that the navi card is disabled (before the forcing, it flat out switched it on regularly). However, when I play WoW for eg. via wine, and I switch to Firefox or Discord or any other app, and switch back to WoW, sound goes away. And I can only get it back if I relaunch WoW.

None of the solutions I've found anywhere work.

I can't even use blacklist, because both devices use the same module: snd-hda-intel.

Is there a way, to somehow block the navi sound device, but not the module it uses? In Windows one can just right click a device and disable it. Isn't there an equivalent here?

I'm getting desperate, this is so annoying :D

in flag
"None of the solutions I've found anywhere work." ⇠ for the sake of saving time, could you elaborate on this? I *really* dislike investing 30+ minutes to write a properly-formatted answer only to hear "Yeah, that didn't work when I tried it yesterday"
Cristobalite avatar
dz flag
In the beginning, sound was all over the place. Sometimes sound came out of my monitors speakers, sometimes my headphones, sometimes there was no sound at all. I should note, that I use display port, for all of my monitors, but sound still goes through.
Cristobalite avatar
dz flag
The 1st thing I tried, is install pavucontol and on the Settings tab, set Navi 10 HDMI Audio to tunr off. The other device is set to Analog stereo. After this, no more sound would come from my monitor. And most apps behaved as they should. Wine apps would always switch Navi 10 sound to on, and the apps would have no sound, not even on my monitor. Other apps would still have sound. If I look in the settings of said wine app, the selected device is the onboard one, not Navi 10. Yet, still no sound.
Cristobalite avatar
dz flag
Then I did this to the end of my default.pa file: ### Make some devices default set-default-sink 4 set-default-source 4 set-card-profile 1 output:analog-stereo+input:analog-stereo After this, no app can switch Navi 10 on, and when I start a wine app, it does have sound at least, but when I Alt+Tab to something else, sound goes away on the wine app, and I can only get it back if I relaunch the app. And this is where I'm stuck.
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.