You are not logged in.

#1 2022-04-18 13:26:06

throwaway2014
Member
Registered: 2014-08-27
Posts: 27

Problems with pipewire setup with wireplumber as session manager

After installing pipewire as arch-wiki suggested with a wireplumber as a session manager I have run into some problems.
Namely that the default audio output device that is being picked by pipewire is not the one I want. That would not be such a problem if the GUI applications like helvum and qpwgraph actually saved my wiring, but they do not.
So I am currently trying to set the priorities to output devices (sink nodes) using wireplumber.

I created .config/wireplumber/51-RODE-priority.lua, but it does not seem to be executed by the wireplumber because the priorities do not change (the priority still is in 1k+ range). Here is the code:

 rule_RODE_sink = {
   matches = {
     {
       { "node.name", "matches", "alsa_output.usb-R__DE_Microphones*" },
     },
   },
   apply_properties = {
     ["priority.driver"] = 10,
     ["priority.session"] = 10,
   },
 }

 table.insert(alsa_monitor.rules,rule_RODE_sink)

What should I do in my situation?

Offline

#2 2022-04-18 14:31:03

throwaway2014
Member
Registered: 2014-08-27
Posts: 27

Re: Problems with pipewire setup with wireplumber as session manager

It seems that moving the code to /usr/share/wireplumber/main.lua.d/ solves the issue of executing the script, but how do I make wireplbumber to execute scripts in my home directory as well?

Offline

#3 2022-05-20 19:06:22

pradtf
Member
Registered: 2009-06-10
Posts: 149

Re: Problems with pipewire setup with wireplumber as session manager

throwaway2014 wrote:

It seems that moving the code to /usr/share/wireplumber/main.lua.d/ solves the issue of executing the script, but how do I make wireplbumber to execute scripts in my home directory as well?

i have things setup in
~/.config/pipewire
~/.config/wireplumber

eg just copied /usr/share/wireplumber/main.lua.d/  to ~/.config/wireplumber/ (i had to mkdir), then i edit things in there.

default locations:
https://pipewire.pages.freedesktop.org/ … tions.html

for instance, i have managed to disable my usb headphones by putting this in
~/.config/wireplumber/main.lua.d/51-alsa-disable.lua

rule = {
  matches = {
    {
      { "device.name", "equals", "alsa_card.usb-C-Media_Electronics_Inc._USB_Audio_Device-00" },
    },
  },
  apply_properties = {
    ["device.disabled"] = false,
  },
}

as per instructions here:
https://wiki.archlinux.org/title/WirePl … evice/node


in friendship,
prad

Offline

Board footer

Powered by FluxBB