You are not logged in.

#1 2008-03-30 01:02:14

Noobzore
Member
Registered: 2007-09-26
Posts: 15

jack will not start

So, for some reason jack will not start anymore..I'm running 32 bit, have GDM, and i also use xfce4 if that is of use. jack message output:

18:57:07.404 Patchbay deactivated.
18:57:07.586 Statistics reset.
18:57:07.718 ALSA connection graph change.
18:57:10.215 JACK is starting...
18:57:10.221 /usr/bin/jackd -R -dalsa -dhw:0 -r48000 -p2048 -n2
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.
18:57:10.284 JACK was started with PID=4758.
loading driver ..
apparent rate = 48000
creating alsa driver ... hw:0|hw:0|2048|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
18:57:10.344 JACK was stopped successfully.
18:57:10.345 Post-shutdown script...
18:57:10.346 killall jackd
jackd: no process killed
18:57:10.863 Post-shutdown script terminated with exit status=256.
18:57:12.332 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.

my fstab file:

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

/dev/sdb1 /mnt/media ntfs-3g users,uid=3,locale=en_US.utf8 0 0
/dev/sda2 /mnt/vista ntfs-3g users,uid=3,locale=en_US.utf8 0 0

/dev/cdrom /mnt/cdrom   iso9660   ro,user,noauto,unhide   0      0
/dev/dvd /mnt/dvd   udf   ro,user,noauto,unhide   0      0
/dev/sda1 / ext3 defaults 0 1
/dev/sda3 swap swap defaults 0 0

I am not using the RT kernel since i WAS using the zen kernel, but it has broke since there was a nvidia driver mismatch. The available nvidia drivers for zen were older, and the recent nvidia-utils update borked it...:(

Any help or suggestions are much appreciated!

Offline

#2 2008-03-30 07:16:20

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: jack will not start

Nope, you don't need an RT kernel. This looks like a sudden death. You have audio playback? Are you sure nothing is using aoss or alsa?


I need real, proper pen and paper for this.

Offline

#3 2008-03-30 12:35:33

ciembor
Member
Registered: 2008-03-30
Posts: 57

Re: jack will not start

I have the same problem. you should change

none                   /dev/shm      tmpfs     defaults            0      0

to

shmfs                   /dev/shm      shm     defaults            0      0

I changed it, but it still doesn't works. System wrote

unknown filestystems type shm

I'm using kernel26rt from AUR and I think I must enable shmfs in it. I also have read, that I should have some login manager like kdm or gdm (nor slim!), but I installed kdm and it still doesn't works.

Offline

#4 2008-03-30 13:05:54

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: jack will not start

Forgot to ask, when did this happen exactly? After an upgrade of something? JACK won't reach the following:

the playback device "hw:0" is already in use. Please stop the application using it and run JACK again

if there's a configuration error. Arch's shmfs is already in the default fstab as "none /dev/shm tmpfs defaults 0 0". Change all of the hardware stuff to "default" if you don't have more than one device. If nothing works, maybe someone more knowledgable can help you; I'm clueless.

Last edited by schivmeister (2008-03-30 13:09:03)


I need real, proper pen and paper for this.

Offline

#5 2008-03-30 13:27:01

ciembor
Member
Registered: 2008-03-30
Posts: 57

Re: jack will not start

After I changed fstab, Jack output look like that:

[ciembor@peace ~]# jackd -R -d alsa
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.
cannot open existing shm registry segment (Function not implemented)
no access to shm registry

Offline

#6 2008-03-30 19:25:32

Noobzore
Member
Registered: 2007-09-26
Posts: 15

Re: jack will not start

i get the same system message as ciembor when i change my fstab file. also, all my other audio works fine. this happened after at least a few system upgrades since i havent used Jack in a very long time, but now i need it for ardour to work again.

I tried changing everything in my Qjackctl to default, and now i just get the same as ciembor:

"cannot open existing shm registry segment (Function not implemented)
no access to shm registry"

Offline

#7 2008-04-03 00:49:46

ciembor
Member
Registered: 2008-03-30
Posts: 57

Re: jack will not start

I checked kernel26 and kernel26rt config files. shm is enabled in both of them! So I don't know, why can't I see it in /proc/filesystems? If someone know what can be wrong... I wrote a support request in the bug section:

http://bugs.archlinux.org/task/10063?st … name=&type[0]=&sev[0]=&pri[0]=&due[0]=&reported[0]=&cat[0]=&status[0]=open&percent[0]=&opened=&dev=&closed=&duedatefrom=&duedateto=&changedfrom=&changedto=&openedfrom=&openedto=&closedfrom=&closedto=

Last edited by ciembor (2008-04-03 00:51:42)

Offline

#8 2008-04-03 02:15:48

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: jack will not start

Use the Arch defaults for shmfs (tmpfs).

Add yourself to audio group.

sed -i 's^shm.*^none /dev/shm tmpfs defaults 0 0^g' /etc/fstab
useradd -G audio ciembor

Disable realtime by unchecking the option in qjackctl or removing the -R and -P$$ from the server command line.

If not, to use realtime, ensure you have:

@audio - rtprio 99 
@audio - nice -10 
@audio - memlock 512000

in /etc/security/limits.conf, since some apps require you have rtprio set at least above 80 or so. You can change memlock to unlimited also.

Last edited by schivmeister (2008-04-03 02:19:08)


I need real, proper pen and paper for this.

Offline

#9 2010-04-25 17:35:24

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 768

Re: jack will not start

I'm having the same problem with jack starting.  The error is:

jackd 0.118.0
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn 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 System V SHM support.
loading driver ..
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

I'm in the audio group and have also made the above adjustment to my fstab. I also followed the instructions here: http://wiki.archlinux.org/index.php/JAC … _with_ALSA

Any ideas?

Offline

#10 2010-04-25 22:31:10

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: jack will not start

You need to release your audio device before starting jack. For me, this means closing firefox if it has played a sound since I started it, because it doesn't release the device. Another program may also keep the device in use.

Offline

#11 2010-06-07 02:34:08

fadec
Member
Registered: 2010-01-25
Posts: 12

Re: jack will not start

I can start jackd before starting firefox but then Flash player has no sound, nor does skype. Once jackd exits, Skype sound works. Flash sound works after a firefox reset with jackd dead.

When Firefox is running I cannot start jackd because of the "hw:0 is already in use" error. Sometimes I cannot start jackd after exiting firefox because of this error and I just reboot to start jackd.

Is there a way to have skype/flash sound with jackd alive? Can I get rid of the pesky hw:0 in use errors?

I'm not sure what configuration text is relevant to this problem.

Last edited by fadec (2010-06-07 02:35:08)

Offline

#12 2010-08-14 22:17:45

franklino1
Member
Registered: 2010-08-14
Posts: 1

Re: jack will not start

I have the same problem as you Fadec, I cannot get JACK to work on Skype, i've been looking and looking and there is no rational way to get it to work with alsa!
But i've managed to find a way to get it to work on flash/firefox
http://www.linuxmusicians.com/viewtopic.php?f=19&t=2507

Do you know how i can get Skype with JACK?

Offline

#13 2010-08-14 22:41:52

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: jack will not start

The JACK ALSA plug-in: http://alsa.opensrc.org/index.php/Jack_(plugin)

pacman -S alsa-plugins

Or libflashsupport-jack: http://aur.archlinux.org/packages.php?ID=26219

Please do not engage in or start a thread which has been dead for a long time. Open a new topic referencing the old one.

Last edited by schivmeister (2010-08-14 22:42:13)


I need real, proper pen and paper for this.

Offline

#14 2010-08-19 18:52:22

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: jack will not start

schivmeister wrote:

Please do not engage in or start a thread which has been dead for a long time. Open a new topic referencing the old one.

With that note....

Closing.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB