lucid can't use bluetooth headset

Bug #198494 reported by zdzichu
100
This bug affects 23 people
Affects Status Importance Assigned to Milestone
bluez-utils (Ubuntu)
Invalid
Medium
Unassigned
Nominated for Intrepid by Christian
Nominated for Jaunty by Christian

Bug Description

I can't get my BT headset to work with Ubuntu. It works OK on the very same laptop when MS Windows is booted. Headset is Nokia HS-26 and BT is builtin USB device 0a5c:2110 Broadcom Corp.

I have in ~/.asoundrc:
#v+
pcm.bluetooth {
   type bluetooth
   device 00:13:70:59:F0:3D
}
#v-

when I run "mplayer -ao alsa:device=bluetooth some.mp3" I get:

#v+
[AO_ALSA] alsa-lib: pcm_bluetooth.c:460:(bluetooth_hsp_hw_params) BT_SETCONFIGURATION failed : Input/output error(5)
[AO_ALSA] Unable to set hw-parameters: Input/output error
Could not open/initialize audio device -> no sound.
Audio: no sound
#v-

and in daemon.log:
#v+
Mar 4 21:00:23 sandworm audio[6521]: Accepted new client connection on unix socket (fd=9)
Mar 4 21:00:23 sandworm audio[6521]: Audio API: received BT_GETCAPABILITIES_REQ
Mar 4 21:00:23 sandworm audio[6521]: Audio API: sending BT_GETCAPABILITIES_RSP
Mar 4 21:00:23 sandworm audio[6521]: Audio API: received BT_SETCONFIGURATION_REQ
Mar 4 21:00:23 sandworm audio[6521]: config sco - device = 00:13:70:59:F0:3D access_mode = 2
Mar 4 21:00:23 sandworm audio[6521]: State changed /org/bluez/audio/device1: HEADSET_STATE_DISCONNECTED -> HEADSET_STATE_CONNECT_IN_PROGRESS
Mar 4 21:00:23 sandworm NetworkManager: <debug> [1204660823.019636] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/bluetooth_acl_137059f03d').
Mar 4 21:00:23 sandworm audio[6521]: /org/bluez/audio/device1: Connecting to 00:13:70:59:F0:3D channel 2
Mar 4 21:00:23 sandworm hcid[6499]: link_key_request (sba=00:16:CE:E8:44:EB, dba=00:13:70:59:F0:3D)
Mar 4 21:00:23 sandworm audio[6521]: connect(): Connection refused (111)
Mar 4 21:00:23 sandworm audio[6521]: config failed
Mar 4 21:00:23 sandworm audio[6521]: Audio API: sending BT_SETCONFIGURATION_RSP
Mar 4 21:00:23 sandworm audio[6521]: State changed /org/bluez/audio/device1: HEADSET_STATE_CONNECT_IN_PROGRESS -> HEADSET_STATE_DISCONNECTED
Mar 4 21:00:23 sandworm audio[6521]: Unix client disconnected (fd=9)
Mar 4 21:00:24 sandworm NetworkManager: <debug> [1204660824.273623] nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/bluetooth_acl_137059f03d').
#v-

there is no sound. There is no question for passkey. There is no GNOME Popup any kind. There is only misterious line "Mar 4 21:00:23 sandworm audio[6521]: connect(): Connection refused (111) " in logs. Problem persist over reboots and "invoke-rc.d bluetooth restart".

Revision history for this message
Francisco Borges (francisco-borges) wrote :

I am getting the same under Hardy.

The headset used to work with Gutsy, and after the update to Hardy it doesn't work anymore.

I have Samsung WEP300.

Making the story short: Unlike the previous reporter, I get a request for the pin, if I remove the pairing. But the headset simply doesn't work anymore.

[...]

Used to work with Skype on Gutsy by doing:
~ # modprobe snd-bt-sco
~ # /etc/init.d/bluetooth restart
~ # /etc/init.d/alsa-utils restart
~ # hcitool cc 00:1D:25:B7:C2:C8
~ # btsco -v -s 00:1D:25:B7:C2:C8

And with ASoundrc I would get only audio (but audio would work):
~ % cat .asoundrc
pcm.bluetooth {
  type bluetooth
     device 00:1D:25:B7:C2:C8
     profile "headset"
}

Now in Hardy, if I use the first method (btsco) Skype will hang!

And with .asoundrc (as above) I get:
---------------------------
Mar 6 22:43:40 duo audio[6086]: Accepted new client connection on unix socket (fd=9)
Mar 6 22:43:40 duo audio[6086]: Audio API: received BT_GETCAPABILITIES_REQ
Mar 6 22:43:40 duo audio[6086]: Audio API: sending BT_GETCAPABILITIES_RSP
Mar 6 22:43:40 duo audio[6086]: Audio API: received BT_SETCONFIGURATION_REQ
Mar 6 22:43:40 duo audio[6086]: config sco - device = 00:1D:25:B7:C2:C8 access_mode = 2
Mar 6 22:43:40 duo audio[6086]: State changed /org/bluez/audio/device1: HEADSET_STATE_DISCONNECTED -> HEADSET_STATE_CONNECT_IN_PROGRESS
--------------------------

testing with mplayer
 ~ % mplayer -ao alsa:device=bluetooth /usr/share/skype/sounds/ContactAuthRequest.wav
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: Genuine Intel(R) CPU T2300 @ 1.66GHz (Family: 6, Model: 14, Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

When I hit Cntrl-C on the mplayer command. I hear a beep and get this in the daemon.log:

Mar 6 22:43:40 duo audio[6086]: /org/bluez/audio/device1: Connecting to 00:1D:25:B7:C2:C8 channel 2
Mar 6 22:43:58 duo audio[6086]: Unix client disconnected (fd=9)
Mar 6 22:43:58 duo audio[6086]: State changed /org/bluez/audio/device1: HEADSET_STATE_CONNECT_IN_PROGRESS -> HEADSET_STATE_DISCONNECTED

Revision history for this message
Francisco Borges (francisco-borges) wrote :

Actually I realized that I had changed some lines on /etc/bluetooth/hcid.conf, if I use Ubuntu's default file.

I get the exact same errors on daemon log as the zdzichu (the bug submitter).

FWIW, I can always manually connect, and disconnect using hcitool:

# hcitool info 00:1D:25:B7:C2:C8
Requesting information ...
        BD Address: 00:1D:25:B7:C2:C8
        Device Name: Samsung WEP300
        LMP Version: 2.0 (0x3) LMP Subversion: 0xd57
        Manufacturer: Cambridge Silicon Radio (10)
        Features: 0xff 0xfe 0x0b 0x00 0x08 0x08 0x00 0x00
                <3-slot packets> <5-slot packets> <encryption> <slot offset>
                <timing accuracy> <role switch> <hold mode> <sniff mode>
                <RSSI> <channel quality> <SCO link> <HV2 packets>
                <HV3 packets> <u-law log> <A-law log> <CVSD> <paging scheme>
                <transparent SCO> <AFH cap. slave> <AFH cap. master>

  # hcitool con
Connections:
        < eSCO 00:1D:25:B7:C2:C8 handle 0 state 8 lm SLAVE

Revision history for this message
karlbowden (karlbowden) wrote :

According to this email in the bluez-utils mailing list the is a know problem with 2.6.24 kernels and there is a patch to fix the broken eSCO support for bluetooth 1.2 headsets.

http://article.gmane.org/gmane.linux.bluez.user/13675

I have not tried this patch as i'm not sure of the process of building a new deb with this patch included.
I am running hardy amd64 if someone wants to build a kernel or module for me to try...

I have two usb bluetooth adaptors and two headsets. I know one adaptor supports v2.0+EDR, the other is builtin to the laptop. I get the same errors with both adaptors and headsets.

zdzichu (zdzichu-gmail)
Changed in bluez-utils:
assignee: nobody → kernel-team
Revision history for this message
Thiago Gallo (tagallo) wrote :

I have the same problem.
Any chance to include this patch in ubuntu kernel?

Changed in bluez-utils:
assignee: kernel-team → nobody
Revision history for this message
Brian Murray (brian-murray) wrote :

This bug seems similar to if not a duplicate of 211893.

Revision history for this message
Brian Murray (brian-murray) wrote :

This bug seems similar to if not a duplicate of bug 211893.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 or 9.04?

Changed in bluez-utils:
status: New → Incomplete
Revision history for this message
zdzichu (zdzichu-gmail) wrote :

I no longer use Ubuntu, so other people involved should check this bug.

Revision history for this message
Christian (c-pradelli) wrote :

Any chance to fix this soon?

Revision history for this message
xteejx (xteejx-deactivatedaccount) wrote :

There was no answer to Daniel's question, and we must follow the triaging process. Can you test this with the Beta 2 Live CD of Lucid Lynx and let us know if this is still a problem please? Thank you.

tags: added: regression-release
Revision history for this message
mathew (meta23) wrote :

Still broken with the release version of Lucid.

I've got a Bluetooth headset paired, using blueman to set it up.

I can do hcitool scan and locate the headset.

However, using the appropriate device ID given by hcitool (randomized for privacy here):

$ btsco -v -s -f 69:23:DE:CA:FB:AD
btsco v0.42
Error: control open (hw:2): No such file or directory
Error: Can't find device. Bail
$

Revision history for this message
xteejx (xteejx-deactivatedaccount) wrote :

Thank you for the update. Can the affected users running Lucid please run "apport-collect -p linux 198494" (without quotes), and on Launchpad allow it to change anything, so that it can upload the required debug information. Thank you again.

summary: - can't use bluetooth headset
+ lucid can't use bluetooth headset
Changed in bluez-utils (Ubuntu):
importance: Undecided → Medium
Revision history for this message
karlbowden (karlbowden) wrote :

I'm happy to say that my bluetooth headset is working great with Lucid. I only just purchased one again as I have not had one for the last couple of Ubuntu releases.

I have not tried the command line tools for connecting to the headset, but the gui bluetooth / pulseaudio tools included detect, connect and work with the headset. It only appears as a mono device, and works great with skype too. (While the battery lasts).

I'm using a BlueAnt Z9i v1.1 headset with a Dell 355 Bluetooth adapter.

Revision history for this message
Dan Gordon (dbg-92) wrote : apport information

AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: dan 2636 F.... pulseaudio
 /dev/snd/pcmC0D0p: dan 2636 F...m pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'CA0106'/'Audigy SE [SB0570] at 0xd000 irq 18'
   Mixer name : 'CA0106'
   Components : ''
   Controls : 35
   Simple ctrls : 18
DistroRelease: Ubuntu 10.04
HibernationDevice: RESUME=UUID=2903f0c8-092b-4663-8ec8-c75ab889cf24
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.

 pan0 no wireless extensions.
MachineType: VIA Technologies, Inc. KM400-8235
NonfreeKernelModules: nvidia
Package: linux (not installed)
ProcCmdLine: root=UUID=417d220d-986a-438f-a8c4-113d833751e4 ro quiet splash
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-22.35-generic 2.6.32.11+drm33.2
Regression: No
RelatedPackageVersions: linux-firmware 1.34
Reproducible: Yes
RfKill:
 2: hci0: Bluetooth
  Soft blocked: no
  Hard blocked: no
Tags: lucid audio needs-upstream-testing
Uname: Linux 2.6.32-22-generic i686
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev sambashare scanner tape video
WpaSupplicantLog:

dmi.bios.date: 08/03/2004
dmi.bios.vendor: Phoenix Technologies, LTD
dmi.bios.version: ASUS A7V8X-MX ACPI BIOS Revision 1008
dmi.board.name: A7V8X-MX
dmi.board.vendor: ASUS
dmi.board.version: A7V8X-MX
dmi.chassis.type: 3
dmi.chassis.vendor: ASUS A7V8X-MX
dmi.modalias: dmi:bvnPhoenixTechnologies,LTD:bvrASUSA7V8X-MXACPIBIOSRevision1008:bd08/03/2004:svnVIATechnologies,Inc.:pnKM400-8235:pvr:rvnASUS:rnA7V8X-MX:rvrA7V8X-MX:cvnASUSA7V8X-MX:ct3:cvr:
dmi.product.name: KM400-8235
dmi.sys.vendor: VIA Technologies, Inc.

tags: added: apport-collected
Revision history for this message
Dan Gordon (dbg-92) wrote : AlsaDevices.txt

apport information

Revision history for this message
Dan Gordon (dbg-92) wrote : AplayDevices.txt

apport information

Revision history for this message
Dan Gordon (dbg-92) wrote : ArecordDevices.txt

apport information

Revision history for this message
Dan Gordon (dbg-92) wrote : BootDmesg.txt

apport information

Revision history for this message
Dan Gordon (dbg-92) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Dan Gordon (dbg-92) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Dan Gordon (dbg-92) wrote : Lspci.txt

apport information

Revision history for this message
Dan Gordon (dbg-92) wrote : Lsusb.txt

apport information

Revision history for this message
Dan Gordon (dbg-92) wrote : PciMultimedia.txt

apport information

Revision history for this message
Dan Gordon (dbg-92) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Dan Gordon (dbg-92) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Dan Gordon (dbg-92) wrote : ProcModules.txt

apport information

Revision history for this message
Dan Gordon (dbg-92) wrote : UdevDb.txt

apport information

Revision history for this message
Dan Gordon (dbg-92) wrote : UdevLog.txt

apport information

Revision history for this message
Dan Gordon (dbg-92) wrote : WifiSyslog.txt

apport information

Revision history for this message
Dan Gordon (dbg-92) wrote :

...as you can see, I ran apport-collect.

Steps to reproduce:
1. Pair and connect bluetooth headset (HSP profile)
2. Select bluetooth headset for pulseaudio input
3. Record sound; functions properly as microphone
4. Select bluetooth headset for pulseaudio output
5. Open rhythmbox or other media player; playback fails.

Revision history for this message
xteejx (xteejx-deactivatedaccount) wrote :

Thank you for the debugging information. Since this should have enough information now I am going to mark it as Triaged and let the developers handle it from here. Thank you again for reporting this to us and good luck! :)

Changed in bluez-utils (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Daniel T Chen (crimsun) wrote :

Please make sure you file *separate* bugs for hardware issues. These hardware are in no way identical to the original reporter's.

Changed in bluez-utils (Ubuntu):
status: Triaged → Confirmed
Revision history for this message
Michel Brabants (michel-brabants) wrote : apport information

AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: michel 1609 F.... pulseaudio
 /dev/snd/controlC1: michel 1609 F.... pulseaudio
CRDA: Error: [Errno 2] Bestand of map bestaat niet
Card0.Amixer.info:
 Card hw:0 'SB'/'HDA ATI SB at 0xfe8f4000 irq 16'
   Mixer name : 'Realtek ALC883'
   Components : 'HDA:10ec0883,1462f603,00100002'
   Controls : 40
   Simple ctrls : 22
Card1.Amixer.info:
 Card hw:1 'U0x46d0x8c9'/'USB Device 0x46d:0x8c9 at usb-0000:00:13.5-2, high speed'
   Mixer name : 'USB Mixer'
   Components : 'USB046d:08c9'
   Controls : 2
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'Mic',0
   Capabilities: cvolume cvolume-joined cswitch cswitch-joined penum
   Capture channels: Mono
   Limits: Capture 0 - 3072
   Mono: Capture 3072 [100%] [30.00dB] [on]
DistroRelease: Ubuntu 10.04
HibernationDevice: RESUME=UUID=18063664-b3d1-45f4-bd0d-bbe929c69005
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
MachineType: MSI MS-7280
Package: linux (not installed)
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-22-generic root=UUID=268a8a14-ff41-486d-b907-7f4d29b4d5c6 ro quiet splash
ProcEnviron:
 LANG=nl_BE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
Regression: No
RelatedPackageVersions: linux-firmware 1.34
Reproducible: Yes
RfKill:
 0: hci0: Bluetooth
  Soft blocked: no
  Hard blocked: no
Tags: lucid audio needs-upstream-testing
Uname: Linux 2.6.32-22-generic x86_64
UserGroups: adm admin audio backup cdrom dialout fax fuse lpadmin netdev plugdev sambashare users video
dmi.bios.date: 11/02/2007
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: V1.8
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: MS-7280
dmi.board.vendor: MSI
dmi.board.version: 1.0
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrV1.8:bd11/02/2007:svnMSI:pnMS-7280:pvr1.0:rvnMSI:rnMS-7280:rvr1.0:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: MS-7280
dmi.product.version: 1.0
dmi.sys.vendor: MSI

Revision history for this message
Michel Brabants (michel-brabants) wrote : AlsaDevices.txt

apport information

Revision history for this message
Michel Brabants (michel-brabants) wrote : AplayDevices.txt

apport information

Revision history for this message
Michel Brabants (michel-brabants) wrote : ArecordDevices.txt

apport information

Revision history for this message
Michel Brabants (michel-brabants) wrote : BootDmesg.txt

apport information

Revision history for this message
Michel Brabants (michel-brabants) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Michel Brabants (michel-brabants) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Michel Brabants (michel-brabants) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Michel Brabants (michel-brabants) wrote : IwConfig.txt

apport information

Revision history for this message
Michel Brabants (michel-brabants) wrote : Lspci.txt

apport information

Revision history for this message
Michel Brabants (michel-brabants) wrote : Lsusb.txt

apport information

Revision history for this message
Michel Brabants (michel-brabants) wrote : PciMultimedia.txt

apport information

Revision history for this message
Michel Brabants (michel-brabants) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Michel Brabants (michel-brabants) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Michel Brabants (michel-brabants) wrote : ProcModules.txt

apport information

Revision history for this message
Michel Brabants (michel-brabants) wrote : UdevDb.txt

apport information

Revision history for this message
Michel Brabants (michel-brabants) wrote : UdevLog.txt

apport information

Revision history for this message
Michel Brabants (michel-brabants) wrote :

Hello,

I'm having the same issue on Karmic. There is no sound coming out of the headset, although I can see it in pulseaudio. I read on the forum that this might be an issue with applications sending a stereo-stream to the headset: http://ubuntuforums.org/showthread.php?t=1315465&page=2?

Thank you and kind regards,

Michel

Revision history for this message
Michel Brabants (michel-brabants) wrote : UserAsoundrc.txt

apport information

Revision history for this message
Michel Brabants (michel-brabants) wrote : WifiSyslog.txt

apport information

Revision history for this message
Michel Brabants (michel-brabants) wrote :

My mplayer-test: player -ao alsa:device=bluetooth 20\ -\ Warwick\ Avenue.flac
MPlayer SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing 20 - Warwick Avenue.flac.
Audio only file format detected.
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 887.3 kbit/62.88% (ratio: 110915->176400)
Selected audio codec: [ffflac] afm: ffmpeg (FFmpeg FLAC audio)
==========================================================================
[AO_ALSA] alsa-lib: audio/pcm_bluetooth.c:1607:(audioservice_expect) BT_OPEN failed : Invalid argument(22)
[AO_ALSA] Unable to set hw-parameters: Invalid argument
Failed to initialize audio driver 'alsa:device=bluetooth'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video

Revision history for this message
Miroslav (blcham) wrote : apport-collect data

Architecture: i386
Dependencies:

DistroRelease: Ubuntu 9.04
Package: linux None [modified: /var/lib/dpkg/info/linux.list]
PackageArchitecture: i386
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
 LANGUAGE=
Uname: Linux 2.6.28-19-generic i686
UserGroups: adm admin audio cdrom dialout lp lpadmin plugdev pulse pulse-access pulse-rt sambashare

Revision history for this message
Phillip Susi (psusi) wrote :

I get the same thing in Maverick.

Revision history for this message
dino99 (9d9) wrote :

This version has expired

Changed in bluez-utils (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.