Sound (ALSA with PipeWire + WirePlumber) Not Working

Hi there! I am currently on a fresh installation of NixOS 24.05 and is finding it difficult to get sound working properly.

Running pavucontrol shows it is playing something when I play a YouTube video, but no sound is output at all actually.

I have tried many solutions found on this forum, none of which fixes the issue for me.

Attaching my configuration.nix:

  # Enable sound with pipewire.
  sound.enable = false;
  hardware.pulseaudio.enable = false;
  security.rtkit.enable = true;
  services.pipewire = {
    enable = true;
    alsa.enable = true;
    alsa.support32Bit = true;
    pulse.enable = true;
    # If you want to use JACK applications, uncomment this
    # jack.enable = true;  

    # use the example session manager (no others are packaged yet so this is enabled by default,
    # no need to redefine it in your config for now)
    wireplumber.enable = true;
  };

  services.jack = {
    jackd.enable = true;
    alsa.enable = false;
    loopback = {
      enable = true;
    };
  };
1 Like

Attaching output of journalctl --user-unit pipewire --user-unit wireplumber:

Jan 16 09:14:27 nixos systemd[1078]: Started PipeWire Multimedia Service.
Jan 16 09:14:27 nixos systemd[1078]: Started Multimedia Service Session Manager.
Jan 16 09:14:27 nixos wireplumber[1339]: [0:00:24.236183178] [1339]  INFO IPAManager ipa_manager.cpp:143 libcamera is not installed. Adding '/nix/store/src/ipa' to the IPA search path
Jan 16 09:14:27 nixos wireplumber[1339]: [0:00:24.237293790] [1339]  INFO Camera camera_manager.cpp:298 libcamera v0.0.5
Jan 16 09:14:27 nixos wireplumber[1339]: GetManagedObjects() failed: org.freedesktop.DBus.Error.NameHasNoOwner
Jan 16 09:14:29 nixos systemd[1078]: Started PipeWire PulseAudio.
Jan 16 09:24:27 nixos pipewire[1336]: mod.client-node: 0x561ed4542a00: unknown peer 0x561ed429fea0 fd:62
Jan 16 09:24:29 nixos pipewire[1336]: mod.client-node: 0x561ed426d280: unknown peer 0x561ed42a50c0 fd:56
Jan 16 09:24:50 nixos pipewire[1336]: mod.client-node: 0x561ed4272310: unknown peer 0x561ed4407360 fd:69
Jan 16 09:24:58 nixos pipewire[1336]: mod.client-node: 0x561ed42a5cb0: unknown peer 0x561ed429fea0 fd:71
Jan 16 09:25:14 nixos pipewire[1336]: mod.client-node: 0x561ed440ad90: unknown peer 0x561ed4290490 fd:63
Jan 16 09:25:39 nixos pipewire[1336]: mod.client-node: 0x561ed4416630: unknown peer 0x561ed4290490 fd:63
Jan 16 09:25:58 nixos pipewire[1336]: mod.client-node: 0x561ed42984d0: unknown peer 0x561ed42957f0 fd:63
Jan 16 09:26:30 nixos pipewire[1336]: mod.client-node: 0x561ed440ad90: unknown peer 0x561ed4290490 fd:71
Jan 16 09:26:30 nixos pipewire[1336]: mod.client-node: 0x561ed440ad90: unknown peer 0x561ed4290490 fd:70
Jan 16 09:27:00 nixos pipewire[1336]: mod.client-node: 0x561ed42984d0: unknown peer 0x561ed4290490 fd:66
Jan 16 09:28:14 nixos wireplumber[1339]: <WpSiNode:0x2291ca0> Object activation aborted: proxy destroyed
Jan 16 09:28:14 nixos wireplumber[1339]: <WpSiNode:0x2291ca0> failed to activate item: Object activation aborted: proxy destroyed
Jan 16 09:28:35 nixos pipewire-pulse[1508]: mod.protocol-pulse: client 0x55f0bcabb3a0 [PulseAudio Volume Control]: ERROR command:-1 (invalid) tag:20 error:25 (Input/output error)
Jan 16 09:28:35 nixos pipewire[1336]: mod.client-node: 0x561ed4542b50: unknown peer 0x561ed493b190 fd:93
Jan 16 09:28:36 nixos pipewire[1336]: mod.client-node: 0x561ed48aa420: unknown peer 0x561ed48aad60 fd:131
Jan 16 09:29:09 nixos pipewire-pulse[1508]: mod.protocol-pulse: client 0x55f0bcabb3a0 [PulseAudio Volume Control]: ERROR command:-1 (invalid) tag:4294967295 error:25 (Input/output error)
Jan 16 09:29:09 nixos pipewire-pulse[1508]: mod.protocol-pulse: client 0x55f0bcabb3a0 [PulseAudio Volume Control]: ERROR command:-1 (invalid) tag:4294967295 error:25 (Input/output error)
Jan 16 09:29:16 nixos pipewire-pulse[1508]: mod.protocol-pulse: client 0x55f0bcabb3a0 [PulseAudio Volume Control]: ERROR command:-1 (invalid) tag:124 error:25 (Input/output error)
Jan 16 09:29:24 nixos pipewire-pulse[1508]: mod.protocol-pulse: client 0x55f0bcabb3a0 [PulseAudio Volume Control]: ERROR command:-1 (invalid) tag:4294967295 error:25 (Input/output error)
Jan 16 09:29:24 nixos pipewire-pulse[1508]: mod.protocol-pulse: client 0x55f0bcabb3a0 [PulseAudio Volume Control]: ERROR command:-1 (invalid) tag:4294967295 error:25 (Input/output error)
Jan 16 09:29:24 nixos pipewire-pulse[1508]: mod.protocol-pulse: client 0x55f0bcabb3a0 [PulseAudio Volume Control]: ERROR command:-1 (invalid) tag:4294967295 error:25 (Input/output error)
Jan 16 09:29:24 nixos pipewire-pulse[1508]: mod.protocol-pulse: client 0x55f0bcabb3a0 [PulseAudio Volume Control]: ERROR command:-1 (invalid) tag:4294967295 error:25 (Input/output error)
Jan 16 09:29:26 nixos pipewire-pulse[1508]: mod.protocol-pulse: client 0x55f0bcabb3a0 [PulseAudio Volume Control]: ERROR command:-1 (invalid) tag:4294967295 error:25 (Input/output error)
Jan 16 09:29:26 nixos pipewire-pulse[1508]: mod.protocol-pulse: client 0x55f0bcabb3a0 [PulseAudio Volume Control]: ERROR command:-1 (invalid) tag:4294967295 error:25 (Input/output error)
Jan 16 09:29:32 nixos pipewire-pulse[1508]: mod.protocol-pulse: client 0x55f0bcabb3a0 [PulseAudio Volume Control]: ERROR command:-1 (invalid) tag:4294967295 error:25 (Input/output error)
Jan 16 09:29:36 nixos pipewire-pulse[1508]: mod.protocol-pulse: client 0x55f0bcabb3a0 [PulseAudio Volume Control]: ERROR command:-1 (invalid) tag:4294967295 error:25 (Input/output error)
Jan 16 09:29:36 nixos pipewire-pulse[1508]: mod.protocol-pulse: client 0x55f0bcabb3a0 [PulseAudio Volume Control]: ERROR command:-1 (invalid) tag:4294967295 error:25 (Input/output error)
Jan 16 09:29:38 nixos pipewire-pulse[1508]: mod.protocol-pulse: client 0x55f0bcabb3a0 [PulseAudio Volume Control]: ERROR command:-1 (invalid) tag:4294967295 error:25 (Input/output error)
Jan 16 09:30:00 nixos pipewire[1336]: mod.client-node: 0x561ed46846c0: unknown peer 0x561ed4253120 fd:91
Jan 16 09:35:47 nixos pipewire[1336]: mod.client-node: 0x561ed44087e0: unknown peer 0x561ed4129650 fd:71
Jan 16 09:35:47 nixos pipewire[1336]: mod.client-node: 0x561ed44087e0: unknown peer 0x561ed4253120 fd:69
Jan 16 09:37:51 nixos pipewire[1336]: mod.client-node: 0x561ed44f4d90: unknown peer 0x561ed4129650 fd:71
Jan 16 09:37:52 nixos pipewire[1336]: mod.client-node: 0x561ed41af820: unknown peer 0x561ed4253120 fd:69

Attaching output of aplay -l:

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC225 Analog [ALC225 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 10: 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 10: 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

Not sure if it’s the source of your issue, but don’t use both services.jack and services.pipewire together. If you want to use Jack programs with Pipewire, please do services.pipewire.jack.enable = true; instead (it’s right there in the comments of your configuration, too).

Have tried that - yet it doesn’t seem to be the root cause of the issue.

After removing that, the journalctl command above now gives me the following:

Jan 16 17:15:27 nixos systemd[1070]: Started PipeWire Multimedia Service.
Jan 16 17:15:27 nixos systemd[1070]: Started Multimedia Service Session Manager.
Jan 16 17:15:27 nixos pipewire[1330]: mod.jackdbus-detect: Failed to receive jackdbus reply: org.freedesktop.DBus.Error.ServiceUnknown: The name org.jackaudio.service was not provided by any .service files
Jan 16 17:15:27 nixos wireplumber[1332]: [0:00:24.246152137] [1332]  INFO IPAManager ipa_manager.cpp:143 libcamera is not installed. Adding '/nix/store/src/ipa' to the IPA search path
Jan 16 17:15:27 nixos wireplumber[1332]: [0:00:24.247214058] [1332]  INFO Camera camera_manager.cpp:298 libcamera v0.0.5
Jan 16 17:15:27 nixos wireplumber[1332]: GetManagedObjects() failed: org.freedesktop.DBus.Error.NameHasNoOwner

Don’t think these messages are an issue. I get them too on my Laptop and sound is working fine.

I wonder what would be causing the sound problems. My microphones work fine.

Are you certain it’s not something mundane like volume not up or the wrong output device selected? When you say the microphone is actually working, this seems increasingly likely. Maybe check with pavucontrol under Output Devices if the correct device is selected and showing an output level. Also kinda running out of ideas what the issue might be.

The correct devices are selected. An output level is shown but the 100% is shown as “0 dB”, which I am not sure whether that is normal or not.

Sorry then, no idea what the cause could be anymore. From the software side, everything looks as it should.