🗓️ 30032026 2100

BLUETOOTHCTL

bluetoothctl is the CLI tool for managing Bluetooth on Linux (part of BlueZ).

Quick Reference

Setup

bluetoothctl
agent NoInputNoOutput # skip PIN prompts (for mice, keyboards, etc.)
default-agent

Connect to a Device

power on
scan on # wait for device to appear
pair AA:BB:CC:DD:EE:FF
trust AA:BB:CC:DD:EE:FF # auto-reconnect on future boots
connect AA:BB:CC:DD:EE:FF
scan off

Useful Commands

CommandDescription
devicesList known/paired devices
info AA:BB:CC:DD:EE:FFShow device details
disconnect AA:BB:CC:DD:EE:FFDisconnect device
remove AA:BB:CC:DD:EE:FFUnpair and forget device
power offTurn off Bluetooth adapter

Agent Capabilities

Set before pairing to match the device type:

CapabilityUse case
NoInputNoOutputMice, headphones — no PIN needed
KeyboardOnlyDevices that require PIN entry
DisplayYesNoDevices with confirmation prompt

References

  • BlueZ documentation