public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] hcid.conf options not honored after DBus API had been used?
@ 2006-12-19 15:51 Stefan Seyfried
  2006-12-19 16:00 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Seyfried @ 2006-12-19 15:51 UTC (permalink / raw)
  To: BlueZ development

Hi,

I am observing the following:
After i have set the mode with SetMode and the timeout with
SetDiscoverableTimeout, the corresponding settings in /etc/bluetooth/hcid.c=
onf
(discovto for example) are no longer used (i can enter there whatever i want
and restart hcid, but hcid simply won't care).

I am assuming this is a feature :-)
I am, however, getting some bugreports of people that are confused that
this no longer "works as expected", especially since they are making settin=
gs
in a config tool (let's call it "YaST" :-) which are not honored.

So how to proceed here best? Let YaST write the hcid.conf _and_ set the
settings with apitest? Just drop this part of the YaST configuration tool?
Remove /var/lib/bluetooth/*/config on every boot? ;-)

I am right now tempted to say "we do no longer need a system wide config
tool since we have the DBus API" and drop almost all of the YaST
bluetooth module (keep only the stuff where you can disable bluetooth
completely, enable each daemon separately and specify the daemon
options).
But then, shouldn't we remove all the stuff that is more or less
obsolete from the shipped hcid.conf and just use compiled-in defaults
until somebody comes along and configures the system via the DBus API?

Any opinions? How is this handled on other distributions?
-- =

Stefan Seyfried
QA / R&D Team Mobile Devices        |              "Any ideas, John?"
SUSE LINUX Products GmbH, N=FCrnberg  | "Well, surrounding them's out." =


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez-devel] hcid.conf options not honored after DBus API had been used?
  2006-12-19 15:51 [Bluez-devel] hcid.conf options not honored after DBus API had been used? Stefan Seyfried
@ 2006-12-19 16:00 ` Marcel Holtmann
  2006-12-19 16:36   ` Stefan Seyfried
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2006-12-19 16:00 UTC (permalink / raw)
  To: BlueZ development

Hi Stefan,

> I am observing the following:
> After i have set the mode with SetMode and the timeout with
> SetDiscoverableTimeout, the corresponding settings in /etc/bluetooth/hcid.conf
> (discovto for example) are no longer used (i can enter there whatever i want
> and restart hcid, but hcid simply won't care).
> 
> I am assuming this is a feature :-)
> I am, however, getting some bugreports of people that are confused that
> this no longer "works as expected", especially since they are making settings
> in a config tool (let's call it "YaST" :-) which are not honored.
> 
> So how to proceed here best? Let YaST write the hcid.conf _and_ set the
> settings with apitest? Just drop this part of the YaST configuration tool?
> Remove /var/lib/bluetooth/*/config on every boot? ;-)
> 
> I am right now tempted to say "we do no longer need a system wide config
> tool since we have the DBus API" and drop almost all of the YaST
> bluetooth module (keep only the stuff where you can disable bluetooth
> completely, enable each daemon separately and specify the daemon
> options).
> But then, shouldn't we remove all the stuff that is more or less
> obsolete from the shipped hcid.conf and just use compiled-in defaults
> until somebody comes along and configures the system via the DBus API?
> 
> Any opinions? How is this handled on other distributions?

once you have values set through the D-Bus API they have priority and
that is the only possible choice. The provided configuration options in
hcid.conf are only default values for the distributions. No user should
ever modify these values. This also means that YaST should no longer
modify hcid.conf. Simply call the appropriate method via dbus-send.

In general you can have as many configuration tools as you want. The
only small thing you need to take care of is to listen to signals for
your settings, because another tool might change a value while you are
running.

Regards

Marcel



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez-devel] hcid.conf options not honored after DBus API had been used?
  2006-12-19 16:00 ` Marcel Holtmann
@ 2006-12-19 16:36   ` Stefan Seyfried
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Seyfried @ 2006-12-19 16:36 UTC (permalink / raw)
  To: BlueZ development

Hi Marcel,

On Tue, Dec 19, 2006 at 05:00:53PM +0100, Marcel Holtmann wrote:
 =

> > Any opinions? How is this handled on other distributions?
> =

> once you have values set through the D-Bus API they have priority and
> that is the only possible choice. The provided configuration options in
> hcid.conf are only default values for the distributions. No user should
> ever modify these values. This also means that YaST should no longer
> modify hcid.conf. Simply call the appropriate method via dbus-send.

Ok. How about shipping an empty hcid.conf with bluez-utils (or maybe
list the options, but comment them out) so everybody knows that "if you
touch anything here, you better know what you are doing"?

> In general you can have as many configuration tools as you want. The
> only small thing you need to take care of is to listen to signals for
> your settings, because another tool might change a value while you are
> running.

Yes, or just make all those dbus-send calls at once before exiting :-)
-- =

Stefan Seyfried
QA / R&D Team Mobile Devices        |              "Any ideas, John?"
SUSE LINUX Products GmbH, N=FCrnberg  | "Well, surrounding them's out." =


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-12-19 16:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-19 15:51 [Bluez-devel] hcid.conf options not honored after DBus API had been used? Stefan Seyfried
2006-12-19 16:00 ` Marcel Holtmann
2006-12-19 16:36   ` Stefan Seyfried

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox