Comment 35 for bug 1181106

I found this affecting 14.04 Trusty.

$ pactl set-card-profile bluez_card.30_17_C8_8B_DF_B1 a2dp
Failure: Input/Output error

so I thought I'd capture some debug logging to "/var/log/syslog" from bluetoothd (system daemon) by adding "-d" (debug logging) to the Upstart service file ("/etc/init/bluetooth.conf") so the line reads

exec /usr/sbin/bluetoothd -d

I then restarted the service with

sudo service bluetooth restart

and reconnected to the A2DP headset. I was surprised to see that the A2DP profile immediately connected!

I then experimented with changing the profile to see if I could reproduce the error but found that, so far, I cannot:

$ pactl set-card-profile bluez_card.30_17_C8_8B_DF_B1 hsp
$ pactl set-card-profile bluez_card.30_17_C8_8B_DF_B1 a2dp
$

Maybe after a power-off restart, or suspend/resume cycle, the issue will return, but it seems that restarting the bluetooth service and reconnecting to the headset solves the issue in my scenario.