Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#40184 - [bluez/pulseaudio/gnome-bluetooth] Bluetooth Headset (A2DP) doesn't work with pulseaudio5

Attached to Project: Arch Linux
Opened by Michael Trunner (trunneml) - Friday, 02 May 2014, 06:19 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 11 October 2014, 13:30 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Since pulseaudio5 my Bluetooth Headset is no longer shown as an audio output device (I'm using the gnome settings menu here). When I downgrade pulseaudio and libpulse to version 4. Every thing works again.

I had a similiar problem some time ago see:  FS#37236 

Additional info:
local/libpulse 5.0-1
local/pulseaudio 5.0-1

Steps to reproduce:
Just install pulseaudio 5 and the headset is no longer shown as an audio output device.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Saturday, 11 October 2014, 13:30 GMT
Reason for closing:  Upstream
Additional comments about closing:  not a packaging error.
Comment by Andreas Radke (AndyRTR) - Friday, 02 May 2014, 11:27 GMT Comment by Michael Trunner (trunneml) - Friday, 02 May 2014, 12:55 GMT
I tried that. I can connect my headphone but no pulseaudio device is shown.

journalctl shows:

Mai 02 14:51:32 lucullus bluetoothd[495]: /org/bluez/hci0/dev_00_1A_7D_50_F6_91/fd2: fd(30) ready
Mai 02 14:51:32 lucullus rtkit-daemon[673]: Supervising 6 threads of 2 processes of 2 users.
Mai 02 14:51:32 lucullus rtkit-daemon[673]: Successfully made thread 2231 of process 672 (/usr/bin/pulseaudio) owned by '120'
Mai 02 14:51:32 lucullus rtkit-daemon[673]: Supervising 7 threads of 2 processes of 2 users.
Mai 02 14:51:32 lucullus bluetoothd[495]: connect error: Connection refused (111)
Mai 02 14:51:32 lucullus bluetoothd[495]: Access denied: Rejecting service auth (0000110e-0000-1000-8000-00805f9b34fb) for /o
Mai 02 14:52:27 lucullus dbus[454]: [system] Rejected send message, 3 matched rules; type="method_return", sender=":1.20" (ui
Mai 02 14:52:34 lucullus bluetoothd[495]: /org/bluez/hci0/dev_00_1A_7D_50_F6_91/fd3: fd(30) ready
Mai 02 14:52:34 lucullus rtkit-daemon[673]: Supervising 6 threads of 2 processes of 2 users.
Mai 02 14:52:34 lucullus rtkit-daemon[673]: Successfully made thread 2243 of process 672 (/usr/bin/pulseaudio) owned by '120'
Mai 02 14:52:34 lucullus rtkit-daemon[673]: Supervising 7 threads of 2 processes of 2 users.
Mai 02 14:52:34 lucullus bluetoothd[495]: Control: Refusing unexpected connect
Mai 02 14:52:34 lucullus bluetoothd[495]: connect error: Connection refused (111)

Any ideas?
Comment by Michael Trunner (trunneml) - Friday, 02 May 2014, 13:21 GMT
pulseaudio -vvvv gives the following:


D: [pulseaudio] bluez5-util.c: Properties changed in adapter /org/bluez/hci0
D: [pulseaudio] bluez5-util.c: Properties changed in adapter /org/bluez/hci0
D: [pulseaudio] bluez5-util.c: Properties changed in adapter /org/bluez/hci0
D: [pulseaudio] bluez5-util.c: Properties changed in device /org/bluez/hci0/dev_00_1A_7D_50_F6_91
D: [pulseaudio] bluez5-util.c: Properties changed in device /org/bluez/hci0/dev_00_1A_7D_50_F6_91
D: [pulseaudio] bluez5-util.c: Unknown interface org.freedesktop.DBus.Introspectable found, skipping
D: [pulseaudio] bluez5-util.c: Unknown interface org.bluez.MediaTransport1 found, skipping
D: [pulseaudio] bluez5-util.c: Unknown interface org.freedesktop.DBus.Properties found, skipping
D: [pulseaudio] bluez5-util.c: Properties changed in transport /org/bluez/hci0/dev_00_1A_7D_50_F6_91/fd3
D: [pulseaudio] bluez5-util.c: Properties changed in transport /org/bluez/hci0/dev_00_1A_7D_50_F6_91/fd3
D: [pulseaudio] bluez5-util.c: Properties changed in adapter /org/bluez/hci0
D: [pulseaudio] bluez5-util.c: Properties changed in adapter /org/bluez/hci0
D: [pulseaudio] bluez5-util.c: Properties changed in adapter /org/bluez/hci0
Comment by Michael Trunner (trunneml) - Tuesday, 13 May 2014, 16:20 GMT
Hi, I found the real problem.

Pulseaudio 5 starts with gdm. So when I login two pulseaudio daemons are running. It seems that bluez5 connects to the wrong pulseaudio (the one from gdm) and not the pulseaudio daemon of my user. When I kill the pulseaudio server that is owned by the gem user and reconnect the headset, all works.
With pulseaudio 4 there was no such problem. Should gdm really start a pulseaudio daemon?
Comment by Anton Anikin (colorprint) - Sunday, 15 June 2014, 12:47 GMT
I have the same problem (tested with bluez (5.19) and bluez-git from AUR.
But even I kill the initial pulseaudio process and see with pulseaudio -vvvvv that headset connected and sink created - there is no actuak sink created and available (with pacm list-sinks I see only one sink - internal soundcard - and no sink for the headset.

Bluetooth log:
июн 15 16:39:46 AcerW700 bluetoothd[21282]: Endpoint registered: sender=:1.3501 path=/MediaEndpoint/A2DPSource
июн 15 16:39:46 AcerW700 bluetoothd[21282]: Endpoint registered: sender=:1.3501 path=/MediaEndpoint/A2DPSink
июн 15 16:39:51 AcerW700 bluetoothd[21282]: Endpoint registered: sender=:1.3506 path=/MediaEndpoint/A2DPSource
июн 15 16:39:51 AcerW700 bluetoothd[21282]: Endpoint registered: sender=:1.3506 path=/MediaEndpoint/A2DPSink
июн 15 16:39:51 AcerW700 bluetoothd[21282]: Endpoint unregistered: sender=:1.3506 path=/MediaEndpoint/A2DPSource
июн 15 16:39:51 AcerW700 bluetoothd[21282]: Endpoint unregistered: sender=:1.3506 path=/MediaEndpoint/A2DPSink
июн 15 16:40:38 AcerW700 bluetoothd[21282]: /org/bluez/hci0/dev_A0_F4_50_75_FC_3B/fd6: fd(26) ready

Pulseaudio log:

D: [pulseaudio] bluez5-util.c: Properties changed in device /org/bluez/hci0/dev_A0_F4_50_75_FC_3B
D: [pulseaudio] bluez5-util.c: dbus: path=/MediaEndpoint/A2DPSource, interface=org.bluez.MediaEndpoint1, member=SelectConfiguration
D: [pulseaudio] bluez5-util.c: Unknown interface org.freedesktop.DBus.Introspectable found, skipping
D: [pulseaudio] bluez5-util.c: Unknown interface org.bluez.MediaTransport1 found, skipping
D: [pulseaudio] bluez5-util.c: Unknown interface org.freedesktop.DBus.Properties found, skipping
D: [pulseaudio] bluez5-util.c: dbus: path=/MediaEndpoint/A2DPSource, interface=org.bluez.MediaEndpoint1, member=SetConfiguration
D: [pulseaudio] bluez5-util.c: Transport /org/bluez/hci0/dev_A0_F4_50_75_FC_3B/fd6 state changed from disconnected to idle
D: [pulseaudio] module-bluez5-discover.c: Loading module-bluez5-device path=/org/bluez/hci0/dev_A0_F4_50_75_FC_3B
I: [pulseaudio] module-card-restore.c: Restoring port latency offsets for card bluez_card.A0_F4_50_75_FC_3B.
I: [pulseaudio] card.c: Created 1 "bluez_card.A0_F4_50_75_FC_3B"
D: [pulseaudio] module-bluez5-device.c: Acquiring transport /org/bluez/hci0/dev_A0_F4_50_75_FC_3B/fd6
I: [pulseaudio] module-bluez5-device.c: Transport /org/bluez/hci0/dev_A0_F4_50_75_FC_3B/fd6 acquired: fd 19
I: [pulseaudio] module-bluez5-device.c: SBC parameters: allocation=0, subbands=1, blocks=3, bitpool=53
I: [pulseaudio] sink.c: Created sink 1 "bluez_sink.A0_F4_50_75_FC_3B" with sample spec s16le 2-канальный 4410 and channel map front-left,front-right
I: [pulseaudio] sink.c: bluetooth.protocol = "a2dp_sink"
I: [pulseaudio] sink.c: device.description = "HTC BH S600"
I: [pulseaudio] sink.c: device.string = "A0:F4:50:75:FC:3B"
I: [pulseaudio] sink.c: device.api = "bluez"
I: [pulseaudio] sink.c: device.class = "sound"
I: [pulseaudio] sink.c: device.bus = "bluetooth"
I: [pulseaudio] sink.c: device.form_factor = "headset"
I: [pulseaudio] sink.c: bluez.path = "/org/bluez/hci0/dev_A0_F4_50_75_FC_3B"
I: [pulseaudio] sink.c: bluez.class = "0x240404"
I: [pulseaudio] sink.c: bluez.alias = "HTC BH S600"
I: [pulseaudio] sink.c: device.icon_name = "audio-headset-bluetooth"
I: [pulseaudio] sink.c: device.intended_roles = "phone"
I: [pulseaudio] source.c: Created source 2 "bluez_sink.A0_F4_50_75_FC_3B.monitor" with sample spec s16le 2-канальный 4410 and channel map front-left,front-right
I: [pulseaudio] source.c: device.description = "Monitor of HTC BH S600"
I: [pulseaudio] source.c: device.class = "monitor"
I: [pulseaudio] source.c: device.string = "A0:F4:50:75:FC:3B"
I: [pulseaudio] source.c: device.api = "bluez"
I: [pulseaudio] source.c: device.bus = "bluetooth"
I: [pulseaudio] source.c: device.form_factor = "headset"
I: [pulseaudio] source.c: bluez.path = "/org/bluez/hci0/dev_A0_F4_50_75_FC_3B"
I: [pulseaudio] source.c: bluez.class = "0x240404"
I: [pulseaudio] source.c: bluez.alias = "HTC BH S600"
I: [pulseaudio] source.c: device.icon_name = "audio-headset-bluetooth"
I: [pulseaudio] source.c: device.intended_roles = "phone"
D: [bluetooth] module-bluez5-device.c: IO Thread starting up
D: [bluetooth] core-util.c: SCHED_RR|SCHED_RESET_ON_FORK worked.
I: [bluetooth] core-util.c: Successfully enabled SCHED_RR scheduling for thread, with priority 5.
I: [bluetooth] module-bluez5-device.c: Transport /org/bluez/hci0/dev_A0_F4_50_75_FC_3B/fd6 resuming
D: [bluetooth] module-bluez5-device.c: Stream properly set up, we're ready to roll!
D: [bluetooth] module-bluez5-device.c: Using SBC encoder implementation: MMX
D: [pulseaudio] module-device-restore.c: Could not set format on sink bluez_sink.A0_F4_50_75_FC_3B
D: [pulseaudio] module-bluetooth-policy.c: Profile a2dp_sink cannot be selected for loopback
D: [pulseaudio] module-suspend-on-idle.c: Sink bluez_sink.A0_F4_50_75_FC_3B becomes idle, timeout in 5 seconds.
I: [pulseaudio] module.c: Loaded "module-bluez5-device" (index: #25; argument: "path=/org/bluez/hci0/dev_A0_F4_50_75_FC_3B").
D: [pulseaudio] bluez5-util.c: Transport /org/bluez/hci0/dev_A0_F4_50_75_FC_3B/fd6 available for profile a2dp_sink
D: [pulseaudio] bluez5-util.c: Properties changed in transport /org/bluez/hci0/dev_A0_F4_50_75_FC_3B/fd6
D: [pulseaudio] bluez5-util.c: Transport /org/bluez/hci0/dev_A0_F4_50_75_FC_3B/fd6 state changed from idle to playing
D: [pulseaudio] card.c: Setting card bluez_card.A0_F4_50_75_FC_3B profile a2dp_sink to availability status yes
D: [pulseaudio] device-port.c: Setting port headset-output to status yes
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
D: [pulseaudio] module-bluez5-device.c: Resuming sink bluez_sink.A0_F4_50_75_FC_3B because its transport state changed to playing
W: [bluetooth] module-bluez5-device.c: Skipping 26712 us (= 4708 bytes) in audio stream
D: [bluetooth] module-bluez5-device.c: Bitpool has changed to 48
W: [bluetooth] module-bluez5-device.c: Skipping 362521 us (= 63948 bytes) in audio stream
D: [bluetooth] module-bluez5-device.c: Bitpool has changed to 43
I: [pulseaudio] module-suspend-on-idle.c: Sink bluez_sink.A0_F4_50_75_FC_3B idle for too long, suspending ...
D: [pulseaudio] sink.c: Suspend cause of sink bluez_sink.A0_F4_50_75_FC_3B is 0x0004, suspending
D: [bluetooth] module-bluez5-device.c: Releasing transport /org/bluez/hci0/dev_A0_F4_50_75_FC_3B/fd6
I: [bluetooth] bluez5-util.c: Transport /org/bluez/hci0/dev_A0_F4_50_75_FC_3B/fd6 released
D: [bluetooth] module-bluez5-device.c: Audio stream torn down
D: [pulseaudio] core.c: Hmm, no streams around, trying to vacuum.
D: [pulseaudio] bluez5-util.c: Properties changed in transport /org/bluez/hci0/dev_A0_F4_50_75_FC_3B/fd6
D: [pulseaudio] bluez5-util.c: Transport /org/bluez/hci0/dev_A0_F4_50_75_FC_3B/fd6 state changed from playing to idle
D: [pulseaudio] card.c: Setting card bluez_card.A0_F4_50_75_FC_3B profile a2dp_sink to availability status unknown
D: [pulseaudio] device-port.c: Setting port headset-output to status unknown
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.


But:
$ pacmd list-sinks
1 sink(s) available.
Comment by Andreas Radke (AndyRTR) - Monday, 21 July 2014, 18:41 GMT
Headset setup basically works for me with a Philips SHB9100 and A2DP under pulseaudio-alsa with some trouble on device auto-connect.

If something is completely broken for you this should be either a user setup issue or an upstream bug - in that case file an
upstream issue.

At least this is not a packaging issue - going to close this one soon.

Loading...