Pulseaudio keeps changing my default output device

Hello,

I recently did a new installation of Manjaro KDE and from the beginning Pulseaudio kept changing my default output device digital HDMI stereo.
I have a 5.1 system, setting output to analog-surround-51 works fine; the problem is that Pulseaudio would not remember it. I searched for a solution which lead me to adding

set-card-profile 0 output:analog-surround-51
set-default-sink 1

to /etc/pulse/default.pa

Due to this change output is set to analog-surround-51 whenever I start the machine. Now there are two problems remaining:

  1. I have two monitors connected via DisplayPort. Whenever I wake them up after standby Pulseaudio changes output to digital HDMI stereo.
  2. If I start a game (Xonotic) in a screen resolution that is different to the native resolution or change the resolution in-game, again Pulseaudio changes output to digital HDMI stereo.

Pulseaudio version is 11.1-1.

My system:
System: Host: diomedes-pc Kernel: 4.14.3-1-MANJARO x86_64 bits: 64 gcc: 7.2.0
Desktop: KDE Plasma 5.11.4 (Qt 5.9.3) Distro: Manjaro Linux
Machine: Device: desktop System: Gigabyte product: Z270M-D3P serial: N/A
Mobo: Gigabyte model: Z270M-D3P-CF v: x.x serial: N/A UEFI: American Megatrends v: F6 date: 07/06/2017
CPU: Dual core Intel Pentium G4600 (-HT-MCP-) arch: Skylake rev.9 cache: 3072 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 14404
clock speeds: max: 3600 MHz 1: 3600 MHz 2: 3600 MHz 3: 3600 MHz 4: 3600 MHz
Graphics: Card: Intel HD Graphics 630 bus-ID: 00:02.0
Display Server: N/A drivers: intel (unloaded: modesetting) tty size: 209x49
Audio: Card Intel 200 Series PCH HD Audio driver: snd_hda_intel bus-ID: 00:1f.3
Sound: Advanced Linux Sound Architecture v: k4.14.3-1-MANJARO
Network: Card: Intel Ethernet Connection (2) I219-V driver: e1000e v: 3.2.6-k bus-ID: 00:1f.6
IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: 1c:1b:0d:aa:92:25
Drives: HDD Total Size: 500.1GB (75.3% used)
ID-1: /dev/sda model: Samsung_SSD_850 size: 500.1GB
Partition: ID-1: / size: 48G used: 8.9G (20%) fs: ext4 dev: /dev/sda3
ID-2: /home size: 402G used: 335G (84%) fs: ext4 dev: /dev/sda4
ID-3: swap-1 size: 8.39GB used: 0.00GB (0%) fs: swap dev: /dev/sda2
Sensors: System Temperatures: cpu: 50.0C mobo: 27.8C
Fan Speeds (in rpm): cpu: N/A
Info: Processes: 176 Uptime: 1:31 Memory: 1993.8/14993.3MB Init: systemd Gcc sys: 7.2.0
Client: Shell (bash 4.4.121) inxi: 2.3.48

1 Like

Try this (it worked for me):

https://wiki.manjaro.org/index.php?title=Setting_the_Default_Sound_Device

Hello handy, thanks for your reply!

I followed the wiki, but it did not fix my problem.

[diomedes@diomedes-pc ~]$ cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xef040000 irq 125

etc/asound.conf already existed, I edited it to include the mentioned commands, it now looks like this:

#Use PulseAudio by default
pcm.!default {
type pulse
fallback "sysdefault"
hint {
show on
description “Default ALSA Output (currently PulseAudio Sound Server)”
}
}

ctl.!default {
type pulse
fallback “sysdefault”
}

#vim:set ft=alsaconf:
defaults.pcm.card 0
defaults.ctl.card 0

It seems like I found a solution. I edited /etc/pulse/default.pa again commented out this line:

load-module module-switch-on-port-available

This seems to prevent pulseaudio from changing the output device completely.

2 Likes

I’ll add link to this thread in the wiki page.

Thanks for posting. :wink:

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