LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-19-2011, 08:13 AM   #1
nnjond
Member
 
Registered: Feb 2007
Distribution: Ubuntu 10.04
Posts: 281

Rep: Reputation: 30
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
 
Old 01-19-2011, 06:16 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
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.

Last edited by GlennsPref; 01-19-2011 at 06:20 PM. Reason: permissions...
 
Old 01-20-2011, 06:05 PM   #3
nnjond
Member
 
Registered: Feb 2007
Distribution: Ubuntu 10.04
Posts: 281

Original Poster
Rep: Reputation: 30
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:~$
 
Old 01-20-2011, 06:53 PM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
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
 
Old 01-21-2011, 01:33 AM   #5
nnjond
Member
 
Registered: Feb 2007
Distribution: Ubuntu 10.04
Posts: 281

Original Poster
Rep: Reputation: 30
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!
 
Old 01-21-2011, 02:29 AM   #6
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
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.

Last edited by GlennsPref; 01-21-2011 at 02:32 AM.
 
Old 01-21-2011, 06:41 PM   #7
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
SoundFonts site

Sf2Midi.com - sf2 and MIDI Free download

http://www.sf2midi.com/soundfonts/
 
Old 01-29-2011, 05:05 AM   #8
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
I also suggest you check out this music site..

http://wiki.linuxmusicians.com/doku...._configuration
 
Old 04-16-2011, 12:12 PM   #9
mahairod
LQ Newbie
 
Registered: Apr 2011
Posts: 1

Rep: Reputation: 0
same problem

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't setup jack control with my sound blaster xfi card antareslq Linux - Newbie 2 09-30-2010 04:18 AM
Jack-Audio-Control-Kit will not display midi devices as regular user: animehair Linux - Software 3 05-03-2008 03:17 PM
Contract and Bightness control OR iris control for Logitech Communicate STX webcam nicsmr Linux - Hardware 0 03-13-2008 11:35 AM
LXer: Jack Write Linux, Jack Go Bankrupt... LXer Syndicated Linux News 0 09-09-2007 07:20 PM
tc traffic control tc traffic control Linux QoS control tool(noob help) inv|s|ble Linux - General 1 07-26-2007 12:12 PM


All times are GMT -5. The time now is 09:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration