Pulseaudio 和 Jack:无法在 pop!os 上启动 jack

Pulseaudio 和 Jack:无法在 pop!os 上启动 jack

我正在运行一个需要 jack 的应用程序,所以显然我安装了 jack!然而,当尝试使用 qjackctl 启动 jack 时,我得到了一个巨大的运行错误列表:

12:30:04.152 Statistics reset.
12:30:04.156 ALSA connection change.
12:30:04.158 D-BUS: Service is available (org.jackaudio.service aka jackdbus).
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
12:30:04.182 ALSA connection graph change.
12:30:05.601 D-BUS: SetParameterValue('driver:device', 'hw:0'): Invalid container address 'driver':'device':'(null)' supplied to method 'SetParameterValue'.. (org.jackaudio.Error.InvalidArgs)
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Tue Mar 13 12:30:05 2018: ERROR: Invalid container address 'driver':'device':'(null)' supplied to method 'SetParameterValue'.
12:30:06.812 D-BUS: SetParameterValue('driver:nperiods', '2'): Invalid container address 'driver':'nperiods':'(null)' supplied to method 'SetParameterValue'.. (org.jackaudio.Error.InvalidArgs)
12:30:07.145 D-BUS: SetParameterValue('driver:softmode', 'false'): Invalid container address 'driver':'softmode':'(null)' supplied to method 'SetParameterValue'.. (org.jackaudio.Error.InvalidArgs)
Tue Mar 13 12:30:06 2018: ERROR: Invalid container address 'driver':'nperiods':'(null)' supplied to method 'SetParameterValue'.
Tue Mar 13 12:30:07 2018: ERROR: Invalid container address 'driver':'softmode':'(null)' supplied to method 'SetParameterValue'.
Tue Mar 13 12:30:08 2018: Saving settings to "/home/alex/.config/jack/conf.xml" ...
12:30:09.210 D-BUS: SetParameterValue('driver:shorts', 'false'): Invalid container address 'driver':'shorts':'(null)' supplied to method 'SetParameterValue'.. (org.jackaudio.Error.InvalidArgs)
12:30:09.993 D-BUS: SetParameterValue('driver:hwmon', 'false'): Invalid container address 'driver':'hwmon':'(null)' supplied to method 'SetParameterValue'.. (org.jackaudio.Error.InvalidArgs)
Tue Mar 13 12:30:09 2018: ERROR: Invalid container address 'driver':'shorts':'(null)' supplied to method 'SetParameterValue'.
Tue Mar 13 12:30:09 2018: ERROR: Invalid container address 'driver':'hwmon':'(null)' supplied to method 'SetParameterValue'.
12:30:10.175 D-BUS: SetParameterValue('driver:hwmeter', 'false'): Invalid container address 'driver':'hwmeter':'(null)' supplied to method 'SetParameterValue'.. (org.jackaudio.Error.InvalidArgs)
12:30:11.058 D-BUS: ResetParameterValue('driver:midi-driver'): Invalid container address 'driver':'midi-driver':'(null)' supplied to method 'ResetParameterValue'.. (org.jackaudio.Error.InvalidArgs)
Tue Mar 13 12:30:10 2018: ERROR: Invalid container address 'driver':'hwmeter':'(null)' supplied to method 'SetParameterValue'.
Tue Mar 13 12:30:10 2018: Saving settings to "/home/alex/.config/jack/conf.xml" ...
Tue Mar 13 12:30:11 2018: ERROR: Invalid container address 'driver':'midi-driver':'(null)' supplied to method 'ResetParameterValue'.
12:30:11.872 D-BUS: SetParameterValue('driver:duplex', 'true'): Invalid container address 'driver':'duplex':'(null)' supplied to method 'SetParameterValue'.. (org.jackaudio.Error.InvalidArgs)
Tue Mar 13 12:30:11 2018: ERROR: Invalid container address 'driver':'duplex':'(null)' supplied to method 'SetParameterValue'.
12:30:12.339 D-BUS: SetParameterValue('driver:capture', 'hw:0'): Parameter value type mismatch: was expecting 'u', got 's'. (org.jackaudio.Error.InvalidArgs)
12:30:12.807 D-BUS: SetParameterValue('driver:playback', 'hw:0'): Parameter value type mismatch: was expecting 'u', got 's'. (org.jackaudio.Error.InvalidArgs)
Tue Mar 13 12:30:12 2018: ERROR: Parameter value type mismatch: was expecting 'u', got 's'
Tue Mar 13 12:30:12 2018: ERROR: Parameter value type mismatch: was expecting 'u', got 's'
12:30:13.290 D-BUS: ResetParameterValue('driver:inchannels'): Invalid container address 'driver':'inchannels':'(null)' supplied to method 'ResetParameterValue'.. (org.jackaudio.Error.InvalidArgs)
12:30:13.940 D-BUS: ResetParameterValue('driver:outchannels'): Invalid container address 'driver':'outchannels':'(null)' supplied to method 'ResetParameterValue'.. (org.jackaudio.Error.InvalidArgs)
Tue Mar 13 12:30:13 2018: ERROR: Invalid container address 'driver':'inchannels':'(null)' supplied to method 'ResetParameterValue'.
Tue Mar 13 12:30:13 2018: ERROR: Invalid container address 'driver':'outchannels':'(null)' supplied to method 'ResetParameterValue'.
12:30:14.406 D-BUS: SetParameterValue('driver:dither', 'n'): Invalid container address 'driver':'dither':'(null)' supplied to method 'SetParameterValue'.. (org.jackaudio.Error.InvalidArgs)
Tue Mar 13 12:30:14 2018: ERROR: Invalid container address 'driver':'dither':'(null)' supplied to method 'SetParameterValue'.
12:30:15.189 D-BUS: ResetParameterValue('driver:input-latency'): Invalid container address 'driver':'input-latency':'(null)' supplied to method 'ResetParameterValue'.. (org.jackaudio.Error.InvalidArgs)
12:30:15.670 D-BUS: ResetParameterValue('driver:output-latency'): Invalid container address 'driver':'output-latency':'(null)' supplied to method 'ResetParameterValue'.. (org.jackaudio.Error.InvalidArgs)
Tue Mar 13 12:30:15 2018: ERROR: Invalid container address 'driver':'input-latency':'(null)' supplied to method 'ResetParameterValue'.
Tue Mar 13 12:30:15 2018: ERROR: Invalid container address 'driver':'output-latency':'(null)' supplied to method 'ResetParameterValue'.
12:30:16.741 D-BUS: JACK server is starting...
12:30:16.742 D-BUS: JACK server was started (org.jackaudio.service aka jackdbus).
Tue Mar 13 12:30:16 2018: Starting jack server...
Tue Mar 13 12:30:16 2018: JACK server starting in realtime mode with priority 10
Tue Mar 13 12:30:16 2018: self-connect-mode is "Don't restrict self connect requests"
Tue Mar 13 12:30:16 2018: ERROR: Cannot lock down 82280346 byte memory area (Cannot allocate memory)
Tue Mar 13 12:30:16 2018: ERROR: Cannot use real-time scheduling (RR/10)(1: Operation not permitted)
Tue Mar 13 12:30:16 2018: ERROR: AcquireSelfRealTime error
Tue Mar 13 12:30:16 2018: graph reorder: new port 'system:capture_1'
Tue Mar 13 12:30:16 2018: New client 'system' with PID 0
Tue Mar 13 12:30:16 2018: graph reorder: new port 'system:capture_2'
Tue Mar 13 12:30:16 2018: graph reorder: new port 'system:playback_1'
Tue Mar 13 12:30:16 2018: graph reorder: new port 'system:playback_2'
12:30:18.859 JACK connection change.
12:30:18.860 Server configuration saved to "/home/alex/.jackdrc".
12:30:18.861 Statistics reset.
12:30:18.877 Client activated.
12:30:18.878 Patchbay deactivated.
12:30:18.926 JACK connection graph change.
Cannot lock down 82280346 byte memory area (Cannot allocate memory)
Tue Mar 13 12:30:18 2018: New client 'qjackctl' with PID 2852

对这个主题的一些研究表明,这可能是因为我也在运行pulseaudio,这并不总是能很好地与Jack配合。我已经尝试了 10/15 种不同的修复(停止pulseaudio daemon etx),但仍然得到相同的错误列表

答案1

您的主要问题是 jackd 无法启动,这是由于一个常见问题:

Tue Mar 13 12:30:16 2018: ERROR: Cannot lock down 82280346 byte memory area (Cannot allocate memory)
Tue Mar 13 12:30:16 2018: ERROR: Cannot use real-time scheduling (RR/10)(1: Operation not permitted)

您不是音频组的成员,因此:

usermod -a -G audio yourusername

然后重新启动。 jack-dbus 警告将继续,但 jackd 将启动。

现在,如果您安装了pulseaudio-jack软件包,您可以加载jack-sink以将pulseaudio路由到jack:

pactl load-module module-jack-sink

相关内容