<div dir="ltr"><div><div>Lots of good info, thanks.<br></div>I will certainly abandon the rc.local approach and try with autostart. <br></div><div>The pc I am refering to above is a jackd client, so the "system* hooks connect to the jack master, that is why I need to enable the local soundcards (on the jack client) through alsa_* . I shall change that to zita_* as well.<br><br></div><div>yes ubuntu studio uses xfce4 . I shall try KXStudio as well :)<br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 17, 2015 at 2:38 PM, Adrian Knoth <span dir="ltr"><<a href="mailto:adi@drcomp.erfurt.thur.de" target="_blank">adi@drcomp.erfurt.thur.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 04/17/15 13:16, Athanasios Silis wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hi all, continuing from a previous email where I try to start up<br>
several audio applications from a custom init script , which is run<br>
from rc.local,<br>
</blockquote>
<br></span>
I originally wanted to point out that the use of rc.local for this stuff<br>
is discouraged, but you've just discovered this yourself now.<br>
<br>
You should really consider your approach and come up with something<br>
else.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
what could be conflicting here?<br>
</blockquote>
<br></span>
Everything. Your login manager is probably using the card.<br>
<br>
The whole concept of integrating desktop distros with rc.local for audio<br>
is not going to fly, because the distros set device permissions based on<br>
the logged in user.<br>
<br>
There might also be a system-wide pulseaudio daemon running, probably as<br>
root. You might get away with pasuspender -- alsa_out, but I wouldn't be<br>
surprised if not, unless you wrap your su call in pasuspender.<br>
<br>
Also note that you shouldn't be using alsa_in/out at all, use zita-a2j<br>
and zita-j2a or use jackd-0.124.x where you can simply specify<br>
additional cards:<br>
<br>
   $ jackd -A Intel -d alsa -d hw:DSP24,0<br>
<br>
I don't know what you're trying to achieve, but I see mostly two<br>
options:<br>
<br>
  (a) if you don't need a desktop, don't use one.<br>
  (b) if you do need a desktop, use their autostart features<br>
<br>
For (b): You can have auto-login for a certain user. You can have<br>
autostart for this user. Just run your script from the usual XDG<br>
directories (or however your distro implements autostart).<br>
<br>
Also consider switching to KXstudio - a lot of work went into it to make<br>
things work. An integration effort other distros never bothered to do.<br>
<br>
<br>
Cheers<br>
</blockquote></div><br></div>