JACK and PULSEAUDIO problems after Linux Mint upgrade [SOLVED]

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

Moderators: MattKingUSA, khz

Post Reply
UncleOilybag
Established Member
Posts: 5
Joined: Mon Dec 26, 2016 8:37 pm
Has thanked: 1 time

JACK and PULSEAUDIO problems after Linux Mint upgrade [SOLVED]

Post by UncleOilybag »

I have 2 computers- a laptop running Linux Mint 19.3 and a desktop running Mint 20.2 - and on both of them I managed to get ALSA/PULSEAUDIO/JACK all working in perfect harmony by basically following the instructions in https://www.youtube.com/watch?v=EoN0GLYhAzk&t=45s which basically uses KXStudio (Cadence).
Then - I decided to upgrade my Mint 19.3 to 20.2 on my laptop.
All seemed to be going well - yes, I had to remove the KX PPAs but they were easily put back in. Again I set up as per the YouTube instructions but on re-boot I am having big problems.
JACK (through Cadence) fails to start - ther error message I get is something like:-

Mon Jul 26 16:43:31 2021: ERROR: Cannot lock down 82280346 byte memory area (Cannot allocate memory)
Mon Jul 26 16:43:32 2021: Acquired audio card Audio0
Mon Jul 26 16:43:32 2021: creating alsa driver ... hw:0|hw:0|512|2|48000|0|0|nomon|swmeter|-|32bit
Mon Jul 26 16:43:32 2021: ERROR:

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

Mon Jul 26 16:43:32 2021: Released audio card Audio0
Mon Jul 26 16:43:32 2021: ERROR: Cannot initialize driver
Mon Jul 26 16:43:32 2021: ERROR: JackServer::Open failed with -1
Mon Jul 26 16:43:32 2021: ERROR: Failed to open server

Note this hs happening after login - and before I have opened any other programs.
After hours of searching I have found a "workaround" which is - completely re load ALSA with
sudo alsa force-reload
then use Cadence to restart Jack.
But I have to do this every time I boot up computer.
It 'feels' like pulseaudio and jack are competing at start up - but I can't see where this is different from my desktop computer which doesn't need this 'workaround'
Please could somebody point me in the right direction - is it some config file somewhere I need to alter?
Last edited by UncleOilybag on Tue Jul 27, 2021 4:53 pm, edited 1 time in total.
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 and PULSEAUDIO problems after Linux Mint upgrade

Post by sysrqer »

Have you got the pulseaudio-module-jack installed? You might also need to update the pulseaudio config:

Edit (or uncomment) /etc/pulse/default.pa file to include two lines under the load audio drivers manually section:

load-module module-jack-sink
load-module module-jack-source
UncleOilybag
Established Member
Posts: 5
Joined: Mon Dec 26, 2016 8:37 pm
Has thanked: 1 time

Re: JACK and PULSEAUDIO problems after Linux Mint upgrade

Post by UncleOilybag »

Thanks for your input - I'll have a look @ /etc/pulse/default.pa and compare my two computers.

I have solved ther problem - I was wrong to implicate pulseaudio as a culprit which stopped Jack from grabbing the playback device - in fact it was the timidy demon

I actually don't use timidity now ( I used to) - for my MIDI stuff I use Qsynth

So entering this with a reboot solved my problem:-

sudo apt purge timidity-daemon

Thank you :)
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 and PULSEAUDIO problems after Linux Mint upgrade [SOLVED]

Post by sysrqer »

Oh that's interesting, I haven't heard of that causing a problem before. Glad you got it sorted out.
User avatar
sunrat
Established Member
Posts: 915
Joined: Wed Jul 22, 2020 2:08 pm
Has thanked: 151 times
Been thanked: 242 times

Re: JACK and PULSEAUDIO problems after Linux Mint upgrade [SOLVED]

Post by sunrat »

Wow, I've heard a few reports of that timidity issue but last one was maybe 2 years ago so I thought it was fixed. Didn't even consider it might still be happening. Good you got it sorted!
Post Reply