[Solved] Pipewire interfering with JACK

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

oddy.o.lynx
Established Member
Posts: 115
Joined: Sat Jun 30, 2018 2:54 am
Has thanked: 22 times
Been thanked: 22 times

Re: [Solved] Pipewire interfering with JACK

Post by oddy.o.lynx »

Linuxmusician01 wrote: Thu Jul 06, 2023 9:12 am

Without PulseAudio how are you going to listen to Yt video's in your internetbrowser? Most require PA for audio AFAIK.

With Pipewire YouTube videos play through Firefox.... because PW is both JACK and Pulseaudio at the same time

With JACK I had to close FF, enable the Pulse-Jack Bridge, then open FF

with Pipewire just open FF, go to YT, sound plays as PW picks up the ALSA

User avatar
sunrat
Established Member
Posts: 926
Joined: Wed Jul 22, 2020 2:08 pm
Has thanked: 152 times
Been thanked: 247 times

Re: [Solved] Pipewire interfering with JACK

Post by sunrat »

oddy.o.lynx wrote: Thu Jul 06, 2023 2:02 pm

With JACK I had to close FF, enable the Pulse-Jack Bridge, then open FF

Seems like a hassle to stop/start it. I just leave the pulseaudio-jack sink active all the time.

User avatar
LAM
Established Member
Posts: 992
Joined: Thu Oct 08, 2020 3:16 pm
Has thanked: 141 times
Been thanked: 349 times

Re: [Solved] Pipewire interfering with JACK

Post by LAM »

oddy.o.lynx wrote: Thu Jul 06, 2023 2:02 pm
Linuxmusician01 wrote: Thu Jul 06, 2023 9:12 am

Without PulseAudio how are you going to listen to Yt video's in your internetbrowser? Most require PA for audio AFAIK.

With Pipewire YouTube videos play through Firefox.... because PW is both JACK and Pulseaudio at the same time

With JACK I had to close FF, enable the Pulse-Jack Bridge, then open FF

with Pipewire just open FF, go to YT, sound plays as PW picks up the ALSA

If I start JACK in the middle of a Youtube's video playing I just have a second of silence, basically the time it takes on my machine for JACK to start and the PA-JACK sink to get created, all through Qjackctl. Since I used Qjackctl, always been like this as far I remember. One setting that could help is

Code: Select all

Settings > Advanced > Start Delay

set to 1 or 2 seconds. It gives a bit of headroom when starting things.

The problem of Youtube videos freezing is likely because PA didn't switch the default sink to the PA-JACK Sink when JACK started. There are several way to automate that in pavucontrol, Qjackctl itself and so on, just search the forum and choose your preferred solution.

in mix, nobody can hear your screen

oddy.o.lynx
Established Member
Posts: 115
Joined: Sat Jun 30, 2018 2:54 am
Has thanked: 22 times
Been thanked: 22 times

Re: [Solved] Pipewire interfering with JACK

Post by oddy.o.lynx »

sunrat wrote: Thu Jul 06, 2023 2:26 pm
oddy.o.lynx wrote: Thu Jul 06, 2023 2:02 pm

With JACK I had to close FF, enable the Pulse-Jack Bridge, then open FF

Seems like a hassle to stop/start it. I just leave the pulseaudio-jack sink active all the time.

that will produce xruns when recording in real time, this is one reason why by default on a Linux Audio Production computer it's best to mask PulseAudio

tseaver
Established Member
Posts: 408
Joined: Mon Mar 13, 2017 6:07 am
Has thanked: 12 times
Been thanked: 102 times

Re: [Solved] Pipewire interfering with JACK

Post by tseaver »

@oddy.o.lynx

@sunrat

Seems like a hassle to stop/start it. I just leave the pulseaudio-jack sink active all the time.

that will produce xruns when recording in real time, this is one reason why by default on a Linux Audio Production computer it's best to mask PulseAudio

In my experience, leaving PulseAudio "idle" in a well-tuned JACK environment does not result in xruns at recording time: I use it all the time (e.g., to record a "reference track" from a YT video into an Ardour session).

On my system (an AVL MX Linux MX Edition 21.2.1 "Consciousness" install), where I leave the PulseAudio sink / source "ports" active all the time, the only xruns I see are due to the following:

  • System suspend / resume
  • Starting / stopping the DAW (Ardour)

Period.

My JACK config is 48000 Hz/s, 128 samples / frame, 3 frames / period, on my Focusrite Scarlett 18i20 gen1 USB interface.

Ubuntu, Mixbus32C; acoustic blues / country / jazz
asbak
Established Member
Posts: 897
Joined: Thu Sep 11, 2014 3:04 pm
Has thanked: 71 times
Been thanked: 64 times

Re: [Solved] Pipewire interfering with JACK

Post by asbak »

Morlock was also spelled incorrectly, I must be getting old.

j_e_f_f_g wrote: Fri Jun 23, 2023 11:58 am

You spelled "musician" incorrectly.

Some Focal / 20.04 audio packages and resources https://midistudio.groups.io/g/linuxaudio
Post Reply