2025-03-14 21:59:59 -06:00
|
|
|
# bluetoothctl
|
|
|
|
|
|
|
|
|
|
> Manage Bluetooth devices.
|
2025-12-16 10:20:31 -07:00
|
|
|
> See also: `bluetui`.
|
2025-07-24 22:27:13 -06:00
|
|
|
> More information: <https://manned.org/bluetoothctl>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
- Enter the `bluetoothctl` interactive shell:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`bluetoothctl`
|
|
|
|
|
|
|
|
|
|
- List all known devices:
|
|
|
|
|
|
|
|
|
|
`bluetoothctl devices`
|
|
|
|
|
|
|
|
|
|
- Power the Bluetooth controller on or off:
|
|
|
|
|
|
|
|
|
|
`bluetoothctl power {{on|off}}`
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
- Scan for available devices for 10 seconds:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`bluetoothctl {{[-t|--timeout]}} 10 scan on`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
- Pair with a device:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`bluetoothctl pair {{mac_address}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
- Connect to or disconnect from a paired device:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`bluetoothctl {{connect|disconnect}} {{mac_address}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
- Allow the device to connect back:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`bluetoothctl trust {{mac_address}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
- Remove a device:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`bluetoothctl remove {{mac_address}}`
|