Protect active Bluetooth audio from panel discovery - #7385
Open
lbonvarl wants to merge 1 commit into
Open
Conversation
Skip automatic Bluetooth discovery while PipeWire reports a connected Bluetooth audio sink. Add a session-only scan override for pairing another device, with explicit interruption copy and close-time cleanup. Fixes basecamp#7384
lbonvarl
force-pushed
the
agent/protect-bluetooth-audio
branch
from
August 18, 2026 13:14
158d550 to
9cf894c
Compare
lbonvarl
marked this pull request as ready for review
August 19, 2026 14:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
#6794 fixed the discovery session that survived after the Bluetooth panel closed, but the panel still starts inquiry immediately while a Bluetooth audio sink is connected. On controllers that cannot scan and sustain A2DP reliably at the same time, audio stutters or pauses for as long as the panel remains open.
The existing retry loop only considers panel, adapter, and discovery state. It does not consider the PipeWire sink already using the controller.
Fixes #7384.
What changed
Audio protectedin the hero and add an Omarchy-styleScan anywayaction.Behavior
With Bluetooth audio connected:
Scan anywaystarts discovery explicitly and changes toStop scanning.Without a Bluetooth audio sink, the existing automatic discovery behavior is unchanged.
Validation
qmllint -I shell shell/plugins/panels/bluetooth/Panel.qmlbash test/shell.d/bluetooth-test.shwtypeas well as by pointer.Discovering: noyesnowithout retryingno./test/all: 179 of 180 shell test files passed in the full desktop run.runtime-smoke-test.shhit a transient IPC-handler count mismatch against the already-running shell; its immediate standalone rerun passed completely.The Bluetooth regression test now covers sink tracking, audio-aware retry gating, the explicit override, manual-stop suppression, and close-time reset.