Pls can you help with pipewire and sample rates

No, no no. I advised against using pw-jack.

And yes, Pipewire 1.0.X will be unsatisfactory for your purposes.

1 Like

What is the difference between the two pls?!

pipewire-jack is a Pipewire module that provides full support for the JACK API.

pw-jack is (as Chris explained) a utility program that alters where your system will look for the JACK libraries when starting up an application (so that it finds the Pipewire ones instead of the ones associated with a different implementation of JACK).

Maximum utility is obtained by having a system where the linker is already configured to use the Pipewire versions of the JACK libraries by default. This is generally done via /etc/ld.so.conf or /etc/ld.so.conf.d/ but it is also really the job of the pipewire-jack package on your distribution, not a task for you.

I was unable to use Pipewire satisfactorily until I switched to v1.2 or later. Many distributions got a bit ahead of things here …

3 Likes

You probably screwed up your desktop audio configuration pretty badly.
You seem to have a misunderstanding of a lot of the terms.
This: pipewire-jack
is the pipewire module which provides the JACK API support for the pipewire server. Pipewire as a base package has a native API which is really only used by configuration tools. Existing applications will use one of the compatibility API which pipewire implements, such as JACK using the pipewire-jack module for audio production programs.

This: pulseaudio-utils
is the package which provides pactl, which is the desktop program usually used for things like selecting and configuring which audio device to use for default desktop audio. If you only have one device you might still be OK, but if you have (or ever in the future have) multiple audio devices that you want to select between you will need the programs in pulseaudio-utils.

My distribution does not have pipewire-audio-client-libraries as a separate package, so I am not sure what removing that may have broken.

The fact that your distribution let you install jackd2 and jackd1 at the same time is a bit surprising, those should usually be configured to be mutually exclusive.

I think that means newest version in the stable repositories for Ubuntu 24.04. If you are not going to update to Ubuntu 25.10 you will need to find a repository to provide a more recent version for Ubuntu 24.04 if you want to use JACK routing.

Just the ability to route audio between multiple applications. The two main places that gets requested. The first case is someone wants to listen to YouTube, or some other playback application either at the same time, or quickly switch back and forth between e.g. an instruction video and working on Ardour to try out what was just learned from the video.
The second case is using an audio production application which is not available as a plugin, such as Hydrogen drum programming software, and routing the output of that software into Ardour.

If you were in the second case you would know, and would have to get JACK routing working. Since you are using ALSA backend acceptably that implies that you would just use JACK routing for convenience, so that is all you lose, the ability to quickly listen to something playing back in your browser, VLC, etc. while you have Ardour running.

I would start by reinstalling these that you removed:
pipewire-audio-client-libraries, pulseaudio-utils

Those are unrelated to JACK implementation and provide useful utility functions for desktop audio.

I would advise against dabbling with your audio system in this way, if you are looking for a stable and functional system.

Unfortunately, there’s a lot of bad information on the Internet about this subject. Not because the information was necessarily always bad, but because there’s so many differences between different distros, and a lot of the original advice given has aged like milk as things changed.

I would suggest you lean on the work of others. in my case, running Kubuntu 24.04, I found a PPA specifically designed to install newer versions of Pipewire onto different versions of Ubuntu. I have had no major problems since installing this:

But, I would suggest, if you are going to mess with fundamental stuff like the audio subsystem (even with good PPAs like this ones I linked above), make sure you have an easy and reliable way to roll back any changes (Timeshift is a good option).

Cheers,

Keith

pipewire-audio-client-libraries is just a transitional metapackage which provides pipewire-alsa and pipewire-jack. It doesn’t need to be installed, and isn’t in my Debian Trixie install. Shouldn’t be needed in *buntu either if those 2 packages are installed.

Yes indeed I don’t have a great understanding of this stuff, I’d say all these bits of architecture are quite complex. I use Ardour to get more out of music, I have little interest in linux and the various software components except to make Ardour work. I think people who know a lot about a subject often underestimate how much they do know, and how it can be difficult for others to grasp.

I installed things that Copilot suggested. Re. pipewire-audio-client-libraries and pulseaudio-utils, these installed without issues so I assume they were previously absent, and in fact I installed the latter because pactl didn’t work. But I will re-install.

That’s interesting about jackd1 and 2. I was wondering why, when I uninstalled jackd2, apt installed jackd1, jackd1-firewire and libjack0.

Keith, thanks for the PPA tip. I probably won’t try it, a PPA is further complexity best avoided in my eyes!

Thanks, only just saw that.

Going back to the OP… If you’re using Ubuntu isn’t there some kind of Ubuntu Studio overlay or Audio Utilities you could install to make this work better instead of all this thrashing in the dark…? The butchery of how (some) mainstream Distros handle PipeWire is kinda unbelievable… :roll_eyes:

It’s literally a one-liner ldconfig command to make PipeWire JACK work invisibly like JACK1/2

That is your mistake. Never, and I mean NEVER trust any of these current AI tools.

They will deceive you, and gaslight you, and get you in all sorts of trouble, especially when dealing with something like Linux where users have a tremendous amount of power to change things (which also means tremendous power to mess things up)

If you have some knowledge of the subject, AI tools can be useful. But only if you can cajole them into giving you sensible answers, which means having enough knowledge to know when they are misleading you.

But if you don’t have that knowledge, using AI is a sure recipe for disaster.

It is, (or should be) far easier than messing around with installing individual packages, which appears to be what you were doing. Although it seems you were doing so by blindly following instructions from an AI.

Adding a PPA is really just adding a new software source to your software manager. The instructions are on the page I linked, 2 commands:

Cheers,

Keith

2 Likes

I thought that pipewire was invented to make things easier and ‘just work’ on linux.
When i read all this i think pipewire is a big failure and i will stick with ALSA…zero problems, just some inconveniences.

Then you clearly haven’t read Paul’s comments, for instance.

Pipewire works really well for most people. The main issue is mostly that people sometimes don’t know how to use it properly and that the distros may have fairly old versions.

If ALSA works for you, despite its inconveniences, it’s a good choice as well.

What kind of comment is this? Be serious! There’s nothing that “just works” if you don’t know how to make it work! Even using a coffee maker requires some level of skills…

Please note that I’m having a lot of trouble setting up and using Pipewire, like I said on my last post here on the forum, so I’m not on any side of a holy war about it. PW is probably a good project but in my opinion is not mature enough to be used straight away. I clearly remember when ALSA didn’t just work at all, back the early 2000’s… Now, after decades, it is stable enough to say: it just works.

Then you should look at a specialised distro like AV Linux, Ubuntu Studio etc. where these things are already set up.

Debian made a decision to set up pipewire so you need to type this prefix to launch jack apps through it. It then filters down through the distros based on it and derivatives. Others such as Fedora and Opensuse don’t have this quirk. So, as mentioned, it depends how the distro is set up to how many problems there are.

2 Likes

Thanks, yes, good point. I have a laptop I occasionally use for recording performances with Ub.Studio. I upgraded it to 24 some months ago and so came face to face with plasma for the first time. A fresh install of Studio on my desktop computer might be worth it in the long run. Does the choice of desktop i.e. plasma, gnome… matter to Ardour in any way? And does X11 vs. Wayland matter to Ardour?

It’s not, I believe.

You’d probably need some additional tweaks to achieve decent Ardour performance under Wayland. And using Ardour on Wayland is generally discouraged by the devs (for good reason). I’d stick with X11 for professional audio production anyway, unless you’re using Wayland native apps like PreSonus StudioLive.

1 Like

I have run Ardour fine in both X11 and XWayland (what wayland uses to run X programs).

You need to state the reason otherwise you’re just spreading FUD.

There was discussion in a different thread recently of a few X features which XWayland does not currently implement. It depends on your usage patterns how much those bother you.

1 Like

So did I. Out of the box Ardour performance on Wayland was terrible in my case. After some tweaking (the ‘Use intermediate image-surface to render canvas’ option was crucial, if I remember correctly) performance was comparable to X11 – though still with slightly higher CPU usage on Wayland. Anyway, I dropped Wayland not because of Ardour, but because of overwhelming flux of issues in other apps on my Debian/Trixie workstation. And I consider myself a power user. If your mileage differs, that’s fine.

As @ccaudle mentioned, there was a rather lenghtly discussion about this topic recently. I don’t consider most of the arguments presented there to be a FUD. Anyway, I don’t despise Wayland – quite the opposite. I still believe it’s future of Linux. But it is just not ready for the prime time yet. And yes, that’s just my personal opinion – but it’s based on direct experience, not on obscure superstitions or hearsay.

4 Likes

That thread is not relevant to the question asked. If there’s some issue with using Ardour on Wayland, then say what it is rather than just allude to something that may be anything and was actually nothing. Not everyone is a forum “power user” able to telepathically understand what you are talking about.