* Not set name from main.conf
@ 2017-08-29 6:08 Проклов Александр Валерьевич
2017-08-29 7:00 ` Luiz Augusto von Dentz
2017-08-29 8:56 ` Проклов Александр Валерьевич
0 siblings, 2 replies; 5+ messages in thread
From: Проклов Александр Валерьевич @ 2017-08-29 6:08 UTC (permalink / raw)
To: linux-bluetooth
Hello All,
I set name in main.conf file, in log bluetoothd i see:
> 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:
> 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
> 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: 0x01 minor: 0x03
> bluetoothd[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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Not set name from main.conf
2017-08-29 6:08 Not set name from main.conf Проклов Александр Валерьевич
@ 2017-08-29 7:00 ` Luiz Augusto von Dentz
2017-08-29 8:56 ` Проклов Александр Валерьевич
1 sibling, 0 replies; 5+ messages in thread
From: Luiz Augusto von Dentz @ 2017-08-29 7:00 UTC (permalink / raw)
To: ProklovAV; +Cc: linux-bluetooth
Hi 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
<ProklovAV@mail.zabtrans.ru> wrote:
> Hello All,
>
> I set name in main.conf file, in log bluetoothd i see:
>>
>> 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:
>
>> bluetoothd[25627]: src/adapter.c:local_name_changed_callback() Name:
>> PuppyBT
>> bluetoothd[25627]: src/adapter.c:local_name_changed_callback() Short nam=
e:
>> 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
>> 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
>> for index 0
>> bluetoothd[25627]: plugins/hostname.c:property_changed() chassis: laptop
>> bluetoothd[25627]: plugins/hostname.c:update_class() major: 0x01 minor:
>> 0x03
>> bluetoothd[25627]: src/adapter.c:local_name_changed_callback() Name: pra
>> bluetoothd[25627]: src/adapter.c:local_name_changed_callback() Short nam=
e:
>> bluetoothd[25627]: src/adapter.c:local_name_changed_callback() Current
>> alias: pra
>
>
> How 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.
>
> Bluez version 5.45
>
> ---------------------
> Best regards,
> Aleksandr Proklov
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth=
"
> in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--=20
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Not set name from main.conf
2017-08-29 6:08 Not set name from main.conf Проклов Александр Валерьевич
2017-08-29 7:00 ` Luiz Augusto von Dentz
@ 2017-08-29 8:56 ` Проклов Александр Валерьевич
2017-08-29 10:21 ` Luiz Augusto von Dentz
1 sibling, 1 reply; 5+ messages in thread
From: Проклов Александр Валерьевич @ 2017-08-29 8:56 UTC (permalink / raw)
To: linux-bluetooth
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Not set name from main.conf
2017-08-29 8:56 ` Проклов Александр Валерьевич
@ 2017-08-29 10:21 ` Luiz Augusto von Dentz
2017-08-29 23:54 ` Проклов Александр Валерьевич
0 siblings, 1 reply; 5+ messages in thread
From: Luiz Augusto von Dentz @ 2017-08-29 10:21 UTC (permalink / raw)
To: ProklovAV; +Cc: linux-bluetooth
Hi,
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
<ProklovAV@mail.zabtrans.ru> wrote:
>
>> 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.
> how to disable this plugin? If it is disabled only when compiled bluez, t=
hen
> this is not the best way!
bluetoothd --help:
-P, --noplugin=3DNAME,... Specify plugins not to load
> How can I set the name assigned without user action, I know of no other w=
ay
> than the main.conf
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth=
"
> in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--=20
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Not set name from main.conf
2017-08-29 10:21 ` Luiz Augusto von Dentz
@ 2017-08-29 23:54 ` Проклов Александр Валерьевич
0 siblings, 0 replies; 5+ messages in thread
From: Проклов Александр Валерьевич @ 2017-08-29 23:54 UTC (permalink / raw)
To: linux-bluetooth
29.08.2017 18:21, Luiz Augusto von Dentz пишет:
> bluetoothd --help:
> -P, --noplugin=NAME,... Specify plugins not to load
Thank you, i change setting in start script.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-08-29 23:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-29 6:08 Not set name from main.conf Проклов Александр Валерьевич
2017-08-29 7:00 ` Luiz Augusto von Dentz
2017-08-29 8:56 ` Проклов Александр Валерьевич
2017-08-29 10:21 ` Luiz Augusto von Dentz
2017-08-29 23:54 ` Проклов Александр Валерьевич
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.