LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Jack Control errors (https://www.linuxquestions.org/questions/linux-software-2/jack-control-errors-857251/)

nnjond 01-19-2011 07:13 AM

Jack Control errors
 
Hi,

Can anyone help me please?

Evidently I need to run Jack Control in combination with Qsynth to play my midi keyboard. That was ok for about a week or so, then Jack developed a problem. This was solved the first time by me unticking the Realtime box in Jack setup, but that has not worked this time.

Must I rely on Jack just to have my midi keyboard sound?

The errors mssges I recieve are:


Could not connect to JACK server as client.
- Overall operation failed.
- Unable to connect to server.
Please check the messages window for more info.

and;

12:45:12.427 Patchbay deactivated.
12:45:12.480 Statistics reset.
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
12:45:12.533 ALSA connection graph change.
12:45:12.971 ALSA connection change.
12:45:44.736 Startup script...
12:45:44.737 artsshell -q terminate
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
sh: artsshell: not found
12:45:45.142 Startup script terminated with exit status=32512.
12:45:45.142 JACK is starting...
12:45:45.142 /usr/bin/jackd -r -dalsa -dhw:0 -r44100 -p1024 -n2 -Xseq
12:45:45.153 JACK was started with PID=2008.
Cannot create thread 1 Operation not permitted
Cannot create thread 1 Operation not permitted
jackdmp 1.9.6
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2010 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in non-realtime mode
Cannot lock down memory area (Cannot allocate memory)
audio_reservation_init
Acquire audio card Audio0
creating alsa driver ... hw:0|hw:0|1024|2|44100|0|0|nomon|swmeter|-|32bit
Using ALSA driver USB-Audio running on card 0 - Alesis Q25 at usb-0000:00:02.0-3, full speed
ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
Cannot initialize driver
JackServer::Open() failed with -1
Failed to start server
12:45:45.364 JACK was stopped with exit status=255.
12:45:45.364 Post-shutdown script...
12:45:45.364 killall jackd
jackd: no process found
12:45:45.771 Post-shutdown script terminated with exit status=256.
12:45:47.294 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 socket
jack server is not running or cannot be started
12:45:55.100 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 socket
jack server is not running or cannot be started

GlennsPref 01-19-2011 05:16 PM

Hi, some how the devs have decided that if you want to do anything musical, you have to install all and sundry.

You only need jackd (qjackctl, the gui) if you want a sequencer.

That is midi operation and control of multiple devices.

I also find jack to be flaky and dependent on other system files I know nothing about.

Using a master keyboard midi controller to play synth soundfonts, you won't need realtime capabilities. midi runs at 1200Hz, you won't benefit unless you're trying to record and playback at once (monitoring in realtime).

Quote:

fluidsynth - Realtime, SoundFont-based synthesizer​ 
FluidSynth is a real-time software synthesizer based on the SoundFont 2 specifications. It is a "software synthesizer". FluidSynth can read MIDI events from the MIDI input device and render them to the audio device. It can also play MIDI files.
No mention of dependants here...
http://sourceforge.net/apps/trac/flu...GettingStarted

Regards Glenn

edit. (without jack,) does the $USER have permission to access the device, is it usb?
type lsusb to see the active devices.

nnjond 01-20-2011 05:05 PM

Thanks for your Help GlennsPref. I'm afraid I need more pedantic advice just to get my middi keyboard to sound like a piano!

I've installed fluidsynth and can open a gui, Qsynth (fluidsynth Qt) This has worked in more tempremental arangements with the Jack control app. But I dont know how to achieve my objective now.

d-GeForce6100PM-M2:~$ lsusb
Bus 002 Device 003: ID 05e3:1205 Genesys Logic, Inc. Afilias Optical Mouse H3003
Bus 002 Device 002: ID 13b2:0065
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 058f:6387 Alcor Micro Corp. Transcend JetFlash Flash Drive
Bus 001 Device 002: ID 041e:4083 Creative Technology, Ltd Live! Cam Socialize [VF0640]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
nnjond@nnjond-GeForce6100PM-M2:~$

GlennsPref 01-20-2011 05:53 PM

Well I don't have a Midi Keyboard as such, I just use this keyboard (PC).

Mind you I don't play with it much, just write the lines I need then move on to the next task.

Mostly just bass and drums.

If you must use jack, then open up the parameters a bit (increasing the latency time)

and yes, there's no point ticking the realtime option if you are not running a RT kernel.

Another approach is giving your music programs elevated nice levels and priorities.

/etc/set_rlimits
Code:

# Configuration file for set_rlimits.  Format is:
#
#  name  program  max_nice_priority  max_realtime_priority
# or
#  name  program  <key>=<value> ...
#
# name is expected to be a username, a groupname if preceeded by a @ sign,
# or ALL (which matches all users).  Negative priorities effectively
# disallow any setting of the respective priority for the matching entry.
# <key> can be rtprio, nice or memlock.
# Example entry:
#
#  mark  /usr/local/bin/jackd  -1  80
#
# Here, user mark can execute /usr/local/bin/jackd using set_rlimits to set
# a realtime priority up to and including 80, but setting of a nice priority
# through set_rlimits is disallowed.  Alternatively, if an `audio' group
# existed, the entry
#
#  @audio  /usr/local/bin/jackd  -1  80
#
# would allow the same except the permission would extend to all members of
# the `audio' group.  The same effect could be achieved with the key/value
# syntax:
#
#  @audio  /usr/local/bin/jackd  nice=-1  rtprio=80
#
# For more details on the format and use of this file please refer to
# the set_rlimits manual page.

@audio /usr/bin/jackd nice=-1 rtprio=80 memlock=100000

#@audio /usr/bin/qjackctl nice=-1 rtprio=79 memlock=100000

@audio /usr/bin/ardour nice=-1 rtprio=78 memlock=400000

#@audio / =-1 rtprio= memlock=

@audio /usr/bin/hydrogen nice=-1 rtprio=76 memlock=100000

@audio /usr/bin/rosegarden nice=-1 rtprio=75 memlock=100000

@audio /usr/bin/vkeydb nice=-1 rtprio=74 memlock=100000

@audio /usr/bin/qsynth nice=-1 rtprio=73 memlock=100000

save me typing, you can find out more about these tools on my blog, realtime audio here at LQ.

There's a lot there you won't need, but it has some links to tools I used for checking my system.

Cheers, Glenn

nnjond 01-21-2011 12:33 AM

Thanks again. That problem has righted itself and I can now use Qsynth without the Jack app. However, bizarely, I can't get the suitable patch ie, grand piano. All I can load are annoying gimmick y sounds!

GlennsPref 01-21-2011 01:29 AM

The file is a .SF2 extension.

I'm just trying to track down where I got them from.

In the meantime...

(edit) btw, I'm really happy it's working again. There is a new python interface released this month, might have a look at that.

GlennsPref 01-21-2011 05:41 PM

SoundFonts site

Sf2Midi.com - sf2 and MIDI Free download

http://www.sf2midi.com/soundfonts/

GlennsPref 01-29-2011 04:05 AM

I also suggest you check out this music site..

http://wiki.linuxmusicians.com/doku...._configuration

mahairod 04-16-2011 11:12 AM

same problem
 
I have the same problem with my CME m-Key keyboard. Driver can't be initialized. What was the solution?


All times are GMT -5. The time now is 02:32 PM.