Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Bluetooth headset and PulseAudio
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
MageSlayer
Apprentice
Apprentice


Joined: 26 Jul 2007
Posts: 249
Location: Ukraine

PostPosted: Sat Jun 09, 2018 9:37 pm    Post subject: [SOLVED] Bluetooth headset and PulseAudio Reply with quote

Hi all

I am trying to make this nice combination work, but looks like I am really missing something here.

I have kernel 4.10.15, dbus-1.10.24, bluez-5.49-r1, pulseaudio-11.1 with bluetooth, native-headset and ofono-headset use flags enabled. Also I managed to find proper firmware for my Broadcom-BCM20702A1 (using great hint from here - https://www.slackwiki.com/Btfirmware-nonfree)

My earphone gets paired connected, pulseaudio gets new output device, switches to it, but no sound at all.

Relevant log is (# grep "dbus\|blue\|pulseaud" /var/log/messages):
Code:
Jun 10 00:16:12 notebook64 bluetoothd[8660]: Bluetooth daemon 5.49
Jun 10 00:16:12 notebook64 bluetoothd[8660]: Starting SDP server
Jun 10 00:16:12 notebook64 bluetoothd[8660]: Bluetooth management interface 1.14 initialized
Jun 10 00:16:12 notebook64 dbus[8597]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
Jun 10 00:16:12 notebook64 dbus[8597]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Jun 10 00:16:16 notebook64 dbus[8597]: [system] Activating service name='org.freedesktop.RealtimeKit1' (using servicehelper)
Jun 10 00:16:16 notebook64 dbus[8597]: [system] Successfully activated service 'org.freedesktop.RealtimeKit1'
Jun 10 00:16:16 notebook64 pulseaudio[12425]: [pulseaudio] main.c: Compiled with DEPRECATED libsamplerate support!
Jun 10 00:16:16 notebook64 bluetoothd[8660]: Endpoint registered: sender=:1.20 path=/MediaEndpoint/A2DPSource
Jun 10 00:16:16 notebook64 bluetoothd[8660]: Endpoint registered: sender=:1.20 path=/MediaEndpoint/A2DPSink
Jun 10 00:16:16 notebook64 pulseaudio[12425]: [pulseaudio] backend-ofono.c: Failed to register as a handsfree audio agent with ofono: org.freedesktop.DBus.Error.ServiceUnknown: The name org.ofono was not provided by any .service files
Jun 10 00:17:33 notebook64 dbus[8597]: [system] Reloaded configuration
Jun 10 00:17:39 notebook64 dbus[8597]: [system] Reloaded configuration
Jun 10 00:17:39 notebook64 dbus[8597]: [system] Reloaded configuration
Jun 10 00:17:42 notebook64 bluetoothd[8660]: Terminating
Jun 10 00:17:42 notebook64 bluetoothd[8660]: Unable to get io data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
Jun 10 00:17:42 notebook64 dbus[8597]: [system] Rejected send message, 1 matched rules; type="method_return", sender=":1.20" (uid=1000 pid=12425 comm="/usr/bin/pulseaudio --start --log-target=syslog ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.0" (uid=0 pid=8660 comm="/usr/libexec/bluetooth/bluetoothd ")
Jun 10 00:17:42 notebook64 bluetoothd[8660]: Endpoint unregistered: sender=:1.20 path=/MediaEndpoint/A2DPSource
Jun 10 00:17:42 notebook64 bluetoothd[8660]: Endpoint unregistered: sender=:1.20 path=/MediaEndpoint/A2DPSink
Jun 10 00:17:42 notebook64 dbus[8597]: [system] Rejected send message, 1 matched rules; type="error", sender=":1.20" (uid=1000 pid=12425 comm="/usr/bin/pulseaudio --start --log-target=syslog ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.0" (uid=0 pid=8660 comm="/usr/libexec/bluetooth/bluetoothd ")
Jun 10 00:17:42 notebook64 dbus[8597]: [system] Rejected send message, 1 matched rules; type="error", sender=":1.20" (uid=1000 pid=12425 comm="/usr/bin/pulseaudio --start --log-target=syslog ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.0" (uid=0 pid=8660 comm="/usr/libexec/bluetooth/bluetoothd ")
Jun 10 00:17:42 notebook64 dbus[8597]: [system] Rejected send message, 1 matched rules; type="error", sender=":1.20" (uid=1000 pid=12425 comm="/usr/bin/pulseaudio --start --log-target=syslog ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.0" (uid=0 pid=8660 comm="/usr/libexec/bluetooth/bluetoothd ")
Jun 10 00:17:42 notebook64 dbus[8597]: [system] Rejected send message, 1 matched rules; type="error", sender=":1.20" (uid=1000 pid=12425 comm="/usr/bin/pulseaudio --start --log-target=syslog ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.0" (uid=0 pid=8660 comm="/usr/libexec/bluetooth/bluetoothd ")
Jun 10 00:17:42 notebook64 dbus[8597]: [system] Rejected send message, 1 matched rules; type="error", sender=":1.20" (uid=1000 pid=12425 comm="/usr/bin/pulseaudio --start --log-target=syslog ") interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.UnknownMethod" requested_reply="0" destination=":1.0" (uid=0 pid=8660 comm="/usr/libexec/bluetooth/bluetoothd ")
Jun 10 00:17:42 notebook64 dbus[8597]: [system] Rejected send message, 1 matched rules; type="error", sender=":1.20" (uid=1000 pid=12425 comm="/usr/bin/pulseaudio --start --log-target=syslog ") interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.UnknownMethod" requested_reply="0" destination=":1.0" (uid=0 pid=8660 comm="/usr/libexec/bluetooth/bluetoothd ")
Jun 10 00:17:42 notebook64 bluetoothd[8660]: Stopping SDP server
Jun 10 00:17:42 notebook64 bluetoothd[8660]: Exit
Jun 10 00:17:42 notebook64 bluetoothd[27346]: Bluetooth daemon 5.49
Jun 10 00:17:42 notebook64 bluetoothd[27346]: Starting SDP server
Jun 10 00:17:42 notebook64 bluetoothd[27346]: Bluetooth management interface 1.14 initialized
Jun 10 00:17:42 notebook64 dbus[27290]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
Jun 10 00:17:42 notebook64 dbus[27290]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Jun 10 00:17:46 notebook64 dbus[27290]: [system] Activating service name='org.freedesktop.RealtimeKit1' (using servicehelper)
Jun 10 00:17:46 notebook64 dbus[27290]: [system] Successfully activated service 'org.freedesktop.RealtimeKit1'
Jun 10 00:17:46 notebook64 pulseaudio[30958]: [pulseaudio] main.c: Compiled with DEPRECATED libsamplerate support!
Jun 10 00:17:46 notebook64 bluetoothd[27346]: Endpoint registered: sender=:1.20 path=/MediaEndpoint/A2DPSource
Jun 10 00:17:46 notebook64 bluetoothd[27346]: Endpoint registered: sender=:1.20 path=/MediaEndpoint/A2DPSink
Jun 10 00:17:46 notebook64 pulseaudio[30958]: [pulseaudio] backend-ofono.c: Failed to register as a handsfree audio agent with ofono: org.freedesktop.DBus.Error.ServiceUnknown: The name org.ofono was not provided by any .service files


Any hints on how to fix those errors?
Could anybody share his/her dbus/pulseaudio/bluetooth related configs for inspiration?

BR,
Denis


Last edited by MageSlayer on Sun Jun 10, 2018 9:42 am; edited 1 time in total
Back to top
View user's profile Send private message
gorg86
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2011
Posts: 99

PostPosted: Sun Jun 10, 2018 7:11 am    Post subject: Reply with quote

Take a look at this: https://askubuntu.com/questions/632336/bluetooth-broadcom-43142-isnt-working/632348#632348
How did you check if pulseaudio really switched to the bt headset?
I use pavucontrol, it's a nice handy tool.
Back to top
View user's profile Send private message
MageSlayer
Apprentice
Apprentice


Joined: 26 Jul 2007
Posts: 249
Location: Ukraine

PostPosted: Sun Jun 10, 2018 8:18 am    Post subject: Reply with quote

Yes, I've made firmware changes just like the link you gave me suggests.
And yes, I use pavucontrol and clearly see that headset is switched onto.
However, still no sound. Smartphones pair and play sound almost frawlessly.
Back to top
View user's profile Send private message
MageSlayer
Apprentice
Apprentice


Joined: 26 Jul 2007
Posts: 249
Location: Ukraine

PostPosted: Sun Jun 10, 2018 9:42 am    Post subject: Reply with quote

Ok. The problem solved.

I've moved to kernel 4.16.14, rebuilt pulseaudio without ofono-headset and sound appeared.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum