How to change Bluetooth broadcast device name?

I just can't figure a way to change my Bluetooth device name.

Is there any command?


It seems the option was removed from the Bluetooth control panel, but you should still be able to change the name via the command line:

sudo hciconfig hci0 name 'Device Name'

Once you run the command, you should be able to verify the change by bringing up the Bluetooth control panel again and checking the device name.


You can't change bluetooth device name from control panel in ubuntu yet. Here is the bug report, which provides this workaround:

If you want to change the bluetooth device name permanently, you have to create a file called /etc/machine-info which should have the following content:

PRETTY_HOSTNAME=device-name

After this, restart the Bluetooth service:

sudo service bluetooth restart

Or reboot.


What I did (on 12.04):

  1. device name is stored in /var/lib/bluetooth/XX:XX:XX:XX:XX:XX/config
  2. delete it
  3. restart (~# service bluetooth restart)
  4. device name is rewritten in config (according to /etc/bluetooth/main.conf ?)

I am using Blueman Bluetooth Manager. There is an option to change a computer's BT name in:

Adapter → Parameters


To change the bluetooth host name permanently, on Ubuntu 14.04 or later:

Open a terminal with CTRL-ALT-T

  1. Edit /etc/bluetooth/main.conf replacing "%h" with the computer name you want. "%h" always seems to represent "ubuntu" on my systems for some reason.

    gksudo gedit /etc/bluetooth/main.conf

    For example change Name = %h-%d to Name = gruber-%d `

  2. Remove /var/lib/bluetooth/xx:xx:xx:xx:xx:xx/config to make your system forget the old name. The xx:xx:xx:xx:xx:xx has a hexadecimal value unique to your bluetooth hardware.

    sudo rm /var/lib/bluetooth/xx:xx:xx:xx:xx:xx/config

  3. Restart the bluetooth service

    sudo service bluetooth restart

    (Under 15.04 or later:)

    sudo systemctl restart bluetooth.service

You can check the new name by opening the Bluetooth settings. The last two steps are from Marx's answer.