Bug 74144 - module-bluetooth - bluetooth-util.c: Method "GetProperties" with signature "" on interface "org.bluez.HandsfreeGateway" doesn't exist
Summary: module-bluetooth - bluetooth-util.c: Method "GetProperties" with signature ""...
Status: RESOLVED MOVED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: modules (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-28 09:12 UTC by Grafosecondo
Modified: 2018-07-30 10:39 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
pulseaudio-bluez bug - log connection and stream source with android (202.29 KB, text/plain)
2014-02-08 13:45 UTC, Grafosecondo
Details
pulseaudio-bluez bug - log connection and stream source with ubuntu (237.91 KB, text/plain)
2014-02-08 14:57 UTC, Grafosecondo
Details
log for bluez on debian (177.06 KB, text/plain)
2014-03-12 22:15 UTC, Grafosecondo
Details
pulseaudio log - module-bluetooth issue (180.30 KB, text/plain)
2014-03-15 10:00 UTC, Grafosecondo
Details
pulseaudio log - A2DP sink log (174.17 KB, text/plain)
2014-04-27 09:29 UTC, Grafosecondo
Details
pulseaudio log - A2DP sink log (174.17 KB, text/plain)
2014-04-27 09:31 UTC, Grafosecondo
Details

Description Grafosecondo 2014-01-28 09:12:34 UTC
Debian Wheezy

It looks like module-bluetooth can't contact the dbus bluetooth service.

Edited /etc/bluetooth/audio.conf, enabling Source,Sink,Control

Tried re-installing, bluetooth (4.99-2), bluez (4.99-2) and pulseaudio (4.0-6~bpo7+1)

Other packages: bluez-alsa (4.99-2), bluez-audio (4.99-2), pulseaudio-module-bluetooth

Tried solutions from this bug without success (end of page):
https://bugs.freedesktop.org/show_bug.cgi?id=57239

This is the complete pulseaudio output

--------------------------------------
E: [pulseaudio] bluetooth-util.c: org.bluez.HandsfreeGateway.GetProperties() failed: org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on interface "org.bluez.HandsfreeGateway" doesn't exist
E: [pulseaudio] bluetooth-util.c: org.bluez.HandsfreeGateway.GetProperties() failed: org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on interface "org.bluez.HandsfreeGateway" doesn't exist
E: [pulseaudio] bluetooth-util.c: org.bluez.HandsfreeGateway.GetProperties() failed: org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on interface "org.bluez.HandsfreeGateway" doesn't exist
E: [pulseaudio] bluetooth-util.c: org.bluez.HandsfreeGateway.GetProperties() failed: org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on interface "org.bluez.HandsfreeGateway" doesn't exist
--------------------------------------

It is a very tough problem to me, many thanks for every kind of help.

Cheers
Comment 1 Tanu Kaskinen 2014-01-28 09:26:23 UTC
What are you trying to achieve? If you're just trying to use a headset, I don't think org.bluez.HandsfreeGateway.GetProperties() is relevant (although I don't think those errors are expected behaviour either).
Comment 2 Grafosecondo 2014-01-28 11:11:17 UTC
Hi Tanu,

I've an old pc with a SoundBlaster Live 5.1 running Debian Wheezy CLI only. I want to stream audio from my laptop through bluetooth.

(pulseaudio over WiFi isn't reliable because of poor signal and lagging)

This bug seems to come in my way and block the connection between the two PCs. The PCs are paired and see each others but stream can't be built.

I mostly worked without a guide, I had a quick look to the following Raspberry Pi tutorial for some reference

http://rootprompt.apatsch.net/2013/04/23/raspberry-pi-network-audio-player-pulseaudio-dlna-and-bluetooth-a2dp-part-3-bluetooth/

Thanks
Comment 3 John Nevill 2014-02-05 21:38:51 UTC
Running into the same problem on the Raspberry Pi:

Versions installed:
pulseaudio:
  Installed: 2.0-6.1
--
pulseaudio-module-bluetooth:
  Installed: 2.0-6.1
--
bluez:
  Installed: 4.99-2

Raspbian with Kernel 3.10.28+

Device connects, I am able to route the audio where ever I wish and within a few seconds  syslog shows:
------------------------------------------------------------------------
pulseaudio[6210]: [pulseaudio] bluetooth-util.c: org.bluez.HandsfreeGateway.GetProperties() failed: org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on interface "org.bluez.HandsfreeGateway" doesn't exist
pulseaudio[6210]: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
pulseaudio[6210]: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
------------------------------------------------------------------------

I'm able to route audio around after this message appears in the log, but the audio quickly fails (after 5 seconds or so) as bluetoothd unregisters my A2DP Sink and Source Endpoints:
------------------------------------------------------------------------
bluetoothd[3189]: Endpoint unregistered: sender=:1.43 path=/MediaEndpoint/HFPAG
bluetoothd[3189]: Endpoint unregistered: sender=:1.43 path=/MediaEndpoint/HFPHS
bluetoothd[3189]: Endpoint unregistered: sender=:1.43 path=/MediaEndpoint/A2DPSource
bluetoothd[3189]: Endpoint unregistered: sender=:1.43 path=/MediaEndpoint/A2DPSink
------------------------------------------------------------------------
Comment 4 Grafosecondo 2014-02-06 11:24:54 UTC
I managed to connect my Android Phone to Debian PC with speakers, not my Ubuntu PC thou.

Ubuntu:
I get the message "Stream setup failed", can't find any other log with further information.

Android Phone:
Connection achieved but nothing plays on the Debian Speakers.

What I noticed is that module-bluetooth-device doesn't recognize any bluez source.
Dmesg traces the the Phone Bluetooth MAC as a virtual input.
Still pactl list sources and pactl list modules doesn't show anything regarding bluetooth.

Running the Debian system on CLI/headless I had some problems with DBus requesting X11 to work correctly. I solved them for pulse exporting DBus values on startup.

Still I'm quite convinced the problem regards DBus, somehow bluez and pulse can't communicate over DBus.
Comment 5 Tanu Kaskinen 2014-02-07 14:32:44 UTC
Please attach a verbose pulseaudio log as instructed here: https://wiki.ubuntu.com/PulseAudio/Log
Comment 6 Grafosecondo 2014-02-08 13:45:30 UTC
Created attachment 93656 [details]
pulseaudio-bluez bug - log connection and stream source with android

Hi Tanu,

the log as requested

thank you
Comment 7 Grafosecondo 2014-02-08 14:57:31 UTC
Created attachment 93658 [details]
pulseaudio-bluez bug - log connection and stream source with ubuntu

the log for ubuntu

thanx
Comment 8 Tanu Kaskinen 2014-03-07 10:45:25 UTC
Sorry for the long delay...

The org.bluez.Audio.State property never changes to "connected", which causes module-bluetooth-discover to not load module-bluetooth-device. I think you need to manually connect the bluetooth device on the Debian PC. Unfortunately, I don't know how to do that from the command line, so you'll need to do some research...
Comment 9 Grafosecondo 2014-03-11 20:09:22 UTC
I managed to connect the bluetooth audio stream (uff, I hope I'll get through this and eventually write a tutorial), but pulse still doesn't see any audio source; following some logs that may be useful.

pactl list modules short still gives unused bluetooth-discover

thank you so much for your kind support


-----------------------------------------------

D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.AudioSource, path=/org/bluez/2580/hci0/dev_88_53_2E_5C_F0_8E, member=PropertyChanged
D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.AudioSink, path=/org/bluez/2580/hci0/dev_88_53_2E_5C_F0_8E, member=PropertyChanged
D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.Audio, path=/org/bluez/2580/hci0/dev_88_53_2E_5C_F0_8E, member=PropertyChanged
D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.Device, path=/org/bluez/2580/hci0/dev_88_53_2E_5C_F0_8E, member=PropertyChanged
D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.Device, path=/org/bluez/2580/hci0/dev_88_53_2E_5C_F0_8E, member=PropertyChanged
D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.AudioSource, path=/org/bluez/2580/hci0/dev_88_53_2E_5C_F0_8E, member=PropertyChanged
D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.AudioSink, path=/org/bluez/2580/hci0/dev_88_53_2E_5C_F0_8E, member=PropertyChanged
D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.Audio, path=/org/bluez/2580/hci0/dev_88_53_2E_5C_F0_8E, member=PropertyChanged
D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.AudioSource, path=/org/bluez/2580/hci0/dev_88_53_2E_5C_F0_8E, member=PropertyChanged

-----------------------------------------------

only once I experienced the following error, but I think it's dued to a bad closing connection

-----------------------------------------------

bluetooth-util.c: org.bluez.Manager.GetProperties() failed: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.13" (uid=109 pid=3503 comm="pulseaudio -vvvv ") interface="org.bluez.Manager" member="GetProperties" error name="(unset)" requested_reply="0" destination="org.bluez" (uid=0 pid=2580 comm="/usr/sbin/bluetoothd ")

------------------------------------------------
Comment 10 Tanu Kaskinen 2014-03-12 08:19:01 UTC
(In reply to comment #9)
> I managed to connect the bluetooth audio stream (uff, I hope I'll get
> through this and eventually write a tutorial), but pulse still doesn't see
> any audio source; following some logs that may be useful.
> 
> pactl list modules short still gives unused bluetooth-discover

The logs that you pasted weren't particularly useful. The full log would be better.
Comment 11 Grafosecondo 2014-03-12 22:15:06 UTC
Created attachment 95683 [details]
log for bluez on debian
Comment 12 Grafosecondo 2014-03-12 22:17:09 UTC
sorry, I was in a hurry yesterday, here is the complete log.

I started pulse and connected another pc through bluetooth using debian as audio sink.

Thanx
Comment 13 Grafosecondo 2014-03-15 09:18:00 UTC
Going through pulse's log I found this, may it be the problem?
Thanx

-------------------------------

bluetooth-util.c: org.bluez.Manager.GetProperties() failed: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.27" (uid=109 pid=6467 comm="pulseaudio -vvvv ") interface="org.bluez.Manager" member="GetProperties" error name="(unset)" requested_reply="0" destination="org.bluez" (uid=0 pid=2470 comm="/usr/sbin/bluetoothd ")


-------------------------------


(In reply to comment #10)
> (In reply to comment #9)
> > I managed to connect the bluetooth audio stream (uff, I hope I'll get
> > through this and eventually write a tutorial), but pulse still doesn't see
> > any audio source; following some logs that may be useful.
> > 
> > pactl list modules short still gives unused bluetooth-discover
> 
> The logs that you pasted weren't particularly useful. The full log would be
> better.
Comment 14 Tanu Kaskinen 2014-03-15 09:51:49 UTC
Yes, the failure in calling org.bluez.Manager.GetProperties() prevents any Bluetooth code from working in PulseAudio.

This is a configuration issue on your machine, or you're running PulseAudio in some odd way. On my machine (Fedora 19) the access to BlueZ is granted by this snippet in /etc/dbus-1/system.d/bluetooth.conf:

  <policy at_console="true">
    <allow send_destination="org.bluez"/>
  </policy>

If you have the same on your machine, then the issue appears to be that you're running pulseaudio in some way that fails the "at_console" condition (before you ask, I don't know how the "at_console" rule actually works).
Comment 15 Grafosecondo 2014-03-15 10:00:13 UTC
Created attachment 95844 [details]
pulseaudio log - module-bluetooth issue

Thank you for your quick answer, yes I figured it out, modified the dbus configuration and solved that one.

Still nothing for module-bluetooth on pactl list modules short

The log attached, at least we got to state connected, it's something :)

Thanx
Comment 16 Tanu Kaskinen 2014-03-15 10:28:17 UTC
(In reply to comment #15)
> Created attachment 95844 [details]
> pulseaudio log - module-bluetooth issue
> 
> Thank you for your quick answer, yes I figured it out, modified the dbus
> configuration and solved that one.
> 
> Still nothing for module-bluetooth on pactl list modules short
> 
> The log attached, at least we got to state connected, it's something :)

org.bluez.Audio didn't actually reach state "connected", only "connecting". I don't know why the connection process stopped there. I don't know enough about BlueZ to tell how to debug this issue. It doesn't seem related to PulseAudio in any way.
Comment 17 Tanu Kaskinen 2014-03-15 10:28:53 UTC
By the way, if you're wondering about that crash in module-combine-sink when you shut down the daemon, that's fixed in 5.0.
Comment 18 Grafosecondo 2014-03-15 10:34:21 UTC
(In reply to comment #16)
> (In reply to comment #15)
> > Created attachment 95844 [details]
> > pulseaudio log - module-bluetooth issue
> > 
> > Thank you for your quick answer, yes I figured it out, modified the dbus
> > configuration and solved that one.
> > 
> > Still nothing for module-bluetooth on pactl list modules short
> > 
> > The log attached, at least we got to state connected, it's something :)
> 
> org.bluez.Audio didn't actually reach state "connected", only "connecting".
> I don't know why the connection process stopped there. I don't know enough
> about BlueZ to tell how to debug this issue. It doesn't seem related to
> PulseAudio in any way.


you mean it is missing the state connected for Sink? Because I can read it for Source (the last line)

-----------------------------------

(  20.582|  10.158) D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.Device, path=/org/bluez/2473/hci0/dev_88_53_2E_5C_F0_8E, member=PropertyChanged
(  20.763|   0.180) D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.AudioSource, path=/org/bluez/2473/hci0/dev_88_53_2E_5C_F0_8E, member=PropertyChanged
(  20.763|   0.000) D: [pulseaudio] bluetooth-util.c: Device /org/bluez/2473/hci0/dev_88_53_2E_5C_F0_8E interface org.bluez.AudioSource property 'State' changed to value 'connecting'
(  20.765|   0.002) D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.AudioSink, path=/org/bluez/2473/hci0/dev_88_53_2E_5C_F0_8E, member=PropertyChanged
(  20.766|   0.000) D: [pulseaudio] bluetooth-util.c: Device /org/bluez/2473/hci0/dev_88_53_2E_5C_F0_8E interface org.bluez.AudioSink property 'State' changed to value 'connecting'
(  20.767|   0.000) D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.Audio, path=/org/bluez/2473/hci0/dev_88_53_2E_5C_F0_8E, member=PropertyChanged
(  20.767|   0.000) D: [pulseaudio] bluetooth-util.c: Device /org/bluez/2473/hci0/dev_88_53_2E_5C_F0_8E interface org.bluez.Audio property 'State' changed to value 'connecting'
(  20.900|   0.133) D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.AudioSource, path=/org/bluez/2473/hci0/dev_88_53_2E_5C_F0_8E, member=PropertyChanged
(  20.901|   0.000) D: [pulseaudio] bluetooth-util.c: Device /org/bluez/2473/hci0/dev_88_53_2E_5C_F0_8E interface org.bluez.AudioSource property 'State' changed to value 'connected'

-----------------------------------

Should I try to force the 5.0 version of pulse? The 4th i'm using now is already forced from wheezy-backports

Thanx
Comment 19 Tanu Kaskinen 2014-03-15 10:48:08 UTC
No, I mean org.bluez.Audio. PulseAudio won't do anything before org.bluez.Audio becomes "connected".
Comment 20 Tanu Kaskinen 2014-03-15 10:49:35 UTC
(In reply to comment #18)
> Should I try to force the 5.0 version of pulse?

I don't expect that to help. You're of course free to try if you want.
Comment 21 Grafosecondo 2014-04-27 09:29:38 UTC
Created attachment 98064 [details]
pulseaudio log - A2DP sink log
Comment 22 Grafosecondo 2014-04-27 09:30:47 UTC
(In reply to comment #20)
> (In reply to comment #18)
> > Should I try to force the 5.0 version of pulse?
> 
> I don't expect that to help. You're of course free to try if you want.

Hi again, hope everything fine :)

I got rid of every bluetooth problem, the receiver PC correctly receive sound from my Android phone. It now connects with my Ubuntu laptop and it is shown as A2DP sink in the Audio settings. Still when I try to stream audio to it from the laptop nothing happens and the used player stops to play (when I select the local speakers it starts again).

I'm attaching the usual log, taken while I performed different attempts to stream some audio.

As always, thank you very much for your patience and help

Cheers
Comment 23 Grafosecondo 2014-04-27 09:31:24 UTC
Created attachment 98065 [details]
pulseaudio log - A2DP sink log
Comment 24 GitLab Migration User 2018-07-30 10:39:07 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/549.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.