All Projects → pastleo → Fix Bt A2dp

pastleo / Fix Bt A2dp

Licence: mit
Workaround fixing no A2DP when BT headphone reconnects automatically (after being paired)

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Fix Bt A2dp

bt profile
BT Profile Switcher
Stars: ✭ 18 (-28%)
Mutual labels:  bluetooth, pulseaudio
Multi Room Audio Centralized Audio For Home
🎵 This Github Repository provides details on setting up a centralized audio system for your home using nothing but Raspberry Pi's and Old Speakers.
Stars: ✭ 189 (+656%)
Mutual labels:  pulseaudio, bluetooth
Rpi Audio Receiver
Raspberry Pi Audio Receiver with Bluetooth A2DP, AirPlay, UPnP and Spotify Connect
Stars: ✭ 650 (+2500%)
Mutual labels:  bluetooth
Btw I Use Arch Milanopride2019
Milano Pride 2019 "btw I use arch" shirt
Stars: ✭ 16 (-36%)
Mutual labels:  archlinux
Yay
Yet another Yogurt - An AUR Helper written in Go
Stars: ✭ 7,100 (+28300%)
Mutual labels:  archlinux
Plymouth Themes
A hugh collection (80+) of plymouth themes ported from android bootanimations
Stars: ✭ 663 (+2552%)
Mutual labels:  archlinux
Node Escpos
🖨️ ESC/POS Printer driver for node
Stars: ✭ 752 (+2908%)
Mutual labels:  bluetooth
Anlinux App
AnLinux allow you to run Linux on Android without root access.
Stars: ✭ 614 (+2356%)
Mutual labels:  archlinux
Bluejay
A simple Swift framework for building reliable Bluetooth LE apps.
Stars: ✭ 917 (+3568%)
Mutual labels:  bluetooth
Pacapt
An ArchLinux's pacman-like wrapper for many package managers
Stars: ✭ 709 (+2736%)
Mutual labels:  archlinux
Pacaur
[unmaintained] An AUR helper that minimizes user interaction
Stars: ✭ 818 (+3172%)
Mutual labels:  archlinux
Trizen
Lightweight AUR Package Manager
Stars: ✭ 696 (+2684%)
Mutual labels:  archlinux
Joycontrol
Emulate Nintendo Switch Controllers over Bluetooth
Stars: ✭ 667 (+2568%)
Mutual labels:  bluetooth
Room Assistant
Presence tracking and more for automation on the room-level
Stars: ✭ 764 (+2956%)
Mutual labels:  bluetooth
Termuxarch
You can use setupTermuxArch.bash 📲 to install Arch Linux in Amazon, Android, Chromebook and Windows. https://sdrausty.github.io/TermuxArch/docs/install
Stars: ✭ 653 (+2512%)
Mutual labels:  archlinux
Blue
Easily switch bluetooth peripherals between multiple macs
Stars: ✭ 18 (-28%)
Mutual labels:  bluetooth
Atilo
Linux installer for termux
Stars: ✭ 629 (+2416%)
Mutual labels:  archlinux
Aurutils
Helper tools for the AUR.
Stars: ✭ 695 (+2680%)
Mutual labels:  archlinux
Galaxybudsclient
Unofficial Galaxy Buds Client for Windows
Stars: ✭ 733 (+2832%)
Mutual labels:  bluetooth
Repo
Arch Linux CN Repository
Stars: ✭ 929 (+3616%)
Mutual labels:  archlinux

Workaround fixing no A2DP when BT headphone reconnects automatically (after being paired)

updated 2019/03/30: This workaround might be no longer needed

I found bluez-git has upgraded to the version that this issue no longer exists (5.50.r295.g9e6da22ed-1 > 5.50-264-g750a26cd9)

Now we can remove this and install bluez-git:

yay -R fix-bt-a2dp
rm /etc/.fix-bt-a2dp.device-profiles /etc/.fix-bt-a2dp.user
yay -S bluez-git

after installing bluez-git, please check out my comments below...there is a problem I have to fixed manually.

Original README.md below


On my ArchLinux KDE plasma setup, BT headphone will use A2DP only when connected by pairing; after disconnect and reconnect, only HSP/HFP is available

According to https://github.com/EHfive/pulseaudio-modules-bt/issues/14#issuecomment-462039332, this should soon become unnecessary

this workaround deploys a udev-rules to detect changes of BT dev and systemctl start fix-bt-a2dp to call fix-bt-a2dp.rb in background with correct user

basically a rewrite from https://gist.github.com/EHfive/c4f1218a75f95b076f0387403246de78, mainly because I want to avoid slowing down connecting of other BT devs

Usage

install this AUR first:

yay -S fix-bt-a2dp

run this command with root to set GUI session owner:

/usr/bin/fix-bt-a2dp set-user [user]

When used with pulseaudio-modules-bt

recently pulseaudio-modules-bt has added codec name after a2dp_sink profile, and pacmd list-cards tells that my MDR-1ABT only supports AptX...so I finally came up with a solution by telling fix-bt-a2dp what profile should be used for a device manually...(so fix-bt-a2dp will set card profile to what you assigned when connected)

bluetoothctl devices
# => Device 10:4F:A8:CE:DB:D2 MDR-1ABT
fix-bt-a2dp set-device-profile MDR-1ABT a2dp_sink_ldac
# currently known profiles are
#   a2dp_sink_sbc a2dp_sink_aac a2dp_sink_aptx a2dp_sink_aptx_hd a2dp_sink_ldac

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].