search

Bluetooth on Arch Linux

Mon, Dec 21, 2020 15:52 CET

Tags: Automation, Crashes, Bluetooth, Wireless, Pulseaudio, Audio

Install software

pacman -S bluez bluez-utils

If you want bluetooth to power on the chip as soon as bluetooth.service is running

/etc/bluetooth/main.conf

[Policy]
AutoEnable=true

Enable and start the bluetooth service

systemctl enable --now bluetooth

Connect bluetooth headset/speaker.

pacman -S pulseaudio-bluetooth
systemctl --user restart pulseaudio
bluetoothctl agent on
bluetoothctl power on
bluetoothctl scan on
pair ...
connect ...

If you do not bridge pulseaudio and bluetooth you may get one of the following:

Failed to connect: org.bluez.Error.NotReady
Failed to connect: org.bluez.Error.Failed