public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors
@ 2008-01-25  4:56 SA
  2008-01-28  0:16 ` Eugene
  0 siblings, 1 reply; 12+ messages in thread
From: SA @ 2008-01-25  4:56 UTC (permalink / raw)
  To: bluez-users

Hello,

My boss has just purchased a "Jawbone" bluetooth headset (cell phone type) 
that he wants to hook up to his computer to use like skype.

I found instructions for old btsco first, and plugz. I saw that btsco was 
outdated but I tried plugz and sbc first.

Then I saw on http://wiki.bluez.org/wiki/HOWTO/AudioDevices the following:

"Note: you will not need bluetooth-alsa, plugz, btsco or the like for audio to 
work. They are obsolete. "

The steps there are listed as

1. Make sure the audio service is installed and enabled 
(file /etc/bluetooth/audio.service should exist)

2. modify your ~/.asoundrc to contain

pcm.bluetooth {
   type bluetooth
   device 00:11:22:33:44:55
}
3. configure your audio application to use the alsa device "bluetooth". See 
Supported Players 
http://wiki.bluez.org/wiki/HOWTO/AudioDevices#SupportedPlayers for some 
examples.
4. start playing :) 

Which is wonderfully simple, but it did not work for me. I also tried it on my 
own computer. Both computers have OpenSuSE 10.3. I used the KDE bluetooth 
manager to pair the devices. It shows up correctly in "hcitool scan"

The correct Bluetooth address is 00:0D:3C:6F:0E:89, so I tried this on both 
computers (for the remainder of this email I will focus on my own computer - 
once I get it working here I can make it work on my boss's laptop too)

Here's my /etc/bluetooth/audio.service:
[Bluetooth Service]
Identifier=audio
Name=Audio service
Description=Bluetooth Audio service


Here's my ~/.asoundrc:
pcm.bluetooth {
   type bluetooth
   device 00:0D:3C:6F:0E:89
}

I have the following bluez packages installed:

bluez-utils-3.18-12
bluez-libs-3.18-5


When I try to configure any of the players as recommended by the page 
http://wiki.bluez.org/wiki/HOWTO/AudioDevices#SupportedPlayers the best 
response I get is "Device Busy" from amarok and Kaffiene (xine engine) like 
this:

"Audio output unavailable; the device is busy.
xine parameters: "

MPlayer, when I try to run the suggested command 
"mplayer -ao alsa:device=bluetooth"
prints out the options/argument list as though I'm using an incorrect command.

I can't configure audacious at all, under Audio the "Current output plugin" 
has no option to select, and all the other preferences are grayed out too.

Can anyone tell me what I need to do to make this work?

Thanks,

	JW

-- 

----------------------
System Administrator - Cedar Creek Software http://www.cedarcreeksoftware.com
http://jwadmin.blogspot.com/
-- 

----------------------
System Administrator - Cedar Creek Software
http://www.cedarcreeksoftware.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors
  2008-01-25  4:56 [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors SA
@ 2008-01-28  0:16 ` Eugene
  2008-02-04 23:52   ` SA
  0 siblings, 1 reply; 12+ messages in thread
From: Eugene @ 2008-01-28  0:16 UTC (permalink / raw)
  To: BlueZ users

[-- Attachment #1: Type: text/plain, Size: 2677 bytes --]

SA ?????:
> Hello,
>
> My boss has just purchased a "Jawbone" bluetooth headset (cell phone type) 
> that he wants to hook up to his computer to use like skype.
>
> I found instructions for old btsco first, and plugz. I saw that btsco was 
> outdated but I tried plugz and sbc first.
>
> Then I saw on http://wiki.bluez.org/wiki/HOWTO/AudioDevices the following:
>
> "Note: you will not need bluetooth-alsa, plugz, btsco or the like for audio to 
> work. They are obsolete. "
>
> The steps there are listed as
>
> 1. Make sure the audio service is installed and enabled 
> (file /etc/bluetooth/audio.service should exist)
>
> 2. modify your ~/.asoundrc to contain
>
> pcm.bluetooth {
>    type bluetooth
>    device 00:11:22:33:44:55
> }
> 3. configure your audio application to use the alsa device "bluetooth". See 
> Supported Players 
> http://wiki.bluez.org/wiki/HOWTO/AudioDevices#SupportedPlayers for some 
> examples.
> 4. start playing :) 
>
> Which is wonderfully simple, but it did not work for me. I also tried it on my 
> own computer. Both computers have OpenSuSE 10.3. I used the KDE bluetooth 
> manager to pair the devices. It shows up correctly in "hcitool scan"
>
> The correct Bluetooth address is 00:0D:3C:6F:0E:89, so I tried this on both 
> computers (for the remainder of this email I will focus on my own computer - 
> once I get it working here I can make it work on my boss's laptop too)
>
> Here's my /etc/bluetooth/audio.service:
> [Bluetooth Service]
> Identifier=audio
> Name=Audio service
> Description=Bluetooth Audio service
>
>
> Here's my ~/.asoundrc:
> pcm.bluetooth {
>    type bluetooth
>    device 00:0D:3C:6F:0E:89
> }
>
> I have the following bluez packages installed:
>
> bluez-utils-3.18-12
> bluez-libs-3.18-5
>
>
> When I try to configure any of the players as recommended by the page 
> http://wiki.bluez.org/wiki/HOWTO/AudioDevices#SupportedPlayers the best 
> response I get is "Device Busy" from amarok and Kaffiene (xine engine) like 
> this:
>
> "Audio output unavailable; the device is busy.
> xine parameters: "
>
> MPlayer, when I try to run the suggested command 
> "mplayer -ao alsa:device=bluetooth"
> prints out the options/argument list as though I'm using an incorrect command.
>
> I can't configure audacious at all, under Audio the "Current output plugin" 
> has no option to select, and all the other preferences are grayed out too.
>
> Can anyone tell me what I need to do to make this work?
>
> Thanks,
>
> 	JW
>
>   
Hello,
try to
aplay -v -D bluetooth './your-sound.wav'
and send its output. Else, did you started bluetooth audio service?
To check, use:
ps ax | grep bluetoothd-service-audio

Regards,
Eugene


[-- Attachment #2: it_had_even.vcf --]
[-- Type: text/x-vcard, Size: 55 bytes --]

begin:vcard
fn:Eugene
n:;Eugene
version:2.1
end:vcard


[-- Attachment #3: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #4: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors
  2008-01-28  0:16 ` Eugene
@ 2008-02-04 23:52   ` SA
  2008-02-05  2:04     ` Leszek Koltunski
  0 siblings, 1 reply; 12+ messages in thread
From: SA @ 2008-02-04 23:52 UTC (permalink / raw)
  To: BlueZ users

On Sunday 27 January 2008 18:16:59 Eugene wrote:
> Hello,
> try to
> aplay -v -D bluetooth './your-sound.wav'
> and send its output. Else, did you started bluetooth audio service?
> To check, use:
> ps ax | grep bluetoothd-service-audio


BTW I started off using KDE and the bluetooth applet to pair the device. It is 
now listed in the "Paired/Trusted Devices" screen. It it also listed in 
the "Configured Input Devices" section of "Input Devices".

I'm a little suspicious of the KDE applets, does anyone know what tools to use 
on the commandline to make sure that the connection/pairing is good? It shows 
up with hcitool scan:


citrine:~ # hcitool scan
Scanning ...
        00:0D:3C:6F:0E:89       Jawbone
#

Output of trying to play:

:~> aplay -v -D bluetooth /work/tmp/Audio-tmp/11\ -\ How\ Can\ I\ Keep\ From\ 
Singing-.wav
ALSA lib pcm_bluetooth.c:1189:(bluetooth_init) Connection fail
aplay: main:546: audio open error: Connection refused

I don't see anything useful in /var/log/messages

I tried deleting the pairing, re-pairing and immediately doing the "aplay" 
test and still I get the same error.

As far as the bluetooth audio service, I'm not sure. As I mentioend, I'm on 
SuSE 10.3. It only has /etc/init.d/bluetooth which I think is supposed to 
handle all types of bluetooth connections - like a wrapper or something.

ps ax |grep blue
27467 ?        Ss     0:00 /usr/sbin/hcid -s -f /etc/bluetooth/hcid.conf
27472 ?        S      0:00 /usr/lib/bluetooth/bluetoothd-service-input


# cat /etc/bluetooth/audio.service
[Bluetooth Service]
Identifier=audio
Name=Audio service
Description=Bluetooth Audio service

My bluetooth adapter is the good old USB D-Link DBT 120 that works on 
everything (Mac, Linux etc).

hcitool con shows:

# hcitool con
Connections:


hcitool rssi 00:0D:3C:6F:0E:89
Not connected.


I'm not sure what that means. I wonder if it means it's not really connected?

	JW

-- 

----------------------
System Administrator - Cedar Creek Software http://www.cedarcreeksoftware.com
http://jwadmin.blogspot.com/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors
  2008-02-04 23:52   ` SA
@ 2008-02-05  2:04     ` Leszek Koltunski
  2008-02-05 18:29       ` SA
  0 siblings, 1 reply; 12+ messages in thread
From: Leszek Koltunski @ 2008-02-05  2:04 UTC (permalink / raw)
  To: BlueZ users



> On Sunday 27 January 2008 18:16:59 Eugene wrote:
>> and send its output. Else, did you started bluetooth audio service?
>> To check, use:
>> ps ax | grep bluetoothd-service-audio

> ps ax |grep blue
> 27467 ?        Ss     0:00 /usr/sbin/hcid -s -f /etc/bluetooth/hcid.conf
> 27472 ?        S      0:00 /usr/lib/bluetooth/bluetoothd-service-input


^^^^^ Obviously you're not running the audio service.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors
  2008-02-05  2:04     ` Leszek Koltunski
@ 2008-02-05 18:29       ` SA
  2008-02-05 18:33         ` SA
  0 siblings, 1 reply; 12+ messages in thread
From: SA @ 2008-02-05 18:29 UTC (permalink / raw)
  To: BlueZ users

On Monday 04 February 2008 20:04:31 Leszek Koltunski wrote:
> > On Sunday 27 January 2008 18:16:59 Eugene wrote:
> >> and send its output. Else, did you started bluetooth audio service?
> >> To check, use:
> >> ps ax | grep bluetoothd-service-audio
> >
> > ps ax |grep blue
> > 27467 ?        Ss     0:00 /usr/sbin/hcid -s -f /etc/bluetooth/hcid.conf
> > 27472 ?        S      0:00 /usr/lib/bluetooth/bluetoothd-service-input
>
> ^^^^^ Obviously you're not running the audio service.

I thought the bluetooth service /etc/init.d/bluetooth started all the services 
but I guess it's not working.

There is a file, /usr/lib/bluetooth/bluetoothd-service-audio which belongs to 
the package bluez-utils. Should I just run it from the terminal? How is it 
*supposed* to be configured?

	JW


-- 

----------------------
System Administrator - Cedar Creek Software
http://www.cedarcreeksoftware.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors
  2008-02-05 18:29       ` SA
@ 2008-02-05 18:33         ` SA
  2008-02-05 18:41           ` Brad Midgley
  2008-02-06  1:47           ` jayjwa
  0 siblings, 2 replies; 12+ messages in thread
From: SA @ 2008-02-05 18:33 UTC (permalink / raw)
  To: BlueZ users

On Tuesday 05 February 2008 12:29:18 you wrote:
> On Monday 04 February 2008 20:04:31 Leszek Koltunski wrote:
> > > On Sunday 27 January 2008 18:16:59 Eugene wrote:
> > >> and send its output. Else, did you started bluetooth audio service?
> > >> To check, use:
> > >> ps ax | grep bluetoothd-service-audio
> > >
> > > ps ax |grep blue
> > > 27467 ?        Ss     0:00 /usr/sbin/hcid -s -f
> > > /etc/bluetooth/hcid.conf 27472 ?        S      0:00
> > > /usr/lib/bluetooth/bluetoothd-service-input
> >
> > ^^^^^ Obviously you're not running the audio service.
>
> I thought the bluetooth service /etc/init.d/bluetooth started all the
> services but I guess it's not working.
>
> There is a file, /usr/lib/bluetooth/bluetoothd-service-audio which belongs
> to the package bluez-utils. Should I just run it from the terminal? How is
> it *supposed* to be configured?
>
> 	JW

I tried running it from the terminal and I got this:


/usr/lib/bluetooth/bluetoothd-service-audio
audio[2248]: Bluetooth Audio daemon
audio[2248]: /etc/bluetooth/audio.conf: /etc/bluetooth/audio.conf: No such 
file or directory
audio[2248]: /etc/bluetooth/audio.conf: /etc/bluetooth/audio.conf: No such 
file or directory
audio[2248]: /etc/bluetooth/audio.conf: /etc/bluetooth/audio.conf: No such 
file or directory
audio[2248]: /etc/bluetooth/audio.conf: /etc/bluetooth/audio.conf: No such 
file or directory
audio[2248]: Config options: DisableHFP=true, SCORouting=HCI, SourceCount=1
audio[2248]: Unix socket created: 5
audio[2248]: add_service_record: got record id 0x10001
audio[2248]: add_service_record: got record id 0x10002
audio[2248]: Registered manager path:/org/bluez/audio



When I tried running aplay -v -D bluetooth /work/tmp/hcikfs.wav I got the 
following print out in the other terminal:


audio[2248]: Accepted new client connection on unix socket (fd=8)
audio[2248]: Package PKT_TYPE_CFG_REQ:0
audio[2248]: Got path /org/bluez/hci0 for adapter with address 
00:0D:88:9E:DF:D6
audio[2248]: Audio service discovery completed with success
audio[2248]: Selecting default device
audio[2248]: No known services for device
audio[2248]: Unix client disconnected (fd=8)


audio[2248]: Accepted new client connection on unix socket (fd=8)
audio[2248]: Package PKT_TYPE_CFG_REQ:0
audio[2248]: No known services for device
audio[2248]: Unix client disconnected (fd=8)


audio[2248]: Accepted new client connection on unix socket (fd=8)
audio[2248]: Package PKT_TYPE_CFG_REQ:0
audio[2248]: No known services for device
audio[2248]: Unix client disconnected (fd=8)


What now?

	JW
-- 

----------------------
System Administrator - Cedar Creek Software
http://www.cedarcreeksoftware.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors
  2008-02-05 18:33         ` SA
@ 2008-02-05 18:41           ` Brad Midgley
  2008-02-05 21:42             ` SA
  2008-02-06  1:47           ` jayjwa
  1 sibling, 1 reply; 12+ messages in thread
From: Brad Midgley @ 2008-02-05 18:41 UTC (permalink / raw)
  To: BlueZ users

SA

edit /etc/bluetooth/audio.service and make sure you've enabled
autostart. restart bluetooth if you changed the file. I'll make sure
this is mentioned in the wiki.

Brad

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors
  2008-02-05 18:41           ` Brad Midgley
@ 2008-02-05 21:42             ` SA
  2008-02-05 21:46               ` SA
  2008-02-06  8:43               ` Guillaume Bedot
  0 siblings, 2 replies; 12+ messages in thread
From: SA @ 2008-02-05 21:42 UTC (permalink / raw)
  To: BlueZ users

On Tuesday 05 February 2008 12:41:55 Brad Midgley wrote:
> SA
>
> edit /etc/bluetooth/audio.service and make sure you've enabled
> autostart. restart bluetooth if you changed the file. I'll make sure
> this is mentioned in the wiki.
>
> Brad

Thanks Brad.

Ok so now I removed the device pairing and I had in the KDE "Paired/Trusted 
Devices" manager and edited /etc/bluetooth/audio.service so that it now 
contains this:

[Bluetooth Service]
Identifier=audio
Name=Audio service
Description=Bluetooth Audio service
Autostart=true


I got the "Autostart=true" from searching the wiki, it showed up on 3 pages 
about devices.

I restarted /etc/init.d/bluetooth, and then restarted kbluetooth, paired with 
the device again, it showed as connected for a little while and the logs 
in /var/log/messages are a little better but still it is not working. Here 
is /var/log/messages output:

Feb  5 14:31:49 citrine hcid[27467]: Stopping SDP server
Feb  5 14:31:49 citrine input[27472]: Unregistered manager path
Feb  5 14:31:49 citrine input[27472]: Exit
Feb  5 14:31:49 citrine hcid[27467]: Unregister path: /org/bluez/hci0
Feb  5 14:31:49 citrine hcid[27467]: Unregister path: /org/bluez
Feb  5 14:31:49 citrine hcid[27467]: Shutting down local server
Feb  5 14:31:49 citrine hcid[27467]: Exit
Feb  5 14:31:56 citrine hcid[3221]: Bluetooth HCI daemon
Feb  5 14:31:56 citrine hcid[3221]: HCI dev 0 registered
Feb  5 14:31:56 citrine hcid[3221]: HCI dev 0 already up
Feb  5 14:31:56 citrine hcid[3221]: Device hci0 has been added
Feb  5 14:31:56 citrine hcid[3221]: Starting security manager 0
Feb  5 14:31:56 citrine hcid[3221]: Device hci0 has been activated
Feb  5 14:31:56 citrine hcid[3221]: Starting SDP server
Feb  5 14:31:56 citrine hcid[3221]: Created local server at 
unix:abstract=/var/run/dbus-mae3pi2H4O,guid=4669817f7f51de8b3db2c00047a8c7bc
Feb  5 14:31:56 citrine audio[3234]: Bluetooth Audio daemon
Feb  5 14:31:56 citrine 
audio[3234]: /etc/bluetooth/audio.conf: /etc/bluetooth/audio.conf: No such 
file or directory
Feb  5 14:31:56 citrine syslog-ng[2307]: last message repeated 3 times
Feb  5 14:31:56 citrine audio[3234]: Config options: DisableHFP=true, 
SCORouting=HCI, SourceCount=1
Feb  5 14:31:56 citrine audio[3234]: Can't bind unix socket: Address already 
in use (98)
Feb  5 14:31:56 citrine audio[3234]: Unable to setup unix socket
Feb  5 14:31:56 citrine input[3233]: Bluetooth Input daemon
Feb  5 14:31:56 citrine input[3233]: Registered input manager 
path:/org/bluez/input
Feb  5 14:31:56 citrine hcid[3221]: Sending GetConnectionUnixProcessID failed: 
Could not get PID of name ':1.1951': no such name
Feb  5 14:31:56 citrine hcid[3221]: Could not get PID of :1.1951


Feb  5 14:33:54 citrine hcid[3221]: Default passkey agent 
(:1.1953, /org/kde/kbluetooth_1234) registered
Feb  5 14:33:54 citrine hcid[3221]: Default authorization agent 
(:1.1953, /org/kde/kbluetooth_auth_1234) registered
Feb  5 14:34:19 citrine input[3233]: /org/bluez/input: 
org.bluez.input.Manager.ListDevices()
Feb  5 14:34:19 citrine input[3233]: /org/bluez/input: 
org.bluez.input.Manager.ListDevices()
Feb  5 14:34:55 citrine input[3233]: /org/bluez/input: 
org.bluez.input.Manager.CreateDevice()
Feb  5 14:34:56 citrine input[3233]: Created input 
device: /org/bluez/input/wearable0
Feb  5 14:34:58 citrine input[3233]: /org/bluez/input/wearable0: 
org.bluez.input.Device.Connect()
Feb  5 14:34:58 citrine input[3233]: RFCOMM connection in progress: 
00:0D:3C:6F:0E:89 channel:2
Feb  5 14:34:58 citrine hcid[3221]: link_key_request (sba=00:0D:88:9E:DF:D6, 
dba=00:0D:3C:6F:0E:89)
Feb  5 14:34:58 citrine hcid[3221]: pin_code_request (sba=00:0D:88:9E:DF:D6, 
dba=00:0D:3C:6F:0E:89)
Feb  5 14:35:05 citrine hcid[3221]: link_key_notify (sba=00:0D:88:9E:DF:D6, 
dba=00:0D:3C:6F:0E:89)
Feb  5 14:35:06 citrine input[3233]: Can't open input device: No such file or 
directory (2)

Feb  5 14:35:09 citrine audio[2248]: Accepted new client connection on unix 
socket (fd=8)
Feb  5 14:35:09 citrine audio[2248]: Package PKT_TYPE_CFG_REQ:0
Feb  5 14:35:09 citrine audio[2248]: State changed /org/bluez/audio/device0: 
DISCONNECTED -> CONNECTING
Feb  5 14:35:10 citrine audio[2248]: get_handles_reply: Unable to get handle 
array from reply
Feb  5 14:35:10 citrine audio[2248]: State changed /org/bluez/audio/device0: 
CONNECTING -> DISCONNECTED
Feb  5 14:35:10 citrine audio[2248]: Unix client disconnected (fd=8)


Feb  5 14:35:12 citrine audio[2248]: Accepted new client connection on unix 
socket (fd=8)
Feb  5 14:35:12 citrine audio[2248]: Package PKT_TYPE_CFG_REQ:0
Feb  5 14:35:12 citrine audio[2248]: State changed /org/bluez/audio/device0: 
DISCONNECTED -> CONNECTING
Feb  5 14:35:12 citrine audio[2248]: get_handles_reply: Unable to get handle 
array from reply
Feb  5 14:35:12 citrine audio[2248]: State changed /org/bluez/audio/device0: 
CONNECTING -> DISCONNECTED
Feb  5 14:35:12 citrine audio[2248]: Unix client disconnected (fd=8)
Feb  5 14:35:21 citrine audio[2248]: Accepted new client connection on unix 
socket (fd=8)
Feb  5 14:35:21 citrine audio[2248]: Package PKT_TYPE_CFG_REQ:0
Feb  5 14:35:21 citrine audio[2248]: State changed /org/bluez/audio/device0: 
DISCONNECTED -> CONNECTING
Feb  5 14:35:22 citrine audio[2248]: get_handles_reply: Unable to get handle 
array from reply
Feb  5 14:35:22 citrine audio[2248]: State changed /org/bluez/audio/device0: 
CONNECTING -> DISCONNECTED
Feb  5 14:35:22 citrine audio[2248]: Unix client disconnected (fd=8)
Feb  5 14:35:24 citrine audio[2248]: Accepted new client connection on unix 
socket (fd=8)
Feb  5 14:35:24 citrine audio[2248]: Package PKT_TYPE_CFG_REQ:0
Feb  5 14:35:24 citrine audio[2248]: State changed /org/bluez/audio/device0: 
DISCONNECTED -> CONNECTING
Feb  5 14:35:24 citrine audio[2248]: get_handles_reply: Unable to get handle 
array from reply
Feb  5 14:35:24 citrine audio[2248]: State changed /org/bluez/audio/device0: 
CONNECTING -> DISCONNECTED
Feb  5 14:35:24 citrine audio[2248]: Unix client disconnected (fd=8)

Feb  5 14:36:10 citrine input[3233]: /org/bluez/input: 
org.bluez.input.Manager.ListDevices()
Feb  5 14:36:10 citrine input[3233]: /org/bluez/input/wearable0: 
org.bluez.input.Device.IsConnected()
Feb  5 14:36:10 citrine input[3233]: /org/bluez/input/wearable0: 
org.bluez.input.Device.GetAddress()
Feb  5 14:36:10 citrine input[3233]: /org/bluez/input/wearable0: 
org.bluez.input.Device.IsConnected()
Feb  5 14:37:07 citrine audio[2248]: Accepted new client connection on unix 
socket (fd=8)
Feb  5 14:37:07 citrine audio[2248]: Package PKT_TYPE_CFG_REQ:0
Feb  5 14:37:07 citrine audio[2248]: State changed /org/bluez/audio/device0: 
DISCONNECTED -> CONNECTING
Feb  5 14:37:11 citrine audio[2248]: get_handles_reply: Unable to get handle 
array from reply
Feb  5 14:37:11 citrine audio[2248]: State changed /org/bluez/audio/device0: 
CONNECTING -> DISCONNECTED
Feb  5 14:37:11 citrine audio[2248]: Unix client disconnected (fd=8)


aplay still gives errors:


:~> aplay -v -D bluetooth /work/tmp/hcikfs.wav
ALSA lib pcm_bluetooth.c:1108:(bluetooth_cfg) Error 22 while configuring 
device
aplay: main:546: audio open error: Invalid argument


I tried it a second time too.

Someone suggested I add this to my .asoundrc:


pcm.my_bt_convert {
     type plug
     slave {
        pcm "bluetooth"
     }
}



And use:

aplay -v -D my_bt_convert /work/tmp/hcikfs.wav


But I get the same errors:

==> messages <==
Feb  5 15:36:05 citrine input[3437]: /org/bluez/input: 
org.bluez.input.Manager.ListDevices()
Feb  5 15:36:05 citrine input[3437]: /org/bluez/input: 
org.bluez.input.Manager.ListDevices()
Feb  5 15:36:27 citrine input[3437]: /org/bluez/input: 
org.bluez.input.Manager.ListDevices()
Feb  5 15:36:42 citrine syslog-ng[2307]: last message repeated 3 times
Feb  5 15:36:42 citrine input[3437]: /org/bluez/input: 
org.bluez.input.Manager.CreateDevice()
Feb  5 15:36:43 citrine input[3437]: Created input 
device: /org/bluez/input/wearable0
Feb  5 15:36:44 citrine input[3437]: /org/bluez/input/wearable0: 
org.bluez.input.Device.Connect()
Feb  5 15:36:44 citrine input[3437]: RFCOMM connection in progress: 
00:0D:3C:6F:0E:89 channel:2
Feb  5 15:36:44 citrine hcid[3433]: link_key_request (sba=00:0D:88:9E:DF:D6, 
dba=00:0D:3C:6F:0E:89)
Feb  5 15:36:44 citrine hcid[3433]: pin_code_request (sba=00:0D:88:9E:DF:D6, 
dba=00:0D:3C:6F:0E:89)
Feb  5 15:36:48 citrine hcid[3433]: link_key_notify (sba=00:0D:88:9E:DF:D6, 
dba=00:0D:3C:6F:0E:89)
Feb  5 15:36:48 citrine input[3437]: Can't open input device: No such file or 
directory (2)

==> warn <==
Feb  5 15:36:48 citrine input[3437]: Can't open input device: No such file or 
directory (2)

==> messages <==
Feb  5 15:37:00 citrine input[3437]: /org/bluez/input: 
org.bluez.input.Manager.ListDevices()
Feb  5 15:37:00 citrine input[3437]: /org/bluez/input/wearable0: 
org.bluez.input.Device.IsConnected()
Feb  5 15:37:00 citrine input[3437]: /org/bluez/input/wearable0: 
org.bluez.input.Device.GetAddress()
Feb  5 15:37:00 citrine input[3437]: /org/bluez/input/wearable0: 
org.bluez.input.Device.IsConnected()
Feb  5 15:37:00 citrine input[3437]: /org/bluez/input: 
org.bluez.input.Manager.ListDevices()
Feb  5 15:37:00 citrine input[3437]: /org/bluez/input/wearable0: 
org.bluez.input.Device.GetAddress()
Feb  5 15:37:00 citrine input[3437]: /org/bluez/input/wearable0: 
org.bluez.input.Device.Connect()
Feb  5 15:37:00 citrine input[3437]: RFCOMM connection in progress: 
00:0D:3C:6F:0E:89 channel:2
Feb  5 15:37:01 citrine hcid[3433]: link_key_request (sba=00:0D:88:9E:DF:D6, 
dba=00:0D:3C:6F:0E:89)
Feb  5 15:37:01 citrine input[3437]: Can't open input device: No such file or 
directory (2)
Feb  5 15:37:02 citrine audio[3438]: Accepted new client connection on unix 
socket (fd=8)
Feb  5 15:37:02 citrine audio[3438]: Package PKT_TYPE_CFG_REQ:0
Feb  5 15:37:02 citrine audio[3438]: Got path /org/bluez/hci0 for adapter with 
address 00:0D:88:9E:DF:D6
Feb  5 15:37:02 citrine audio[3438]: Audio service discovery completed with 
success
Feb  5 15:37:02 citrine audio[3438]: Selecting default device
Feb  5 15:37:02 citrine audio[3438]: No known services for device
Feb  5 15:37:02 citrine audio[3438]: Unix client disconnected (fd=8)

==> warn <==
Feb  5 15:36:48 citrine input[3437]: Can't open input device: No such file or 
directory (2)
Feb  5 15:37:02 citrine audio[3438]: No known services for device



-- 

----------------------
System Administrator - Cedar Creek Software
http://www.cedarcreeksoftware.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors
  2008-02-05 21:42             ` SA
@ 2008-02-05 21:46               ` SA
  2008-02-05 22:11                 ` SA
  2008-02-06  8:43               ` Guillaume Bedot
  1 sibling, 1 reply; 12+ messages in thread
From: SA @ 2008-02-05 21:46 UTC (permalink / raw)
  To: BlueZ users

In the last message I may have caused some confusion.

Each time I try aplay I get this in /var/log/messages (doesn't matter which 
aplay command example I try):


==> messages <==
Feb  5 15:42:49 citrine audio[3438]: Accepted new client connection on unix 
socket (fd=8)
Feb  5 15:42:49 citrine audio[3438]: Package PKT_TYPE_CFG_REQ:0
Feb  5 15:42:49 citrine audio[3438]: No known services for device
Feb  5 15:42:49 citrine audio[3438]: Unix client disconnected (fd=8)




-- 

----------------------
System Administrator - Cedar Creek Software
http://www.cedarcreeksoftware.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors
  2008-02-05 21:46               ` SA
@ 2008-02-05 22:11                 ` SA
  0 siblings, 0 replies; 12+ messages in thread
From: SA @ 2008-02-05 22:11 UTC (permalink / raw)
  To: BlueZ users

I just found out that this headset does not support HSP:

# sdptool search --bdaddr 00:0D:3C:6F:0E:89 HS
Searching for HS on 00:0D:3C:6F:0E:89 ...
#



sdptool search --bdaddr 00:0D:3C:6F:0E:89 HF
Searching for HF on 00:0D:3C:6F:0E:89 ...
Service Name: Hands-Free unit
Service RecHandle: 0x10000
Service Class ID List:
  "Handsfree" (0x111e)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 1
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Handsfree" (0x111e)
    Version: 0x0101



It's a "Jawbone" headset, from jawbone.com. Good quality. Apparently bad 
engineering or design.

	JW


-- 

----------------------
System Administrator - Cedar Creek Software
http://www.cedarcreeksoftware.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors
  2008-02-05 18:33         ` SA
  2008-02-05 18:41           ` Brad Midgley
@ 2008-02-06  1:47           ` jayjwa
  1 sibling, 0 replies; 12+ messages in thread
From: jayjwa @ 2008-02-06  1:47 UTC (permalink / raw)
  To: BlueZ users


On Tue, 5 Feb 2008, SA wrote:

-> > > > ps ax |grep blue
-> > > > 27467 ?        Ss     0:00 /usr/sbin/hcid -s -f
-> > > > /etc/bluetooth/hcid.conf 27472 ?        S      0:00
-> > > > /usr/lib/bluetooth/bluetoothd-service-input
-> > >
-> > > ^^^^^ Obviously you're not running the audio service.
-> >
-> > I thought the bluetooth service /etc/init.d/bluetooth started all the
-> > services but I guess it's not working.

It autostarts when hcid and friends start up.


-> > There is a file, /usr/lib/bluetooth/bluetoothd-service-audio which belongs
-> > to the package bluez-utils. Should I just run it from the terminal? How is
-> > it *supposed* to be configured?
-> >
-> > 	JW
-> 
-> I tried running it from the terminal and I got this:
->

You never need touch the stuff in /usr/lib/bluetooth (to run it).


-> /usr/lib/bluetooth/bluetoothd-service-audio
-> audio[2248]: Bluetooth Audio daemon
-> audio[2248]: /etc/bluetooth/audio.conf: /etc/bluetooth/audio.conf: No such 
-> file or directory
-> audio[2248]: /etc/bluetooth/audio.conf: /etc/bluetooth/audio.conf: No such 
-> file or directory
-> audio[2248]: /etc/bluetooth/audio.conf: /etc/bluetooth/audio.conf: No such 
-> file or directory
-> audio[2248]: /etc/bluetooth/audio.conf: /etc/bluetooth/audio.conf: No such 
-> file or directory
-> audio[2248]: Config options: DisableHFP=true, SCORouting=HCI, SourceCount=1
-> audio[2248]: Unix socket created: 5
-> audio[2248]: add_service_record: got record id 0x10001
-> audio[2248]: add_service_record: got record id 0x10002
-> audio[2248]: Registered manager path:/org/bluez/audio
->

Well, there you go. Look in the bluez-utils src and pull out the audio.conf 
and stick it in the /etc/bluetooth dir. Edit the audio.service file:

cat /etc/bluetooth/audio.service

[Bluetooth Service]
Identifier=audio
Name=Audio service
Description=Bluetooth Audio service
Autostart=true



Note most of the services are missing the Autostart line. I add it and set it 
to true, and that at least gets the service running here.




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors
  2008-02-05 21:42             ` SA
  2008-02-05 21:46               ` SA
@ 2008-02-06  8:43               ` Guillaume Bedot
  1 sibling, 0 replies; 12+ messages in thread
From: Guillaume Bedot @ 2008-02-06  8:43 UTC (permalink / raw)
  To: BlueZ users

Hello,

On mar, 2008-02-05 at 15:42 -0600, SA wrote:
> audio[3234]: /etc/bluetooth/audio.conf: /etc/bluetooth/audio.conf: No
> such 
> file or directory
> Feb  5 14:31:56 citrine syslog-ng[2307]: last message repeated 3 times
> Feb  5 14:31:56 citrine audio[3234]: Config options: DisableHFP=true, 
> SCORouting=HCI, SourceCount=1

So it should work using Hands-Free Profile,
with /etc/bluetooth/audio.conf containing at least :
DisableHFP=false

Regards,

Guillaume B.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-02-06  8:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-25  4:56 [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors SA
2008-01-28  0:16 ` Eugene
2008-02-04 23:52   ` SA
2008-02-05  2:04     ` Leszek Koltunski
2008-02-05 18:29       ` SA
2008-02-05 18:33         ` SA
2008-02-05 18:41           ` Brad Midgley
2008-02-05 21:42             ` SA
2008-02-05 21:46               ` SA
2008-02-05 22:11                 ` SA
2008-02-06  8:43               ` Guillaume Bedot
2008-02-06  1:47           ` jayjwa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox