<div dir="ltr"><div><div><div><div><div>Hi Len,<br></div>i am using ubuntu studio.<br></div>the pc i refer to is used for audio processing and routing primarily - it is a jack client server.<br></div>so without any user intervention apart from powering it ON , it gets audio through ethernet from the jack master, processes it and sends it out through its local soundcards.<br></div>on occasions I want to log on and use this computer for local audio capturing and / or playback. so jack would ideally run independent of a user session. Having said that, I usually don't need to log out and back in, I tend to lock the system as I am a single user. no need to deal with multiple user case now.<br><br></div><div>I use a locally compiled jack2 version without dbus support because I had a version mismatch between windows and linux jack.<br>some audio applications (namely calf) need an X server so in my custom startup scripts I start a vnc session as well.<br><br>The problem as I understand it is that after log on, pam.d elevates logged in user's privileges to access hardware. The main problem is that alsa_(in|out) is can not grab the local soundcards... and I do not know what could be the conflict. people over at jack-devel mailing list said it could bea number of things like pulseaudio or lightdm....<br><br></div><div>there seems  to be a conflict or ideologies because some one suggests I make a system init script and another says jack is not designed to run as a system service.<br><br></div><div>Personally, I think that jack is indeed not designed as a system service, but I could be wrong. what is more a jack run as root, would never be available to applications that I would start as a user. is that so?<br></div><div><br></div><div>I think I replied to everything :)<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 18, 2015 at 6:01 PM, Len Ovens <span dir="ltr"><<a href="mailto:len@ovenwerks.net" target="_blank">len@ovenwerks.net</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 Sat, 18 Apr 2015, Athanasios Silis wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Len,<br>
unfortunately the .desktop file is not good for me.<br>
it is only run after I have logged in, whereas I want my script to be started as<br>
me, but before I log in.<br>
Is there a way to achieve that, without resorting to autologin ?<br>
</blockquote>
<br></span>
OK, perhaps a full description of what you are trying to acheive would help. little bits of info I think I have put together include:<br>
 - You will be using a DE at some point.<br>
 - You want to be able to access jack after logging in as well as before<br>
 - jack is still to be used only by one user<br>
 - jack2 is prefered?<br>
 - what would jack be doing while logged out I don't know<br>
 - should jack continue to run after logout?<br>
        (that is do you normally logout and in)<br>
 - Is most of the running done by script anyway and loggin in is used mostly for other things besides audio? Can all audio stuff be done by command line?<br>
 - will jack be used as a device for pulseaudio...<br>
 - will pulse run at all? if so will it ever touch the same device as jack has?<br>
 - is your machine using sysv init, systemd, upstart? (upstart is going away BTW, leaving one to wonder about the future of MIR)<br>
<br>
As Jeremy has already suggested have you tried:<br>
<br>
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket<br>
jack_control start<br>
<br>
in the script run by your su user?<br>
<br>
--<br>
Len Ovens<br>
<a href="http://www.ovenwerks.net" target="_blank">www.ovenwerks.net</a><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
Linux-audio-user mailing list<br>
<a href="mailto:Linux-audio-user@lists.linuxaudio.org" target="_blank">Linux-audio-user@lists.linuxaudio.org</a><br>
<a href="http://lists.linuxaudio.org/listinfo/linux-audio-user" target="_blank">http://lists.linuxaudio.org/listinfo/linux-audio-user</a><br>
</div></div></blockquote></div><br></div>