Skip to content

Instantly share code, notes, and snippets.

@Aritzherrero4
Last active January 19, 2024 02:07
Show Gist options
  • Save Aritzherrero4/a0a422612af8de4de868181c4cd05030 to your computer and use it in GitHub Desktop.
Save Aritzherrero4/a0a422612af8de4de868181c4cd05030 to your computer and use it in GitHub Desktop.
Huawei Freebuds Pro - Linux (KDE Neon) configuration and AAC audio

Huawei Freebuds Pro - Linux (KDE Neon) configuration and AAC audio

The default configuration of KDE Neon does not work with the headphones. I have managed to connect them doing some changes, and adjusting some configurations. This resumes that, to keep it if I need to reconfigure them in the future.

This configuration has worked for me using the following setup:

  • KDE Neon 5.20, kernel 5.4.0
  • Freebuds Pro version 1.9.0.256
  • Cambridge Silicon Radio, Ltd Bluetooth Dongle

But it may work with other linux distributions and other hardware.

Connexion

If you try to connect them, and fails, try the following methods. Connexion Error

Bluetoothctl

The first thing you can try is to manually delete, trust, pair and connect the device using bluetoothctl

  1. Open a terminal and execute: sudo bluetoothctl
  2. Search the MAC address of the device using devices
  3. Delete the device with remove [MAC]
  4. Search for avaiable devices until you see the freebuds and then stop: scan on and scan off
  5. Trust the device and try to pair using: trust [MAC] and pair [MAC]

If it pairs correctly, try to connect it with connect [MAC] and probably you are all set. But if that doens't work, continue with the next step.

Blueman

The next step is to make the connection using blueman, with this shoud work just fine.

First, install blueman: sudo apt-get install blueman. Launch it when it's done. Launch blueman, search for devices, choose the freebuds and pair them.

blueman

Now, it should pop a new window, with a pairing code and you should be able to confirm it and properly pair them.

pairCode

If selecting it from the menu doesn't work, try using the "add a new device" option.

Add-new-dev

After that, all should work and you should be able to use the freebuds Pro.

Better audio: AAC Codec in linux

It is possible to use AAC instead of SBC codec in linux using the awesome work done in this repo.

Following the wiki for KDE Neon, just add the PPA and install pulseaudio-modules-bt and libldac from there:

https://launchpad.net/~berglh/+archive/ubuntu/pulseaudio-a2dp (by berglh)

sudo add-apt-repository ppa:berglh/pulseaudio-a2dp

sudo apt update

sudo apt install pulseaudio-modules-bt libldac

Now, restart pulseaudio and after opening the case, a lot of pop-ups may appear, just accept them and in sound settings AAC sink should be an option.

AAC-Option

@florianblume
Copy link

Thanks, the first step with bluetoothctl worked for me!

@tinspham209
Copy link

tinspham209 commented Oct 23, 2021

Thanks alot bro ;)
After trying with these link and this gist. I have connect to freebuds pro with AAC Codec

And when you want to use freebuds as a microphone in your ubuntu, you can visit this link:

@CochisDisgorge
Copy link

Thanks a lot, It works with blueman

@DaniPB
Copy link

DaniPB commented Jul 18, 2022

Worked, thanks! 🚀

@Jandro20
Copy link

Thank you! the first method worked perfect for me! (bluetoothctl in Ubuntu 20.04.4 LTS)

@enterthematric
Copy link

Thank you for the readme!
The Solution with bluetoothctl worked for me as the bluetooth device was asking for a pairing code in Step 5. pair [MAC] to confirm, only with bluetoothctl i saw this and could approve and sucessfully pair.

[bluetooth]# pair [MAC]
Attempting to pair with [MAC]
[CHG] Device [MAC] Connected: yes
Request confirmation
[agent] Confirm passkey 010419 (yes/no): yes

The GUI's did not show this option and ran into a timeout.

Worked on Linux Mint 20.3, bluetoothctl 5.53 and Huawei FreeBuds 4i

@improve100
Copy link

If the following error occurs, try to reset by pressing and holding again
Failed to pair: org.bluez.Error.AuthenticationFailed

@bertrana
Copy link

bertrana commented Apr 7, 2023

Thanks! Worked on Fedora 36, bluetoothctl 5.66 and Huawei FreeBuds SE

@gustfm
Copy link

gustfm commented May 16, 2023

Thanks! Worked on Fedora 38! =)

@adamov-eismann
Copy link

Thanks
super ))

@LiberiFatali
Copy link

This also works for Ubuntu 20.04 with Huawei Freebuds 5i. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment