How to modify the bluetooth device class

Dear community,
The bluetoothhd service uses a configuration file (main.conf) in which several parameters of the bluetooth connection can be configured, one of which is the device class. The main.conf file should be in the path /etc/bluetooth/ but in the reference image it does not appear. I manually created the file and modified the bluetooth.service so that when it starts up it takes the main.conf file in the following way:

bluetoothd -f /etc/bluetooth/main.conf

I have restarted the device and although now if it modifies the class it does not do it correctly. In the main.conf I have configured the following option:

[General]
# Default adapter name
# Defaults to 'BlueZ X.YZ'.
Name = NIIRA
# Default device class. Only the major and minor device class bits are
# considered. Defaults to '0x000000'.
Class = 0x00240414

And the device has partly modified the class type and has not modified the name:

So it has read the main.conf file but for some reason I don’t know, it has not taken correctly the value of the class, nor has it taken the name.

I am using the minimum reference image BSP 6.3.0 on the Verdin iMX8MM.

Any suggestions?
Thanks to all of you for your collaboration.
Julián

Hello @jbruno ,
In order to modify the name of the device, you have to create a file named /etc/machine-info which should have the following content

PRETTY_HOSTNAME=your-device-name

Then reboot the device and the name and alias should have changed
If you want to change the alias you can use bluetoothctl with the command system-alias

root@verdin-imx8mp-07011753:~# bluetoothctl system-alias device-alias
Changing device-alias succeeded
root@verdin-imx8mp-07011753:~# bluetoothctl show
Controller 48:E7:DA:77:EA:28 (public)
        Name: device-name
        Alias: device-alias

As for the class change I need to investigate more.

Best regards,
Josep

Hello @jbruno ,
A non-permanent way to update the Bluetooth device class is using hciconfig
For example :

root@verdin-imx8mp-07011753:~# hciconfig hci1 class 000408
root@verdin-imx8mp-07011753:~# bluetoothctl show
Controller 48:E7:DA:77:EA:28 (public)
        Name: device-name
        Alias: device-alias
        Class: 0x00000408

Best regards,
Josep