DEV Community

Harry Tanama
Harry Tanama

Posted on

How to Setup Bluetooth in Arch Linux

To install and enable Bluetooth on Arch Linux install the following packages

sudo pacman -S bluez 
sudo pacman -S bluez-utils
sudo pacman -S blueman
Enter fullscreen mode Exit fullscreen mode

If your blueman-manager is not working, Enable and start the Bluetooth service

Start the Bluetooth service:

sudo systemctl start bluetooth.service
Enter fullscreen mode Exit fullscreen mode

If you still cannot connect to the Bluetooth earpiece

Try installing pulseaudio-bluetooth package:

sudo pacman -S pulseaudio-bluetooth
Enter fullscreen mode Exit fullscreen mode

restart PulseAudio with this command:

pulseaudio -k
Enter fullscreen mode Exit fullscreen mode

You can see if the Bluetooth earpiece is connected on the pulseaudio. This package pulseaudio-bluetoothBluetooth support for PulseAudio

For PulseAudio: Ensure that the pulseaudio-bluetooth package is installed. This module is responsible for automatically switching audio output to a connected Bluetooth device. If it's installed but not working, check the /etc/pulse/default.pa file and ensure the following lines are not commented out:

load-module module-switch-on-connect
Enter fullscreen mode Exit fullscreen mode

If it is commented out, you can uncomment the line or type this on the /etc/pulse/default.pa file and then restart the pulseaudio

Restart pulseaudio

pulseaudio -k
Enter fullscreen mode Exit fullscreen mode

And you can also restart the Bluetooth service:

Stop the Bluetooth service:

sudo systemctl stop bluetooth.service
Enter fullscreen mode Exit fullscreen mode

Remove the Bluetooth cache directory:
This directory stores all pairing information, including the link keys that are causing the problem.

sudo rm -r /var/lib/bluetooth
Enter fullscreen mode Exit fullscreen mode

Start the Bluetooth service again:

sudo systemctl start bluetooth.service
Enter fullscreen mode Exit fullscreen mode

This will create a new, empty Bluetooth cache.

Top comments (0)