How can I disable PipeWire?

I have problems with Kodi and PipeWire. I address this issue in another thread.

The problem is that I need to have TV working for my kids. TODAY, RIGHT NOW;)

Is it possible to just remove all of PipeWire and go back to PulseAudio?

I tried just commenting out PipeWire and then

hardware.pulseaudio.enable = true;
hardware.pulseaudio.support32Bit = true;

, but it still requests PipeWire.



error:
       … while calling the 'head' builtin

         at /nix/store/nj8ah8wp5sxbah6qmqarv8cg7yrg7f0b-source/lib/attrsets.nix:1574:11:

         1573|         || pred here (elemAt values 1) (head values) then
         1574|           head values
             |           ^
         1575|         else

       … while evaluating the attribute 'value'

         at /nix/store/nj8ah8wp5sxbah6qmqarv8cg7yrg7f0b-source/lib/modules.nix:816:9:

          815|     in warnDeprecation opt //
          816|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          817|         inherit (res.defsFinal') highestPrio;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error:
       Failed assertions:
       - Using PipeWire as the sound server conflicts with PulseAudio. This option requires `hardware.pulseaudio.enable` to be set to false
       -

Can I figure out what is requesting PipeWire?

you and me both, let’s get this fixed!

{ config, pkgs, lib, ... }:
{
  services.pipewire.enable = lib.mkForce false;
}

do you have this already?

1 Like

Could be Plasma or Gnome:

…/nixos/modules/services/desktops/gnome/gnome-remote-desktop.nix
18:    services.pipewire.enable = true;

…/nixos/modules/services/x11/desktop-managers/plasma5.nix
386:      services.pipewire.enable = mkDefault true;

…/nixos/modules/services/desktop-managers/plasma6.nix
258:    services.pipewire.enable = mkDefault true;

Maybe this would help:

Thank you. That worked;)

Everything works now, with Kodi and all. Thanks a bunch;)

no problem

i think i had the same issues you mentioned in the other thread but i didn’t get time to look into it yet, specific to my htpc machine running kodi… desktop was fine with pipewire

Are you running Kodi as a service?

yes, as a systemd user level service

ok, for me, the problem was that I needed to log in as the user it’s running under, then run ncpamixer to set the output to HDMI.

It’s even working with PipeWire now, so I needed not disable PipeWire, but now I’ve learnt;)

I also added the kodi user to audio group. Not sure if that was needed.

Thanks.

1 Like