2016-05-28 10:51:12

by denk

[permalink] [raw]
Subject: Name and Class in main.conf ignored

Hi,

I would like to configure the name and the class using the respective entries in /etc/bluetooth/main.conf. Unfortunately without success. Both values are ignored or overwritten, I don't know.

Any ideas why it doesn't work? Am I doing something wrong? Is there maybe an alternative way to achieve this?

Thanks in advance.

Best
denk


2016-05-31 05:11:57

by denk

[permalink] [raw]
Subject: Re: Name and Class in main.conf ignored

Hi,

thanks for your immediate answer. Using -P hostname now and it works!
One question: Shouldn't the settings in the configuration file supersede otherwise configured settings? I want to change the class of my device but, on the other hand I don't want to change the hostname which is set by the hostname plugin, I can't do that now. Instead I have to disable the whole plugin by changing the bluetooth.service file and therefor I have to take care for the changed bluetooth.service file in case of updates. What are the reasons for the current implementation? Would it be possible to change the current implementation in a way, that settings in main.conf overwrite settings in other places?

----- Ursprüngliche Mail -----
Von: "Szymon Janc" <[email protected]>
An: "denk" <[email protected]>
CC: [email protected]
Gesendet: Sonntag, 29. Mai 2016 11:30:24
Betreff: Re: Name and Class in main.conf ignored

Hi,

On Saturday 28 May 2016 12:51:12 denk wrote:
> Hi,
>
> I would like to configure the name and the class using the respective
> entries in /etc/bluetooth/main.conf. Unfortunately without success. Both
> values are ignored or overwritten, I don't know.
>
> Any ideas why it doesn't work? Am I doing something wrong? Is there maybe an
> alternative way to achieve this?
>
> Thanks in advance.
>

This is probably due to hostname plugin. Try disabling it (-P option) in
command line.

--
pozdrawiam
Szymon Janc

2016-05-29 09:30:24

by Szymon Janc

[permalink] [raw]
Subject: Re: Name and Class in main.conf ignored

Hi,

On Saturday 28 May 2016 12:51:12 denk wrote:
> Hi,
>
> I would like to configure the name and the class using the respective
> entries in /etc/bluetooth/main.conf. Unfortunately without success. Both
> values are ignored or overwritten, I don't know.
>
> Any ideas why it doesn't work? Am I doing something wrong? Is there maybe an
> alternative way to achieve this?
>
> Thanks in advance.
>

This is probably due to hostname plugin. Try disabling it (-P option) in
command line.

--
pozdrawiam
Szymon Janc