This article guides you on how to manage airpods and airpods pro on linux.
It uses pulseaudio and ofono telephony service for A2DP, HSP/HFP profiles.
Lets start…
1. Dependencies
1 2 3 |
sudo add-apt-repository ppa:smoser/bluetooth sudo apt-get install ofono-phonesim ofono git clone https://github.com/rilmodem/ofono.git /opt/ofono |
2. Download the script
1 |
wget https://raw.githubusercontent.com/AkhilJalagam/pulseaudio-airpods/master/pulseaudio-airpods |
3. Tweak the script for first time
replace MAC and card name in the script
1 2 |
AIRPODS_MAC='4C:6B:E8:80:46:84' # it should be somewhere in blueman-manager AIRPODS_NAME='bluez_card.4C_6B_E8_80_46_84' # you can find this using 'pactl list cards' command |
4. Usage
1 |
pusleaudio-airpods connect/toggle_profile/disconnect |
Note
you should first pair your airpods using blueman-manager and trust them to use this script