无法启动插孔(无法分配内存)


14

我想在jack的顶部使用PulseAudio,所以我已经关闭了pulse,现在想使用来启动jack qjackctl。但是,这导致以下错误日志:

22:14:15.933 Patch Panel disabled
22:14:15.940 Reset statistics.
22:14:15.953 Changed ASLA connection.
22:14:15.970 D-BUS: Service available (org.jackaudio.service aka jackdbus).
Cannot connect to server socket err = File or directory not found
Cannot connect to server socket
jack server is not running or cannot be started
22:14:15.980 Updated visualization of ASLA connections
22:14:18.147 D-BUS: Unable to start JACK server
Cannot connect to server socket err = File or directory not found
Cannot connect to server socket
jack server is not running or cannot be started
Fri Jul 20 22:14:18 2012: Starting jack server...
Fri Jul 20 22:14:18 2012: JACK server starting in realtime mode with priority 10
Fri Jul 20 22:14:18 2012: [1m[31mERROR: Cannot lock down 82246176 byte memory area (Cannot allocate memory)[0m
Fri Jul 20 22:14:18 2012: control device hw:0
Fri Jul 20 22:14:18 2012: control device hw:0
Fri Jul 20 22:14:18 2012: [1m[31mERROR: Failed to acquire device name : Audio0 error : Cannot allocate memory[0m
Fri Jul 20 22:14:18 2012: [1m[31mERROR: Audio device hw:0 cannot be acquired...[0m
Fri Jul 20 22:14:18 2012: [1m[31mERROR: Cannot initialize driver[0m
Fri Jul 20 22:14:18 2012: [1m[31mERROR: JackServer::Open() failed with -1[0m
Fri Jul 20 22:14:18 2012: [1m[31mERROR: Failed to open server[0m
Fri Jul 20 22:14:19 2012: Saving settings to "/home/jan/.config/jack/conf.xml" ...
22:14:24.418 Cannot connect to JACK server as client - connection failed. See message dialog for details.
Cannot connect to server socket err = File or directory not found
Cannot connect to server socket
jack server is not running or cannot be started

(有几条信息是德语的,我尽力翻译了)

肯定不会运行pulseaudio进程。

我将64位Ubuntu 12.04与NVIDIA声卡一起使用。

Answers:


15

好的,知道了:我必须将自己添加到群组中audio

usermod -a -G audio theusername

组成员资格仅在登录时更新,因此您需要注销然后再次登录(或仅重新启动)


2
即使在音频组中,插孔也无法分配内存。
2012年

3
我这样做无济于事。必须注销并再次登录。希望可以为某人节省5分钟。
Underskor

@btilford您在使用Docker还是其他容器?
乔纳森

@乔纳森·我正在尝试使用Docker-它只是行不通:(您在Docker内部运行了吗?
Angad

就我而言,登出还不够。重新启动有帮助。
PetroCliff

1

快速版本:这是我添加到/etc/security/limits.conf中以修复内存锁定问题的内容;@符号表示设置是针对组而不是用户的:

 user        soft      rtprio      90
 user        soft      memlock      unlimited

 @audio      hard      rtprio      90
 @audio      hard      memlock      unlimited

 @video      hard      rtprio      90
 @video      hard      memlock      unlimited

有一种简单的方法可以解决 “无法锁定82246176字节的内存区域” 问题。通常,内存锁显然很小。您可以自己检查一下,ulimit -l或者找点乐子ulimit -a。或最多的信息,如果您不喜欢玩的话。

您想要配置系统以允许您的用户和相关组使用无限的内存。

设置在/etc/security/limits.conf;中。该文件本身不会执行任何操作,但会说明您的选择。ulimit -l从上面按照我的示例进行操作后,如果没有返回“ unlimited”,则说明文档中的设置不正确。

回复:人们对Docker(或快照式或任何类型的虚拟化)的疑问,您可能没有足够的可用内存,或者配置文件可能不可编辑。否则可能会起作用。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.