Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bluetooth headset/ headphone Ubuntu 20.04 - tested with Sony WH-1000XM4 - shell script
#!/bin/sh
# sudo add-apt-repository ppa:eh5/pulseaudio-a2dp (NOT NEEDED ANYMORE)
sudo apt update
sudo apt install libldac \
libavcodec-extra58 \
pulseaudio \
pulseaudio-module-bluetooth \
blueman
# bluez is installed as dependency
# NOTE: pulseaudio 15.0 inclues LDAC, AptX and others (AAC?)
# NOTE: for Sony WH-1000XM4, start blueman and activate XM4 bluetooth search (phone shortcut or using mobile app in 2 connected devices mode). Works with LDAC and HFP/HSP (first is preferred for quality, second is NEEDED for mic input, degrading output)
# NOTE: only HFP/HSP supports both sound and mic at same time the other profile does not support mic at all. Yes, it will degrade output due to duplex connection (in/out)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment