Skip to content

Instantly share code, notes, and snippets.

@silgon
Created March 14, 2018 09:25
Show Gist options
  • Save silgon/f671930e724940b200d5e3daf08861c7 to your computer and use it in GitHub Desktop.
Save silgon/f671930e724940b200d5e3daf08861c7 to your computer and use it in GitHub Desktop.
Some info about bluetooth with linux

Scan devices

hcitool scan

From: https://askubuntu.com/a/450751/269279 We can nicely control our Bluetooth device with the command line tool hciconfig.

To enable visibility:

sudo hciconfig hciX piscan

To disable visibility:

sudo hciconfig hciX noscan

Replace hciX with your device (usually hci0)

To query your Bluetooth device(s):

sudo hciconfig -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment