Skip to content

Instantly share code, notes, and snippets.

@moraisaugusto
Last active March 31, 2021 10:14
Show Gist options
  • Save moraisaugusto/08dde7b05c207194e891a77cee296b2b to your computer and use it in GitHub Desktop.
Save moraisaugusto/08dde7b05c207194e891a77cee296b2b to your computer and use it in GitHub Desktop.
Pulseaudio

Resolve conflicts for Pulseaudio

First, check if you have a default Pulse Audio configuration (~.config/pulse/default.pa or /etc/config/default.pa).

Remove the local default.pa file and try to start the pulse audio.

mv ~/.config/pulse/default.pa ~/.config/pulse/default.pa-old
pulseaudio -vvvv

This command will try to star the pulse audio.

Now list all your card devices to verify which default sink you will use:

$ arecord --list-devices
**** List of CAPTURE Hardware Devices ****
card 0: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 0: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 1: Device [OWC Thunderbolt 3 Audio Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: PCH [HDA Intel PCH], device 0: ALC298 Analog [ALC298 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

In my case, the default sink will be card #2.

so open you ~.config/pulse/default.pa and uncomment the line:

set-default-sink 2

Now, kill the pulseaudio daemon and restart it manually

pulseaudio -k
pulseaudio --start

Your audio should be working now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment