bluetooth - bunnyamin/bunnix GitHub Wiki
| Package | Arch Linux |
|---|---|
| Daemons for the bluetooth protocol stack | bluez |
| Tools to manage Bluetooth devices for Linux | bluez-tools |
| Bluetooth support for PulseAudio | pulseaudio-bluetooth |
Add and trust device:
-
power oncontroller - Set
agent onanddefault-agent - To find devices
scan on -
pair aa:bb:cc:dd:ee:ff- List paired-devices
pair - To delete a paired device
remove aa:bb:cc:dd:ee:ff
- List paired-devices
-
trust aa:bb:cc:dd:ee:ffto enable automatically re-connectuntrust aa:bb:cc:dd:ee:ff
- Edit
/etc/pulse/default.paAdd### Automatically switch to newly-connected devicesAddload-module module-switch-on-connect scan off
| Event | Error | Cause | Consequence | Remedy |
|---|---|---|---|---|
| Connect device | Failed to connect: org.bluez.Error.NotReady br-connection-adapter-not-powered |
Controller is not powered on. | power on |
|
| Connect device | Failed to connect: org.bluez.Error.Failed br-connection-profile-unavailable |
Pulseaudio is not started. | systemctl start --user pulseaudio |
|
| Connect device | Failed to connect: org.bluez.Error.Failed br-connection-unknown |
unknown | Cannot connect to device | Remove device, and pair it again. |
- Identify device and the port:
pactl list | grep -Pzo '.*bluez_card(.*\n)*'headset-output: Headset (type: Headset, priority: 0, latency offset: 0 usec, available) Part of profile(s): a2dp_sink, handsfree_head_unit
- Define a new value for latency:
pactl set-port-latency-offset <NAME> <PORT> <BUFFER_SIZE_MICROSECONDS>- For example:
pactl set-port-latency-offset bluez_card.A1_B2_C3_D4_E5_F6 headset-output 100000
- Restart bluetooth. For example
systemctl restart bluetooth