aos bluetooth
Bluetooth: radio state, paired devices, connect
6 commands. Run aos bluetooth --help for the same list from the binary, or see every group.
The Bluetooth radio and paired devices. status and list work on macOS (system_profiler), Linux (bluetoothctl) and Windows (the classic Bluetooth API). connect and disconnect take a name, a unique part of one, or an address, and work on macOS (public IOBluetooth) and Linux. on and off work on Linux only: macOS and Windows have no public, dependency-free way to switch the radio, so those exit 2. It follows the host, since the headphones and keyboard belong to the person at the screen.
Commands
Section titled “Commands”aos bluetooth connect
Section titled “aos bluetooth connect”Connect a paired device by name or address
Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works
aos bluetooth connect <name|address>| flag | values | meaning |
|---|---|---|
<name|address> |
Required positional argument |
aos bluetooth connect AirPodsaos bluetooth connect D1:08:D1:0E:60:DBaos bluetooth disconnect
Section titled “aos bluetooth disconnect”Disconnect a paired device by name or address
Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works
aos bluetooth disconnect <name|address>| flag | values | meaning |
|---|---|---|
<name|address> |
Required positional argument |
aos bluetooth disconnect AirPodsaos bluetooth list
Section titled “aos bluetooth list”List paired devices and whether each is connected
Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works
aos bluetooth list [--json]| flag | values | meaning |
|---|---|---|
--json |
Optional |
aos bluetooth listaos bluetooth list --jsonaos bluetooth off
Section titled “aos bluetooth off”Turn the Bluetooth radio off (Linux; drops keyboards and mice, confirm first)
Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works
aos bluetooth offaos bluetooth offaos bluetooth on
Section titled “aos bluetooth on”Turn the Bluetooth radio on (Linux)
Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works
aos bluetooth onaos bluetooth onaos bluetooth status
Section titled “aos bluetooth status”Print whether Bluetooth is present and on
Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works
aos bluetooth status [--json]| flag | values | meaning |
|---|---|---|
--json |
Optional |
aos bluetooth statusaos bluetooth status --json