How to change Bluetooth broadcast device name?











up vote
72
down vote

favorite
25












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



Is there any command?










share|improve this question
























  • Defect: Cannot change bluetooth name
    – AlikElzin-kilaka
    Mar 5 '17 at 11:45

















up vote
72
down vote

favorite
25












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



Is there any command?










share|improve this question
























  • Defect: Cannot change bluetooth name
    – AlikElzin-kilaka
    Mar 5 '17 at 11:45















up vote
72
down vote

favorite
25









up vote
72
down vote

favorite
25






25





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



Is there any command?










share|improve this question















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



Is there any command?







bluetooth






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 9 '15 at 11:46









Aeyoun

468735




468735










asked Nov 20 '11 at 8:36









Newbi

1,00921319




1,00921319












  • Defect: Cannot change bluetooth name
    – AlikElzin-kilaka
    Mar 5 '17 at 11:45




















  • Defect: Cannot change bluetooth name
    – AlikElzin-kilaka
    Mar 5 '17 at 11:45


















Defect: Cannot change bluetooth name
– AlikElzin-kilaka
Mar 5 '17 at 11:45






Defect: Cannot change bluetooth name
– AlikElzin-kilaka
Mar 5 '17 at 11:45












7 Answers
7






active

oldest

votes

















up vote
64
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, restart the Bluetooth service:



sudo service bluetooth restart


Or reboot.






share|improve this answer























  • 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 '15 at 10:34


















up vote
81
down vote













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






  • 6




    This should be the accepted answer.
    – Naftuli Kay
    Mar 27 '14 at 18:07






  • 4




    It works, but the name is reset after reboot. I use Ubuntu 14.04. Can it be set permanently?
    – fikr4n
    Sep 4 '14 at 2:49








  • 5




    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 '15 at 0:40


















up vote
21
down vote













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 '15 at 14:27


















up vote
5
down vote













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
    Sep 21 '14 at 8:02


















up vote
5
down vote













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





















  • This is my preferred answer, but rather than delete the config file I would rather edit it, as in dreis nineoneone's answer. Incidentally, the service command still works in 15.04.
    – AFH
    Dec 6 '15 at 16:01


















up vote
3
down vote













You can change the name of a bluetooth remote device on your PC :





  1. check the MAC adress of the device in the bluetooth settings. It looks:



    XX:XX:XX:XX:XX:XX



  2. open the Terminal and type:



    sudo gedit /var/lib/bluetooth/XX:XX:XX:XX:XX:XX/config/info


  3. if it asks for the password, type it (you won't see it)


  4. the gedit will open up with that file.


  5. modify (only) the value corresponding to 'Name'



    Name=modified_name_as_you_like_it



The change will not be instantaneous !





  1. Restart the service (or the PC), using the command:



    sudo service bluetooth restart







share|improve this answer



















  • 1




    If your adapter has an alias, also edit /var/lib/bluetooth/XX:XX:XX:XX:XX:XX/settings, and change that.
    – Mr. B
    Jun 20 '16 at 22:30


















up vote
0
down vote













sudo apt-get update; sudo apt-get install -y nano
sudo nano /var/lib/bluetooth/*/config
sudo service bluetooth restart


Update the value for “name”. In my case, it was: Ubuntu-0






share|improve this answer

















  • 1




    This answer provides the same solution as many others, but with much less detail.
    – TheWanderer
    Mar 17 '16 at 18:12











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f80960%2fhow-to-change-bluetooth-broadcast-device-name%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























7 Answers
7






active

oldest

votes








7 Answers
7






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
64
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, restart the Bluetooth service:



sudo service bluetooth restart


Or reboot.






share|improve this answer























  • 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 '15 at 10:34















up vote
64
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, restart the Bluetooth service:



sudo service bluetooth restart


Or reboot.






share|improve this answer























  • 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 '15 at 10:34













up vote
64
down vote



accepted







up vote
64
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, restart the Bluetooth service:



sudo service bluetooth restart


Or reboot.






share|improve this answer














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.







share|improve this answer














share|improve this answer



share|improve this answer








edited Oct 9 '15 at 11:26









Aeyoun

468735




468735










answered Nov 20 '11 at 9:10









baru

883710




883710












  • 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 '15 at 10:34


















  • 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 '15 at 10:34
















No need to restart. service bluetooth restart does the trick.
– ArunasR
Oct 21 '14 at 15:23




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 '15 at 10:34




Still working on 15.04, thanks!
– phaberest
Aug 17 '15 at 10:34












up vote
81
down vote













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






  • 6




    This should be the accepted answer.
    – Naftuli Kay
    Mar 27 '14 at 18:07






  • 4




    It works, but the name is reset after reboot. I use Ubuntu 14.04. Can it be set permanently?
    – fikr4n
    Sep 4 '14 at 2:49








  • 5




    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 '15 at 0:40















up vote
81
down vote













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






  • 6




    This should be the accepted answer.
    – Naftuli Kay
    Mar 27 '14 at 18:07






  • 4




    It works, but the name is reset after reboot. I use Ubuntu 14.04. Can it be set permanently?
    – fikr4n
    Sep 4 '14 at 2:49








  • 5




    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 '15 at 0:40













up vote
81
down vote










up vote
81
down vote









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












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












share|improve this answer



share|improve this answer










answered Nov 20 '11 at 9:17









James Henstridge

30.7k79188




30.7k79188












  • 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






  • 6




    This should be the accepted answer.
    – Naftuli Kay
    Mar 27 '14 at 18:07






  • 4




    It works, but the name is reset after reboot. I use Ubuntu 14.04. Can it be set permanently?
    – fikr4n
    Sep 4 '14 at 2:49








  • 5




    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 '15 at 0:40


















  • 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






  • 6




    This should be the accepted answer.
    – Naftuli Kay
    Mar 27 '14 at 18:07






  • 4




    It works, but the name is reset after reboot. I use Ubuntu 14.04. Can it be set permanently?
    – fikr4n
    Sep 4 '14 at 2:49








  • 5




    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 '15 at 0:40
















Useful Answer! Helped Me Thank You Very Much! :)
– Gaurav
Nov 19 '12 at 15:24




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 is the safest and right way to do it, thx!
– Aquarius Power
Oct 1 '13 at 16:40




6




6




This should be the accepted answer.
– Naftuli Kay
Mar 27 '14 at 18:07




This should be the accepted answer.
– Naftuli Kay
Mar 27 '14 at 18:07




4




4




It works, but the name is reset after reboot. I use Ubuntu 14.04. Can it be set permanently?
– fikr4n
Sep 4 '14 at 2:49






It works, but the name is reset after reboot. I use Ubuntu 14.04. Can it be set permanently?
– fikr4n
Sep 4 '14 at 2:49






5




5




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 '15 at 0:40




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 '15 at 0:40










up vote
21
down vote













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 '15 at 14:27















up vote
21
down vote













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 '15 at 14:27













up vote
21
down vote










up vote
21
down vote









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














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














share|improve this answer



share|improve this answer








edited Aug 29 '12 at 9:51









Sathya

1,34011628




1,34011628










answered Aug 28 '12 at 15:28









Marx

21122




21122












  • 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 '15 at 14:27


















  • 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 '15 at 14:27
















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




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 '15 at 14:27




this works on 15.04
– Mark
Jun 17 '15 at 14:27










up vote
5
down vote













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
    Sep 21 '14 at 8:02















up vote
5
down vote













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
    Sep 21 '14 at 8:02













up vote
5
down vote










up vote
5
down vote









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



Adapter → Parameters






share|improve this answer














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



Adapter → Parameters







share|improve this answer














share|improve this answer



share|improve this answer








edited May 7 '14 at 13:42









user.dz

34.3k1190175




34.3k1190175










answered May 7 '14 at 12:47









Highstaker

15113




15113








  • 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
    Sep 21 '14 at 8:02














  • 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
    Sep 21 '14 at 8:02








1




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
Sep 21 '14 at 8:02




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
Sep 21 '14 at 8:02










up vote
5
down vote













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





















  • This is my preferred answer, but rather than delete the config file I would rather edit it, as in dreis nineoneone's answer. Incidentally, the service command still works in 15.04.
    – AFH
    Dec 6 '15 at 16:01















up vote
5
down vote













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





















  • This is my preferred answer, but rather than delete the config file I would rather edit it, as in dreis nineoneone's answer. Incidentally, the service command still works in 15.04.
    – AFH
    Dec 6 '15 at 16:01













up vote
5
down vote










up vote
5
down vote









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












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












share|improve this answer



share|improve this answer










answered Jul 19 '15 at 23:59









John S Gruber

11.4k32958




11.4k32958












  • This is my preferred answer, but rather than delete the config file I would rather edit it, as in dreis nineoneone's answer. Incidentally, the service command still works in 15.04.
    – AFH
    Dec 6 '15 at 16:01


















  • This is my preferred answer, but rather than delete the config file I would rather edit it, as in dreis nineoneone's answer. Incidentally, the service command still works in 15.04.
    – AFH
    Dec 6 '15 at 16:01
















This is my preferred answer, but rather than delete the config file I would rather edit it, as in dreis nineoneone's answer. Incidentally, the service command still works in 15.04.
– AFH
Dec 6 '15 at 16:01




This is my preferred answer, but rather than delete the config file I would rather edit it, as in dreis nineoneone's answer. Incidentally, the service command still works in 15.04.
– AFH
Dec 6 '15 at 16:01










up vote
3
down vote













You can change the name of a bluetooth remote device on your PC :





  1. check the MAC adress of the device in the bluetooth settings. It looks:



    XX:XX:XX:XX:XX:XX



  2. open the Terminal and type:



    sudo gedit /var/lib/bluetooth/XX:XX:XX:XX:XX:XX/config/info


  3. if it asks for the password, type it (you won't see it)


  4. the gedit will open up with that file.


  5. modify (only) the value corresponding to 'Name'



    Name=modified_name_as_you_like_it



The change will not be instantaneous !





  1. Restart the service (or the PC), using the command:



    sudo service bluetooth restart







share|improve this answer



















  • 1




    If your adapter has an alias, also edit /var/lib/bluetooth/XX:XX:XX:XX:XX:XX/settings, and change that.
    – Mr. B
    Jun 20 '16 at 22:30















up vote
3
down vote













You can change the name of a bluetooth remote device on your PC :





  1. check the MAC adress of the device in the bluetooth settings. It looks:



    XX:XX:XX:XX:XX:XX



  2. open the Terminal and type:



    sudo gedit /var/lib/bluetooth/XX:XX:XX:XX:XX:XX/config/info


  3. if it asks for the password, type it (you won't see it)


  4. the gedit will open up with that file.


  5. modify (only) the value corresponding to 'Name'



    Name=modified_name_as_you_like_it



The change will not be instantaneous !





  1. Restart the service (or the PC), using the command:



    sudo service bluetooth restart







share|improve this answer



















  • 1




    If your adapter has an alias, also edit /var/lib/bluetooth/XX:XX:XX:XX:XX:XX/settings, and change that.
    – Mr. B
    Jun 20 '16 at 22:30













up vote
3
down vote










up vote
3
down vote









You can change the name of a bluetooth remote device on your PC :





  1. check the MAC adress of the device in the bluetooth settings. It looks:



    XX:XX:XX:XX:XX:XX



  2. open the Terminal and type:



    sudo gedit /var/lib/bluetooth/XX:XX:XX:XX:XX:XX/config/info


  3. if it asks for the password, type it (you won't see it)


  4. the gedit will open up with that file.


  5. modify (only) the value corresponding to 'Name'



    Name=modified_name_as_you_like_it



The change will not be instantaneous !





  1. Restart the service (or the PC), using the command:



    sudo service bluetooth restart







share|improve this answer














You can change the name of a bluetooth remote device on your PC :





  1. check the MAC adress of the device in the bluetooth settings. It looks:



    XX:XX:XX:XX:XX:XX



  2. open the Terminal and type:



    sudo gedit /var/lib/bluetooth/XX:XX:XX:XX:XX:XX/config/info


  3. if it asks for the password, type it (you won't see it)


  4. the gedit will open up with that file.


  5. modify (only) the value corresponding to 'Name'



    Name=modified_name_as_you_like_it



The change will not be instantaneous !





  1. Restart the service (or the PC), using the command:



    sudo service bluetooth restart








share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 21 at 20:37









Community

1




1










answered Nov 28 '15 at 15:36









dreis nineoneone

493




493








  • 1




    If your adapter has an alias, also edit /var/lib/bluetooth/XX:XX:XX:XX:XX:XX/settings, and change that.
    – Mr. B
    Jun 20 '16 at 22:30














  • 1




    If your adapter has an alias, also edit /var/lib/bluetooth/XX:XX:XX:XX:XX:XX/settings, and change that.
    – Mr. B
    Jun 20 '16 at 22:30








1




1




If your adapter has an alias, also edit /var/lib/bluetooth/XX:XX:XX:XX:XX:XX/settings, and change that.
– Mr. B
Jun 20 '16 at 22:30




If your adapter has an alias, also edit /var/lib/bluetooth/XX:XX:XX:XX:XX:XX/settings, and change that.
– Mr. B
Jun 20 '16 at 22:30










up vote
0
down vote













sudo apt-get update; sudo apt-get install -y nano
sudo nano /var/lib/bluetooth/*/config
sudo service bluetooth restart


Update the value for “name”. In my case, it was: Ubuntu-0






share|improve this answer

















  • 1




    This answer provides the same solution as many others, but with much less detail.
    – TheWanderer
    Mar 17 '16 at 18:12















up vote
0
down vote













sudo apt-get update; sudo apt-get install -y nano
sudo nano /var/lib/bluetooth/*/config
sudo service bluetooth restart


Update the value for “name”. In my case, it was: Ubuntu-0






share|improve this answer

















  • 1




    This answer provides the same solution as many others, but with much less detail.
    – TheWanderer
    Mar 17 '16 at 18:12













up vote
0
down vote










up vote
0
down vote









sudo apt-get update; sudo apt-get install -y nano
sudo nano /var/lib/bluetooth/*/config
sudo service bluetooth restart


Update the value for “name”. In my case, it was: Ubuntu-0






share|improve this answer












sudo apt-get update; sudo apt-get install -y nano
sudo nano /var/lib/bluetooth/*/config
sudo service bluetooth restart


Update the value for “name”. In my case, it was: Ubuntu-0







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 17 '16 at 17:09









Alireza Jalilii

1




1








  • 1




    This answer provides the same solution as many others, but with much less detail.
    – TheWanderer
    Mar 17 '16 at 18:12














  • 1




    This answer provides the same solution as many others, but with much less detail.
    – TheWanderer
    Mar 17 '16 at 18:12








1




1




This answer provides the same solution as many others, but with much less detail.
– TheWanderer
Mar 17 '16 at 18:12




This answer provides the same solution as many others, but with much less detail.
– TheWanderer
Mar 17 '16 at 18:12


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f80960%2fhow-to-change-bluetooth-broadcast-device-name%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

數位音樂下載

When can things happen in Etherscan, such as the picture below?

格利澤436b