Where are pipewire config

Hello, I was wondering where the pipewire configs were. I am using the cassini nova r2. I am specifilly trying to find where and can change the l/r channels. Thank you in advance!

Copy /usr/share/pipewire/pipewire-pulse.conf to ~/.config/pipewire/

I actually dont know if the channels can be changed in that specific config file but have look in /usr/share/pipewire/ and copy whatever config file it is you need to ~/.config/pipewire

There are also some in:

/etc/pipewire ξ‚’ ➜  l
total 12K
drwxr-xr-x   8 root root  144 Oct  7  2022 ξ…• .
drwxr-xr-x 141 root root 8.0K Aug 22 18:58 ξ…• ..
drwxr-xr-x   2 root root    6 Sep  2  2022 ξ…• client.conf.d
drwxr-xr-x   2 root root    6 Sep  2  2022 ξ…• client-rt.conf.d
drwxr-xr-x   2 root root    6 Sep  2  2022 ξ…• jack.conf.d
drwxr-xr-x   2 root root    6 Sep  2  2022 ξ…• minimal.conf.d
drwxr-xr-x   2 root root    6 Sep  2  2022 ξ…• pipewire.conf.d
drwxr-xr-x   2 root root    6 Sep 30  2022 ξ…• pipewire-pulse.conf.d

You can do it through wireplumber as well: https://bbs.archlinux.org/viewtopic.php?id=285115

More info:
https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Config-PipeWire
https://pipewire.pages.freedesktop.org/wireplumber/configuration/alsa.html

So I was able to copy pipewire-pulse.conf into my ~/.config folder. Then I uncommented the line and I switched around FL FR to FR FL. However after a system reboot nothing changed

As someone pointed out you probably want to change your wireplumber config. You don’t have to copy over other config files from /usr/share/…… Just create a new file in ~/.config/wireplumber/main.lua.d/51-reverse-channels.lua

reverse = {
    matches = {
        {
        -- Matches all sources.
        { "node.name", "matches", "alsa_input.*" },
        },
        {
        -- Matches all sinks.
        { "node.name", "matches", "alsa_output.*" },
        },
    },
    apply_properties = {
        ["audio.channels"]         = 2,
        ["audio.position"]         = "FR,FL",
    },
}

table.insert(alsa_monitor.rules, reverse)

Restart the sound system with systemctl --user restart wireplumber pipewire (or reboot). Playing audio (assuming it isn’t a Bluetooth device) should be reversed now.

PS: If someone knows how to do reverse channels on a Bluetooth device I’m happy to hear about it, because I’m battling it for days now. :pensive:

That worked. Thank you so much!!!

1 Like

Hello, again! I have updated by system and saw that wireplumber is not longer using lua, and it now using .config. Do you know how to reverse the channels for .config?

Edit: grammar

This should do the same in wireplumber 0.5

~/.config/wireplumber/wireplumber.conf.d/51-flip-stereo.conf

monitor.alsa.rules = [
  {
      matches = [
          # Matches all sources.
          { "node.name" = "~alsa_input.*" },
          ## Matches all sinks.
          { "node.name" = "~alsa_output.*" },
      ],
      actions = {
        update-props = {
          audio.channels = 2,
          audio.position = ["FR", "FL"]
        }
      }
  }
]

And restart wireplumber.

1 Like

Thank you again! It has worked!

1 Like