You are not logged in.

#1 2009-02-20 04:04:55

TheRedFox
Member
Registered: 2009-02-15
Posts: 36

fail at starting jack

Using a Thinkpad X31. I'm trying to make it useable as an audio-recording machine (not as a prime function, but in addition to other things). from what I've heard Ardour is professional quality software, but when I try to start Jack via qjackctl, I get the following error:

22:02:59.072 Patchbay deactivated.
22:02:59.074 Statistics reset.
22:02:59.164 Startup script...
22:02:59.166 artsshell -q terminate
22:02:59.183 ALSA connection graph change.
sh: artsshell: command not found
22:02:59.575 Startup script terminated with exit status=32512.
22:02:59.576 JACK is starting...
22:02:59.577 /usr/bin/jackd -R -dalsa -dhw:0 -r48000 -p1024 -n2
22:02:59.580 JACK was started with PID=6411.
jackd 0.109.2
Copyright 2001-2005 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
JACK compiled with POSIX SHM support.
loading driver ..
apparent rate = 48000
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
control device hw:0
the playback device "hw:0" is already in use. Please stop the application using it and run JACK again
cannot load driver module alsa
no message buffer overruns
22:02:59.680 JACK was stopped successfully.
22:02:59.681 Post-shutdown script...
22:02:59.681 killall jackd
jackd: no process killed
22:03:00.099 Post-shutdown script terminated with exit status=256.
22:03:01.811 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.

anyone know how to fix this? also, what would be the possible benefits / losses of using a realtime kernel (I think I read somewhere that Jack software works better with that.
thank you for your possible help

Offline

#2 2009-02-20 05:03:32

yvonney
Member
Registered: 2008-06-11
Posts: 671

Re: fail at starting jack

Hopefully it's what happens to me.
Your Firfox or browser or something is still clinging to the audio HW:0

I'd bring up htop find out if browser still running and kill it.
There'll be ways better I guess though that's what I do.

Also, I recently learned about typing

pidof firefox or whatever appp and it gives me the number to kill

then I go


kill  15623   or whatever to kill the process   I think you can go   kill -9 firefox  as well not sure what that's all about though


sorry for the rush here

Last edited by yvonney (2009-02-20 05:04:21)

Offline

#3 2009-02-20 07:03:46

TheRedFox
Member
Registered: 2009-02-15
Posts: 36

Re: fail at starting jack

as it turns out killing esound daemon made it work, however, ardour can't seem to get past the new session screen, and yields a segfault instead. any ideas?

Offline

#4 2009-02-20 07:43:14

TheRedFox
Member
Registered: 2009-02-15
Posts: 36

Re: fail at starting jack

http://bbs.archlinux.org/viewtopic.php?id=59610 gave me the answer. but that is an annoying-as-hell bug. i prefer my host to be called "artemis" over some lame generic name!

Offline

#5 2009-02-28 02:18:14

yvonney
Member
Registered: 2008-06-11
Posts: 671

Re: fail at starting jack

I'm having amazing fun with the new-ish beta of jack2 and the latest x.x.19 version of alsa-utils alsa-lib AND alsa-plugin(s) (need the last one for Jack/alsa) Also having the jack code in asoundrc makes it all work.

I can swap between hw:0,0 and hwL 1,0  and even with qjackctl now that I've found that under the little > graphic (in out menus) to the right side of qjactctl  I'll find my hw:1,0 usb neadset.I was only able to use command line until figure that out.

ALSO:
no more of the hellish /dev/shm weirdness when I run (a lot) as root.


I can now switch between my laptop speaker and my usb headset, and have flash audio play from firefox in either.
I monitor in seperate screen windows two instances of alsamixer, one for speakers and one for headset.
and NO pulse, oss, etc. at ALL!!!!!!

very very nice....

Last edited by yvonney (2009-03-25 16:39:40)

Offline

#6 2009-03-25 08:48:50

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: fail at starting jack

Hi, I didn't know previously that Jack could take Alsa directly (previously from Ubuntu Studio, was using Pulse instead). Thanks yvonney for the insight. I figured out how to setup my .asoundrc from http://www.alsa-project.org/main/index.php/Asoundrc.

Just a question, though. I only have a single output (hw:0,0), but may get another rig some time in the future. Are you able to swap 'live' or does it require a restart of the Jack session via qjackctl?

And yes, I know the previous post is one month old. Trying my luck.

EDIT: http://alsa.opensrc.org/index.php/Jack_(plugin) seems to work better for me. Allows flashplugin to play through jack as well.

Last edited by ngoonee (2009-03-27 02:22:49)


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#7 2009-04-19 07:24:53

yvonney
Member
Registered: 2008-06-11
Posts: 671

Re: fail at starting jack

UPDATED COMMENT: I forgot to install alsa-plugins which makes jack work with firefox. This is once again SO cool
JUSt alsa and jack2 with that text above in .asoundrc (jack plugin text) ad by fidling with jacks little > (greater than) tabs things and choosing my usb headphones  hw 1,0 works on my last attempt. and also fiddling with the last couple of lines of the plugin text (may have to change around mixer and ctrl to 1 or to 0 each.  This is great to have usb headphones working with jack and firefox / flash.


-- earlier text below------------

interesting as my .asoundrc has the mixer set to 1  .... anyways.. I'm just setting up my laptop again fresh and expecting I'll recall how I got my usb headphones and firefox/flash running, um, shortly.... hehehe

Then I wil be hoping to find a way to swap like you asked about myself. I'll write back after more jack2 fun and hopeflly some more cool breakthroughs. I really only want to have alsa and jack, for me.

I have just the one real chip in the laptop and also have a set of usb headphones.
I need to put snd_usb_audio or whatever it is in my rc.conf modules line.

And also I create another mixer instance (in gnu screen for me) so I have two, one for full sound chip and one mixer for usb headphones.  Stil have a ways to go to get any kind of mastery though I know what I will use.  alsa and jack2. (1.9.x)   WAY way way  less weird stuff for me with the new jack beta.



screen    -t '' 1 alsamixer -c 0   [intel chip]
screen    -t '' 2 alsamixer -c 1   [and the usb headphones as I recall]

I don't think just putting, for example.
alsamixer -c 0
into a terminal worked for me, though I probably missed something. Anyways, it's the  -c that specifies the card I guess.

Last edited by yvonney (2009-04-19 08:20:00)

Offline

Board footer

Powered by FluxBB