Bluetooth
BT-01 // BLUETOOTH
omfreebdy manages Bluetooth via bluetui — a terminal UI — falling back to bluetoothctl if bluetui is not installed.
Opening the Bluetooth Manager
Section titled “Opening the Bluetooth Manager”Press ⌘ + Ctrl + B to open bluetui in a terminal window.
Or launch it directly:
bluetui# orbluetoothctlFreeBSD Bluetooth Stack
Section titled “FreeBSD Bluetooth Stack”Ensure the Bluetooth kernel modules are loaded:
# Load Bluetooth supportkldload ng_ubt # USB Bluetooth adapterkldload ng_hcikldload ng_l2capkldload ng_btsocket
# Enable in /etc/rc.conf for persistencesysrc hcsecd_enable=YESsysrc sdpd_enable=YES
# Start servicesservice hcsecd startservice sdpd startPairing a Device
Section titled “Pairing a Device”In bluetui:
- Power on the adapter with
p - Start scanning with
s - Select the device and press
Enterto pair - Confirm the pairing PIN if prompted
With bluetoothctl:
bluetoothctl> power on> scan on> pair AA:BB:CC:DD:EE:FF> connect AA:BB:CC:DD:EE:FF> trust AA:BB:CC:DD:EE:FFBluetooth Audio
Section titled “Bluetooth Audio”Bluetooth audio requires virtual_oss to route the Bluetooth sink into the OSS audio stack. See the Audio page for virtual_oss configuration.
Once configured, Bluetooth headphones appear as a standard OSS device and work with all applications without additional setup.
For A2DP (high-quality audio), the bt_coexist sysctl may improve performance on systems with combined WiFi/BT chipsets: sysctl net.bluetooth.hci.bt_coexist=1
Troubleshooting
Section titled “Troubleshooting”# Check adapter is detectedusbconfig listdmesg | grep ubt
# Check HCI statehccontrol -n ubt0hci read_bd_addr
# Restart Bluetooth servicesservice hcsecd restartservice sdpd restart