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

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

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

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay