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
anyRemote(1)						      General Commands Manual						      anyRemote(1)

NAME
anyremote - control PC with Bluetooth/Wi-Fi cell phone .br SYNOPSIS
anyremote [-f file] [-s connect string] [-log] [-a] [-fe port] [-http] [-u username] [-name SDP service name] [-password] anyremote -h|-v .br DESCRIPTION
The overall goal of this project is to provide remote control service on Linux through Bluetooth, Wi-Fi or just TCP/IP connection. anyRemote supports wide range of modern cell phones like Nokia, HTC, SonyEricsson, Motorola and others. It was developed as thin "communication" layer between Bluetooth (IR, Wi-Fi)-capabled phone and Linux, and in theory could be configured to manage almost any software. anyRemote is console application, but in addition there are GUI front-ends for Gnome and KDE. OPTIONS
-h print short help and exit -v print version number and exit -f /path/to/configuration/file By default anyremote will try to find and use $HOME/.anyremote.cfg, then ./.anyremote.cfg. It is possible to specify configuration file directly with -f option. -s connect string where connect string can be one of: bluetooth:_channel_ (Server mode - bluetooth connection) socket:_port_ (Server mode - TCP/IP connection) web:_port_ (Server mode - Web interface) local:/dev/ircommX (Server mode - IR connection) rfcomm:XX:XX:XX:XX:XX:XX:CC (AT mode - bluetooth connection, where XX:XX:XX:XX:XX:XX is bluetooth device address and CC is channel number - integer from 1 to 32) /dev/ttyACM# (AT mode - cable connection) /dev/ircomm# (AT mode - IR connection) ilirc:_AF_LOCAL socket file_ (use with inputlircd) stdin -log print verbose logging information to $HOME/.anyRemote/anyremote.log -a reconnect automatically in case of connection failure, used only in AT-mode -fe _port_ Work as backend for GUI frontend. Use specified port to connect to frontend. -name SDP_service_name if bluetooth connection is used, allows one to specify SDP service name. Default value for SDP service name is "anyRemote" -password If this option is specified, then anyRemote will ask the client for the password. Password phrase should be stored in $HOME/.anyRemote/password file in plain text. -u|--user _username_ if started from root, allows one to set effective user ID to specified user .br AUTHORS
Mikhail Fedotov anyremote@mail.ru http://anyremote.sf.net .br BUGS
If you find any bugs, please report to anyremote@mail.ru .br LICENCE
This is free software. You may redistribute copies of it under the terms of the GNU General Public License http://www.gnu.org/licenses/gpl.html. There is NO WARRANTY, to the extent permitted by law. May 11, 2012 anyRemote(1)
All times are GMT -4. The time now is 05:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy