I already turned on my bluetooth by running sudo rfkill unblock bluetooth
command on terminal.I want to turn on my blutooth visibility mode also, so that only my device will get detected.All i have to do from command-line.
How to turn on and off Bluetooth's visibility mode in Ubuntu 14.04 from command-line?
In BlueZ >= 5 command line control of a device can be done with btmgmt tool:
In older version of BlueZ we can control our Bluetooth device with the command line tool hciconfig.
To enable visibility:
To disable visibility:
Replace
hciX
with your device (usuallyhci0
)To query your Bluetooth device(s):