pactl move-source-output giving error
- PipeWire version (
pipewire --version
): 0.3.74 - Distribution and distribution version (
PRETTY_NAME
from/etc/os-release
): Gentoo Linux - Desktop Environment: sway, bspwm
- Kernel version (
uname -r
): 6.4.3
Description of Problem:
Trying to use pactl move-source-output SOURCE-OUTPUT_ID SOURCE_ID/SOURCE_NAME
fails with Failure: Invalid argument
Trying to change the source input through pavucontrol shows that it changed, but doesn't actually change. This can be confirmed by looking at the connections through something like qpwgraph/qjackctl
Other operations involving source-output
and volume
are working well through pactl
How Reproducible:
Happens everytime when using pactl
Steps to Reproduce:
- Acquire list of source-outputs (programs using microphone)
pactl list source-outputs short
- Acquire list of sources (microphones)
pactl list sources short
- Use
pactl move-source-output
to change source-output to new source, acquired from the previous commands. SOURCE_ID could be replaced with SOURCE_NAME and should still workpactl move-source-output SOURCE_OUTPUT_ID SOURCE_ID
Actual Results:
Running the command gives an error:
$ pactl move-source-output 35 aux_mic
Failure: Invalid argument
This is also available on pipewire-pulse output
[W][28256.487522] mod.protocol-pulse | [ reply.c: 54 reply_error()] client 0x5639d85503e0 [pactl]: ERROR command:68 (MOVE_SOURCE_OUTPUT) tag:2 error:3 (Invalid argument)
Expected Results:
Should behave the same as pactl move-sink-input
and proceed to change the microphone in a recording stream.
Additional Info (as attachments):
$ pactl list source-outputs short
35 30 33 PipeWire float32le 2ch 44100Hz
94 30 33 PipeWire float32le 2ch 44100Hz
$ pactl list sources short
30 pulse_mic PipeWire float32le 2ch 44100Hz RUNNING
31 aux_mic PipeWire float32le 2ch 48000Hz SUSPENDED
57 alsa_output.usb-Generic_USB_Audio-00.pro-output-0.monitor PipeWire s32le 8ch 48000Hz SUSPENDED
58 alsa_output.usb-Generic_USB_Audio-00.pro-output-1.monitor PipeWire s32le 2ch 48000Hz SUSPENDED
59 alsa_output.usb-Generic_USB_Audio-00.pro-output-2.monitor PipeWire s24le 2ch 48000Hz SUSPENDED
60 alsa_output.usb-Generic_USB_Audio-00.pro-output-3.monitor PipeWire s16le 2ch 48000Hz SUSPENDED
61 alsa_input.usb-Generic_USB_Audio-00.pro-input-0 PipeWire s24le 2ch 48000Hz SUSPENDED
62 alsa_input.usb-Generic_USB_Audio-00.pro-input-1 PipeWire s24le 2ch 48000Hz SUSPENDED
63 alsa_input.usb-Generic_USB_Audio-00.pro-input-2 PipeWire s24le 2ch 48000Hz SUSPENDED
64 alsa_output.usb-Razer_Razer_Kraken_7.1_V2_00000000-00.pro-output-0.monitor PipeWire s16le 2ch 44100Hz IDLE
65 alsa_input.usb-Razer_Razer_Kraken_7.1_V2_00000000-00.pro-input-0 PipeWire s16le 2ch 48000Hz SUSPENDED
66 alsa_input.usb-Blue_Microphones_Yeti_Stereo_Microphone_797_2021_05_27_59332-00.iec958-stereo PipeWire s16le 2ch 48000Hz SUSPENDED
$ pactl move-source-output 35 30
Failure: Invalid argument
$ pactl move-source-output 35 31
Failure: Invalid argument
$ pactl move-source-output 35 pulse_mic
Failure: Invalid argument
$ pactl move-source-output 35 aux_mic
Failure: Invalid argument
-
pw-dump > pw-dump.log
: pw-dump.zip