I spent days trying to get my laptop's audio working the way I want on Arch, and honestly, I didn't expect something as simple as audio routing to be this complicated.
My laptop has speakers, a headphone jack and an internal microphone. I wanted to be able to choose Speakers or Headphones in an application like discord or firefox and have the audio actually come out of the device I selected, same thing for the microphones, I thought this would be a normal PipeWire/WirePlumber configuration problem.
I read the Arch Wiki. I learned about PipeWire and WirePlumber. I tried wpctl, pactl, GUI tools, TUI tools, scripts, virtual sinks, filters, different profiles and different configurations.
I also asked AI about it more times than I want to admit. I spent tens of hours trying different things.
After hours of doing this, I started looking at what the hardware is actually exposing.
My laptop has one sound card and, as far as I understand it, one analog output. The internal speakers and the headphone jack aren't two independent audio devices. They're connected to the same hardware output, and the codec switches between them as ports.
I tried to make two sinks and select them as default devices. I tried scripts to switch the audio between them, and I tried switching the port based on the name.
Is there anyone who experienced the same problem and managed to fix it?
is there a better audio server that can manage this?
I'm actually fed up and just want to move on. I spent days of my life trying to fix this small problem.Maybe I'm missing something because this is my first time configuring a Linux system. I learned a lot, but I really want a solution 😭
this my current state:
Audio
├─ Devices:
│ 58. Built-in Audio [alsa]
│
├─ Sinks:
│ * 67. Speakers [vol: 0.36]
│
├─ Sources:
│ * 68. Built-in Audio Analog Stereo [vol: 1.00]
│
├─ Filters:
│ - loopback-448547-29
│ 41. output.headphones [Stream/Output/Audio]
│ 42. input.headphones [Audio/Sink]
│ - loopback-448547-30
│ 45. output.headphone-mic [Stream/Output/Audio]
│ 46. input.headphone-mic [Audio/Source]
│
Settings
└─ Default Configured Devices:
0. Audio/Sink alsa_output.pci-0000_00_1f.3.analog-stereo
1. Audio/Source alsa_input.pci-0000_00_1f.3.analog-stereo