librepods-org / librepods-org/librepods

[Linux] 'a2dp-sink' is called 'a2dp_sink' on Arch Linux

Open
#107 14 comments 0 reactions 0 assignees View on GitHub

A pull request for this has already been merged.

  • #108 by @tim-gromeyer — merged
Dominant language
Kotlin
Stars
29.9k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Hello, I recently discovered this project and really like it! I've built the new Linux app but I've been getting the following error when activating the A2DP profile:

Failure: No such entity
airpodsApp:  Failed to activate A2DP profile 

I noticed that this was because the pactl command to activate this profile uses a2dp-sink, whereas on Arch Linux, it is a2dp_sink. I'm not sure where exactly this discrepancy comes from.

I think a potential solution could be to try a2dp-sink, and then fallback to a2dp_sink if the first command fails. I can definitely submit a PR with whatever decision is decided as well.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open linux/mediacontroller.cpp around line 196 and inspect the pactl invocation used to activate the A2DP profile. Reproduce the failure on Arch Linux and compare the profile names, then verify that A2DP activation succeeds with the supported naming variants.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux
Domain
operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.