Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401065 - net-wireless/bluez-4.98-r1 default config disables headsets
Summary: net-wireless/bluez-4.98-r1 default config disables headsets
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Pacho Ramos
Depends on:
Reported: 2012-01-27 19:29 UTC by vltg0903
Modified: 2012-03-08 09:50 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

Add Enable=Socket to [General] section of audio.conf (bluez-98-audio-conf.patch,328 bytes, text/plain)
2012-01-27 19:30 UTC, vltg0903
1.patch (diff.patch,1.56 KB, patch)
2012-01-28 12:06 UTC, Pacho Ramos
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description vltg0903 2012-01-27 19:29:48 UTC
The configuration file "/etc/bluetooth/audio.conf" installed by default for bluez-4.98-r1 breaks headset functionality (headset configured via ~/.asoundrc or phonon), bluetoothd somehow fails to register a newly switched on device (correctly paired and trusted by) with ALSA. I made a patch following the advice from the above URL that solves the problem.

Reproducible: Always
Comment 1 vltg0903 2012-01-27 19:30:38 UTC
Created attachment 300057 [details]
Add Enable=Socket to [General] section of audio.conf
Comment 2 Pacho Ramos gentoo-dev 2012-01-28 12:04:44 UTC
Not sure how to handle this yet as upstream thinks socket shouldn't be used
Comment 3 Pacho Ramos gentoo-dev 2012-01-28 12:06:54 UTC
Created attachment 300121 [details, diff]

This patch should fix the problem WITHOUT changing default configuration
Comment 4 vltg0903 2012-01-28 12:23:20 UTC
1.patch doesn't seem to work for me. Any info I can provide to debug the problem?
Comment 5 Pacho Ramos gentoo-dev 2012-01-28 12:33:32 UTC
I would join to linux-bluetooth mailing list:

And reply to that thread explaining the patch doesn't work for you
Comment 6 vltg0903 2012-01-28 18:48:00 UTC
Thanks for the link, will do.
Comment 7 Ivan ivanov 2012-01-31 18:11:48 UTC
Hi, patch is working for me. 

I am not sure why simple bluetoothd stop/start is not working, 
I have to restart machine to have my HiFi audio over bluetooth
working again.

Comment 8 sphakka 2012-02-04 17:39:33 UTC
Hi there,

Just to understand if I'm experiencing the same issue, my BT headset used to work fine, with the following definition in asound.rc:

  pcm.bthw_WBT210 {
     type bluetooth
     device 00:12:A1:XX:XX:XX
     profile "auto"
  ctl.bthifi {
      type bluetooth
      device 00:12:A1:XX:XX:XX
      profile "auto"
  pcm.bthifi {
      type plug
      slave {
          pcm bthw_WBT210
      hint {
          show on
          description "bthifi"

but now, after correct pairing, I get the this error:

  $ aplay -D bthifi /usr/share/sounds/ekiga/voicemail.wav
  bt_audio_service_open: connect() failed: Connection refused (111)
  aplay: main:660: audio open error: Connection refused

Is that symptom of the bug discussed here?


Comment 9 vltg0903 2012-02-04 22:09:09 UTC
Probably. In audio.conf under [General], add the line
and test if everything works as before. Note that this is only a work-around, as socket-support might go away in the future.
Comment 10 Pacho Ramos gentoo-dev 2012-02-14 08:44:11 UTC
+*bluez-4.98-r2 (14 Feb 2012)
+  14 Feb 2012; Pacho Ramos <> +bluez-4.98-r2.ebuild,
+  +files/bluez-4.98-fix-header.patch, +files/bluez-4.98-fix-socket.patch,
+  -bluez-4.98.ebuild:
+  Fix compilation problems against bluez, bug #403341 (by Steev Klimaszewski and
+  Marcel Unbehaun); fix needing to enable socket, bug #401065 (by Andreas
+  Eckstein and Ivan ivanov). Drop old.

Please recheck with this one and, to be sure the new bluetoothd is loaded, reboot after updating bluez
Comment 11 vltg0903 2012-02-14 12:40:10 UTC
Sorry, Pacho, it does not work for me. I rebooted after update, I can pair the my headset with the PC and get the audio signal (two beeps), but applications cannot pick up the bluetooth audio device. My ~/.asoundrc is essentially the same as the one above, and unless something has to be changed there as well, the bluez patch does not work as intended.
Comment 12 vltg0903 2012-02-14 16:36:42 UTC
I should probably add that bluez was compiled with the USE flags
dencies... done!
USE="alsa (consolekit) readline test-programs usb -caps -cups -debug -gstreamer -pcmcia
and that I am not using gstreamer or pulseaudio.
Comment 13 Pacho Ramos gentoo-dev 2012-02-15 11:21:16 UTC
(In reply to comment #5)
> I would join to linux-bluetooth mailing list:
> And reply to that thread explaining the patch doesn't work for you

Can you reply to bluez mailing list telling them attached patch doesn't work for you? Otherwise I think will be difficult to get upstream attention and, then, to fix this 

Comment 14 Pacho Ramos gentoo-dev 2012-03-08 09:50:11 UTC
+*bluez-4.99 (08 Mar 2012)
+  08 Mar 2012; Pacho Ramos <> +bluez-4.99.ebuild,
+  -bluez-4.98-r1.ebuild:
+  Version bump, remove old.

It includes upstream fixes for problems like this, please re-test with that version