尽管属于音频组,JACK 仍无法以实时模式启动

尽管属于音频组,JACK 仍无法以实时模式启动

尽管我在该组中,但我的 jack 服务器无法以实时模式启动audio

这是我的设置:

zegkljan@eddie:~$ lsb_release -r
Release:    16.10
zegkljan@eddie:~$ echo $USER
zegkljan
zegkljan@eddie:~$ grep audio /etc/group
audio:x:29:pulse,zegkljan
zegkljan@eddie:~$ groups $USER
zegkljan : zegkljan adm cdrom sudo audio dip plugdev lpadmin sambashare
zegkljan@eddie:~$ cat /etc/security/limits.d/audio.conf 
# Provided by the jackd package.
#
# Changes to this file will be preserved.
#
# If you want to enable/disable realtime permissions, run
#
#    dpkg-reconfigure -p high jackd

@audio   -  rtprio     95
@audio   -  memlock    unlimited
#@audio   -  nice      -19
zegkljan@eddie:~$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 30955
max locked memory       (kbytes, -l) unlimited
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 95
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 30955
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

但是,当我通过 qjackctl 启动 jack 并选中“实时”选项时,我收到以下消息(在消息窗口中),其中包含错误“无法使用实时调度”:

Thu Dec 15 23:12:51 2016: Starting jack server...
Thu Dec 15 23:12:51 2016: JACK server starting in realtime mode with priority 10
Thu Dec 15 23:12:51 2016: self-connect-mode is "Don't restrict self connect requests"
Thu Dec 15 23:12:51 2016: ERROR: Cannot lock down 82274202 byte memory area (Cannot allocate memory)
Thu Dec 15 23:12:51 2016: Acquired audio card Audio1
Thu Dec 15 23:12:51 2016: creating alsa driver ... hw:K6|hw:K6|512|2|48000|0|0|nomon|swmeter|-|32bit
Thu Dec 15 23:12:51 2016: configuring for 48000Hz, period = 512 frames (10.7 ms), buffer = 2 periods
Thu Dec 15 23:12:51 2016: ALSA: final selected sample format for capture: 32bit integer little-endian
Thu Dec 15 23:12:51 2016: ALSA: use 2 periods for capture
Thu Dec 15 23:12:51 2016: ALSA: final selected sample format for playback: 32bit integer little-endian
Thu Dec 15 23:12:51 2016: ALSA: use 2 periods for playback
Thu Dec 15 23:12:51 2016: ERROR: Cannot use real-time scheduling (RR/10)(1: Operation not permitted)
Thu Dec 15 23:12:51 2016: ERROR: AcquireSelfRealTime error
Thu Dec 15 23:12:51 2016: graph reorder: new port 'system:capture_1'
Thu Dec 15 23:12:51 2016: New client 'system' with PID 0
Thu Dec 15 23:12:51 2016: graph reorder: new port 'system:capture_2'
Thu Dec 15 23:12:51 2016: graph reorder: new port 'system:capture_3'
Thu Dec 15 23:12:51 2016: graph reorder: new port 'system:capture_4'
Thu Dec 15 23:12:51 2016: graph reorder: new port 'system:capture_5'
Thu Dec 15 23:12:51 2016: graph reorder: new port 'system:capture_6'
Thu Dec 15 23:12:51 2016: graph reorder: new port 'system:playback_1'
Thu Dec 15 23:12:51 2016: graph reorder: new port 'system:playback_2'
Thu Dec 15 23:12:51 2016: graph reorder: new port 'system:playback_3'
Thu Dec 15 23:12:51 2016: graph reorder: new port 'system:playback_4'
Thu Dec 15 23:12:51 2016: graph reorder: new port 'system:playback_5'
Thu Dec 15 23:12:51 2016: graph reorder: new port 'system:playback_6'

据我所知,成为该audio组的成员应该足以实时运行。然而,这显然不是这种情况。我做错了什么,或者问题可能出在哪里?

如需了解更多详细信息,请随时询问。

答案1

经过一段时间的无所作为,问题终于解决了。遗憾的是,我不知道发生了什么。可能是在问题发生近两个月后进行了一些更新,或者只是需要更多重启/注销/登录,这些显然已经发生了。无论发生了什么,现在它都按预期运行。

相关内容