The last two upgrades have broken my audio setup.

First the options for Network Server and Network Access in paprefs were greyed out and my sinks disappeared after upgrading to bookworm. I just had to create a link to an existing file and it was working again but, it’s weird that it was needed in the first place. Pretty sure it has something to do with the change from pulseaudio to pipewire but I’m not very up to date on that subject and I just want to have my current setup to continue working.

Then yesterday I just launch a simple apt-get upgrade and after rebooting my sinks disappeared again. The network options in paprefs were still available, but changing them did nothing. I had to create the file ~/.config/pipewire/pipewire-pulse.conf.d/10-gsettings.conf and stuff it with “pulse.cmd = [ { cmd = “load-module” args = “module-gsettings” flags = [ “nofail” ] } ]” in order to have my sinks back.

I know it’s not only a Debian thing, as I can see this happening to people on Arch forums, but as Debian is supposed to be the “stable” one, I find it amusing that a simple upgrade can break your sound.

62 points
*

Alternatively,

permalink
report
reply
24 points

Out of curiosity why do you have your audio over the network? Just curious

permalink
report
reply
44 points

Mainly because of bluetooth headphones with multiple computers. That way they are paired to only one computer and I can use them with other computers at the same time. Just right click on paprefs system tray icon, change the sink and the audio is sent somewhere else. I know it’s now possible to have bluetooth headphones that have multiple connections but it wasn’t the case a few years ago and I still find it much more useful this way.

But it’s also useful when I have my laptop near my main computer and want to use its much better speakers instead of the crappy ones on the laptop. Right click, select another sink, and that’s it.

It’s just nice to have the option to send the audio from one computer to another. It’s a shame that it’s apparently a niche thing.

permalink
report
parent
reply
12 points

I’ve also used pulseaudio for this sort of things in the past, it’s very flexible and works rather well!

permalink
report
parent
reply
9 points

When it works (!), it’s one of the reasons I brag to my tech friends about Linux, and why I switched to Linux many many years ago. In fact, it was when Esound was a thing. But once in a while it stops working after an upgrade or a dist-upgrade, and I have to spend time trying to fix it.

I like to joke around with tech minded friends that Windows keeps breaking with every updates, but then I have to spend an hour finding out why my sinks disappeared after an upgrade, and I’m forced to realize that… sigh… these things happen with Linux too.

permalink
report
parent
reply
4 points

I haven’t been using pluseaudio for an eternity, since the Linux machines I use are mostly headless,.yet I was a pluseaudio fanboy when it was.just replacing ALSA. Yet, the hours and hours pulseaudio cost me to fix some upmix that had stopped working or some other weird shit… IDK if I’d still preach it’s upsides would I be in the same situation now.

permalink
report
parent
reply
1 point

That’s a cool use case

permalink
report
parent
reply
2 points

I’ve never heard of someone doing something like this before, but it sounds like it could have some pretty cool downstream applications (thinking Bluetooth speakers)

With your setup would it be possible to pair your headphones to your phone (iPhone in my case) and be able to pass audio from different computers to a central one that my phone could then relay to my headphones?

I often walk around my house/yard while listening to something playing on my laptop/desktop. And if I get too far from the source, it breaks the Bluetooth connection. So I usually end up having to drag my laptop around the yard with me. A much nicer solution would be to have my phone on my person, and use the wifi to keep connected to my “audio source” without needing proximity to the actual pc playing the sound.

permalink
report
parent
reply
2 points

Audio over the network is a feature of pulseaudio/pipewire from a module aptly named “module-simple-protocol”, and as simple as it is to make it work on Linux (when it works), it’s unfortunately not as easy on other platforms. Technically speaking, it’s possible to do that on Android with an app called “Simple Protocol Player” but it’s apparently very glitchy and you’re going to need some patience for the setup. It’s from someone that wanted to stream audio from an HTPC with Ubuntu to an Android phone, but the author states that it’s pretty buggy. Here’s the link to their blog: https://kaytat.com/blog/?page_id=301

So the short answer is unfortunately “no”, unless you want to practice your patience on a project.

permalink
report
parent
reply
1 point

Does this give network latency on top of Bluetooth latency or does the network somehow “handshake” it with the Bluetooth on the devices you’re listening to?

permalink
report
parent
reply
1 point

I never noticed any latency when I’m not using bluetooth. And no, the devices do not speak to each other. For PA/pipewire, this is just an audio sink as any other.

There is latency when using bluetooth but this is pretty standard. It just doesn’t increase (or not noticeably) when streamed to another computer.

permalink
report
parent
reply
1 point

@pedz
I’m on the same point. Until i had my multi connection bluetooth I worked the same way. The problem now. It does not work that nice.
I try currently to switch back. But my goal currently is using my #Kodi Mediacenter. But Kodi sems still using alsa. It was a hack to get simultaniousl y output with a bluetooth speaker. (For Radio in other rooms)
I gave up this network audio setup for Kodi.

@MrWafflesNBacon

permalink
report
parent
reply
1 point
*

AFAIK Kodi can use pulseaudio and probably pipewire. I use Kodi too on those computers and I just leave it to use the default PA device that I’ve set. I switch the default devices with pasystray.

What’s usually breaking for me is paprefs. Every so often after an upgrade, the options are greyed out and I can’t share or access my devices over the network.

I never tried to setup simultaneous output before because I just switch from device one to another, but I just enabled it in paprefs and it’s working too.

permalink
report
parent
reply
5 points

I updated the kernel and for some reason my ubuntu becomes unable to find how to use the network.

After going in circles it was much easier to just go back to the previous kernel.

permalink
report
reply
1 point

Double check if you have the -modules and/or -modules-extra installed for that version of the kernel. Literally had this issue at work on a 14.04 (sigh, I know) box.

permalink
report
parent
reply
5 points

on artix linux it couldnt be less stable, i think its been around 2 years since pipewire has failed to work but maybe im just one of the lucky ones

permalink
report
reply
2 points

I switched from artix to arch because of this

permalink
report
parent
reply
1 point

It’s possible to make it work under artix.i was using pipewire but u need to do some modififictions to config files.

permalink
report
parent
reply
32 points

The changes to linux audio lately are a bit of a mess. Wireplumber completely changed their config format with 5.0 and it just stopped launching if you had v4 configs.

I do appreciate that we’re not stuck with pulseaudio anymore though so I really shouldn’t complain.

permalink
report
reply
10 points
*

Mint is still on pulse, but thankfully there was someone out there that had a nice script that switches you to pipewire and easy effects so I did that.

(I tried to find that script again but can’t find it. Pretty sure it was on a forum somewhere if anyone needs to find it.)

Found it: https://github.com/Rigel2118/pipewire-installation-kit-for-linuxmint

permalink
report
parent
reply
11 points
*

Thanks to pipewire’s pulseaudio emulation transitioning from one to the other is effectively seamless. Just install the pipewire pulseaudio package (it’s tiny) after installing the rest of pipewire and apps that depend on pulse just work.

permalink
report
parent
reply
2 points

I added the script to my post. It’s not really that much and could have been done from a guide, but it sure as hell made it nice and simple.

permalink
report
parent
reply

linuxmemes

!linuxmemes@lemmy.world

Create post

Hint: :q!


Sister communities:

Community rules (click to expand)

1. Follow the site-wide rules
2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of “peasantry” to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
4. No recent reposts
  • Everybody uses Arch btw, can’t quit Vim, and wants to interject for a moment. You can stop now.

 

Please report posts and comments that break these rules!


Important: never execute code or follow advice that you don’t understand or can’t verify, especially here. The word of the day is credibility. This is a meme community – even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don’t fork-bomb your computer.

Community stats

  • 6.9K

    Monthly active users

  • 1.3K

    Posts

  • 71K

    Comments