2009-07-27 22:59:45

by David Sainty

[permalink] [raw]
Subject: Gnome applet failing with current BlueZ?

Hi all,

Using BlueZ 4.46 and Gnome Bluetooth 2.27.8, the applet icon fails to
appear. If I pull the USB adapter out and in the icon appears, but with
a little red cross, and it isn't very functional.

Running the applet with -d (debug) I see nothing. Doing the USB adapter
out-in as well, I see:

Agent registration failed: Rejected send message, 2 matched rules;
type="method_call", sender=":1.12" (uid=1000 pid=1473
comm="bluetooth-applet -d ") interface="org.bluez.Adapter"
member="RegisterAgent" error name="(unset)" requested_reply=0
destination="org.bluez" (uid=0 pid=1100 comm="bluetoothd "))

I'm not sure when this stopped working, having got suitably confused
over whether to use bluez-gnome or gnome-bluetooth I've ended up using
neither for some time :) bluez-gnome doesn't work either though.

It looks dbus related, but that's a black art to me...

Cheers,

Dave



2009-07-28 05:29:27

by David Sainty

[permalink] [raw]
Subject: Re: Gnome applet failing with current BlueZ?

David Sainty wrote:
> I've tried rolling back BlueZ as far back as 4.26, and gnome-bluetooth
> back to 2.27.6, but no change. I guess the problem is related to some
> other update - maybe something to do with fallout from the dbus
> "permissive" security issue (I'm using dbus-1.2.4.2permissive at the
> moment).
>
> I guess I'll need to track it down myself... Any helpful advice on
> where I should look is most welcome though :)

Damn! bluetooth-applet has magically started working after reinstalling
2.27.8 and 4.26 (and various restarts of, E.g. dbus, hald). That's just
mysterious. Well... never mind.


2009-07-28 04:34:32

by David Sainty

[permalink] [raw]
Subject: Re: Gnome applet failing with current BlueZ?

Bastien Nocera wrote:
>
>> Looks like D-Bus is refusing the connection, which version of bluez are
>> you using?

I've tried rolling back BlueZ as far back as 4.26, and gnome-bluetooth
back to 2.27.6, but no change. I guess the problem is related to some
other update - maybe something to do with fallout from the dbus
"permissive" security issue (I'm using dbus-1.2.4.2permissive at the
moment).

I guess I'll need to track it down myself... Any helpful advice on
where I should look is most welcome though :)


2009-07-28 01:59:27

by David Sainty

[permalink] [raw]
Subject: Re: Gnome applet failing with current BlueZ?

Bastien Nocera wrote:
> On Tue, 2009-07-28 at 13:19 +1200, David Sainty wrote:
>
>> Bastien Nocera wrote:
>>
>>> On Tue, 2009-07-28 at 10:59 +1200, David Sainty wrote:
>>>
>>>
>>>> Hi all,
>>>>
>>>> Using BlueZ 4.46 and Gnome Bluetooth 2.27.8, the applet icon fails to
>>>> appear. If I pull the USB adapter out and in the icon appears, but with
>>>> a little red cross, and it isn't very functional.
>>>>
>>>>
>>> Is bluetoothd running?
>>> <snip>
>>>
>>>
>> Yes, and otherwise functional. For example, I'm sending this reply over
>> a bluetooth GPRS connection, and at the same time can see the
>> non-functional bluetooth-applet icon with the little red/white cross.
>>
>> Running bluetoothd in debug mode didn't seem to display any useful
>> information relating to the applet.
>>
>
>
>> Agent registration failed: Rejected send message, 2 matched rules;
>> type="method_call", sender=":1.12" (uid=1000 pid=1473
>> comm="bluetooth-applet -d ") interface="org.bluez.Adapter"
>> member="RegisterAgent" error name="(unset)" requested_reply=0
>> destination="org.bluez" (uid=0 pid=1100 comm="bluetoothd "))
>>
>
> Do you have blueman, or the applet from bluez-gnome running?
>

No and no.

> Looks like D-Bus is refusing the connection, which version of bluez are
> you using?
>
>

BlueZ 4.46

If I run "dbus-monitor --system" I get this (and only this) immediately
every time I start bluetooth-applet:

signal sender=org.freedesktop.DBus -> dest=(null destination)
path=/org/freedesktop/DBus; interface=org.freedesktop.DBus;
member=NameOwnerChanged
string ":1.16"
string ""
string ":1.16"

... and I get a similar message when I ctrl-C the applet, except the
last two string values reverse. Presumably establishing/disestablishing
a dbussy relationship between the applet and... something...



>>> I'm not sure what confusion there should be. Use gnome-bluetooth.
>>>
>>>
>> Well that clears that up :) But it isn't that obvious from the state of
>> the various web pages.
>>
>
> Which web pages?
>

I retract this :) bluez-gnome has fallen off BlueZ's front page now,
and it isn't referred to on the download page, so the confusion looks
like it's in the past now...


Whilst I've got you... msgfmt is a bit of a black art to me too so I'm
not sure this is right, but I needed to make this change to get
gnome-bluetooth 2.27.8 to build.

--- po/es.po.orig 2009-07-27 23:02:12.975653980 +1200
+++ po/es.po 2009-07-27 23:02:40.186064443 +1200
@@ -794,7 +794,7 @@
#~ msgid "Enter passkey"
#~ msgstr "Introducir contrase?a"

-#~| msgid "Enter passkey"
+#| msgid "Enter passkey"
#~ msgid "Verify passkey"
#~ msgstr "Verificar contrase?a"


2009-07-28 01:23:58

by Bastien Nocera

[permalink] [raw]
Subject: Re: Gnome applet failing with current BlueZ?

On Tue, 2009-07-28 at 13:19 +1200, David Sainty wrote:
> Bastien Nocera wrote:
> > On Tue, 2009-07-28 at 10:59 +1200, David Sainty wrote:
> >
> >> Hi all,
> >>
> >> Using BlueZ 4.46 and Gnome Bluetooth 2.27.8, the applet icon fails to
> >> appear. If I pull the USB adapter out and in the icon appears, but with
> >> a little red cross, and it isn't very functional.
> >>
> >
> > Is bluetoothd running?
> > <snip>
> >
>
> Yes, and otherwise functional. For example, I'm sending this reply over
> a bluetooth GPRS connection, and at the same time can see the
> non-functional bluetooth-applet icon with the little red/white cross.
>
> Running bluetoothd in debug mode didn't seem to display any useful
> information relating to the applet.

> Agent registration failed: Rejected send message, 2 matched rules;
> type="method_call", sender=":1.12" (uid=1000 pid=1473
> comm="bluetooth-applet -d ") interface="org.bluez.Adapter"
> member="RegisterAgent" error name="(unset)" requested_reply=0
> destination="org.bluez" (uid=0 pid=1100 comm="bluetoothd "))

Do you have blueman, or the applet from bluez-gnome running?

Looks like D-Bus is refusing the connection, which version of bluez are
you using?

> >> I'm not sure when this stopped working, having got suitably confused
> >> over whether to use bluez-gnome or gnome-bluetooth I've ended up using
> >> neither for some time :) bluez-gnome doesn't work either though.
> >>
> >
> > I'm not sure what confusion there should be. Use gnome-bluetooth.
> >
>
> Well that clears that up :) But it isn't that obvious from the state of
> the various web pages.

Which web pages?

Cheers


2009-07-28 01:19:58

by David Sainty

[permalink] [raw]
Subject: Re: Gnome applet failing with current BlueZ?

Bastien Nocera wrote:
> On Tue, 2009-07-28 at 10:59 +1200, David Sainty wrote:
>
>> Hi all,
>>
>> Using BlueZ 4.46 and Gnome Bluetooth 2.27.8, the applet icon fails to
>> appear. If I pull the USB adapter out and in the icon appears, but with
>> a little red cross, and it isn't very functional.
>>
>
> Is bluetoothd running?
> <snip>
>

Yes, and otherwise functional. For example, I'm sending this reply over
a bluetooth GPRS connection, and at the same time can see the
non-functional bluetooth-applet icon with the little red/white cross.

Running bluetoothd in debug mode didn't seem to display any useful
information relating to the applet.

>> I'm not sure when this stopped working, having got suitably confused
>> over whether to use bluez-gnome or gnome-bluetooth I've ended up using
>> neither for some time :) bluez-gnome doesn't work either though.
>>
>
> I'm not sure what confusion there should be. Use gnome-bluetooth.
>

Well that clears that up :) But it isn't that obvious from the state of
the various web pages.


2009-07-28 00:53:20

by Bastien Nocera

[permalink] [raw]
Subject: Re: Gnome applet failing with current BlueZ?

On Tue, 2009-07-28 at 10:59 +1200, David Sainty wrote:
> Hi all,
>
> Using BlueZ 4.46 and Gnome Bluetooth 2.27.8, the applet icon fails to
> appear. If I pull the USB adapter out and in the icon appears, but with
> a little red cross, and it isn't very functional.

Is bluetoothd running?
<snip>

> I'm not sure when this stopped working, having got suitably confused
> over whether to use bluez-gnome or gnome-bluetooth I've ended up using
> neither for some time :) bluez-gnome doesn't work either though.

I'm not sure what confusion there should be. Use gnome-bluetooth.