Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 6 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 '14 at 16:27

Your Answer


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.