A story about changing the master name of BlueZ

I want to change the name of Bluetooth on Linux

I built my first home-built PC with Corona, what do you guys do with your host name? If it is made by a manufacturer, it has a fixed name, if it is Windows, it is random alphanumeric characters by default, if it is Fedora, openSUSE, it is localhost, or if it is Ubuntu system, it is decided by yourself at the time of installation etc .. It's a hassle to run multiple laptops, desktops and Linux and get a name, so I wanted to change it, so I got stuck.

This environment

--Homebrew PC

It seems that it is separated from the host name ..

Screenshot from 2020-11-23 08-19-28.png

I changed the host name with the YaST tool and confirmed the change on the terminal, but it did not change even when I looked into the Bluetooth setting screen, so it did not seem to change it together. So when I tried to open hciconfig, it was gone.

hcitool and hciconfig are not included in BlueZ

Reference: [https://wiki.archlinux.jp/index.php/Bluetooth#.E3.82.A4.E3.83.B3.E3.82.B9.E3.83.88.E3.83.BC.E3. 83.AB](https://wiki.archlinux.jp/index.php/Bluetooth#.E3.82.A4.E3.83.B3.E3.82.B9.E3.83.88.E3.83.BC. E3.83.AB) I felt like I used it as a Raspberry Pi, but was the version old ..?

Then what is the alternative?

If it is deprecated, I do not feel like using it, so there will be a change in BlueZ itself, if you look at help

    [bluetooth]# help
    Menu main:
    Available commands:
    -------------------
    advertise                                         Advertise Options Submenu
    scan                                              Scan Options Submenu
    gatt                                              Generic Attribute Submenu
    list                                              List available controllers
    show [ctrl]                                       Controller information
    select <ctrl>                                     Select default controller
    devices                                           List available devices
    paired-devices                                    List paired devices
    system-alias <name>                               Set controller alias
    reset-alias                                       Reset controller alias
    power <on/off>                                    Set controller power
    pairable <on/off>                                 Set controller pairable mode
    discoverable <on/off>                             Set controller discoverable mode
    discoverable-timeout [value]                      Set discoverable timeout
    agent <on/off/capability>                         Enable/disable agent with given       capability
    default-agent                                     Set agent as the default one
    advertise <on/off/type>                           Enable/disable advertising with       given type
    set-alias <alias>                                 Set device alias

(Omitted below)

By discovering those things, I immediately

[bluetooth]# system-alias hogehoge

Screenshot from 2020-11-23 09-05-52.png The identification name has also changed properly.

Recommended Posts

A story about changing the master name of BlueZ
The story of writing a program
The story of blackjack A processing (python)
The story of pep8 changing to pycodestyle
A note about the python version of python virtualenv
The story of making a lie news generator
The story of making a mel icon generator
The story of sys.path.append ()
The story of launching a Minecraft server from Discord
A story that reduces the effort of operation / maintenance
Get the variable name of the variable as a character string.
A memorandum about the warning of the pylint output result
The story of making a music generation neural network
Zip 4 Gbyte problem is a story of the past
A story that analyzed the delivery of Nico Nama.
A reminder about the implementation of recommendations in Python
A story about improving the program for partial filling of 3D binarized image data
A story about trying to introduce Linter in the middle of a Python (Flask) project
The story of building Zabbix 4.4
[Apache] The story of prefork
About the ease of Python
About the components of Luigi
About the features of Python
The story of creating a VIP channel for in-house chatwork
The story of a Django model field disappearing from a class
A little deeper story about blockchain, ticking the digital world
A story about clustering time series data of foreign exchange
The story of creating a database using the Google Analytics API
The story of making a question box bot with discord.py
A story about finding the longest shiritori of a given word group by ignoring computational complexity
A story about porting the code of "Try and understand how Linux works" to Rust
A story stuck with the installation of the machine learning library JAX
The story of Python and the story of NaN
pandas Fetch the name of a column that contains a specific character
A refreshing story about Python's Slice
A story about predicting prefectures from the names of cities, wards, towns and villages with Jubatus
The story of participating in AtCoder
A story that struggled to handle the Python package of PocketSphinx
A sloppy story about Python's Slice
About the return value of pthread_mutex_init ()
About the return value of the histogram.
About the basic type of Go
The story of creating a site that lists the release dates of books
The story of the "hole" in the file
About the upper limit of threads-max
Master the rich features of IPython
About the behavior of yield_per of SqlAlchemy
A story about using Python's reduce
About the size of matplotlib points
The story of remounting the application server
A story about a person who uses Python addicted to the judgment of an empty JavaScript dictionary
About the basics list of Python basics
The story of making a module that skips mail with python
[AtCoder for beginners] A story about the amount of calculation that you want to know very roughly
A story about trying to improve the testing process of a system written in C language for 20 years
The story of making a tool to load an image with Python ⇒ save it as another name
A story about creating a program that will increase the number of Instagram followers from 0 to 700 in a week
A story that visualizes the present of Qiita with Qiita API + Elasticsearch + Kibana
The story of a Parking Sensor in 10 minutes with GrovePi + Starter Kit
The story of making a university 100 yen breakfast LINE bot with Python
A story about adopting Django instead of Rails at a young seed startup