** Description changed:

  With PipeWire, a Bluetooth headset is a single sink bluez_output.<MAC>
  in every profile; only its ports change (headset-output for A2DP,
  headset-hf-output for HSP/HFP). The gvc (libgnome-volume-control) copies
  embedded in unity-settings-daemon (plugins/media-keys/gvc) and unity-
  control-center (panels/sound) still assume one sink per profile
  (PulseAudio behaviour):
  
  1. Selecting "Handsfree" in Sound Settings aborts unity-settings-daemon:
     Gvc:ERROR:gvc-mixer-stream.c:534:gvc_mixer_stream_get_port: code should 
not be reached
     (the Sound panel's own gvc copy has the same assert)
  
  2. Once that is avoided, selecting "Headset" while in HFP does nothing:
  the Sound panel tries to change the sink port instead of the card
  profile.
  
  Steps to reproduce:
  1. Unity session with PipeWire (tested: PipeWire 1.4.11, WirePlumber 0.5.13).
  2. Connect a Bluetooth headset supporting A2DP and HFP.
  3. System Settings > Sound > Output: select "Handsfree" -> 
unity-settings-daemon gets SIGABRT.
  4. With the crash fixed: select "Handsfree", then "Headset" -> nothing 
happens.
  
  Upstream libgnome-volume-control removed the same assertion in
  GNOME/libgnome-volume-control!31 (commit 806b8e2, "mixer-stream: Allow
  ports to not exist"). The second problem is specific to the old gvc copy
  in Unity; GNOME's fix for it depends on later gvc changes that the Unity
  copy lacks, so a targeted fix is proposed.
  
  Patches (merge requests against ubuntu/devel on gitlab.com/ubuntu-unity)
  will be linked in a comment below. They were tested on 22.04 with a real
  headset; the affected files are byte-identical in the development
  release.
  
- AI disclosure: prepared with the help of Claude (Anthropic's AI
- assistant), used as a tool under my direct supervision. No decision was
- made by an autonomous agent: I reviewed, tested and approved everything
- before submitting.
+ AI disclosure: prepared interactively with Claude Code (Anthropic's AI
+ coding assistant). Every action was requested, reviewed and approved by
+ me; nothing was decided or published autonomously.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175446

Title:
  unity-settings-daemon crashes (gvc_mixer_stream_get_port assertion)
  and Sound panel cannot switch a Bluetooth headset back to A2DP under
  PipeWire

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-control-center/+bug/2175446/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to