Manjaro

插孔沒有播放音頻,pulseaudio 一直處於活動狀態

  • December 30, 2019

我有兩台電腦,它們的 manjaro 安裝非常相似。兩者都安裝了相同的 jack2、QJackCtl 和核心版本。


電腦 1

這是一個有效的:

我可以啟動插孔並聽到 lmms 和 Hydrogen 中的內容。然後,pulseaudio 的其他音頻輸出將停止,這是預期的 afaik。當在這個 QJackCtl 中停止和啟動 jack 時,它看起來像這樣:

01:01:48.817 Client deactivated.
01:01:48.827 JACK is stopping...
Jack main caught signal 15
Released audio card Audio0
audio_reservation_finish
01:01:49.074 JACK was stopped
01:01:51.610 JACK is starting...
01:01:51.611 /usr/bin/jackd -dalsa -dhw:0 -r48000 -p1024 -n2
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
01:01:51.652 JACK was started with PID=1969.
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
jackdmp 1.9.14
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2019 Filipe Coelho.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
Cannot lock down 82280346 byte memory area (Cannot allocate memory)
audio_reservation_init
Acquire audio card Audio0
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback
Cannot use real-time scheduling (RR/10) (1: Operation not permitted)
AcquireSelfRealTime error
01:01:53.832 JACK connection change.
01:01:53.834 Server configuration saved to "/home/mango/.jackdrc".
01:01:53.835 Statistics reset.
01:01:53.866 Client activated.
01:01:53.867 Patchbay deactivated.
01:01:53.882 JACK connection graph change.
Cannot lock down 82280346 byte memory area (Cannot allocate memory)

電腦 2

在這一點上,所有的 pulseaudio 應用程序都會繼續播放聲音,lmms 和 Hydrogen 不會。在 QJackCtl 中停止和啟動千斤頂時,我看到的就是:

00:52:35.422 Client deactivated.
00:52:36.599 JACK connection change.
00:52:36.618 Client activated.
00:52:36.619 Patchbay deactivated.
Cannot lock down 82280346 byte memory area (Cannot allocate memory)

如您所見,它沒有記錄太多內容。

在此處插入/usr/bin/jackd -dalsa -dhw:0 -r48000 -p1024 -n2來自工作機器的命令會產生:

`default' server already active
Failed to open server

如果我在重新啟動後或使用後直接執行相同的命令jack_control stop,則會產生:

audio_reservation_init
Acquire audio card Audio0
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
Released audio card Audio0
audio_reservation_finish
Cannot initialize driver
JackServer::Open failed with -1
Failed to open server

相同的jackd -d alsa

PCM 錯誤消息未出現在電腦 1 上。


在兩台機器上,QJackCtl 都聲稱 Jack 是“活躍的”

我可以在哪裡繼續尋找問題?

謝謝

根本不播放音頻的解決方案是檢查 QJackCtl 中的輸出設備

Setup...-> Settings-> Advanced->Output Device

並將其設置到我的音效卡。

引用自:https://unix.stackexchange.com/questions/559463