Using rfkill, ensure your bluetooth chip is unblocked.
void setup
Install the bluez package:
xi bluez
Enable the bluetoothd and dbus services, add your user to the
bluetooth group, and reboot.
For ALSA ONLY user you'll want the bluez-alsa to get bluetooth speakers
working, or just use pulse/pipewire???
bluetoothctl
pairing
-
(optional) Select a default controller with
select MAC_address. -
(optional) Enter
power onto turn the power to the controller on if the device is set to off. It is on by default; see #Default adapter power state. -
Enter
devicesto get the MAC address of the device with which to pair. -
Enter device discovery mode with
scan oncommand if device is not yet on the list. -
Turn the agent on with
agent onor choose a specific agent: if you press tab twice after agent you should see a list of available agents. A bluetooth agent is what manages the Bluetooth 'pairing code'. It can either respond to a 'pairing code' coming in, or can send one out. The default-agent should be appropriate in most cases. -
Enter
pair MAC_addressto do the pairing (tab completion works). -
If using a device without a PIN, one may need to manually trust the device before it can reconnect successfully. Enter
trust MAC_addressto do so. -
Enter
connect MAC_addressto establish a connection.