2008-01-25 04:56:33

by SA

[permalink] [raw]
Subject: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2008-02-06 08:43:14

by Guillaume Bedot

[permalink] [raw]
Subject: Re: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2008-02-06 01:47:54

by jayjwa

[permalink] [raw]
Subject: Re: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors


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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2008-02-05 22:11:46

by SA

[permalink] [raw]
Subject: Re: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2008-02-05 21:46:45

by SA

[permalink] [raw]
Subject: Re: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2008-02-05 21:42:11

by SA

[permalink] [raw]
Subject: Re: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2008-02-05 18:41:55

by Brad Midgley

[permalink] [raw]
Subject: Re: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2008-02-05 18:33:32

by SA

[permalink] [raw]
Subject: Re: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2008-02-05 18:29:18

by SA

[permalink] [raw]
Subject: Re: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2008-02-05 02:04:31

by Leszek Koltunski

[permalink] [raw]
Subject: Re: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors



> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2008-02-04 23:52:04

by SA

[permalink] [raw]
Subject: Re: [Bluez-users] How to setup a headset as an audio device? Getting "Device busy" errors

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users