You are not logged in.

#1 2024-03-07 12:14:55

theriddle
Member
Registered: 2021-10-04
Posts: 3

Disable automatic sink switching

↪ pactl list short modules
1	libpipewire-module-rt	{
            nice.level    = -11
            #rt.prio      = 88
            #rt.time.soft = -1
            #rt.time.hard = -1
            #uclamp.min = 0
            #uclamp.max = 1024
        }	
2	libpipewire-module-protocol-native	{
            # List of server Unix sockets, and optionally permissions
            #sockets = [ { name = "pipewire-0" }, { name = "pipewire-0-manager" } ]
        }	
3	libpipewire-module-profiler		
5	libpipewire-module-metadata		
7	libpipewire-module-spa-device-factory		
9	libpipewire-module-spa-node-factory		
11	libpipewire-module-client-node		
13	libpipewire-module-client-device		
15	libpipewire-module-portal		
16	libpipewire-module-access	{
            # Socket-specific access permissions
            #access.socket = { pipewire-0 = "default", pipewire-0-manager = "unrestricted" }

            # Deprecated legacy mode (not socket-based),
            # for now enabled by default if access.socket is not specified
            #access.legacy = true
        }	
17	libpipewire-module-adapter		
19	libpipewire-module-link-factory		
21	libpipewire-module-session-manager		
536870912	module-always-sink	

↪ pw-cli ls Module
	id 1, type PipeWire:Interface:Module/3
 		object.serial = "1"
 		module.name = "libpipewire-module-rt"
	id 2, type PipeWire:Interface:Module/3
 		object.serial = "2"
 		module.name = "libpipewire-module-protocol-native"
	id 3, type PipeWire:Interface:Module/3
 		object.serial = "3"
 		module.name = "libpipewire-module-profiler"
	id 5, type PipeWire:Interface:Module/3
 		object.serial = "5"
 		module.name = "libpipewire-module-metadata"
	id 7, type PipeWire:Interface:Module/3
 		object.serial = "7"
 		module.name = "libpipewire-module-spa-device-factory"
	id 9, type PipeWire:Interface:Module/3
 		object.serial = "9"
 		module.name = "libpipewire-module-spa-node-factory"
	id 11, type PipeWire:Interface:Module/3
 		object.serial = "11"
 		module.name = "libpipewire-module-client-node"
	id 13, type PipeWire:Interface:Module/3
 		object.serial = "13"
 		module.name = "libpipewire-module-client-device"
	id 15, type PipeWire:Interface:Module/3
 		object.serial = "15"
 		module.name = "libpipewire-module-portal"
	id 16, type PipeWire:Interface:Module/3
 		object.serial = "16"
 		module.name = "libpipewire-module-access"
	id 17, type PipeWire:Interface:Module/3
 		object.serial = "17"
 		module.name = "libpipewire-module-adapter"
	id 19, type PipeWire:Interface:Module/3
 		object.serial = "19"
 		module.name = "libpipewire-module-link-factory"
	id 21, type PipeWire:Interface:Module/3
 		object.serial = "21"
 		module.name = "libpipewire-module-session-manager"
 

Neither

module-switch-on-port-available

nor

module-switch-on-connect

is loaded yet PipeWire automatically switches between sinks when wired headphone is plugged in/out. System is up-to-date. How can i make the switching manual?

Last edited by theriddle (2024-03-07 12:29:50)

Offline

#2 2024-03-08 15:19:48

theriddle
Member
Registered: 2021-10-04
Posts: 3

Re: Disable automatic sink switching

Update

-Tried Manjaro live image to check if it behaves the same
-Tried downgrading audio related packages
-Tried disabling autostarted programs

So it isnt related to my config. IIRC it was working like i described some time ago.

Not sure if it has any downsides but selecting Built-in Audio profile as "Pro Audio" gives the results I want.
8KSBWet.png

Offline

#3 2024-03-08 15:24:25

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,230

Re: Disable automatic sink switching

https://pipewire.pages.freedesktop.org/ … olicy.html disable the follow and move properties on wireplumber

Using the pro-profile has the downside of potentially blocking outputs/picking improper sample rates, but if you don't notice those you can keep it on that.

Last edited by V1del (2024-03-08 15:28:08)

Offline

#4 2024-03-08 16:09:22

theriddle
Member
Registered: 2021-10-04
Posts: 3

Re: Disable automatic sink switching

After making sure ~/.config/wireplumber/ and /etc/wireplumber/ directories are not present in my system, I added following lines at the end of /usr/share/wireplumber/policy.conf file and rebooted, still getting the same results.

wireplumber.properties = {
  default-policy-move = false
  default-policy-follow = false
}

Offline

Board footer

Powered by FluxBB