https://bugzilla.novell.com/show_bug.cgi?id=410683
User carlos.bessa@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=410683#c30
--- Comment #30 from Carlos Bessa 2009-03-12 05:30:34 MST ---
One more try at this and it's working now, sort of.
I've been updating bluez and alsa packages from the audio repo whenever new
ones
come out so i tried once some to see if it might be working now.
Bluez version is 4.32-43.1
Alsa version is alsa-1.0.19.git20090304-2.1
My laptop bluetooth adaptor still doesn't work... but i'll get to that in the
end.
I gave a friends cheap usb adapter, Anycom USB-500, another shot. This one
actually said it is suported under linux on the box. I had already tried this
one before too with no success.
I also found a "new" bluetooth entry on opensuse wiki, and altered the
asoundrc
file according to it:
http://en.opensuse.org/Bluetooth/Headphones-HOWTO
Aplay was giving me problems:
carlos@KTPORT-Linux:~> aplay -D btheadset /usr/share/sounds/k3b_success1.wav
Playing WAVE '/usr/share/sounds/k3b_success1.wav' : Unsigned 8 bit, Rate 8000
Hz, Mono
aplay: set_params:961: Sample format non available
So i tried mplayer:
mplayer -ao alsa:device=btheadset ***.mp3
.......AO: [alsa] 8000Hz 1ch s16le (2 bytes per sample)
Video:novideo
Startingplayback...
A: 18.6 (18.5) of 254.0 (04:14.0) 2.3%
And it's working! I can hear sound perfectly. Skype still doesn't work but it's
another matter, that's skypes problem.
This is the info i got from the adaptor:
carlos@KTPORT-Linux:~> dmesg | grep Bluetooth
Bluetooth: Core ver 2.13
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: Generic Bluetooth USB driver ver 0.3
Bluetooth: L2CAP ver 2.11
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO (Voice Link) ver 0.6
Bluetooth: SCO socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM ver 1.10
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
carlos@KTPORT-Linux:~> /usr/bin/lsusb -v |grep Blue
bDeviceProtocol 1 Bluetooth
bInterfaceProtocol 1 Bluetooth
bInterfaceProtocol 1 Bluetooth
bInterfaceProtocol 1 Bluetooth
bInterfaceProtocol 1 Bluetooth
bInterfaceProtocol 1 Bluetooth
bInterfaceProtocol 1 Bluetooth
bInterfaceProtocol 1 Bluetooth
carlos@KTPORT-Linux:~> sudo /usr/sbin/hciconfig -a
hci0: Type: USB
BD Address: 00:0A:3A:87:A4:02 ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING PSCAN ISCAN
RX bytes:1199 acl:0 sco:0 events:60 errors:0
TX bytes:2902 acl:0 sco:0 commands:60 errors:0
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x79 0x83
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'KTPORT-Linux-0'
Class: 0x4a210c
Service Classes: Networking, Capturing, Telephony
Device Class: Computer, Laptop
HCI Ver: 2.1 (0x4) HCI Rev: 0x5183 LMP Ver: 2.1 (0x4) LMP Subver:
0x420e
Manufacturer: Broadcom Corporation (15)
carlos@KTPORT-Linux:~> cat $HOME/.asoundrc
pcm.!default {
type pulse
}
ctl.!default {
type pulse
}
pcm.btheadset {
type bluetooth
device 00:1A:0E:77:DF:C5
}
One thing that i immediately saw that's different from the laptop adapter is
the
connection. This one connects to the headset and keeps the connection (can see
it with "hcitool con"), while the laptop adapter connects but usually drops
after a few
seconds.
This is the "hcitool con" output for the ANYKEY adapter after i turn on the
headset:
Connections:
> ACL 00:1A:0E:77:DF:C5 handle 11 state 1 lm SLAVE AUTH ENCRYPT
After i start mplayer:
Connections:
< eSCO 00:1A:0E:77:DF:C5 handle 6 state 1 lm SLAVE
> ACL 00:1A:0E:77:DF:C5 handle 11 state 1 lm SLAVE AUTH ENCRYPT
This is the "hcitool con" output for the laptop adatper after i turn on the
headset:
Connections:
> ACL 00:1A:0E:77:DF:C5 handle 7 state 1 lm MASTER AUTH ENCRYPT
When the connection was being requested by mplayer i got this:
Connections:
< ACL 00:1A:0E:77:DF:C5 handle 2 state 1 lm MASTER
and 2 seconds later:
Connections:
< ACL 00:1A:0E:77:DF:C5 handle 2 state 1 lm SLAVE
This is the same hw info for the laptop adapter again:
carlos@KTPORT-Linux:~> dmesg | grep Bluetooth
Bluetooth: Core ver 2.13
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: Generic Bluetooth USB driver ver 0.3
Bluetooth: L2CAP ver 2.11
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO (Voice Link) ver 0.6
Bluetooth: SCO socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM ver 1.10
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
carlos@KTPORT-Linux:~> /usr/bin/lsusb -v |grep Blue
Bus 003 Device 011: ID 0db0:6855 Micro Star International Bluetooth Device
bDeviceProtocol 1 Bluetooth
idProduct 0x6855 Bluetooth Device
bInterfaceProtocol 1 Bluetooth
bInterfaceProtocol 1 Bluetooth
bInterfaceProtocol 1 Bluetooth
bInterfaceProtocol 1 Bluetooth
bInterfaceProtocol 1 Bluetooth
bInterfaceProtocol 1 Bluetooth
bInterfaceProtocol 1 Bluetooth
carlos@KTPORT-Linux:~> /usr/sbin/hciconfig -a
hci0: Type: USB
BD Address: 00:11:09:E6:5A:06 ACL MTU: 120:20 SCO MTU: 0:0
UP RUNNING PSCAN
RX bytes:1108 acl:0 sco:0 events:45 errors:0
TX bytes:432 acl:0 sco:0 commands:45 errors:0
Features: 0xff 0xff 0x05 0x38 0x18 0x18 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy:
Link mode: SLAVE ACCEPT
Name: 'KTPORT-Linux-0'
Class: 0x4a010c
Service Classes: Networking, Capturing, Telephony
Device Class: Computer, Laptop
HCI Ver: 1.2 (0x2) HCI Rev: 0x0 LMP Ver: 1.2 (0x2) LMP Subver: 0x757
Manufacturer: Silicon Wave (11)
This is the current output from mplayer for the laptop adapter:
carlos@KTPORT-Linux:~> mplayer -ao alsa:device=btheadset ***.mp3
MPlayer dev-SVN-r27637-4.3-openSUSE Linux 11.1 (x86_64)-Packman (C) 2000-2008
MPlayer Team
***
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 320.0 kbit/22.68% (ratio: 40000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO_ALSA] alsa-lib: pcm_bluetooth.c:1569:(audioservice_expect) BT_START_STREAM
failed : Success(0)
[AO_ALSA] alsa-lib: pcm_bluetooth.c:1528:(audioservice_recv) Too short (1
bytes)
IPC packet from bluetoothd
[AO_ALSA] Unable to set hw-parameters: Invalid argument
Failed to initialize audio driver 'alsa:device=btheadset'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video
Exiting... (End of file)
Only the hciconfig output if different, but that's hardware specific anyway. So
maybe the laptop adapter is just "old" (the laptop is from 2005) and not very
well supported by the bluez driver? Or could the problem just be in the
connection?
regards,
Carlos
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.