Not set name from main.conf
Hello All,
I set name in main.conf file, in log bluetoothd i see:
Quoted 2 lines
bluetoothd[25627]: src/main.c:parse_config() name=PuppyBT bluetoothd[25627]: src/adapter.c:btd_adapter_new() System name: PuppyBT
and later in the log:
Quoted 6 lines
bluetoothd[25627]: src/adapter.c:local_name_changed_callback() Name: PuppyBT bluetoothd[25627]: src/adapter.c:local_name_changed_callback() Short name:
bluetoothd[25627]: src/adapter.c:local_name_changed_callback() Current alias: PuppyBT bluetoothd[25627]: plugins/hostname.c:property_changed() static hostname: pra bluetoothd[25627]: plugins/hostname.c:property_changed() pretty hostname:
bluetoothd[25627]: plugins/hostname.c:update_name() name: pra
Quoted 8 lines
bluetoothd[25627]: src/adapter.c:adapter_set_name() name: pra bluetoothd[25627]: src/adapter.c:adapter_set_name() alias: pra bluetoothd[25627]: src/adapter.c:set_name() sending set local name command for index 0 bluetoothd[25627]: plugins/hostname.c:property_changed() chassis: laptop bluetoothd[25627]: plugins/hostname.c:update_class() major:
0x01minor:0x03bluetoothd[25627]: src/adapter.c:local_name_changed_callback() Name: pra bluetoothd[25627]: src/adapter.c:local_name_changed_callback() Short name:
bluetoothd[25627]: src/adapter.c:local_name_changed_callback() Current alias: pra
How to correctly set the device name?
Bluez version 5.45
---------------------
Best regards,
Aleksandr Proklov
Luiz Augusto von Dentz
maintainerHi Aleksandr,
On Tue, Aug 29, 2017 at 9:08 AM, =D0=9F=D1=80=D0=BE=D0=BA=D0=BB=D0=BE=D0=B2=
=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80 =D0=92=D0=B0=D0=BB=
=D0=B5=D1=80=D1=8C=D0=B5=D0=B2=D0=B8=D1=87
Quoted 13 lines · <[email protected]> wrote:
Hello All,
I set name in main.conf file, in log bluetoothd i see:
Quoted 3 lines
bluetoothd[25627]: src/main.c:parse_config() name=3DPuppyBT bluetoothd[25627]: src/adapter.c:btd_adapter_new() System name: PuppyBT
and later in the log:
Quoted 3 lines
bluetoothd[25627]: src/adapter.c:local_name_changed_callback() Name:
PuppyBT
bluetoothd[25627]: src/adapter.c:local_name_changed_callback() Short nam=
e:
Quoted 3 lines
Quoted 3 lines
bluetoothd[25627]: src/adapter.c:local_name_changed_callback() Current
alias: PuppyBT
bluetoothd[25627]: plugins/hostname.c:property_changed() static hostname=
:
Quoted 2 lines
Quoted 2 lines
pra
bluetoothd[25627]: plugins/hostname.c:property_changed() pretty hostname=
:
Quoted 4 lines
Quoted 4 lines
bluetoothd[25627]: plugins/hostname.c:update_name() name: pra bluetoothd[25627]: src/adapter.c:adapter_set_name() name: pra bluetoothd[25627]: src/adapter.c:adapter_set_name() alias: pra bluetoothd[25627]: src/adapter.c:set_name() sending set local name comma=
nd
Quoted 6 lines
Quoted 6 lines
for index 0
bluetoothd[25627]: plugins/hostname.c:property_changed() chassis: laptop bluetoothd[25627]: plugins/hostname.c:update_class() major:0x01minor:0x03
bluetoothd[25627]: src/adapter.c:local_name_changed_callback() Name: pra bluetoothd[25627]: src/adapter.c:local_name_changed_callback() Short nam=
e:
Quoted 5 lines
Quoted 2 lines
bluetoothd[25627]: src/adapter.c:local_name_changed_callback() Current
alias: praHow to correctly set the device name?
You should probably disable the hostname plugin if you don't want it to set the name and alias, alternatively, you can set a different alias using the Alias property with bluetoothctl or your own tool.
Quoted 8 lines
Bluez version 5.45
---------------------
Best regards,
Aleksandr Proklov
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth=
"
Quoted 3 lines
in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
--=20
Luiz Augusto von Dentz
Quoted 4 lines
You should probably disable the hostname plugin if you don't want it to set the name and alias, alternatively, you can set a different alias using the Alias property with bluetoothctl or your own tool.
Why hostname plugin ignore main.conf options?
how to disable this plugin? If it is disabled only when compiled bluez, then this is not the best way!
How can I set the name assigned without user action, I know of no other way than the main.conf
Luiz Augusto von Dentz
maintainerHi,
On Tue, Aug 29, 2017 at 11:56 AM, =D0=9F=D1=80=D0=BE=D0=BA=D0=BB=D0=BE=D0= =B2 =D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80 =D0=92=D0=B0=D0= =BB=D0=B5=D1=80=D1=8C=D0=B5=D0=B2=D0=B8=D1=87
Quoted 8 lines · <[email protected]> wrote:
Quoted 4 lines
You should probably disable the hostname plugin if you don't want it to set the name and alias, alternatively, you can set a different alias using the Alias property with bluetoothctl or your own tool.
Why hostname plugin ignore main.conf options?
hostname plugin sets the name automatically based on the hostname of the system while main.conf would work as a backup in case hostname service cannot be found, or some other occurred. Botton like is if you don't want BlueZ to use the hostname as name disable hostname plugin.
Quoted 1 line
how to disable this plugin? If it is disabled only when compiled bluez, t=
hen
Quoted 1 line
this is not the best way!
bluetoothd --help:
-P, --noplugin=3DNAME,... Specify plugins not to load
Quoted 1 line
How can I set the name assigned without user action, I know of no other w=
ay
Quoted 4 lines
than the main.conf
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth=
"
Quoted 3 lines
in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
--=20
Luiz Augusto von Dentz
29.08.2017 18:21, Luiz Augusto von Dentz пишет:
Quoted 2 lines
bluetoothd --help:
-P, --noplugin=NAME,... Specify plugins not to load
Thank you, i change setting in start script.