Jack fails to start

What other apps and distros do you use to round out your studio?

Moderators: MattKingUSA, khz

redu
Established Member
Posts: 24
Joined: Tue Mar 10, 2015 3:33 pm

Jack fails to start

Post by redu »

Have got two new laptops: Lenovo c740 and HP Envy x360.
Both are equipped with Intel Cannon Point-LP chips.
Ubuntu 20.04 Linux

Audio works fine for most users = For playing audio, like in MP4 videos

But,

Jack does no start:
terminal cmd: jackd -R -d alsa -d hw:0,0
Cannot initialize driver
JackServer::Open failed with -1
Failed to open server

And Qjackctl does not start:
D-BUS JACK server could not be started. Sorry

Googled everything, but no luck! Installed latest kernel 5.7, but no luck.

Both laptops are equipped with same chip set = Cannon Point-LP.

One more 1 years elder laptop = also HP Envy x360 is equipped with another chip set = Sunrise Point-LP. ----- And Jack starts perfectly. Jack also plays well in my other elder PC:s.

HI folks! Did you find similar ”Jack not starting” behaviours in case of new computers?



Lspci (partial listing)
redu@ENVY2:~$ lspci
00:1f.3 Multimedia audio controller: Intel Corporation Cannon Point-LP High Definition Audio Controller (rev 30)
00:1f.4 SMBus: Intel Corporation Cannon Point-LP SMBus Controller (rev 30)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Point-LP SPI Controller (rev 30)


aplay -l
redu@ENVY2:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 1: HDA Digital (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
User avatar
sysrqer
Established Member
Posts: 2519
Joined: Thu Nov 14, 2013 11:47 pm
Has thanked: 319 times
Been thanked: 148 times
Contact:

Re: Jack fails to start

Post by sysrqer »

Can you run this script and post the output here?
https://github.com/raboof/realtimeconfigquickscan
redu
Established Member
Posts: 24
Joined: Tue Mar 10, 2015 3:33 pm

Re: Jack fails to start

Post by redu »

redu@ENVY2:~/realtimeconfigquickscan$ perl ./realTimeConfigQuickScan.pl
== GUI-enabled checks ==
Checking if you are root... no - good
Checking filesystem 'noatime' parameter... 5.4.0 kernel - good
(relatime is default since 2.6.30)
Checking CPU Governors... CPU 0: 'powersave' CPU 1: 'powersave' CPU 2: 'powersave' CPU 3: 'powersave' CPU 4: 'powersave' CPU 5: 'powersave' CPU 6: 'powersave' CPU 7: 'powersave' - not good
Set CPU Governors to 'performance' with 'cpupower frequency-set -g performance' or 'cpufreq-set -c <cpunr> -g performance' (Debian/Ubuntu)
See also: http://linuxmusicians.com/viewtopic.php?f=27&t=844
Checking swappiness... 60 - not good
** vm.swappiness is larger than 10
set it with '/sbin/sysctl -w vm.swappiness=10'
See also: http://linuxmusicians.com/viewtopic.php ... t=30#p8916
Checking for resource-intensive background processes... none found - good
Checking checking sysctl inotify max_user_watches... < 524288 - not good
increase max_user_watches by adding 'fs.inotify.max_user_watches = 524288' to /etc/sysctl.conf and rebooting
For more information, see http://wiki.linuxaudio.org/wiki/system_ ... sysctlconf
Checking access to the high precision event timer... not readable - not good
/dev/hpet found, but not readable.
make /dev/hpet readable by the 'audio' group
For more information, see http://wiki.linuxaudio.org/wiki/system_ ... are_timers
Checking access to the real-time clock... not readable - not good
/dev/rtc found, but not readable.
make /dev/rtc readable by the 'audio' group
For more information, see http://wiki.linuxaudio.org/wiki/system_ ... are_timers
Checking whether you're in the 'audio' group... yes - good
Checking for multiple 'audio' groups... no - good
Checking the ability to prioritize processes with chrt... yes - good
Checking kernel support for high resolution timers... found - good
Kernel with Real-Time Preemption... not found - not good
Kernel without 'threadirqs' parameter or real-time capabilities found
For more information, see https://wiki.linuxaudio.org/wiki/system ... ime_kernel
Checking if kernel system timer is high-resolution... found - good
Checking kernel support for tickless timer... found - good
== Other checks ==
Checking filesystem types... ok.
** Set $SOUND_CARD_IRQ to the IRQ of your soundcard to enable more checks.
Find your sound card's IRQ by looking at '/proc/interrupts' and lspci.
User avatar
sysrqer
Established Member
Posts: 2519
Joined: Thu Nov 14, 2013 11:47 pm
Has thanked: 319 times
Been thanked: 148 times
Contact:

Re: Jack fails to start

Post by sysrqer »

Try installing the low latency kernel and try jack again.
User avatar
thetotalchaos
Established Member
Posts: 211
Joined: Mon Sep 29, 2014 8:29 pm
Has thanked: 51 times
Been thanked: 9 times
Contact:

Re: Jack fails to start

Post by thetotalchaos »

Install ubuntustudio-installer from your software center. You should have at least the lowlatency kernel and all the settings provided. By the way ubuntustudio-controls app, is currently my favorite JACK client.

PS: Guys. Some of you needlessly over-complicates some Linux Audio related issues. Not all of us are using Gentoo/Arch built from scratch. Not all of us are having KXStudio repos on our system by default. I assume that an Ubuntu user just wants to use his system, not needing to know, how to manually configure anything, just because someone else choose to.
Ubuntu Studio for example has all needed audio configurations out of the box. But they are not necessarily the way a Debian user expects to be.
You can listen to my music at: https://totalchaos-music.bandcamp.com/

Take a journey to wonderland with The Butterfly Effect 2016
https://totalchaos-music.bandcamp.com/a ... fly-effect
Kott
Established Member
Posts: 818
Joined: Thu Mar 21, 2013 12:55 am
Location: Vladivostok
Has thanked: 65 times
Been thanked: 122 times

Re: Jack fails to start

Post by Kott »

sysrqer wrote: Sun Jun 07, 2020 8:57 pm Try installing the low latency kernel and try jack again.
How can low latency kernel resolve broken jackd start?
Kott
Established Member
Posts: 818
Joined: Thu Mar 21, 2013 12:55 am
Location: Vladivostok
Has thanked: 65 times
Been thanked: 122 times

Re: Jack fails to start

Post by Kott »

terminal cmd: jackd -R -d alsa -d hw:0,0
Cannot initialize driver
Please try to start without -R switch (realtime) at first.

It seems that audio group hasn't enough permissions https://wiki.linuxaudio.org/wiki/system ... are_timers
User avatar
thetotalchaos
Established Member
Posts: 211
Joined: Mon Sep 29, 2014 8:29 pm
Has thanked: 51 times
Been thanked: 9 times
Contact:

Re: Jack fails to start

Post by thetotalchaos »

Kott wrote: Mon Jun 08, 2020 2:54 am
sysrqer wrote: Sun Jun 07, 2020 8:57 pm Try installing the low latency kernel and try jack again.
How can low latency kernel resolve broken jackd start?
Pretty easily, especially if it is jack1. It cannot have realtime priority and it doesn't start.
My bet is that its something that the user underestimates or overlooks. Not saying much... :lol:
You can listen to my music at: https://totalchaos-music.bandcamp.com/

Take a journey to wonderland with The Butterfly Effect 2016
https://totalchaos-music.bandcamp.com/a ... fly-effect
Kott
Established Member
Posts: 818
Joined: Thu Mar 21, 2013 12:55 am
Location: Vladivostok
Has thanked: 65 times
Been thanked: 122 times

Re: Jack fails to start

Post by Kott »

thetotalchaos wrote: Mon Jun 08, 2020 5:16 am
Kott wrote: Mon Jun 08, 2020 2:54 am
sysrqer wrote: Sun Jun 07, 2020 8:57 pm Try installing the low latency kernel and try jack again.
How can low latency kernel resolve broken jackd start?
Pretty easily, especially if it is jack1. It cannot have realtime priority and it doesn't start.
My bet is that its something that the user underestimates or overlooks. Not saying much... :lol:
What realtime priority and who cannot have?
I use default kernel (no RT or lowlatency even) and jackd (and jack1) works fine.
redu
Established Member
Posts: 24
Joined: Tue Mar 10, 2015 3:33 pm

Re: Jack fails to start

Post by redu »

Thank you folks for new ideas!

For a week ago, I installed that ubuntustudio-installer, put Jack still doesnt start. I even checked Ubuntu Studio using a live USB stick. Jack still fails.

Perhaps I should try that low latency kernel?
Kott
Established Member
Posts: 818
Joined: Thu Mar 21, 2013 12:55 am
Location: Vladivostok
Has thanked: 65 times
Been thanked: 122 times

Re: Jack fails to start

Post by Kott »

Did you tried to start it without realtime enabled?
User avatar
khz
Established Member
Posts: 1648
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 42 times
Been thanked: 92 times

Re: Jack fails to start

Post by khz »

redu wrote: Sun Jun 07, 2020 7:51 am D-BUS JACK server could not be started. Sorry
Do you use jack with D-Bus?
Try these settings:
khz wrote: Fri Apr 20, 2018 10:07 am Audio (Jack/Pulseaudio/...) configurations:
# http://libremusicproduction.com/article ... -jack.html; https://github.com/jackaudio/jackaudio. ... ack1_jack2
# http://bandshed.net/pdf/ AVL2018UserManual.pdf >> AUDIO & MIDI IN AV LINUX
# (https://linux.die.net/man/1/jackd
==> Install "a2jmidid" and "pulseaudio-module-jack".
In qjackctl Setup:
Jack with a2jmidid and pulseaudio:

Setup >> Settings > Parameters > MIDI Drivers "seq"
Setup >> Settings > Advanced > "Server Prefix" select "jackd" https://github.com/jackaudio/jack2/blob/master/README)
Setup >> Settings > Advanced > [X] Soft Mode
Setup >> Settings > Advanced > (RT) Priority (0 - 98)
Setup >> Options > [X] Run script after startup: "pacmd load-module module-jack-source channels=2 && pacmd load-module module-jack-sink channels=2 && sleep 5 && a2j -e &" (a2j enables dbus) or "sleep 5 && a2jmidid -e &" (without dbus)
Setup >> Options > [X] Execute script on Shutdown: "pulseaudio --kill"
Setup >> Options > [X] Execute script after Shutdown: "killall jackd"
Setup >> Misc > [X] Provide support for ALSA sequencer


Optional:

Setup >> Settings > Advanced > [X] H/W Monitor
Setup >> Settings > Advanced > [X] H/W Meter


Jack without pulseaudio:

Setup >> Options > [X] Execute script at startup: "systemctl --user stop pulseaudio.socket && systemctl --user stop pulseaudio.service"
Setup >> Options > [X] Run script after shutdown: "killall -9 jackd && systemctl --user start pulseaudio.socket && systemctl --user start pulseaudio.service")
. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
  • I don't care about the freedom of speech because I have nothing to say.
redu
Established Member
Posts: 24
Joined: Tue Mar 10, 2015 3:33 pm

Re: Jack fails to start

Post by redu »

Thanks khz!
Unfortunately jack still fails to start.
D-bus error disappeared, but this remains:
Could not connect to
JACK server as client.
Overall operation failed
redu
Established Member
Posts: 24
Joined: Tue Mar 10, 2015 3:33 pm

Re: Jack fails to start

Post by redu »

Installed the "low latency kernel" 5.7. No luck.
Kott
Established Member
Posts: 818
Joined: Thu Mar 21, 2013 12:55 am
Location: Vladivostok
Has thanked: 65 times
Been thanked: 122 times

Re: Jack fails to start

Post by Kott »

Let me help to solve this problem.

At first run with verbose output and no hardware driver:

jackd -v -ddummy
Post Reply