Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

Is there any command?

share|improve this question

6 Answers 6

up vote 53 down vote accepted

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:


After this, restart the Bluetooth service:

sudo service bluetooth restart

Or reboot.

share|improve this answer
And issue "service bluetooth restart" after that – rubiojr Jul 20 '12 at 8:24
No need to restart. service bluetooth restart does the trick. – arunasr Oct 21 '14 at 15:23
Still working on 15.04, thanks! – phaberest Aug 17 at 10:34

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.

share|improve this answer
Useful Answer! Helped Me Thank You Very Much! :) – Gaurav Nov 19 '12 at 15:24
this is the safest and right way to do it, thx! – Aquarius Power Oct 1 '13 at 16:40
This should be the accepted answer. – Naftuli Tzvi Kay Mar 27 '14 at 18:07
It works, but the name is reset after reboot. I use Ubuntu 14.04. Can it be set permanently? – BornToCode Sep 4 '14 at 2:49
As @BornToCode points out, the change doesn't persist. Restarting the service with service bluetooth restart will show that the name change is reverted. – Paul Lammertsma Jan 22 at 0:40

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 ?)
share|improve this answer
If you don't like the bluetooth version of the device name, i.e. hostname-0, you can replace the line "Name = %h – %d" to simply "Name = %h" in step 4 above, which will get rid of the numbering suffix, as I just did in 13.04. – Sadi Jul 10 '13 at 17:31
this works on 15.04 – Mark Jun 17 at 14:27

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

Adapter → Parameters

share|improve this answer
Thank you very much! This is more like the Ubuntu-way ( more user-friendly ;-) than other answers, and the latest version 1.23 has this feature via menu Adapter → Preferences → Friendly Name. Further info: – Sadi Sep 21 '14 at 8:02

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.

share|improve this answer

You can change the Bluetooth of your PC just by:

  1. opening the Terminal an type:

    sudo gedit /var/lib/bluetooth/XX:XX:XX:XX:XX:XX/config
  2. if it asks for the password, type it (you won't see it)

  3. the gedit will open up with that file.
  4. on the line that begins with "name" replace the name itself. It will not be instantaneous! You'll have to restart the service (or the PC). Do it by typing:

    sudo service bluetooth restart

It worked for me.

share|improve this answer
Thank you Eric for the rearrangement. – dreis nineoneone 8 hours ago

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.