Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vheidari/cc87db44ddfb1c8e6af9a0958547d53c to your computer and use it in GitHub Desktop.
Save vheidari/cc87db44ddfb1c8e6af9a0958547d53c to your computer and use it in GitHub Desktop.
HAYLOU GT1 Pro headphone - How to fix bad quality rate output sound on the Linux

HAYLOU GT1 Pro headphone, and Linux output sound problem

If you have any problem with your bluetooth headphone on the Linux(Mint/Ubuntu base) this articel is for you especialy if you are use HEYLOU GT1 Pro. recently I bought one of them and it has some issuse on linux. it's connnect to my laptop bluetooth but output sound is terrible.

Well I did some research about it and this is my result:

I found a couple of posts on the web that they were discuss about a2dp_sink profile. that must set as output profile for bluethooth headphone. I check it but output profile for my bluethooth headphone was OK. if you want check output profile for your bluetooth device you could use this below command within your terminal :

pacmd list-sinks

Above command show a lot of information about your bluethooth device you could find your device and search for bluetooth.protocol = "a2dp_sink" its show your device output profile use a2dp as output profile.

if your device output profile dosen't set on the a2dp_sink you can set it through pacmd. to set propper output profile please folow these steps :

# First steps find device index 
pacmd list-cards
# Second steps is set device output profile - for example if device index number was 8 you can use it like below
pacmd set-card-profile 8 a2dp_sink

Note : if above steps dosn't work please install pavucontrol then set your output profile thought it

Note 2: to controlling bluetooth device through cli we could use bluetoothctl that is really useful tools.

When I sure all things work perfectly and my output profile doesn't any problem. I did some research for bluthooth audio codec for the Linux . because I would like to knew. are all neccecery codec installed on my OS!!

For that reason I found a list of Linux audio codec for bluetooth device :

    - SBC
    - AptX (HD)
    - AptX Adaptive
    - LDAC
    - LHDC
    - AAC
    - LC3

You could find more inforamtion about above codec here

Then I did attempt to install they on my Linux if you want install them you could follow these instructions :

# 1. First
sudo add-apt-repository ppa:berglh/pulseaudio-a2dp

# 2. Secound
sudo apt update
sudo apt upgrade

# 3. third
sudo apt install libldac libsbc pulseaudio-modules-bt libavcodec-extra58 libfdk-aac1 bluez

# 4. fourth
sudo systemctl restart bluthooth.service

When we did install all necessary codec on our Linux and restart bluetooth service we could connect our bluetooth headphone to our system and enjoy it.

Note : if you check it and you has any problem I recommend you. disconnect your bluetooth device then restart your bluetooth service through sudo systemctl restart bluetooth.service then connect your headphone to bluetooth and use it :)

Reference :

- https://stackoverflow.com/questions/54387985/bluetooth-blocked-through-rfkill
- https://wiki.archlinux.org/title/Bluetooth_headset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment