[PR #424] [Linux] Fix ear detection pause/resume with playerctl fallback #396

Open
opened 2026-03-02 12:41:01 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/kavishdevar/librepods/pull/424
Author: @hazzsaeedharis
Created: 1/8/2026
Status: 🔄 Open

Base: mainHead: fix/ear-detection-playerctl-fallback


📝 Commits (1)

  • 0d36ee1 [Linux] Fix ear detection pause/resume with playerctl fallback

📊 Changes

1 file changed (+37 additions, -8 deletions)

View changed files

📝 linux/media/mediacontroller.cpp (+37 -8)

📄 Description

  • Remove isActiveOutputDeviceAirPods() check from pause/resume logic as it fails on some systems where PulseAudio can't detect the Bluetooth card properly

  • Add playerctl as fallback when DBus MPRIS doesn't find playing media players. This fixes compatibility with browsers and players that don't register properly with DBus on certain systems

  • Resume logic now correctly uses playerctl if that's how media was paused

Fixes ear detection not pausing media on aarch64 Ubuntu systems.

Summary by CodeRabbit

Release Notes

  • Bug Fixes
    • Fixed media pause and resume functionality to work reliably on all audio devices
    • Enhanced reliability of pause and resume operations with improved fallback handling

✏️ Tip: You can customize this high-level summary in your review settings.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/kavishdevar/librepods/pull/424 **Author:** [@hazzsaeedharis](https://github.com/hazzsaeedharis) **Created:** 1/8/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/ear-detection-playerctl-fallback` --- ### 📝 Commits (1) - [`0d36ee1`](https://github.com/kavishdevar/librepods/commit/0d36ee1b88f510f7544d77b0241b92acf0f73bfd) [Linux] Fix ear detection pause/resume with playerctl fallback ### 📊 Changes **1 file changed** (+37 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `linux/media/mediacontroller.cpp` (+37 -8) </details> ### 📄 Description - Remove isActiveOutputDeviceAirPods() check from pause/resume logic as it fails on some systems where PulseAudio can't detect the Bluetooth card properly - Add playerctl as fallback when DBus MPRIS doesn't find playing media players. This fixes compatibility with browsers and players that don't register properly with DBus on certain systems - Resume logic now correctly uses playerctl if that's how media was paused Fixes ear detection not pausing media on aarch64 Ubuntu systems. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **Bug Fixes** * Fixed media pause and resume functionality to work reliably on all audio devices * Enhanced reliability of pause and resume operations with improved fallback handling <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librepods#396
No description provided.