View Single Post
Old 08-08-2018, 11:07 AM   #10
xdudex
Human being with feelings
 
Join Date: Jun 2010
Posts: 28
Default

Thanks, KHZ. I read up more on how audio works in Linux and even watched a couple Youtube videos on it.

I'm still having issues with this though. If I Stop JACK, then open Reaper, it will recognize my audio device. If I attempt to start JACK back up once Reaper is loaded, it fails (as shown in the pasted log below). If Reaper is not open, JACK will start fine. But, then when I go to open Reaper, I'll still get the error - ALSA: error opening input device.

I ensured a2jmidid is installed, added the "sleep 5 && a2jmidid -e &" script to JACK

Wed Aug 8 13:58:21 2018: Starting jack server...
Wed Aug 8 13:58:21 2018: JACK server starting in realtime mode with priority 10
Wed Aug 8 13:58:21 2018: self-connect-mode is "Don't restrict self connect requests"
Wed Aug 8 13:58:21 2018: Acquired audio card Audio1
Wed Aug 8 13:58:21 2018: creating alsa driver ... hw:USB|hw:USB|128|2|48000|0|0|nomon|swmeter|-|32bit
Wed Aug 8 13:58:21 2018: Using ALSA driver USB-Audio running on card 1 - Focusrite Scarlett 2i2 USB at usb-0000:00:14.0-11, high speed
Wed Aug 8 13:58:21 2018: ERROR:
ATTENTION: The playback device "hw:USB" is already in use. Please stop the application using it and run JACK again
Wed Aug 8 13:58:21 2018: Released audio card Audio1
Wed Aug 8 13:58:21 2018: ERROR: Cannot initialize driver
Wed Aug 8 13:58:21 2018: ERROR: JackServer::Open failed with -1
Wed Aug 8 13:58:21 2018: ERROR: Failed to open server
Wed Aug 8 13:58:22 2018: Saving settings to "/home/daniel/.config/jack/conf.xml" ...
13:58:23.484 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

Also, I did attempt 4duhwinnn's suggestion and when running the a2jmidid -j default command I get this:

daniel@Thoth:~$ sudo a2jmidid -j default
[sudo] password for daniel:
JACK MIDI <-> ALSA sequencer MIDI bridge, version 8 (7383d268c4bfe85df9f10df6351677659211d1ca) built on Wed Dec 31 19:00:00 1969
Copyright 2006,2007 Dmitry S. Baikov
Copyright 2007,2008,2009,2011,2012 Nedko Arnaudov

Bridge starting...
Using JACK server 'default'
Hardware ports will not be exported.
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ERROR: a2j_jack_client_create: Cannot create jack client
ERROR: a2j_start: a2j_new() failed.

[1]+ Stopped sudo sleep 5 && a2jmidid =e
xdudex is offline   Reply With Quote