Skip to content

Commit 7492260

Browse files
committed
✨ add bluetoothctl cheatsheet zettel
1 parent 0583307 commit 7492260

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
🗓️ 30032026 2100
2+
3+
# bluetoothctl
4+
5+
**bluetoothctl** is the CLI tool for managing Bluetooth on Linux (part of BlueZ).
6+
7+
## Quick Reference
8+
9+
### Setup
10+
11+
```bash
12+
bluetoothctl
13+
agent NoInputNoOutput # skip PIN prompts (for mice, keyboards, etc.)
14+
default-agent
15+
```
16+
17+
### Connect to a Device
18+
19+
```bash
20+
power on
21+
scan on # wait for device to appear
22+
pair AA:BB:CC:DD:EE:FF
23+
trust AA:BB:CC:DD:EE:FF # auto-reconnect on future boots
24+
connect AA:BB:CC:DD:EE:FF
25+
scan off
26+
```
27+
28+
### Useful Commands
29+
30+
| Command | Description |
31+
|--------------------------------|----------------------------|
32+
| `devices` | List known/paired devices |
33+
| `info AA:BB:CC:DD:EE:FF` | Show device details |
34+
| `disconnect AA:BB:CC:DD:EE:FF` | Disconnect device |
35+
| `remove AA:BB:CC:DD:EE:FF` | Unpair and forget device |
36+
| `power off` | Turn off Bluetooth adapter |
37+
38+
### Agent Capabilities
39+
40+
Set before pairing to match the device type:
41+
42+
| Capability | Use case |
43+
|-------------------|----------------------------------|
44+
| `NoInputNoOutput` | Mice, headphones — no PIN needed |
45+
| `KeyboardOnly` | Devices that require PIN entry |
46+
| `DisplayYesNo` | Devices with confirmation prompt |
47+
48+
---
49+
50+
## References
51+
52+
- BlueZ documentation

0 commit comments

Comments
 (0)