all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Help setting up ardour
@ 2019-08-30 21:11 Jesse Gibbons
  2019-08-31 12:17 ` Ricardo Wurmus
  0 siblings, 1 reply; 5+ messages in thread
From: Jesse Gibbons @ 2019-08-30 21:11 UTC (permalink / raw)
  To: help-guix mailing list

When I try to setup an ardour project with 'jack" in my profile, I get
the following error:
connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No
such file or directory)

I did a bit of research and found out I need to use qjackctl to
configure jack. When I try to connect to jack using qjackctl I get the
following log:
15:02:50.599 Statistics reset.
15:02:50.601 ALSA connection change.
connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No
such file or directory)
attempt to connect to server failed
15:02:50.617 ALSA connection graph change.
15:02:52.960 JACK is starting...
15:02:52.960 /home/jesse/.guix-profile/bin/jackd -dalsa -dhw:0 -r48000
-p1024 -n2
connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No
such file or directory)
attempt to connect to server failed
15:02:52.963 JACK was started with PID=15869.
jackd 0.125.0
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben
Hohn and others.
jackd 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 is running in realtime mode, but you are not allowed to use
realtime scheduling.
grep: /etc/security/limits.conf: No such file or directory
Please check your /etc/security/limits.conf for the following line
and correct/add it if necessary:
  @audio          -       rtprio          99
After applying these changes, please re-login in order for them to take
effect.
You don't appear to have a sane system configuration. It is very likely
that you
encounter xruns. Please apply all the above mentioned changes and start
jack again!
15:02:52.968 JACK was stopped
15:02:55.030 Could not connect to JACK server as client. - Overall
operation failed. - Unable to connect to server. Please check the
messages window for more info.
connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No
such file or directory)
attempt to connect to server failed


Since jack and qjackctl try to use something in /dev with jack I think
I would need someting in my system definition. What do I need to add to
my configuration? If there is no service available to help with this,
what would the service do?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Help setting up ardour
  2019-08-30 21:11 Help setting up ardour Jesse Gibbons
@ 2019-08-31 12:17 ` Ricardo Wurmus
  2019-08-31 15:35   ` Jesse Gibbons
  0 siblings, 1 reply; 5+ messages in thread
From: Ricardo Wurmus @ 2019-08-31 12:17 UTC (permalink / raw)
  To: Jesse Gibbons; +Cc: help-guix


Hi Jesse,

> under certain conditions; see the file COPYING for details
> JACK is running in realtime mode, but you are not allowed to use
> realtime scheduling.
> grep: /etc/security/limits.conf: No such file or directory
> Please check your /etc/security/limits.conf for the following line
> and correct/add it if necessary:
>   @audio          -       rtprio          99

Why doesn’t /etc/security/limits.conf exist?  Have you reconfigured your
system with the limits service that is suggested in the manual?

-- 
Ricardo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Help setting up ardour
  2019-08-31 12:17 ` Ricardo Wurmus
@ 2019-08-31 15:35   ` Jesse Gibbons
  2019-09-09  9:10     ` Ricardo Wurmus
  0 siblings, 1 reply; 5+ messages in thread
From: Jesse Gibbons @ 2019-08-31 15:35 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

On Sat, 2019-08-31 at 14:17 +0200, Ricardo Wurmus wrote:
> Hi Jesse,
> 
> > under certain conditions; see the file COPYING for details
> > JACK is running in realtime mode, but you are not allowed to use
> > realtime scheduling.
> > grep: /etc/security/limits.conf: No such file or directory
> > Please check your /etc/security/limits.conf for the following line
> > and correct/add it if necessary:
> >   @audio          -       rtprio          99
> 
> Why doesn’t /etc/security/limits.conf exist?  Have you reconfigured
> your
> system with the limits service that is suggested in the manual?
> 
I added the pam-limits-service, reconfigured, and restarted but the
issue persists. 

In my configuration (chopping out a lot to save space)

users:
            (user-account
               (name "jesse")
...
               (supplementary-groups '("wheel" "netdev"
                                       "audio" "video"
 				       "kvm"))
               (home-directory "/home/jesse")
...

packages:
		  (specification->package "jack")

services:
          (pam-limits-service
           (list
	    (pam-limits-entry "@audio" 'both 'rtprio 99)))


----------------------------------------------

My /etc/security/limits.conf:
@audio	-	rtprio	99

----------------------------------------------

When I try to make an ardour project:

connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No
such file or directory)
attempt to connect to server failed
JACK command line will be: /gnu/store/p1x76ixjd590ww3zpqf710i3xwsdpfmx-
profile/bin/jackd -t 200 -p 2048 -R -T -d alsa -n 2 -r 44100 -p 1024 -d
hw:PCH,0 -X raw
connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No
such file or directory)
jackd 0.125.0
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben
Hohn and others.
jackd 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 is running in realtime mode, but you are not allowed to use
realtime scheduling.
Please check your /etc/security/limits.conf for the following line
and correct/add it if necessary:

  @audio          -       rtprio          99

After applying these changes, please re-login in order for them to take
effect.

You don't appear to have a sane system configuration. It is very likely
that you
encounter xruns. Please apply all the above mentioned changes and start
jack again!
connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No
such file or directory)
connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No
such file or directory)
connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No
such file or directory)
connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No
such file or directory)
connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No
such file or directory)
attempt to connect to server failed
connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No
such file or directory)
attempt to connect to server failed
Butler drops pool trash
Here are the errors associated with this failed session:

Errors/Messages:
INFO: Loading 88 MIDI patches from
/gnu/store/m96ivdbcmhhw0f6dmdq374g9qg8crhmy-ardour-
5.12/share/ardour5/patchfiles

----------------------------------------------

when I try to connect to jack with qjackctl:

09:29:03.002 /home/jesse/.guix-profile/bin/jackd -dalsa -dhw:0 -r48000
-p1024 -n2
connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No
such file or directory)
attempt to connect to server failed
jackd 0.125.0
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben
Hohn and others.
jackd 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 is running in realtime mode, but you are not allowed to use
realtime scheduling.
09:29:03.005 JACK was started with PID=2454.
Please check your /etc/security/limits.conf for the following line
and correct/add it if necessary:
  @audio          -       rtprio          99
After applying these changes, please re-login in order for them to take
effect.
You don't appear to have a sane system configuration. It is very likely
that you
encounter xruns. Please apply all the above mentioned changes and start
jack again!
09:29:03.009 JACK was stopped
09:29:05.018 Could not connect to JACK server as client. - Overall
operation failed. - Unable to connect to server. Please check the
messages window for more info.
connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No
such file or directory)
attempt to connect to server failed

----------------------------------------------

Any help is appreciated.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Help setting up ardour
  2019-08-31 15:35   ` Jesse Gibbons
@ 2019-09-09  9:10     ` Ricardo Wurmus
  2019-09-10  4:45       ` Jesse Gibbons
  0 siblings, 1 reply; 5+ messages in thread
From: Ricardo Wurmus @ 2019-09-09  9:10 UTC (permalink / raw)
  To: Jesse Gibbons; +Cc: help-guix


Jesse Gibbons <jgibbons2357@gmail.com> writes:

> On Sat, 2019-08-31 at 14:17 +0200, Ricardo Wurmus wrote:
>> Hi Jesse,
>> 
>> > under certain conditions; see the file COPYING for details
>> > JACK is running in realtime mode, but you are not allowed to use
>> > realtime scheduling.
>> > grep: /etc/security/limits.conf: No such file or directory
>> > Please check your /etc/security/limits.conf for the following line
>> > and correct/add it if necessary:
>> >   @audio          -       rtprio          99
>> 
>> Why doesn’t /etc/security/limits.conf exist?  Have you reconfigured
>> your
>> system with the limits service that is suggested in the manual?
>> 
> I added the pam-limits-service, reconfigured, and restarted but the
> issue persists. 

This is very strange and I can’t reproduce the problem :-/

Your configuration looks okay.

-- 
Ricardo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Help setting up ardour
  2019-09-09  9:10     ` Ricardo Wurmus
@ 2019-09-10  4:45       ` Jesse Gibbons
  0 siblings, 0 replies; 5+ messages in thread
From: Jesse Gibbons @ 2019-09-10  4:45 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 1169 bytes --]

On Mon, 2019-09-09 at 11:10 +0200, Ricardo Wurmus wrote:
> Jesse Gibbons <jgibbons2357@gmail.com> writes:
> 
> > On Sat, 2019-08-31 at 14:17 +0200, Ricardo Wurmus wrote:
> > > Hi Jesse,
> > > 
> > > > under certain conditions; see the file COPYING for details
> > > > JACK is running in realtime mode, but you are not allowed to
> > > > use
> > > > realtime scheduling.
> > > > grep: /etc/security/limits.conf: No such file or directory
> > > > Please check your /etc/security/limits.conf for the following
> > > > line
> > > > and correct/add it if necessary:
> > > >   @audio          -       rtprio          99
> > > 
> > > Why doesn’t /etc/security/limits.conf ekxist?  Have you
> > > reconfigured
> > > your
> > > system with the limits service that is suggested in the manual?
> > > 
> > 
> > I added the pam-limits-service, reconfigured, and restarted but the
> > issue persists. 
> 
> This is very strange and I can’t reproduce the problem :-/
> 
> Your configuration looks okay.
> 

The attached system definition replicates this behavior in a VM. jackd
works (jack -R -dalsa, or started by qjackctl) when I am root, but not
when I am an unprivileged user.

[-- Attachment #2: jack.scm --]
[-- Type: text/x-scheme, Size: 1317 bytes --]

(use-modules (gnu)
	     (gnu services desktop)
	     (gnu services sound))
(operating-system
 (bootloader
  (bootloader-configuration
  (bootloader grub-bootloader)))
  (host-name "jack-os")
 (file-systems (cons
		(file-system
		 (type "ext4")
		 (mount-point "/")
		 (device (file-system-label "my-root")))
		%base-file-systems))
 (timezone "America/Boise")
 (users (cons (user-account
	       (name "user")
	       (comment "not root")
	       (group "users")
	       (password (crypt "" "nr"))
	       (supplementary-groups '("wheel" "netdev"
				       "audio" "video")))
	      %base-user-accounts))
 (packages (cons*
	    (specification->package "ratpoison")
	    (specification->package "xterm")
	    (specification->package "icecat")
	    (specification->package "nss-certs")
	    (specification->package "qjackctl")
	    (specification->package "jack")
	    (specification->package "alsa-plugins")
	    %base-packages))
 (services
  (cons*
       (pam-limits-service
           (list
            (pam-limits-entry "@audio" 'both 'rtprio 99)
            (pam-limits-entry "@audio" 'both 'memlock 'unlimited)
            (pam-limits-entry "@realtime" 'both 'rtprio 99)
            (pam-limits-entry "@realtime" 'both 'memlock 'unlimited)))
   %desktop-services))
 (name-service-switch %mdns-host-lookup-nss))

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-09-10  4:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-30 21:11 Help setting up ardour Jesse Gibbons
2019-08-31 12:17 ` Ricardo Wurmus
2019-08-31 15:35   ` Jesse Gibbons
2019-09-09  9:10     ` Ricardo Wurmus
2019-09-10  4:45       ` Jesse Gibbons

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.