<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<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);">
<div><font face="Calibri,Helvetica,sans-serif" color="black" size="3"><span style="font-size:12pt;">I have this doubt on invoking the jack server. When I built the example app and executed on command line without starting the jack server separately using qjackctl,
 I could see the example app started invoking the jack server and prints the default buffer size, period etc. But if I start first the qjackctl by setting the buffer, period etc, then the app shows those settings.  How does the app selects the jack server settings.
 what is the correct way of running client app ?</span></font></div>
<div><font face="Calibri,Helvetica,sans-serif" color="black" size="3"><span style="font-size:12pt;"><br>
</span></font></div>
<br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Benny Alexandar <ben.alex@outlook.com><br>
<b>Sent:</b> Saturday, January 13, 2018 8:28 PM<br>
<b>To:</b> Len Ovens<br>
<b>Cc:</b> linux-audio-dev@lists.linuxaudio.org<br>
<b>Subject:</b> Re: [LAD] Jackd & Real Time Kernel</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div 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 tabindex="-1" style="display:inline-block; width:98%">
</div>
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><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="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_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>
</div>
</body>
</html>