this post was submitted on 22 Feb 2025
20 points (95.5% liked)

Linux

50411 readers
873 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

So I wanted to watch a movie with another person and we both using our own bluetooth earbuds. So I found this code to be placed inside context.modules in the PipeWire config file:

{   name = libpipewire-module-combine-stream
    args = {
        combine.mode = sink
        node.name = "bt-broadcast"
        node.description = "A combined sink to all bluetooth devices"
        combine.latency-compensate = false
        combine.props = {
            audio.position = [ FL FR ]
        }
        stream.props = {
        }
        stream.rules = [
            {
                matches = [
                    # any of the items in matches needs to match, if one does,
                    # actions are emitted.
                    {
                        # all keys must match the value. ! negates. ~ starts regex.
                        # matches all bluez sinks
                        node.name = "~bluez_output.*"
                        media.class = "Audio/Sink"
                    }
                ]
                actions = {
                    create-stream = {
                        combine.audio.position = [ FL FR ]
                        audio.position = [ FL FR ]
                    }
                }
            }
        ]
    }
}

I am using Debian 12 stable so the PipeWire config file was the one at /usr/share/pipewire

I did that, then systemctl restart wireplumber and maybe restarted some other services don't remember. It worked.

We watched the movie, I turned off the laptop. Now I picked it up again and there is no sound at all, whatever output device I choose on the Gnome config UI or on the EasyEffects UI, I can't get sound on the built in speakers, can't get on the bluetooth earbuds either (selecting the virtual device or the actual single earbud).

Help?

you are viewing a single comment's thread
view the rest of the comments
[–] Jumuta@sh.itjust.works 3 points 14 hours ago

in the future if you want to do this again qpwgraph might be a easier way to do it