Skip to content

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.

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

Terminal window
aos bluetooth connect <name|address>
flag values meaning
<name|address> Required positional argument
Terminal window
aos bluetooth connect AirPods
aos bluetooth connect D1:08:D1:0E:60:DB

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

Terminal window
aos bluetooth disconnect <name|address>
flag values meaning
<name|address> Required positional argument
Terminal window
aos bluetooth disconnect AirPods

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

Terminal window
aos bluetooth list [--json]
flag values meaning
--json Optional
Terminal window
aos bluetooth list
aos bluetooth list --json

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

Terminal window
aos bluetooth off
Terminal window
aos bluetooth off

Turn the Bluetooth radio on (Linux)

Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works

Terminal window
aos bluetooth on
Terminal window
aos bluetooth on

Print whether Bluetooth is present and on

Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works

Terminal window
aos bluetooth status [--json]
flag values meaning
--json Optional
Terminal window
aos bluetooth status
aos bluetooth status --json