2009-06-15 09:48:33

by John Frankish

[permalink] [raw]
Subject: bluetooth, dbus and bluetooth headsets

I've been trying to get a bt headset to work again with bluez for some time now, so I'd appreciate any help available on this - about the last time it worked was circa bluez-4.17 - I used:

Dbus-1.2.1
Dbus-glib-0.76
Bluez-gnome-1.8
Alsa-1.0.17

If I use more recent versions of bluez - I've tried all the way to bluez-4.41 - I can get other bt devices to work as long as I use /etc/dbus-1/system.d/bluetooth.conf from circa bluez-4.17, but I cannot get a bt headset to work.

I saw in this list that a more recent version of dbus might help getting a bt headset to work again, so I tried:

Dbus-1.2.14
Dbus-glib-0.80

..but then bluez-gnome does not find any devices to pair with, even if "hcitool scan" does find available devices. "simple-agent" does not seem to work up to bluez-4.41, so I cannot try to pair with the bt headset by that method either.

1. Are there prescribed versions of dbus, dbus-glib, alsa, etc that are required in order for a bt headset to work?

2. Why do I need to use an old /etc/dbus-1/system.d/bluetooth.conf for bluetoothd to start?

3. Is "simple-agent" supposed to work (I've seen various posts about required patches for dbus, etc)?

Thanks, John


2009-06-18 11:59:21

by John Frankish

[permalink] [raw]
Subject: RE: bluetooth, dbus and bluetooth headsets

DQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTogbGludXgtYmx1ZXRvb3RoLW93bmVy
QHZnZXIua2VybmVsLm9yZyBbbWFpbHRvOmxpbnV4LWJsdWV0b290aC1vd25lckB2Z2VyLmtlcm5l
bC5vcmddIE9uIEJlaGFsZiBPZiBKb2huIEZyYW5raXNoDQpTZW50OiAxNSBKdW5lLCAyMDA5IDEz
OjQ5DQpUbzogbGludXgtYmx1ZXRvb3RoQHZnZXIua2VybmVsLm9yZw0KU3ViamVjdDogYmx1ZXRv
b3RoLCBkYnVzIGFuZCBibHVldG9vdGggaGVhZHNldHMNCg0KSSd2ZSBiZWVuIHRyeWluZyB0byBn
ZXQgYSBidCBoZWFkc2V0IHRvIHdvcmsgYWdhaW4gd2l0aCBibHVleiBmb3Igc29tZSB0aW1lIG5v
dywg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J1dCB0aGF0J3MgaG93IEkgZ290IHRoaW5ncyB3b3JraW5nLi4uDQoNCkpvaG4NCg==

2009-06-18 11:09:05

by Balaji Palaniswami

[permalink] [raw]
Subject: Re: bluetooth, dbus and bluetooth headsets






----- Original Message ----
From: John Frankish <[email protected]>
To: "[email protected]" <[email protected]>
Sent: Thursday, 18 June, 2009 12:13:30 PM
Subject: RE: bluetooth, dbus and bluetooth headsets


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of John Frankish
Sent: 15 June, 2009 13:49
To: [email protected]
Subject: bluetooth, dbus and bluetooth headsets

I've been trying to get a bt headset to work again with bluez for some time now, so I'd appreciate any help available on this - about the last time it worked was circa bluez-4.17 - I used:

Dbus-1.2.1
Dbus-glib-0.76
Bluez-gnome-1.8
Alsa-1.0.17

If I use more recent versions of bluez - I've tried all the way to bluez-4.41 - I can get other bt devices to work as long as I use /etc/dbus-1/system.d/bluetooth.conf from circa bluez-4.17, but I cannot get a bt headset to work.

I saw in this list that a more recent version of dbus might help getting a bt headset to work again, so I tried:

Dbus-1.2.14
Dbus-glib-0.80

..but then bluez-gnome does not find any devices to pair with, even if "hcitool scan" does find available devices. "simple-agent" does not seem to work up to bluez-4.41, so I cannot try to pair with the bt headset by that method either.

1. Are there prescribed versions of dbus, dbus-glib, alsa, etc that are required in order for a bt headset to work?

2. Why do I need to use an old /etc/dbus-1/system.d/bluetooth.conf for bluetoothd to start?

3. Is "simple-agent" supposed to work (I've seen various posts about required patches for dbus, etc)?

Thanks, John
--
To answer my own post for the benefit of anybody that might be struggling with this:

The trick was to run bluetooth-wizard from bluez-gnome as root, it then works with the /etc/dbus-1/system.d/bluetooth.conf from bluez-4.41, pairs with my bt headset and aplay/arecord produce the expected result.

The headset works with:

bluez-4.41
bluez-gnome-1.8
dbus-1.2.14
dbus-glib-0.80
alsa-1.0.20
kernel-2.6.29.2

John ,

I upgraded kernel to 2.6.30.rc8 , bluez-4.41, dbus 1.2.14 from Ubuntu 9.04 .I have verified bluez-gnome is 1.8,dbus-glib-80 default.For alsa ,what do i need install ? I found that there are lot of packages in ALSA main page such as driver ,library , utlility ,plugin firmware ,tools. After installation one of alsa package, i am not able to login again.Please share your installation procedure.

Thanks,
Balaji.P

To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html



ICC World Twenty20 England &#39;09 exclusively on YAHOO! CRICKET http://cricket.yahoo.com


2009-06-18 06:43:30

by John Frankish

[permalink] [raw]
Subject: RE: bluetooth, dbus and bluetooth headsets


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of John Frankish
Sent: 15 June, 2009 13:49
To: [email protected]
Subject: bluetooth, dbus and bluetooth headsets

I've been trying to get a bt headset to work again with bluez for some time now, so I'd appreciate any help available on this - about the last time it worked was circa bluez-4.17 - I used:

Dbus-1.2.1
Dbus-glib-0.76
Bluez-gnome-1.8
Alsa-1.0.17

If I use more recent versions of bluez - I've tried all the way to bluez-4.41 - I can get other bt devices to work as long as I use /etc/dbus-1/system.d/bluetooth.conf from circa bluez-4.17, but I cannot get a bt headset to work.

I saw in this list that a more recent version of dbus might help getting a bt headset to work again, so I tried:

Dbus-1.2.14
Dbus-glib-0.80

..but then bluez-gnome does not find any devices to pair with, even if "hcitool scan" does find available devices. "simple-agent" does not seem to work up to bluez-4.41, so I cannot try to pair with the bt headset by that method either.

1. Are there prescribed versions of dbus, dbus-glib, alsa, etc that are required in order for a bt headset to work?

2. Why do I need to use an old /etc/dbus-1/system.d/bluetooth.conf for bluetoothd to start?

3. Is "simple-agent" supposed to work (I've seen various posts about required patches for dbus, etc)?

Thanks, John
--
To answer my own post for the benefit of anybody that might be struggling with this:

The trick was to run bluetooth-wizard from bluez-gnome as root, it then works with the /etc/dbus-1/system.d/bluetooth.conf from bluez-4.41, pairs with my bt headset and aplay/arecord produce the expected result.

The headset works with:

bluez-4.41
bluez-gnome-1.8
dbus-1.2.14
dbus-glib-0.80
alsa-1.0.20
kernel-2.6.29.2