<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
aha. I was simply (mistakenly) under the impression that one had to
have super user priv to get the rt priority. I didn't know that
running programs as root was so verboten.<br>
<br>
I'm not getting dropouts, I simply wanted to have all the goodies if
need be.<br>
<br>
<div class="moz-cite-prefix">On 1/9/2018 9:49 AM, IOhannes m
zmoelnig wrote:<br>
</div>
<blockquote type="cite"
cite="mid:c0a85497-0f47-21cf-c01d-dfba98646425@iem.at">
<pre class="moz-quote-pre" wrap="">On 2018-01-09 06:37, David Medine wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">This may have already been addressed and in my tendency to ignore pd
list traffic I missed the explanation, but here is what is going on.
I am running a fairly fresh install of Fedora 26. I downloaded the
source to Pd, installed alsa-lib-devel and tk (for wish), then built pd
using makefile.gnu.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
i'm not sure whether makefile.gnu is actually still used by anybody
(including miller). the suggested way is to use autotools.
$ ./autgen.sh && ./configure && make
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Everything works when I start pd without super user
privileges, except priority 92 scheduling is denied me.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
add your user to the "audio" group and add the following to a file like
/etc/security/limits.d/audio.conf
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">@audio - rtprio 95
@audio - memlock unlimited
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">When I start pd
using sudo,
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
oh my, thou shalt never run random applications as root.
moreso, thou shalt not run GUI applications as root.
btw, why do you think that you *must* have realtime priorities? do
youget dropouts when running without?
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">pd doesn't start and I get the following errors on the
command prompt:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">sudo ./pd
</pre>
</blockquote>
</blockquote>
<pre class="moz-quote-pre" wrap="">No protocol specified
No protocol specified
application-specific initialization failed: couldn't connect to display
":0.0"
These messages are not particularly helpful for me. Anybody know what is
wrong?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Pd you cannot connect to the X server (the display server).
does it work for other applications?
the standard test used to be xclock (`sudo xclock`), but i'm not sure
whether it is installed on your system.
searching the web, i found a few suggestions how to solve the problem
(not fedora specific):
<a class="moz-txt-link-freetext" href="https://askubuntu.com/questions/175611/">https://askubuntu.com/questions/175611/</a>
<a class="moz-txt-link-freetext" href="https://forums.opensuse.org/showthread.php/405624-sudo-doesnt-open-X-programs">https://forums.opensuse.org/showthread.php/405624-sudo-doesnt-open-X-programs</a>
but to re-iterate: you should never run Pd as root. instead, allow your
user to request realtime priviliges.
fgbmadr
IOhannes
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
</blockquote>
<br>
</body>
</html>