Can't start Jack

Moderators: odroid, mdrjr

Can't start Jack

Unread postby alexandros301 » Wed Sep 21, 2016 1:23 am

I recently installed a Debian Jessie image which I found http://forum.odroid.com/viewtopic.php?f=79&t=12604in this forum, expanded it to an lxde desktop and it runs fine. My problem is that when I launch Qjackctl, I can spot and select my external sound card (a Focusrite Scarlett 2i4, which runs fine on my laptop on Debien Jessie XFCE) but Jack can't connect to the server and gives these error messages:
Code: Select all
14:24:44.287 Patchbay deactivated.
14:24:44.288 Statistics reset.
14:24:44.340 ALSA connection change.
connect(2) call to /tmp/jack-1000/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
14:24:44.357 ALSA connection graph change.
14:24:57.536 JACK is starting...
14:24:57.537 /usr/bin/jackd -dalsa -r48000 -p1024 -n2 -D -Chw:USB -Phw:USB -i2 -o2
connect(2) call to /tmp/jack-1000/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
jackd 0.124.1
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.
14:24:57.552 JACK was started with PID=1043.
loading driver ..
apparent rate = 48000
creating alsa driver ... hw:USB|hw:USB|1024|2|48000|2|2|nomon|swmeter|-|32bit
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: cannot set channel count to 2 for playback
ALSA: cannot configure playback channel
cannot load driver module alsa
14:24:58.660 JACK was stopped
14:24:59.740 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.
connect(2) call to /tmp/jack-1000/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed

Does anyone have any idea how this can be solved?
alexandros301
 
Posts: 22
Joined: Sun Aug 31, 2014 5:31 pm
languages_spoken: english
ODROIDs: ODROID-U3

Re: Can't start Jack

Unread postby odroid » Wed Sep 21, 2016 10:38 am

Is there any special driver for the jackd?
Compare "lsmod" outputs between your laptop and U3.
User avatar
odroid
Site Admin
 
Posts: 21357
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Can't start Jack

Unread postby alexandros301 » Wed Sep 21, 2016 4:57 pm

odroid wrote:Compare "lsmod" outputs between your laptop and U3.

Odroid's lsmod gives this output:
Code: Select all
Module                  Size  Used by
snd_usb_audio         110977  0
snd_usbmidi_lib        17840  1 snd_usb_audio
snd_hwdep               5397  1 snd_usb_audio
snd_rawmidi            18064  1 snd_usbmidi_lib
snd_seq_device          5914  1 snd_rawmidi
smsc95xx               19090  0
usbnet                 19480  1 smsc95xx
vfat                    9124  1
fat                    49103  1 vfat
gpio_keys               7062  0
fuse                   65323  1
ipv6                  293783  26
autofs4                22349  2

My laptop's lsmod gives this output:
Code: Select all
Module                  Size  Used by
snd_seq_midi           12848  0
snd_seq_midi_event     13316  1 snd_seq_midi
snd_seq_dummy          12467  0
snd_seq                57061  6 snd_seq_midi_event,snd_seq_dummy,snd_seq_midi
snd_usb_audio         135354  1
snd_usbmidi_lib        23388  1 snd_usb_audio
snd_rawmidi            26806  2 snd_usbmidi_lib,snd_seq_midi
snd_seq_device         13132  4 snd_seq,snd_rawmidi,snd_seq_dummy,snd_seq_midi
rfcomm                 57927  4
bnep                   17431  2
ctr                    12927  1
ccm                    17577  1
binfmt_misc            16949  1
nfsd                  263032  2
auth_rpcgss            51211  1 nfsd
oid_registry           12419  1 auth_rpcgss
nfs_acl                12511  1 nfsd
nfs                   188136  0
lockd                  83389  2 nfs,nfsd
fscache                45542  1 nfs
sunrpc                237402  6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
snd_hda_codec_hdmi     45118  1
joydev                 17063  0
arc4                   12536  2
x86_pkg_temp_thermal    12951  0
intel_powerclamp       17159  0
intel_rapl             17356  0
uvcvideo               79005  0
coretemp               12820  0
videobuf2_vmalloc      12816  1 uvcvideo
videobuf2_memops       12519  1 videobuf2_vmalloc
cdc_mbim               12825  0
videobuf2_core         47787  1 uvcvideo
v4l2_common            12995  1 videobuf2_core
cdc_wdm                17427  1 cdc_mbim
videodev              126451  3 uvcvideo,v4l2_common,videobuf2_core
kvm                   388784  0
media                  18305  2 uvcvideo,videodev
cdc_ncm                26618  1 cdc_mbim
iwlmvm                137115  0
cdc_acm                30362  0
usbnet                 30844  2 cdc_mbim,cdc_ncm
mii                    12675  1 usbnet
mac80211              474277  1 iwlmvm
ecb                    12737  0
iTCO_wdt               12831  0
crc32_pclmul           12915  0
iTCO_vendor_support    12649  1 iTCO_wdt
btusb                  29721  0
nouveau              1122508  1
aesni_intel           151423  2
bluetooth             374429  9 bnep,btusb,rfcomm
snd_hda_codec_realtek    67127  1
snd_hda_codec_generic    63181  1 snd_hda_codec_realtek
iwlwifi                96547  1 iwlmvm
aes_x86_64             16719  1 aesni_intel
lrw                    12757  1 aesni_intel
i915                  837175  6
gf128mul               12970  1 lrw
glue_helper            12695  1 aesni_intel
snd_hda_intel          26327  7
6lowpan_iphc           16588  1 bluetooth
ablk_helper            12572  1 aesni_intel
snd_hda_controller     26646  1 snd_hda_intel
rtsx_pci_ms            16898  0
cfg80211              405538  3 iwlwifi,mac80211,iwlmvm
cryptd                 14516  2 aesni_intel,ablk_helper
snd_hda_codec         104500  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
mxm_wmi                12515  1 nouveau
evdev                  17445  30
psmouse                99249  0
snd_hwdep              13148  2 snd_usb_audio,snd_hda_codec
memstick               13696  1 rtsx_pci_ms
ttm                    77862  1 nouveau
snd_pcm                88662  5 snd_usb_audio,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
pcspkr                 12595  0
serio_raw              12849  0
drm_kms_helper         49210  2 i915,nouveau
thinkpad_acpi          69119  2
nvram                  13034  1 thinkpad_acpi
mei_me                 17941  0
snd_timer              26614  2 snd_pcm,snd_seq
drm                   249955  8 ttm,i915,drm_kms_helper,nouveau
rfkill                 18867  6 cfg80211,thinkpad_acpi,bluetooth
mei                    74977  1 mei_me
lpc_ich                20768  0
snd                    65244  33 snd_hda_codec_realtek,snd_usb_audio,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_usbmidi_lib,snd_hda_codec,snd_hda_intel,thinkpad_acpi,snd_seq_device
i2c_i801               16965  0
i2c_algo_bit           12751  2 i915,nouveau
soundcore              13026  2 snd,snd_hda_codec
tpm_tis                17231  0
shpchp                 31121  0
ie31200_edac           12511  0
i2c_core               46012  8 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,v4l2_common,nouveau,videodev
tpm                    31511  1 tpm_tis
video                  18096  2 i915,nouveau
ac                     12715  0
battery                13356  0
edac_core              51465  1 ie31200_edac
wmi                    17339  2 mxm_wmi,nouveau
processor              28221  0
button                 12944  2 i915,nouveau
fuse                   83350  1
parport_pc             26300  0
ppdev                  16782  0
lp                     17074  0
parport                35749  3 lp,ppdev,parport_pc
autofs4                35529  2
ext4                  473802  2
crc16                  12343  2 ext4,bluetooth
mbcache                17171  1 ext4
jbd2                   82522  1 ext4
sg                     29973  0
sd_mod                 44356  4
sr_mod                 21903  0
crc_t10dif             12431  1 sd_mod
cdrom                  47424  1 sr_mod
crct10dif_generic      12581  0
rtsx_pci_sdmmc         21105  0
mmc_core              102374  1 rtsx_pci_sdmmc
ahci                   33334  3
libahci                27158  1 ahci
crct10dif_pclmul       13387  1
crct10dif_common       12356  3 crct10dif_pclmul,crct10dif_generic,crc_t10dif
crc32c_intel           21809  0
libata                177508  2 ahci,libahci
ehci_pci               12512  0
xhci_hcd              152977  0
ehci_hcd               69837  1 ehci_pci
e1000e                212128  0
scsi_mod              191405  4 sg,libata,sd_mod,sr_mod
rtsx_pci               37719  2 rtsx_pci_ms,rtsx_pci_sdmmc
mfd_core               12601  2 lpc_ich,rtsx_pci
ptp                    17692  1 e1000e
usbcore               195427  12 btusb,snd_usb_audio,uvcvideo,snd_usbmidi_lib,ehci_hcd,ehci_pci,usbnet,cdc_mbim,cdc_acm,cdc_ncm,cdc_wdm,xhci_hcd
pps_core               17225  1 ptp
usb_common             12440  1 usbcore
thermal                17559  0
thermal_sys            27642  5 video,intel_powerclamp,thermal,processor,x86_pkg_temp_thermal

In the Odroid's lsmod I can see that for "snd_usb_audio" three's a 0 underneath "Used by", whereas on my laptop there's a 1 in that place. Can that be the case?
alexandros301
 
Posts: 22
Joined: Sun Aug 31, 2014 5:31 pm
languages_spoken: english
ODROIDs: ODROID-U3

Re: Can't start Jack

Unread postby odroid » Thu Sep 22, 2016 11:06 am

I have no idea about the jackd since I've never used it.

Does your USB sound card work with normal audio player like aplay command?
User avatar
odroid
Site Admin
 
Posts: 21357
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Can't start Jack

Unread postby alexandros301 » Sun Sep 25, 2016 4:26 am

odroid wrote:Does your USB sound card work with normal audio player like aplay command?

Been away for some days trying some things. Good point, didn't think of it.
I changed the image on the Odroid, still Debian Jessie, but now the one I got from http://forum.odroid.com/viewtopic.php?f=79&t=17770this thread. Got everything working with the desktop image (XFCE), installed Jack, added the user "odroid" to the "audio" group so I can use Jack with real-time priority and still no luck.
I just tried to play a track with aplay by typing:
Code: Select all
aplay -Dsysdefault:CARD=USB live_at_impro_fest_2015.wav

and the track played fine! So ALSA is OK with the card. I'll install Pd (that's what I want the Odoird for) and make a test with ALSA. If it doesn't work, I'll have to go back to Jack. We'll see.
alexandros301
 
Posts: 22
Joined: Sun Aug 31, 2014 5:31 pm
languages_spoken: english
ODROIDs: ODROID-U3

Re: Can't start Jack

Unread postby alexandros301 » Tue Oct 18, 2016 9:56 pm

I'm back on track with trying to play audio with Jack and still no luck.
Even though aplay seems to play audio files without problems, Jack still can't start.
I've set the following on /etc/security/limits.d/audio.conf:
Code: Select all
@audio   -  rtprio     95
@audio   -  memlock    unlimited
@audio   -  nice      -19

And this is what I get when I try to start Jack using a Focusrite Scarlett 2i4 sound card (which BTW, plays fine with ALSA):
Code: Select all
12:36:35.429 Patchbay deactivated.
12:36:35.451 Statistics reset.
12:36:35.455 ALSA connection change.
connect(2) call to /tmp/jack-1000/default/jack_0 failed (err=Connection refused)
attempt to connect to server failed
12:36:35.475 ALSA connection graph change.
12:37:02.471 JACK is starting...
12:37:02.472 /usr/bin/jackd -dalsa -r48000 -p1024 -n2 -D -Chw:USB -Phw:USB
connect(2) call to /tmp/jack-1000/default/jack_0 failed (err=Connection refused)
attempt to connect to server failed
jackd 0.124.1
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
12:37:02.488 JACK was started with PID=9976.
JACK compiled with System V SHM support.
loading driver ..
apparent rate = 48000
creating alsa driver ... hw:USB|hw:USB|1024|2|48000|0|0|nomon|swmeter|-|32bit
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback
12:37:04.524 JACK was stopped
12:37:04.525 JACK has crashed.
12:37:04.666 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.
connect(2) call to /tmp/jack-1000/default/jack_0 failed (err=Connection refused)
attempt to connect to server failed

Maybe the following line from the error messages says something:
Code: Select all
connect(2) call to /tmp/jack-1000/default/jack_0 failed (err=Connection refused)

So I tried to launch jack as root, and then I got this instead:
Code: Select all
connect(2) call to /tmp/jack-0/default/jack_0 failed (err=No such file or directory)

while /tmp/jack-0/default/jack_0 is there. Maybe it was created during Jack's attempt to launch, because further down in Jack's error messages (as root) I got the following:
Code: Select all
connect(2) call to /tmp/jack-0/default/jack_0 failed (err=Connection refused)

But why is the connection refused even when I try to launch Jack as root? Still, I shouldn't be launching Jack as root, right?

I want to use the Odroid to run a Pure Data patch, and ALSA gives dropouts so I want to use it with Jack (it's very likely that there won't be any dropouts with Jack, I had previous experience on this). Any hints on this one will be appreciated.
Thanks
alexandros301
 
Posts: 22
Joined: Sun Aug 31, 2014 5:31 pm
languages_spoken: english
ODROIDs: ODROID-U3

Re: Can't start Jack

Unread postby Jimlill » Tue Jan 31, 2017 4:50 am

I found jack and qjackctl to be plug and play on my X86 Linux Mint desktop. Not so on my C2/Ubuntu. It installs but I can't get things to recognized etc. Any progress on fixing this for user types like me that aren't into modifying code etc.?

Thanks

Jim
Jimlill
 
Posts: 17
Joined: Wed Aug 17, 2016 7:17 am
Location: Rochester, NY
languages_spoken: english
ODROIDs: Odroid c2

Re: Can't start Jack

Unread postby Jimlill » Fri Feb 03, 2017 4:41 am

Does anyone have jack, jackd, qjackqtl working on a C2? Is it possible or is it just something I am doing wrong?
Jimlill
 
Posts: 17
Joined: Wed Aug 17, 2016 7:17 am
Location: Rochester, NY
languages_spoken: english
ODROIDs: Odroid c2

Re: Can't start Jack

Unread postby meveric » Fri Feb 03, 2017 7:28 am

you should probably ask that in the C2 forum not in a Forum for the ODROID U3
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 6493
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2


Return to Issues

Who is online

Users browsing this forum: No registered users and 3 guests