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 just can't figure a way to change my bluetooth device name.

Is there any command?

share|improve this question

5 Answers 5

up vote 31 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:

PRETTY_HOSTNAME=device-name

After this, reboot.

share|improve this answer
4  
And issue "service bluetooth restart" after that –  rubiojr Jul 20 '12 at 8:24

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
3  
This should be the accepted answer. –  Naftuli Tzvi Kay Mar 27 at 18:07
    
working ubuntu 13.10 –  Shaharil Ahmad Jun 9 at 19:02
    
It works, but the name is reset after reboot. I use Ubuntu 14.04. Can it be set permanently? –  BornToCode Sep 4 at 2:49

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

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

Adapter → Parameters

share|improve this answer
1  
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: github.com/blueman-project/blueman –  Sadi 2 days ago

Open Terminal and paste there the following command:

sudo hciconfig hci0 name 'Device Name'

Change the words between quotes as your desired bluetooth name and press enter

It may ask for your password, type it but it will not appear (for privacy)

Press Enter

You're Done!

share|improve this answer

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.