Bluetooth audio in OSX Lion

In Snow leopard, I would use a plantronics bluetooth headset for facetime and skype chats. Now, in Lion, I can't. I keep getting a bluetooth audio error. I live in a dead zone, so this is a pretty important thing for me.


The console shows the following errors:


7/22/11 3:21:11.000 PM kernel: REQUIRE failure: mClientResponseTimedOut == false - file: /SourceCache/IOBluetoothFamily/IOBluetoothFamily-2500.4.17/Core/Family/Drivers/ IOBluetoothSCOAudioDriver/IOBluetoothSCOAudioDevice.cpp:711

7/22/11 3:21:11.000 PM kernel: REQUIRE failure: result == kIOReturnSuccess - file: /SourceCache/IOBluetoothFamily/IOBluetoothFamily-2500.4.17/Core/Family/Drivers/ IOBluetoothSCOAudioDriver/IOBluetoothSCOAudioEngine.cpp:270

I have also noticed that odd things happen to my audio as long as the device is paired, wether or not it is active. Audio is sometimes output as mono, volume controls do not work for the line out, and audio mutes (even thoguh it is shown as unmuted) at random moments. None of this can be resolved as long as the headset is paired.

Is there anything I can do to get my iMac to use the bluetooth earpiece that worked just fine in Snow Leopard?

iMac 7,1, Mac OS X (10.7)

Posted on Jul 22, 2011 12:30 PM

Reply
391 replies

Feb 5, 2012 9:12 AM in response to claudew

Join the club claudew, you're screwed... just wait patiently until Apple decides it's worth fixing... It is so annoying and problematic to get my Bluetooth headphones to pair, stay paired, and actually work (on my MBP) that I just use my Windows 7 PC if I want to go wireless. It's complexly ridiculous that I have to do that!

Feb 5, 2012 9:42 AM in response to claudew

hi Claudew,


referring to this:

The easy way to fix it is to copy and paste this line into your terminal:

defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" 40

The "40" is the quality — depending on your Bluetooth headset, you can adjust it up for higher quality, or down if you have connection problems. 40 worked for me with a Motorokr S9 headset.


whenever i go beyond 60 i will get the same message, probably buffers going wrong. Try 40 or less and see if that works for you.


Cheers Ric

Feb 5, 2012 9:49 AM in response to MentalUproar

keep in mind that adjusting the bitpool value may cause the audio to be very choppy or the audio to cut out and not play since it is harder to maintain a higher quality stream (the link must pump more data to the headphones and depending on your room config, system antenna and other connected BT devices, this may not be possible). further, some headsets will reject a minimum bitpool for 40, so you may get failures right away. sounds like quality is not claude's issue anyway, but that the link drops mid-stream.


claude, or anyone else: can you do this:


1) open Terminal application (in Utilities folder)

2) type


sudo touch /var/log/bluetoothAudio.log <hit return>

sudo chmod 777 /var/log/bluetoothAudio.log <hit return>


3) try to reproduce the problem

4) in Terminal again, type


open /var/log/bluetoothAudio.log


paste in the log contents to this discussion forum. maybe that will reveal something more about the failure.

Feb 5, 2012 10:00 AM in response to gtmagnet

Here's the Bluetooth Audio Log for the D34 error:


Sun Feb 5 18:56:45 201 [BluetoothAudioAgent:1537] main.m:43 [main] arg[1] = -BTAutoLaunch

Sun Feb 5 18:56:45 201 [BluetoothAudioAgent:1537] main.m:43 [main] arg[2] = BD_ADDR

Sun Feb 5 18:56:45 201 [BluetoothAudioAgent:1537] main.m:43 [main] arg[3] = 00-02-72-eb-6c-12

Sun Feb 5 18:56:45 201 [BluetoothAudioAgent:1537] main.m:43 [main] arg[4] = DriverID

Sun Feb 5 18:56:45 201 [BluetoothAudioAgent:1537] main.m:43 [main] arg[5] = 00-02-72-eb-6c-12-A2DP

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:1139 SetIsCommandInt: 1

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:135 Starting audio for Belkin D34 (00-02-72-eb-6c-12)

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] AVConnectionManager.m:689 [addAllowed] adding: 0x19

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] AVConnectionManager.m:704 [addAllowed] result: 0x0

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] AVSignalManager.m:56 [init] entry

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:1287 [registerHCI] entry (0x0)

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:1304 [registerHCI] exit: 0x0

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudioAgent.m:109 [awakeFromNib] Awake and ready to rawk

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudioAgent.m:1379 [validate] continuing

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudioAgent.m:299 [prepareA2DPAudioServices]

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudioAgent.m:1387 [finishValidation] cleaning up 0x0

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:1411 [attachA2DPdriver] entry

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:1500 Engine buffers(86016)> cB:19 urv:0xE00002C0 size:81920

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:1501 [attachA2DPdriver] Attached to AV kext

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:2119 [getEngineState] 0 state:0

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:1508 [attachA2DPdriver] engine state: 0

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:1516 [attachA2DPdriver] exit (0x0)

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:2157 [setA2DPDriverAgentIsReady] exit: (0x0)

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudioAgent.m:334 [prepareA2DPAudioServices] coex: 0 fffff0c1

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] AVStreamEndpoint.m:110 dynamicBitpool:1 packetThreshold:5 pendingPackets:15 flushOnDrop:0

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] AVStreamEndpoint.m:149 [reset]

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] AVStreamEndpoint.m:110 dynamicBitpool:1 packetThreshold:5 pendingPackets:15 flushOnDrop:0

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] AVStreamEndpoint.m:149 [reset]

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudioAgent.m:399 [prepareA2DPAudioServices] returning 0

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudioAgent.m:1387 [finishValidation] cleaning up 0x0

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudioAgent.m:422 [prepareSCOAudioServices] Device is not configured as a headset

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudioAgent.m:463 [prepareSCOAudioServices] Error: Couldn't create HFAG or HSAG.

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudioAgent.m:475 [prepareSCOAudioServices] exit: 4

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:85 Setting driver request 0->3

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:1623 DRIVER REQUEST: Start (connected: 0 mIsA2DPCommandINT: 1)

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:1668 [handleDriverStartRequest] Paired sep: 0x0

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:1679 [handleDriverStartRequest]: Connect to the device

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] AVConnectionManager.m:961 [handle unregister] obj: <AVStreamTransport>

INDV

- DISCONNECTED

- NO CHAN

- Delegate: AVSignalManager



Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] AVConnectionManager.m:156 [connect] Opening device...

Sun Feb 5 18:56:46 201 [BluetoothAudioAgent:1537] AVConnectionManager.m:234 [connect] exit: 0x0

Sun Feb 5 18:56:52 201 [BluetoothAudioAgent:1537] AVConnectionManager.m:252 [connectionComplete] exit: 0x0

Sun Feb 5 18:56:52 201 [BluetoothAudioAgent:1537] AVSourceInterface.m:434 [avCon connectionComplete] status: 0

Sun Feb 5 18:56:52 201 [BluetoothAudioAgent:1537] AVSourceInterface.m:441 [avCon connectionComplete] connecting signalManager...

Sun Feb 5 18:56:52 201 [BluetoothAudioAgent:1537] AVSignalManager.m:137 [connect] connecting transport...

Sun Feb 5 18:56:52 201 [BluetoothAudioAgent:1537] AVStreamTransport.m:171 [connect] asking for new l2cap channel on PSM: 25...

Sun Feb 5 18:56:52 201 [BluetoothAudioAgent:1537] AVConnectionManager.m:850 [openNew] opening l2cap channel...

Sun Feb 5 18:56:52 201 [BluetoothAudioAgent:1537] AVStreamTransport.m:327 handleRequestNewConnectionResponse

Sun Feb 5 18:56:52 201 [BluetoothAudioAgent:1537] AVStreamTransport.m:350 [assignTransportChannel] 0x7fdc9154d7a0

Sun Feb 5 18:56:52 201 [BluetoothAudioAgent:1537] AVConnectionManager.m:997 [handle assign] obj: <AVStreamTransport>

INDV

- DISCONNECTED

- Psm: 0 - Out-MTU: 0 - In-MTU: 0

- Delegate: AVSignalManager



Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] AVStreamTransport.m:387 [l2capOpenComplete] entry (0x10) OURS 0x7fdc9154d7a0 NEW: 0x7fdc9154d7a0

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] AVStreamTransport.m:391 [l2capOpenComplete] ERR: An error occurred

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] AVStreamTransport.m:350 [assignTransportChannel] 0x0

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] AVStreamTransport.m:419 [l2capOpenComplete] calling INT delegate (<AVSignalManager: 0x107175120>)...

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] AVSignalManager.m:1954 [Connect Complete] calling delegate...

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] AVSourceInterface.m:563 [ConnectComplete] status: 0x10 delegate: 0x10714fb60

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] BluetoothAudioAgent.m:502 [connectComplete] Error 0x0010

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:363 [shutdown] (error: 1 isShutting was: 0)

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:1797 [respond] responding: e00002bc to request: 3

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:85 Setting driver request 3->0

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:2272 [stopAudioDriverEncoder]

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:2272 [stopAudioDriverEncoder]

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:1537 [detach] entry: 57611

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] AVSourceInterface.m:154 [disconnect] entry...

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] AVSignalManager.m:154 [disconnect] not connected!

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] AVConnectionManager.m:388 [disconnect]

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] AVStreamTransport.m:223 [disconnect] not connected

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] AVConnectionManager.m:414 [disconnect] device close returned: 0x0

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] AVConnectionManager.m:419 [disconnect] returned: 0x0

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] AVStreamEndpoint.m:149 [reset]

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] AVStreamEndpoint.m:149 [reset]

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] AVSignalManager.m:81 [dealloc] entry

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] AVConnectionManager.m:774 [stopListeningForNewConnections]

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] AVConnectionManager.m:388 [disconnect]

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] AVConnectionManager.m:392 [disconnect] ERR: no device

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] AVConnectionManager.m:419 [disconnect] returned: 0xe00002c0

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:505 [showErrorPanel] Error: mIsErrorPanelShown = 0

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:508 [showErrorPanel] Needs panel (Error: 0x1 incoming: 0)

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:619 [showErrorPanel] running panel

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:1325 Device disconnect notification

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:363 [shutdown] (error: e00002c0 isShutting was: 1)

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:368 [shutdown] already showing panel!

Sun Feb 5 18:57:33 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:632 [showErrorPanel] panel is dead user choice: 1000

Sun Feb 5 18:57:33 201 [BluetoothAudioAgent:1537] BluetoothAudio.m:470 [shutdown] Terminating now!

Sun Feb 5 18:57:33 201 [BluetoothAudioAgent:1537] BluetoothAudioAgent.m:144 [applicationWillTerminate]

Sun Feb 5 18:57:33 201 [BluetoothAudioAgent:1537] BluetoothAudioAgent.m:153 Restoring system output

Sun Feb 5 18:57:33 201 [BluetoothAudioAgent:1537] AudioOutputManager.m:498 RestoreSystemOutputAudio

Sun Feb 5 18:57:33 201 [BluetoothAudioAgent:1537] AudioOutputManager.m:644 [setAudioDevice] set output: (Status:0)

Feb 5, 2012 10:12 AM in response to darickster

the default bitpool depends on what type of device is used and what codecs it supports (e.g. aptx) as well as how many other BT devices are in use. the default bitpool should start at 30 though, and move up from there dynamically as the OS decides if it can pump data well enough or not to support a higher quality. if it is struggling to keep the connection alive, it will stay low. If it has "headroom", it will go up all the way to 64 (hardly ever).

Feb 5, 2012 10:28 AM in response to claudew

hmm, interesting:


Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] AVStreamTransport.m:387 [l2capOpenComplete] entry (0x10) OURS 0x7fdc9154d7a0 NEW: 0x7fdc9154d7a0

Sun Feb 5 18:57:22 201 [BluetoothAudioAgent:1537] AVStreamTransport.m:391 [l2capOpenComplete] ERR: An error occurred


0x10 indicates a "host timeout", which is an odd error... usually that means that the Mac couldn't finish the connection to the device; they couldn't "agree" on what parameters to use. What type of mac do you have? and what version of OSX were you using before? unfortunately to debug further you'd need to have developer tools installed. I have one of these devices at my office, let me try tomorrow and see if it works for me. btw this error:


Error: Couldn't create HFAG or HSAG.


just means that the device doesn't support "mono" audio, but it stereo only. not really an error, per se.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Bluetooth audio in OSX Lion

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.