Sponsored Content
Operating Systems OS X (Apple) Change Name of Bluetooth Device from Command Line in macOS Post 303042105 by Neo on Saturday 14th of December 2019 10:52:42 PM
Old 12-14-2019
Change Name of Bluetooth Device from Command Line in macOS

Mac Version 10.15.2 (macOS Catalina)

Does anyone know how to change the name of a connected bluetooth device from the command line on macOS?

I am having trouble with various bluetooth devices which I cannot get the "rename" option in the GUI to "save" properly and so I cannot rename a few devices (two keyboards, one headset)

I tried installing BluetoothConnector

Code:
brew install bluetoothconnector

but this utility only permits connecting and disconnecting (and notify).

Code:
Catalina:~ Tim$ BluetoothConnector
Usage: BluetoothConnector [--connect | -c] [--disconnect | -d] 00-00-00-00-00-00 [--notify | -n]

Get the MAC address from the list below (if your device is missing, pair it with your computer first):
00-cd-fe-b8-ae-ef - Tim's iPhone 6S
20-c9-d0-96-1f-00 - TIM-MAC-MINI
60-f8-1d-2c-55-4c - Tim iPhone Plus
00-00-00-00-08-1e - AWEI MUSIC
98-5a-eb-bf-82-ae - Tim Bass's Keyboard #1
1c-36-bb-0a-ca-08 - Magic Mouse
54-46-6b-91-e6-0d - Bluetooth 3.0 Keyboard

I was able to change the the name of the mouse using the GUI, but when I change the name of the keyboards or bluetooth headset, the name changes do not "stick".

So, searched the web for a way to do this with a single command line tool and did not find anything.

If anyone has one, that would be great; but is is not critical.

The issue I am facing is that I sometimes like to use a small backlit bluetooth keyboard in the dark, I bought this keyboard on Aliexpress:

AVATTO Ultra-thin 7 Color LED Backlit Wireless Bluetooth Tablet Keyboard For Android, Mac OS, Windows Tablet Phone

This keyboard works "OK" and the backlight feature is really good; but there is some communications problem with it when I try to manage it using bluetooth preferences (it hangs). The keyboard works fine; but it has as adverse effect on bluetooth setup, overall.

It's not a big deal, just an annoyance.


I don't think renaming it will make a difference, but I wanted to try anyway; but I cannot rename it via the GUI (in a way which actually "holds"), so I am looking for some robust command line tools for the mac.

BluetoothConnector does not rename devices.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to change the GRUB command line to graphical interface?

Hi, I am i new Unix linux user. I've installed the linux 9 and i uninstall it. the first time i install the linux, the GRUB show the graphical interface. But after i reinstall it again, the GRUB change to command line. I can't boot my comp now. What should I do? And i don't know how to deal with... (1 Reply)
Discussion started by: lee_chongeu
1 Replies

2. Linux

How change GRUB command line to graphical interface?

Hi, I am i new Unix linux user. I've installed the linux 9 and i uninstall it. the first time i install the linux, the GRUB show the graphical interface. But after i reinstall it again, the GRUB change to command line. I can't boot my comp now. What should I do? And i don't know how to deal with... (4 Replies)
Discussion started by: lee_chongeu
4 Replies

3. UNIX for Advanced & Expert Users

How to change size of command line in unix

Hi, I'm trying to execute my program from $prompt by passing many parameters which is more than 300 charecters in line but unix not accepting those many charecters, could some one help me how to increase the size? thanks (7 Replies)
Discussion started by: krishna
7 Replies

4. UNIX for Advanced & Expert Users

%device line change

Hello and thank you in advance for any assistance. Working with SCO 5.0.5 our SCSI tape device is no longer working. Before we replace the unit I want to verify it's not related to a change someone may have made via mkdev tape. For years the boot message would list the tape device as this:... (1 Reply)
Discussion started by: sighbrrguy
1 Replies

5. Shell Programming and Scripting

Using sed command to change end of line

I am looking to change a data file into a javascript string and this is the code that I am using: sed -i '' -e 's/^/str += "/' -e 's/$/";/' file.xml The first part -e 's/^/str += "/' works as intended, but the second part -e 's/$/";/' adds an additional newline to my file, so that instead of... (3 Replies)
Discussion started by: figaro
3 Replies

6. Shell Programming and Scripting

Change filename extensions..from command line

I want to change the extensions of a folder full of files (some of the files are located in subfolders as well) to another extension, but instead of replacing the files I want the new files to be copied into a newly created folder. Here is the folder structure: /Downloads/3eb... (3 Replies)
Discussion started by: bound4h
3 Replies

7. Shell Programming and Scripting

one line command to change mode only if necessary

hi, sorry for posting this for a quick answer. Is there a one line command to change permissions on files in a directory to a given mode (say 554) and only for those files that do not already have that mode? Running chmod updates the last access/modified timestamp on the files, and i want to... (11 Replies)
Discussion started by: ysrini
11 Replies

8. Shell Programming and Scripting

Script to read command line input and change it to some form

Hi, I want to write a small code in which script changes command line input to some form. Example script.sh a1 a2 a3 a4 ..... output should be "a1|a2|a3|....." Number of inputs in command line can be any variable (2 Replies)
Discussion started by: Raza Ali
2 Replies

9. Shell Programming and Scripting

Issue with shutdown command in script (MacOS High Sierra)

Hello, I have a backup script that runs an rsync backup to an external drive. I use the script frequently on Windows and Linux and have installed it on a Mac. The script has an option to run shutdown after the backup has completed. Since backup can take hours to run, this is an option that is... (10 Replies)
Discussion started by: LMHmedchem
10 Replies
BLUETOOTH-SENDTO(1)						Linux User's Manual					       BLUETOOTH-SENDTO(1)

NAME
bluetooth-sendto - GTK application for transferring files over Bluetooth SYNOPSIS
bluetooth-sendto [--device=XX:XX:XX:XX:XX:XX [--name=NAME]] [file...] DESCRIPTION
bluetooth-sendto will display a dialog for transferring files over Bluetooth. bluetooth-sendto is part of gnome-bluetooth, see also http://live.gnome.org/GnomeBluetooth OPTIONS
--device Define the device address to send the file(s) to. If omitted a chooser will be displayed. --name Define the device name to send the file(s) to. If omitted it will be auto detected. file The file(s) to send to the device. If omitted a chooser will be displayed. AUTHOR
Marcel Holtmann <marcel@holtmann.org> LICENSE
bluetooth-sendto is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABIL- ITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA gnome-bluetooth May 6, 2012 BLUETOOTH-SENDTO(1)
All times are GMT -4. The time now is 04:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy