Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Bluetooth Device Operations

Device Discovery

Start Discovery

dbus-send --system --print-reply \
    --dest=org.bluez \
    /org/bluez/hci0 \
    org.bluez.Adapter1.StartDiscovery

Stop Discovery

dbus-send --system --print-reply \
    --dest=org.bluez \
    /org/bluez/hci0 \
    org.bluez.Adapter1.StopDiscovery

List Discovered Devices

dbus-send --system --print-reply \
    --dest=org.bluez \
    / \
    org.freedesktop.DBus.ObjectManager.GetManagedObjects

Connecting and Disconnecting

Connect to Device

Connect to a paired device (example with Kobo Remote):

dbus-send --system --print-reply \
    --dest=org.bluez \
    /org/bluez/hci0/dev_A4_3C_D7_6D_0D_3B \
    org.bluez.Device1.Connect

Disconnect Device

dbus-send --system --print-reply \
    --dest=org.bluez \
    /org/bluez/hci0/dev_A4_3C_D7_6D_0D_3B \
    org.bluez.Device1.Disconnect