Thanks Wayne,

I checked the process list doing "ps -aux", and it looks like everything is 
running as root (caed, rdcatchd).  From there, I put in the command-line to 
start Jack into the place specified in your message, and it still does not seem 
to work .  I am wondering if I have a bad command line parameter for jackd or 
need to sort out user permissions as you stated.   

For some odd reason, it just does not seem to spawn the process and defaults to 
the ALSA card versus Jack.   However, if I start jackd as root with the same 
command from a terminal, all seems to work well.  However, if I start jackd as 
"rd" - the username that I specified in /etc/rd.conf - Rivendell does not see 
Jack at all (nor starts the ALSA card either).

With jackd started as "rd" on a separate command line:
30/01/2013 - 12:36:30.815 : cae exiting
30/01/2013 - 12:36:42.059 : JACK server started
30/01/2013 - 12:36:42.070 : unable to communicate with JACK server
30/01/2013 - 12:36:42.070 : JACK general failure
30/01/2013 - 12:36:42.070 : no connection to JACK server
30/01/2013 - 12:36:42.077 : Found TwoLAME encoder library, MPEG L2 encoding 
supported
30/01/2013 - 12:36:42.078 : Found MAD decoder library, MPEG L2 decoding 
supported
30/01/2013 - 12:36:42.128 : using realtime scheduling, priority=8
30/01/2013 - 12:36:42.128 : cae started
(Shows zero audio resources available in rdadmin)

With jackd started as "root" on a separate command line:
30/01/2013 - 12:38:27.497 : JACK server started
30/01/2013 - 12:38:27.501 : connected to JACK server
30/01/2013 - 12:38:27.513 : Found TwoLAME encoder library, MPEG L2 encoding 
supported
30/01/2013 - 12:38:27.513 : Found MAD decoder library, MPEG L2 decoding 
supported
30/01/2013 - 12:38:27.563 : Unable to set realtime scheduling: Invalid argument
30/01/2013 - 12:38:27.563 : cae started
(Shows jack in audio resources, rdairplay audio plays fine)


With jackd not started at all (just relying on /etc/init.d/rivendell to start 
Jack with its process):
30/01/2013 - 12:41:14.965 : cae exiting
30/01/2013 - 12:41:34.183 : Starting ALSA Play Device rd0:
30/01/2013 - 12:41:34.184 :   Format = 32 bit little-endian
30/01/2013 - 12:41:34.184 :   SampleRate = 44100
30/01/2013 - 12:41:34.184 :   Aggregate Channels = 10
30/01/2013 - 12:41:34.184 :   Periods = 4
30/01/2013 - 12:41:34.184 :   BufferSize = 4096 frames
30/01/2013 - 12:41:34.184 :   Device started successfully
30/01/2013 - 12:41:34.184 : Starting ALSA Capture Device rd0:
30/01/2013 - 12:41:34.184 :   Format = 32 bit little-endian
30/01/2013 - 12:41:34.184 :   SampleRate = 44100
30/01/2013 - 12:41:34.184 :   Aggregate Channels = 12
30/01/2013 - 12:41:34.184 :   Periods = 4
30/01/2013 - 12:41:34.184 :   BufferSize = 4096 frames
30/01/2013 - 12:41:34.185 :   Device started successfully
30/01/2013 - 12:41:34.187 : JACK server started
30/01/2013 - 12:41:34.197 : unable to communicate with JACK server
30/01/2013 - 12:41:34.197 : JACK general failure
30/01/2013 - 12:41:34.197 : no connection to JACK server
30/01/2013 - 12:41:34.203 : Found TwoLAME encoder library, MPEG L2 encoding 
supported
30/01/2013 - 12:41:34.204 : Found MAD decoder library, MPEG L2 decoding 
supported
30/01/2013 - 12:41:34.282 : using realtime scheduling, priority=8
30/01/2013 - 12:41:34.282 : ****** ALSA Capture Xrun - Card: 0 ******
30/01/2013 - 12:41:34.282 : cae started
(Picks up ALSA card.  Audio plays through ALSA).



Please forgive me is these are trivial questions - I am still getting familiar 
with Jack. If anyone can share a screenshot of their configuration - that would 
be much appreciated.   Is there a way to force Rivendell to run as "rd"?

Many thanks.
Brian


On 2013-01-30, at 10:05 AM, Wayne Merricks wrote:

> Rivendell will spawn jack on its own if it is set to do so.
> 
> You're better off doing this and then doing something trivial like 
> adding rdairplay to the start up applications (Gnome2 not sure where 
> others put it).
> 
> The settings are in rdadmin --> edit host --> the host you want to edit 
> --> jack settings
> 
> Be aware that the Rivendell daemons and JACK need to be run as the same 
> user.  I've also had problems with JACK running as root. Hopefully by 
> making Riv spawn JACK it will sort things out for you.
> 
> Regards,
> 
> Wayne
> 
> On 30/01/13 02:21, Brian McGlynn wrote:
>> Hello,
>> 
>> Per my previous thread, I'm going to go down the Jack route to get satellite 
>> audio passthrough to work.  With that said, I've been running into some 
>> roadblocks getting Jack to work and wanted to ask for some help.
>> 
>> After getting Jack to work with qjackctl and extracting the contents of 
>> /root/.jackrc into the $JACK_CMD environment variable, I get crackling audio 
>> in Rivendell.  I also tried to add that command to the "RDAdmin->Manage 
>> Hosts->Jack Settings" area and can't get Rivendell to find Jack (no pun 
>> intended).
>> 
>> However, when I start qjackctl, then "Start" and press the play button - all 
>> seems to work.
>> 
>> Here is my command line:
>> /usr/local/bin/jackd -R -dalsa -r44100 -p1024 -n2 -D -Chw:0 -Phw:0
>> 
>> Ideally, I'd like to have Jack start up with Rivendell when the machine 
>> boots.    If anyone can share some tips - that would be much appreciated.
>> 
>> Brian
>> 
>> _______________________________________________
>> Rivendell-dev mailing list
>> [email protected]
>> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
> 
> _______________________________________________
> Rivendell-dev mailing list
> [email protected]
> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev

_______________________________________________
Rivendell-dev mailing list
[email protected]
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev

Reply via email to