Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Linux
  3. Created virtual device on PipeWire to play sound through 2 bluetooth devices at the same time, it worked but after restarted I have no audio anywhere. Help?

Created virtual device on PipeWire to play sound through 2 bluetooth devices at the same time, it worked but after restarted I have no audio anywhere. Help?

Scheduled Pinned Locked Moved Linux
linux
4 Posts 4 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G This user is from outside of this forum
    G This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #1

    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?

    J jumuta@sh.itjust.worksJ R 3 Replies Last reply
    0
    • System shared this topic on
    • G [email protected]

      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?

      J This user is from outside of this forum
      J This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #2

      Need the status of the levels on the individual outputs. These may be selected as the primary output right now. Try disabling this config and restart.

      Next steps are checking mixers to make sure your levels are set for the intended output (sometimes they get auto-muted when switching output devices).

      1 Reply Last reply
      0
      • G [email protected]

        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?

        jumuta@sh.itjust.worksJ This user is from outside of this forum
        jumuta@sh.itjust.worksJ This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • G [email protected]

          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?

          R This user is from outside of this forum
          R This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #4

          if you install qpwgraph, what connections do you see? a screenshot may be helpful

          1 Reply Last reply
          0
          • System shared this topic on
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups