mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-04-25 16:15:52 +03:00
[PR #212] [MERGED] Fix: Activate A2DP audio profile for AirPods after system reboot on Linx #330
Labels
No labels
android
bug
documentation
enhancement
good first issue
help wanted
linux
pull-request
reverse-engineering
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librepods#330
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kavishdevar/librepods/pull/212
Author: @xxmathias
Created: 9/30/2025
Status: ✅ Merged
Merged: 9/30/2025
Merged by: @kavishdevar
Base:
main← Head:fix-airpods-audio-after-reboot📝 Commits (1)
193481bFix: Activate A2DP audio profile for AirPods after system reboot📊 Changes
1 file changed (+40 additions, -0 deletions)
View changed files
📝
linux/main.cpp(+40 -0)📄 Description
After a system reboot, AirPods microphone is detected, but the audio output (A2DP sink) is not available. This occurs because the Bluetooth connection is automatically restored by the system, but the A2DP audio profile is not activated, leaving only the HFP/HSP profile active (microphone only).
Solution
The solution is to add A2DP profile activation in three key scenarios:
Test Scenario
pactl)- Wake from sleep/suspend
- App restart while AirPods connected
- ✅ Manual Bluetooth reconnection
Technical Details
The fix ensures that
pactl set-card-profile [device] a2dp-sinkis called after detecting the AirPods connection, with appropriate delays (1-2 seconds) to ensure the Bluetooth connection is fully established before attempting profile switching.This addresses the issue where users had to manually select AirPods as the audio output device / audio device not poping up after every reboot.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.