librepods-org / librepods-org/librepods
[Linux] Refresh the PipeWire card index after AirPods reconnect
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 29.9k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
Problem
MediaController caches the PulseAudio/PipeWire card index. PipeWire may assign a different index after AirPods disconnect and reconnect, so later availability checks can query a card that no longer exists and incorrectly conclude that A2DP is unavailable.
Expected behavior
Resolve the current card by Bluetooth MAC before each A2DP activation and update the cached index used by subsequent profile operations.
Acceptance criteria
- Reconnection with a changed card index is detected without restarting the application.
- Availability checks and profile activation use the newly resolved card.
- Failure to find the card exits cleanly without operating on the stale index.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in MediaController at the cached PulseAudio/PipeWire card index and the A2DP availability and activation paths. Trace how the Bluetooth MAC can resolve the current card, then verify reconnection with a changed index, successful profile operations, and clean handling when the card cannot be found.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin, linux
- Domain
- audio-video-rtc, desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100