<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
Hi Len,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
<br>
</div>
<div>I'm using  jackdmp 1.9.12.  I checked the file <font size="2"><span style="font-size:11pt;">/etc/security/limits.d/audio.conf</span></font>, and is
<br>
</div>
<div>named as audio.conf.disabled. How to enable this ?</div>
<div><br>
</div>
<div>When I run my jack client standalone program, I could see the prints as follows,</div>
<div><br>
</div>
<div>------------------</div>
<div>
<div>jackdmp 1.9.12</div>
<br>
<div>JACK server starting in realtime mode with priority 10</div>
<div>self-connect-mode is "Don't restrict self connect requests"</div>
<div>Cannot lock down 82280346 byte memory area (Cannot allocate memory)</div>
<div>creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit</div>
<div>configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods</div>
<div>ALSA: final selected sample format for capture: 32bit integer little-endian</div>
<div>ALSA: use 2 periods for capture</div>
<div>ALSA: final selected sample format for playback: 32bit integer little-endian</div>
<div>ALSA: use 2 periods for playback</div>
<div>Cannot use real-time scheduling (RR/10)(1: Operation not permitted)</div>
<div>AcquireSelfRealTime error</div>
<div>Cannot lock down 82280346 byte memory area (Cannot allocate memory)</div>
<div>JACK server started</div>
<div>Cannot use real-time scheduling (RR/5)(1: Operation not permitted)</div>
<div>JackClient::AcquireSelfRealTime error<br>
</div>
-----------------------------------</div>
<div><br>
</div>
<div>-ben<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<hr style="display:inline-block;width:98%" tabindex="-1">
</div>
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Len Ovens <len@ovenwerks.net><br>
<b>Sent:</b> Friday, January 12, 2018 10:27 PM<br>
<b>To:</b> Benny Alexandar<br>
<b>Cc:</b> linux-audio-dev@lists.linuxaudio.org<br>
<b>Subject:</b> Re: [LAD] Jackd & Real Time Kernel</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">On Fri, 12 Jan 2018, Benny Alexandar wrote:<br>
<br>
> I just compiled simple_client.c and things starts to work.<br>
> My doubt is do I need to install linux real-time kerel update for JACK.<br>
<br>
It depends... personally, I use the lowlatency kernel with no problems <br>
using an ice1712 based PCI card audio interface. Your situation may <br>
differ.<br>
<br>
> How do I know if jack is running real time, is it by checking for xruns ?<br>
<br>
Jack runs in real time mode by default. If you are running jackd2 (version <br>
1.9*) then check ~/.log/jack/jackdbus.log<br>
<br>
for the line:<br>
Thu Dec 28 10:38:26 2017: JACK server starting in realtime mode with <br>
priority 10<br>
<br>
Otherwise the same line will appear in jackd terminal output when started.<br>
<br>
Do note that part of the jackd instalation process sometimes gets missed <br>
by some installers. There should be a file <br>
/etc/security/limits.d/audio.conf If this is missing or named as disabled, <br>
you may not be able to get jackd to start in realtime mode. The two lines <br>
of importance in that file are:<br>
@audio   -  rtprio     95<br>
@audio   -  memlock    unlimited<br>
  Depending on your distro the group may be other than audio. Whatever that <br>
group is, your user needs to be a part of it. Most audio distributions get <br>
this right already (even ubuntustudio), but non-audio distros generally <br>
need this to be fixed. After adding yourself to the audio (or whatever) <br>
group you will need to logout and back in before that will have any <br>
effect.<br>
<br>
--<br>
Len Ovens<br>
<a href="http://www.ovenwerks.net">www.ovenwerks.net</a><br>
<br>
</div>
</span></font></div>
</body>
</html>