unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Jack audio server
@ 2019-08-11  2:39 Louis Pearson
  2019-08-13 10:23 ` Ricardo Wurmus
  0 siblings, 1 reply; 4+ messages in thread
From: Louis Pearson @ 2019-08-11  2:39 UTC (permalink / raw)
  To: help-guix

I cannot seem to get the jack audio server to run on my guix setup. At
this point, every time I try to start jack with QJackCtl, I get the
message at the bottom of this email. It looks like it's about realtime
permissions, but I have added myself to the realtime group. Check my
config at the bottom of this email for details.

Does anyone have a working jack configuration that I could reference?

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

20:30:08.841 Statistics reset.
20:30:08.843 ALSA connection change.
20:30:08.883 D-BUS: Service is available (org.jackaudio.service aka jackdbus).
20:30:08.996 D-BUS: JACK server is starting...
20:30:09.002 ALSA connection graph change.
20:30:09.003 D-BUS: JACK server was started (org.jackaudio.service aka jackdbus).
Sat Aug 10 20:30:08 2019: Starting jack server...
Sat Aug 10 20:30:08 2019: JACK server starting in realtime mode with priority 10
Sat Aug 10 20:30:08 2019: self-connect-mode is "Don't restrict self connect requests"
Sat Aug 10 20:30:08 2019: ERROR: Cannot lock down 82280346 byte memory area (Cannot allocate memory)
Sat Aug 10 20:30:08 2019: Acquired audio card Audio0
Sat Aug 10 20:30:08 2019: creating alsa driver ... hw:0|hw:0|128|2|48000|0|0|nomon|swmeter|-|32bit
Sat Aug 10 20:30:08 2019: configuring for 48000Hz, period = 128 frames (2.7 ms), buffer = 2 periods
Sat Aug 10 20:30:08 2019: ALSA: final selected sample format for capture: 32bit integer little-endian
Sat Aug 10 20:30:08 2019: ALSA: use 2 periods for capture
Sat Aug 10 20:30:08 2019: ALSA: final selected sample format for playback: 32bit integer little-endian
Sat Aug 10 20:30:08 2019: ALSA: use 2 periods for playback
Sat Aug 10 20:30:08 2019: ERROR: Cannot use real-time scheduling (RR/10)(1: Operation not permitted)
Sat Aug 10 20:30:08 2019: ERROR: AcquireSelfRealTime error
Sat Aug 10 20:30:08 2019: graph reorder: new port 'system:capture_1'
Sat Aug 10 20:30:08 2019: New client 'system' with PID 0
Sat Aug 10 20:30:08 2019: graph reorder: new port 'system:capture_2'
Sat Aug 10 20:30:08 2019: graph reorder: new port 'system:playback_1'
Sat Aug 10 20:30:08 2019: graph reorder: new port 'system:playback_2'
Sat Aug 10 20:30:08 2019: graph reorder: new port 'system:playback_3'
Sat Aug 10 20:30:08 2019: graph reorder: new port 'system:playback_4'
20:30:11.208 Could not connect to JACK server as client. - Overall operation failed. Please check the messages window for more info.
20:30:11.241 D-BUS: JACK server is stopping...
20:30:11.243 D-BUS: JACK server was stopped (org.jackaudio.service aka jackdbus).
Sat Aug 10 20:30:10 2019: Saving settings to "/home/desttinghim/.config/jack/conf.xml" ...
Sat Aug 10 20:30:11 2019: Stopping jack server...
Sat Aug 10 20:30:11 2019: Client 'system' with PID 0 is out
Sat Aug 10 20:30:11 2019: Released audio card Audio0

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

;; This is an operating system configuration generated
;; by the graphical installer.

(use-modules (gnu)
	     (gnu packages)
	     (gnu system pam))
(use-service-modules desktop 
		     networking 
		     ssh 
		     xorg 
		     pm
		     sysctl
		     audio
		     )

(operating-system
  ;; ... removed unnescessary info
  (groups (cons* (user-group (name "realtime"))
		 %base-groups))
  (users (cons* (user-account
                  (name "desttinghim")
                  (comment "Louis Pearson")
                  (group "users")
                  (home-directory "/home/desttinghim")
                  (supplementary-groups
                    '("wheel" "netdev" "audio" "video" "realtime")))
                %base-user-accounts))
  (packages
    (append
      (map specification->package 
	   '(
             ;; ...

	     "jack2"
	     "qjackctl"

	     ;; ...
	     ))
      %base-packages))
  (services
    (append
      (list (service xfce-desktop-service-type)
            (set-xorg-configuration
              (xorg-configuration
                (keyboard-layout keyboard-layout)))
	    ;; tlp is for power management
	    (service tlp-service-type)
	    (service sysctl-service-type
		     (sysctl-configuration
		       (settings '(("acpi_backlight" . "vendor")))))
	    (service mpd-service-type
		     (mpd-configuration
		       (user "desttinghim")
		       (port "6666")))
	    (pam-limits-service
	      (list
		(pam-limits-entry "@realtime" 'both 'rtprio 99)
		(pam-limits-entry "@realtime" 'both 'memlock 'unlimited)))
	    )
      %desktop-services))
)

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

* Re: Jack audio server
  2019-08-11  2:39 Louis Pearson
@ 2019-08-13 10:23 ` Ricardo Wurmus
  0 siblings, 0 replies; 4+ messages in thread
From: Ricardo Wurmus @ 2019-08-13 10:23 UTC (permalink / raw)
  To: Louis Pearson; +Cc: help-guix


Hi Louis,

> I cannot seem to get the jack audio server to run on my guix setup. At
> this point, every time I try to start jack with QJackCtl, I get the
> message at the bottom of this email. It looks like it's about realtime
> permissions, but I have added myself to the realtime group. Check my
> config at the bottom of this email for details.
>
> Does anyone have a working jack configuration that I could reference?

Your configuration looks fine.  (Personally, I wouldn’t install JACK
into the global profile, but that’s just me.)

I only use JACK 1, not the D-Bus activated JACK 2; I don’t know if they
differ in regards to memory management.  Have you tried JACK 1?

--
Ricardo

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

* Re: Jack audio server
@ 2019-08-13 10:53 Louis Pearson
  2019-08-13 13:27 ` Ricardo Wurmus
  0 siblings, 1 reply; 4+ messages in thread
From: Louis Pearson @ 2019-08-13 10:53 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

I have tried both. Here's the message I get when running jackd:

---

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!

---

This is with the same configuration file.

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

* Re: Jack audio server
  2019-08-13 10:53 Jack audio server Louis Pearson
@ 2019-08-13 13:27 ` Ricardo Wurmus
  0 siblings, 0 replies; 4+ messages in thread
From: Ricardo Wurmus @ 2019-08-13 13:27 UTC (permalink / raw)
  To: Louis Pearson; +Cc: help-guix


Louis Pearson <louispearson@librem.one> writes:

> I have tried both. Here's the message I get when running jackd:
[…]
> 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

Does your /etc/security/limits.conf file look correct?

Mine looks like this:

@realtime	-	rtprio	99
@realtime	-	memlock	unlimited

Is the user account starting jackd really a member of the realtime
group?

--
Ricardo

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

end of thread, other threads:[~2019-08-13 13:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-13 10:53 Jack audio server Louis Pearson
2019-08-13 13:27 ` Ricardo Wurmus
  -- strict thread matches above, loose matches on Subject: below --
2019-08-11  2:39 Louis Pearson
2019-08-13 10:23 ` Ricardo Wurmus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).