Ubuntu – How to turn On and Off bluetooth visibility mode

bluetoothcommand line

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?

Best Answer

  • 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
    
  • Related Question