2009-08-18 14:33:41

by Stefan Seyfried

[permalink] [raw]
Subject: bluetoothd does not autostart on boot

Hi,

now with the fancy udev autostart, we have everything in place to get
rid of the init script.

However, it does not work.

See e.g. https://bugzilla.novell.com/show_bug.cgi?id=527856
Kay told me that in his opinion, udev is doing everything correctly and
that using it to fix boot dependencies is not an option.

So I'm going to pack up a simple bluetooth init script that does
nothing but

udevadm trigger --subsystem-match=bluetooth

And, as Kay has found out, fedora does the same:
http://cvs.fedora.redhat.com/viewvc/devel/bluez/bluetooth.init?view=markup&sortby=date

So the question is: how should we handle this upstream? Or should every
distribution roll her own solution?

Best regards,

Stefan
--
Stefan Seyfried
R&D Preload Department | "Any ideas, John?"
SUSE LINUX Products GmbH, Nürnberg | "Well, surrounding them's out."

This footer brought to you by insane German lawmakers:
SUSE Linux Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)


2009-08-19 06:44:46

by Stefan Seyfried

[permalink] [raw]
Subject: Re: bluetoothd does not autostart on boot

On Tue, 18 Aug 2009 22:13:56 +0100
Bastien Nocera <[email protected]> wrote:

> On Tue, 2009-08-18 at 16:33 +0200, Stefan Seyfried wrote:

> > So the question is: how should we handle this upstream? Or should
> > every distribution roll her own solution?

This question still remains.

> We do the same because what Kay told me would work doesn't actually
> work. Having already spent a huge amount of time trying to make this
> work, I had no option but to add the same work-around as Ubuntu.
>
> FWIW, I already had a conversation with Kay through Harald Hoyer,
> where Kay tried to deny that he ever told me that it would work (or
> rather, that it would work, but that we should do it another way in
> the future).
>
> You can discuss that with him.

I'm not trying to play the blame game here (sorry if I made that
impression), I'm just trying to:

a) keep "my" package as close to Marcel's upstream as possible
b) make it work for everyone, even for those who install from source.

Since udev does not really do what we expected it to do, shouldn't we
add that very simple init script back to the tarballs?
(I expect it to do no harm, it will not even measurably impact the
"fast boot" efforts).

Best regards,

Stefan
--
Stefan Seyfried
R&D Preload Department | "Any ideas, John?"
SUSE LINUX Products GmbH, Nürnberg | "Well, surrounding them's out."

This footer brought to you by insane German lawmakers:
SUSE Linux Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)

2009-08-18 21:13:56

by Bastien Nocera

[permalink] [raw]
Subject: Re: bluetoothd does not autostart on boot

On Tue, 2009-08-18 at 16:33 +0200, Stefan Seyfried wrote:
> Hi,
>
> now with the fancy udev autostart, we have everything in place to get
> rid of the init script.
>
> However, it does not work.
>
> See e.g. https://bugzilla.novell.com/show_bug.cgi?id=527856
> Kay told me that in his opinion, udev is doing everything correctly and
> that using it to fix boot dependencies is not an option.
>
> So I'm going to pack up a simple bluetooth init script that does
> nothing but
>
> udevadm trigger --subsystem-match=bluetooth
>
> And, as Kay has found out, fedora does the same:
> http://cvs.fedora.redhat.com/viewvc/devel/bluez/bluetooth.init?view=markup&sortby=date
>
> So the question is: how should we handle this upstream? Or should every
> distribution roll her own solution?

We do the same because what Kay told me would work doesn't actually
work. Having already spent a huge amount of time trying to make this
work, I had no option but to add the same work-around as Ubuntu.

FWIW, I already had a conversation with Kay through Harald Hoyer, where
Kay tried to deny that he ever told me that it would work (or rather,
that it would work, but that we should do it another way in the future).

You can discuss that with him.

Cheers