Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

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
share|improve this answer
    
perfect.Works dramastically :-) –  Avinash Raj Apr 19 at 16:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.