Pulseaudio e Jack: não consigo iniciar jack no pop!

0

Estou executando um aplicativo que precisa de jack, então obviamente eu instalo o jack! No entanto, ao tentar iniciar o jack com o qjackctl, recebo uma lista enorme de erros:

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

Um pouco de pesquisa sobre este tópico mostra que isso pode estar relacionado ao fato de que também estou usando o pulseaudio, que não funciona bem com o Jack. Eu tentei 10/15 correções diferentes (parando o daemon pulseaudio etx), mas ainda obter a mesma lista de erros

    
por Rampartisan 13.03.2018 / 12:35

1 resposta

0

Seu principal problema é que o jackd não pode ser iniciado devido a um problema comum:

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)

Você não é membro do grupo de áudio, então:

usermod -a -G audio yourusername

, em seguida, reinicie. Os avisos do jack-dbus continuarão, mas o jackd será iniciado.

Agora, se você tiver o pacote pulseaudio-jack instalado, poderá carregar o jack-sink para rotear o pulseaudio ao jack:

pactl load-module module-jack-sink
    
por 04.07.2018 / 08:31