Skip to content

dev01d/btConnect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

This fixes an how pulseaudio handles Bluetooth headphones and makes it function more like core audio (that has sane defaults).

PA's infuriating normal operation

When reconnecting Bluetooth headphones after they have been disconnected/powered off, pulseaudio does not automatically recognize them as a2dp and forces them to connect in HST mode (which includes mono audio -_____-).

I created this repo for my own convenience/archiving and all code is from a medium article that explains usage and how you too might be inconvenienced by pulseaudio's method of handling Bluetooth headphones on Linux.

Side note

To make pulseaudio auto-select your headphones on connect

create ~/.config/pulse/default.pa if it doesn't exist and then append

.include /etc/pulse/default.pa
load-module module-switch-on-connect

Afterwards restart pulseaudio to enable to changes

pulseaudio -k && pulseaudio --start

For the switch_headset command keyboard shortcut make sure to list the command as bash ~/.local/bin/switch_headset

File manifest:

├── 80-bt-headset.rules --> /etc/udev/rules.d/80-bt-headset.rules
├── a2dp-fix --> /usr/local/bin/a2dp-fix
├── a2dp-fix-wrapper --> /usr/local/bin/a2dp-fix-wrapper
└── switch_headset --> ~/.local/bin/switch_headset

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages