DEV Community

Roy-Wanyoike
Roy-Wanyoike

Posted on

2

Struggling to fix: Bluetooth connection failed: protocol not available?

Well after upgrading my Linux version am using Parrot Electro Ara 5.1 i was not able to use my JBL headphones since bluetooth threw an error i couldn't catch lol!
after a week of struggling with this issue i managed to solve it with just 5 lines of code.
Image description

Below are the solutions to above problem.
I preffered using Geany to edit
sudo geany /etc/pulse/default.pa

Image description

(Edit geany to use editor of your preference)

Move to line 65 and comment this line

load-module module-bluetooth-discover
Enter fullscreen mode Exit fullscreen mode

Image description
upon edit it should look like

#load-module module-bluetooth-discover
Enter fullscreen mode Exit fullscreen mode

Next edit the pulse-audio
sudo geany usr/bin/start-pulseaudio-x11
Image description

Add to line 37

Image description

Image description

Add this line on line 37
/usr/bin/pactl load-module module-bluetooth-discover

save this script and you are good to reboot.

Image description

Enjoy

Image of AssemblyAI

Automatic Speech Recognition with AssemblyAI

Experience near-human accuracy, low-latency performance, and advanced Speech AI capabilities with AssemblyAI's Speech-to-Text API. Sign up today and get $50 in API credit. No credit card required.

Try the API

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay