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 on
to 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
devices
to get the MAC address of the device with which to pair. -
Enter device discovery mode with
scan on
command if device is not yet on the list. -
Turn the agent on with
agent on
or 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_address
to 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_address
to do so. -
Enter
connect MAC_address
to establish a connection.