Comment 15 for bug 1582213

Revision history for this message
Doug Morse (dm-dougmorse) wrote :

--------------------

@hife and @Mary Sherman (spot9019): Thanks for the speedy replies!

--------------------

@hife: Thanks for describing your workaround in greater detail.

I've already tried the a2dp.py script, it doesn't fix the problem for me. I just downloaded again the latest version and tried again, no joy:

--------------------

```
morse@n1 ~> ./a2dp.py
Connection MADE
Selecting device:
1. 0C:47:C9:0A:F6:F8 Amazon Tap-364
2. 00:0C:8A:58:F6:CA Bose SoundLink Mobile speaker II
3. 28:FD:80:00:86:85 Earin L
4. 50:F5:DA:A6:3F:EA Echo-JS6
Select device[1]:
4
Device MAC: 50:F5:DA:A6:3F:EA
Device ID: bluez_card.50_F5_DA_A6_3F_EA
Sink: bluez_sink.50_F5_DA_A6_3F_EA
Updating default sink to bluez_sink.50_F5_DA_A6_3F_EA
Setting the off profile
Disconnecting the device.
Connecting again.
Cannot find `bluez_card.50_F5_DA_A6_3F_EA` using `pactl list cards short`. Retrying 4 more times
Cannot find `bluez_card.50_F5_DA_A6_3F_EA` using `pactl list cards short`. Retrying 3 more times
Cannot find `bluez_card.50_F5_DA_A6_3F_EA` using `pactl list cards short`. Retrying 2 more times
Cannot find `bluez_card.50_F5_DA_A6_3F_EA` using `pactl list cards short`. Retrying 1 more times
Device ID: bluez_card.50_F5_DA_A6_3F_EA
Setting the a2dp profile
Updating default sink to bluez_sink.50_F5_DA_A6_3F_EA
Ignoring: Command: pacmd list-sink-inputs | grep "index:" failed with status: 1
stderr:
Exiting bluetoothctl
"Enjoy" the HiFi stereo music :)
morse@n1 ~> pacmd list-sink-inputs
0 sink input(s) available.
```

--------------------

When I run this a2dp.py script and get the output above, the following are posted in syslog:

--------------------

```
Jun 3 13:10:19 n1 acpid: input device has been disconnected, fd 22
Jun 3 13:10:24 n1 bluetoothd[929]: a2dp-source profile connect failed for 50:F5:DA:A6:3F:EA: Device or resource busy
Jun 3 13:10:24 n1 kernel: [124613.035699] input: 50:F5:DA:A6:3F:EA as /devices/virtual/input/input26
Jun 3 13:10:27 n1 bluetoothd[929]: /org/bluez/hci0/dev_50_F5_DA_A6_3F_EA/fd14: fd(22) ready
```

--------------------
When I run "pactl list sinks", I see sinks #0 and #1 as the built-in headphone jack, and then the Amazon Echo as sink #15 in a suspended state:
--------------------

```
Sink #15
 State: SUSPENDED
 Name: bluez_sink.50_F5_DA_A6_3F_EA
 Description: Echo-JS6
 Driver: module-bluez5-device.c
 Sample Specification: s16le 2ch 44100Hz
 Channel Map: front-left,front-right
 Owner Module: 49
 Mute: Nein
 Volume: front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB
         balance 0,00
 Base Volume: 65536 / 100% / 0,00 dB
 Monitor Source: bluez_sink.50_F5_DA_A6_3F_EA.monitor
 Latency: 0 usec, configured 0 usec
 Flags: HARDWARE DECIBEL_VOLUME LATENCY
 Properties:
  bluetooth.protocol = "a2dp_sink"
  device.description = "Echo-JS6"
  device.string = "50:F5:DA:A6:3F:EA"
  device.api = "bluez"
  device.class = "sound"
  device.bus = "bluetooth"
  device.form_factor = "speaker"
  bluez.path = "/org/bluez/hci0/dev_50_F5_DA_A6_3F_EA"
  bluez.class = "0x0c0414"
  bluez.alias = "Echo-JS6"
  device.icon_name = "audio-speakers-bluetooth"
 Profile:
  speaker-output: Lautsprecher (priority: 0)
 Aktive Profile: speaker-output
 Formate:
  pcm
```

--------------------