Jump to content

Problems with Jack in Rosegarden


4ebees
 Share

Recommended Posts

Hi all,

 

I've installed LE2005 on a P4. It has a:

 

ICH2 810 Chipset AC'97 Audio Controller

 

Now, I can get sound etc. That's all fine.

 

The problem is with running Rosegarden.

 

I installed Qsynth and Qjackctl but....

 

Qsynth says it can't start without Jack and Jack says:

 

**************************

10:06:34.833 Patchbay deactivated.

10:06:35.201 Statistics reset.

10:06:35.329 Startup script...

10:06:35.330 artsshell -q terminate

10:06:35.486 MIDI connection graph change.

10:06:35.874 Startup script terminated with exit status=256.

10:06:35.883 JACK is starting...

10:06:35.914 /usr/bin/jackd -R -dalsa -dhw:1 -r48000 -p1024 -n2

10:06:35.947 JACK was started with PID=8044 (0x1f6c).

jackd 0.99.0

Copyright 2001-2003 Paul Davis and others.

jackd 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

cannot lock down memory for jackd (Cannot allocate memory)

loading driver ..

apparent rate = 48000

creating alsa driver ... hw:1|hw:1|1024|2|48000|0|0|nomon|swmeter|-|32bit

10:06:36.169 MIDI connection change.

ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode

cannot load driver module alsa

10:06:36.263 JACK was stopped successfully.

10:06:38.195 Could not connect to JACK server as client.

*************************

 

I've changed the settings from hw1 to hw0:0

****************************

10:09:35.662 Patchbay deactivated.

10:09:36.038 Statistics reset.

10:09:36.106 Startup script...

10:09:36.106 artsshell -q terminate

10:09:36.281 MIDI connection graph change.

sound server terminated

10:09:36.760 Startup script terminated successfully.

10:09:36.761 JACK is starting...

10:09:36.762 /usr/bin/jackd -R -dalsa -dhw:0,0 -r48000 -p1024 -n2

10:09:36.801 JACK was started with PID=8055 (0x1f77).

jackd 0.99.0

Copyright 2001-2003 Paul Davis and others.

jackd 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

cannot lock down memory for jackd (Cannot allocate memory)

loading driver ..

apparent rate = 48000

creating alsa driver ... hw:0,0|hw:0,0|1024|2|48000|0|0|nomon|swmeter|-|32bit

control device hw:0

configuring for 48000Hz, period = 1024 frames, buffer = 2 periods

Couldn't open hw:0,0 for 32bit samples trying 24bit instead

Couldn't open hw:0,0 for 24bit samples trying 16bit instead

Couldn't open hw:0,0 for 32bit samples trying 24bit instead

Couldn't open hw:0,0 for 24bit samples trying 16bit instead

JACK: unable to mlock() port buffers: Cannot allocate memory

jack_create_thread: error -1 switching current thread to rt for inheritance: Unknown error 4294967295

cannot start watchdog thread

cannot load driver module alsa

10:09:36.835 JACK was stopped successfully.

10:09:37.004 MIDI connection change.

10:09:39.023 Could not connect to JACK server as client.

************************

 

to default

 

*****************************

10:09:35.662 Patchbay deactivated.

10:09:36.038 Statistics reset.

10:09:36.106 Startup script...

10:09:36.106 artsshell -q terminate

10:09:36.281 MIDI connection graph change.

sound server terminated

10:09:36.760 Startup script terminated successfully.

10:09:36.761 JACK is starting...

10:09:36.762 /usr/bin/jackd -R -dalsa -dhw:0,0 -r48000 -p1024 -n2

10:09:36.801 JACK was started with PID=8055 (0x1f77).

jackd 0.99.0

Copyright 2001-2003 Paul Davis and others.

jackd 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

cannot lock down memory for jackd (Cannot allocate memory)

loading driver ..

apparent rate = 48000

creating alsa driver ... hw:0,0|hw:0,0|1024|2|48000|0|0|nomon|swmeter|-|32bit

control device hw:0

configuring for 48000Hz, period = 1024 frames, buffer = 2 periods

Couldn't open hw:0,0 for 32bit samples trying 24bit instead

Couldn't open hw:0,0 for 24bit samples trying 16bit instead

Couldn't open hw:0,0 for 32bit samples trying 24bit instead

Couldn't open hw:0,0 for 24bit samples trying 16bit instead

JACK: unable to mlock() port buffers: Cannot allocate memory

jack_create_thread: error -1 switching current thread to rt for inheritance: Unknown error 4294967295

cannot start watchdog thread

cannot load driver module alsa

10:09:36.835 JACK was stopped successfully.

10:09:37.004 MIDI connection change.

10:09:39.023 Could not connect to JACK server as client.

10:13:50.224 Startup script...

10:13:50.224 artsshell -q terminate

10:13:50.666 Startup script terminated with exit status=256.

10:13:50.667 JACK is starting...

10:13:50.667 /usr/bin/jackd -R -dalsa -dhw:0 -r48000 -p1024 -n2

10:13:50.698 JACK was started with PID=8062 (0x1f7e).

jackd 0.99.0

Copyright 2001-2003 Paul Davis and others.

jackd 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

cannot lock down memory for jackd (Cannot allocate memory)

loading driver ..

apparent rate = 48000

creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit

control device hw:0

configuring for 48000Hz, period = 1024 frames, buffer = 2 periods

Couldn't open hw:0 for 32bit samples trying 24bit instead

Couldn't open hw:0 for 24bit samples trying 16bit instead

Couldn't open hw:0 for 32bit samples trying 24bit instead

Couldn't open hw:0 for 24bit samples trying 16bit instead

JACK: unable to mlock() port buffers: Cannot allocate memory

jack_create_thread: error -1 switching current thread to rt for inheritance: Unknown error 4294967295

cannot start watchdog thread

cannot load driver module alsa

10:13:50.720 JACK was stopped successfully.

10:13:52.894 Could not connect to JACK server as client.

****************************

 

and still no joy???

 

I've tried playing around with the various settings but nothing seems to be happy.

 

Any suggestions, referrals or redirections will be most gratefully appreciated.

Link to comment
Share on other sites

As far as I know you don't need jack to run qsynth in le2005. Perhaps you've created a asoundrc that doesn't really work? If so rename the file and try starting Qsynth again.

 

If not it looks like a config/permission problem. Try running jackctl as root (open a console, login as root and type: jackctl) or disable realtime in the config settings. You need to run qsynth as root too if jackctl starts as root. Rosegarden as normal user.

Link to comment
Share on other sites

Hiya devries,

 

Well.... jackcktl didn't work as root, but qjackctl does (???)

qsynth works as root BUT rosegarden still give the same error message if I start is as 'user':

 

"Attempt to launch JACK audio daemon failed. Audio etc etc etc

 

However, when I start it was root is gives no errors :))

 

Now, I've not used Mandy for a while (I know, splitter! Traitor! Heathen! Manchester City supporter!!!!! :)) and so went to change the auto suspend to 2 secs so that. I checked the sound "test sound" - fine :) I checked "Test MIDI" and *nothing*!!!

 

I suspect this is where the problem lies (Rosegarden now runs but I still get no sound issuing from the speakers). What gives with this MIDI thingo??? I admit I've never 'knowingly' used anything with a midi file, so any assistance or redirection with this would be most appreciated. I'm assuming there's somthing I need to do to make the soundcard play midi files???????

 

Ultimately this is all in the aim of installing Mandy on a friends lappie (as Rosegarden is part of the package in Mandy) and when it's available for my lower-status, not as impressive, splitters distro (is this enough self-debasement???) I can then get it up and running there too :)

 

Thanks for your help. I recall you sorted out a problem in Mandy 10.0 for me too, so it's nice to know you're still around.

 

Many thanks and much appreciation.

Link to comment
Share on other sites

In the Rosegarden config there is a option to automatically start jack (under config, sequenzer, startup. Uncheck that option. No need to start jack 2 times :) )

 

That should do it. I posted my qsynt settings below. Compare with yours

 

PS: I meant qjackctl. Sorry for that :)

 

p.png

 

p.png

 

p.png

Link to comment
Share on other sites

Hey devries,

 

Jpegs! (you show me your's, I'll show you mine - LOL)

 

I'm going to post jpegs of Jack and Qsynth to show you what I'm looking at, but I'm wondering if the problem is not a littlle more prosaic. I can't play ANY midi files at all. I've just downloaded one and I try to play it with Kmid and though it THINKS it's playing the file, I get no output.

 

URK!!!

 

I've not tried to play a midi file before so what do you think????

 

post-7471-1133172824_thumb.jpgpost-7471-1133172839_thumb.jpgpost-7471-1133172850_thumb.jpgpost-7471-1133172863_thumb.jpgpost-7471-1133172877_thumb.jpgpost-7471-1133172890_thumb.jpgpost-7471-1133172923_thumb.jpgpost-7471-1133172936_thumb.jpgqsynth_output.txt

Edited by 4ebees
Link to comment
Share on other sites

Okay,

 

First things: did you know your penguin is taking acid?? :)

 

Second: unchecked realtime - of course, as you suggested qjackctl works as normal user :) Great. Rosegarden starts up without any problems... whoo hooo!

 

Third

 

Prosaic: draw different lines between the input and output section of the qjackctl screen (just click on the input source and drag a line to the speakers)

 

Qué?

 

Do you mean literally to right click on the window "input device: hw:0" and then drag this to the icon for the speakers on my computer???? I know I'm sounding as if I don't know what you mean... I think this is because, urm, I don't... %)

 

This is embarrassing, truly, because if that's not what you were suggesting, it's actually what I did... and it didn't work. If it is what you're suggesting, then ... HELP! :))

Link to comment
Share on other sites

First things: Yes.... party animal....

 

Lines: difficult to explain in words... Hope the screenshots help a little

 

http://qjackctl.sourceforge.net/qjackctl-ss1.html

 

Look at the screenshots for the ´connection´ window (it opens when you click the connection button). The lines show what input source is connected to what output source. Make sure qsynth connects to the correct output source.

Link to comment
Share on other sites

If a picture's worth a thousand words then this is in a different language :)

 

Okey dokey (and do I appreciate your assistance or what!)

 

In qsynth setup, under the audio tab,

 

I changed alsa to Jack.

 

Changed the channels and audio groups to 20 each

 

installed a soundfont I found on a free site (I have NO Idea what this is for or what it does or means)

 

Then, see images attached...

 

I dragged the audio thingo in MIDI across to the second window and you can now see the output in both MIDI and AUDIO windows in the attached jpegs :)

 

NOW I HAVE SOUND!

 

... except I get a message from Jack saying:

 

"Jack audio subsystem is losing sample frames"

 

This results in stuttered sound. I've buggerised around with the thing - not that I know what I'm doing - but to no avail.

 

and I get this message from qsynth:

 

fluidsynth: warning: Failed to pin the sample data to RAM; swapping is possible.

 

So... huge steps...THANKS... and some more to go... so close. I was so excited when sound started issuing from the speakers :drum:

post-7471-1133189422_thumb.jpg

post-7471-1133189438_thumb.jpg

Link to comment
Share on other sites

Hey devries,

 

Sorry for the delay in getting back to you (family, work etc :)).

 

My friend is interested in getting Mandriva installed on his lappie, so I'm going to do just that. Now I know how to get Rosegarden up and running (if not fix the last problem - something he can play with :)) I'm sorted.

 

Thanks very much for your assistance with this; it has been of immense help.

Link to comment
Share on other sites

Hey, I noticed the name under your penguin and then went to my favourite Australian newspaper site (www.smh.com.au - one of the biggest selling broadsheets in Australia) and there was "Sinterklaas".

 

Check out the front page before they change it. Just in case you can't, here's what they said (and here's the photo too):

 

"It's getting hot in here...

Sinterklaas, the Dutch Santa Claus, makes an appearance at Bondi Beach"

 

Thought you might appreciate it :)

post-7471-1133676472_thumb.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...