![启动 QJackCTL 时出错](https://linux22.com/image/1174529/%E5%90%AF%E5%8A%A8%20QJackCTL%20%E6%97%B6%E5%87%BA%E9%94%99.png)
我正在使用 Ubuntu-Studio (20.04),几天前我在 CX216 笔记本上安装了它,尝试启动 QjackCTL 时出现以下错误:PS:我之前曾尝试将它安装在“Conectar igualdad”的上网本上,并且启动正常。
错误 D-BUS:Jack 服务器无法启动
无法作为客户端联系 Jack 服务器。-全局操作失败 -服务器无法连接。请查看消息窗口以获取更多信息。
细节:
12:48:55.304 Reiniciar estadísticas.
12:48:55.337 Cambios en las conexiones ALSA.
12:48:55.366 D-BUS: Disponible (org.jackaudio.service aka jackdbus).
Cannot connect to server socket err = No existe el archivo o el directorio
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:48:55.670 Cambió el gráfico de conexiones ALSA.
12:48:59.306 D-BUS: El servidor JACK no puede iniciarse. Disculpa
Cannot connect to server socket err = No existe el archivo o el directorio
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
Fri Jul 3 12:48:58 2020: Starting jack server...
Fri Jul 3 12:48:58 2020: JACK server starting in realtime mode with priority 10
Fri Jul 3 12:48:58 2020: self-connect-mode is "Don't restrict self connect requests"
Fri Jul 3 12:48:59 2020: Acquired audio card Audio0
Fri Jul 3 12:48:59 2020: creating alsa driver ...
hw:0|hw:0|1024|2|44100|0|0|nomon|swmeter|-|32bit
Fri Jul 3 12:48:59 2020: ERROR: ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
Fri Jul 3 12:48:59 2020: Released audio card Audio0
Fri Jul 3 12:48:59 2020: ERROR: Cannot initialize driver
Fri Jul 3 12:48:59 2020: ERROR: JackServer::Open failed with -1
Fri Jul 3 12:48:59 2020: ERROR: Failed to open server
Fri Jul 3 12:49:00 2020: Saving settings to
"/home/shirubius/.config/jack/conf.xml" ...
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 883, resource id: 12667603, major code: 40 (TranslateCoords), minor code: 0
12:49:03.946 No puede conectarse al servidor JACK como cliente. - La operación global falló. - No puede conectarse al servidor. Por favor revise la ventana de mensajes para mas información.
Cannot connect to server socket err = No existe el archivo o el directorio
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
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1064,resource id: 12668286, major code: 40 (TranslateCoords), minor code: 0
答案1
尝试qjackctl
使用此命令禁用 pulseaudio 后启动:
pasuspender qjackctl
如果失败,此命令将返回使用声音设备的进程:
sudo fuser -v /dev/snd/*
如果 pulseaudio 是锁定进程:禁用 pulseaudio 自动生成然后终止它:
echo autospawn=no > ~/.config/pulse/client.conf
killall pulseaudio
当 jackd 完成后,恢复到自动生成的 pulseaudio:
echo autospawn=yes > ~/.config/pulse/client.conf
启动 pulseaudio:
pulseaudio