Bluetooth: airpods do not reconnect correctly

Hi all!

I successfully connected two pairs of headphones to the raspberry pi 3: DALI IO-6 and airpods.
DALI IO-6 works just fine, incl. after reconnecting.
But airpods are not – after reconnecting there’s no sound and corresponding device in audio output device in Settings/System/Audio.

As I can see, the difference is in ServicesResolved status: after reconnecting the ServicesResolved: no.

DALI has no that ServicesResolved stuff at all.

To successfully reconnect airpods I’m doing the sequence as follows (in osmc GUI):

  1. go to ‘My OSMC/Network/Bluetooth’;
  2. choosing airpods in Paired Devices, pressing ‘Enter’, then choosing ‘Re-connect’;
  3. during few seconds taking out at least one headphone from the box;
  4. voila - all works fine: the airpods item is in the audio output device list in Settings/System/Audio.

Here’s my bluetoothctl output for:
i) reconnecting Dali (line 6);
ii) reconnecting airpods unsuccessfully when opening the case and taking out the headphone (lines 7&8 plus info shows ServicesResolved: no);
iii) reconnecting airpods successfully with the sequence described above (lines 9&10).

1 osmc@rpi3:~$ bluetoothctl
2 [NEW] Controller B8:27:EB:FF:7B:72 rpi3 [default]
3 [NEW] Device D0:C8:57:18:27:F2 DALI IO-6
4 [NEW] Device 34:88:5D:63:C0:97 Keyboard K380
5 [NEW] Device F4:AF:E7:53:AE:52 Oleksii Mykus’s AirPods
6 [CHG] Device D0:C8:57:18:27:F2 Connected: yes
7 [CHG] Device F4:AF:E7:53:AE:52 Connected: yes
8 [CHG] Device F4:AF:E7:53:AE:52 Connected: no
9 [CHG] Device F4:AF:E7:53:AE:52 Connected: yes
10 [CHG] Device F4:AF:E7:53:AE:52 ServicesResolved: yes

If I do ‘connect F4:AF:E7:53:AE:52’ in bluetoothctl, all works fine:
[Keyboard K380]# connect F4:AF:E7:53:AE:52
Attempting to connect to F4:AF:E7:53:AE:52
Connection successful
[CHG] Device F4:AF:E7:53:AE:52 ServicesResolved: yes
[Oleksii Mykus’s AirPods]#

Is there any way to get airpods reconnected without additional efforts just like Dali?

Thanks in advance!

You could try to remove it in bluethoothctl and then try again:

agent on
scan on
pair <address>
trust <address>
connect <address>
scan off
agent off
quit

Also did you try with a single bluetooth audio profile only (romiving the Dali) to ensure that is not where the problem comes from.

In fact, I tried Dali just to check if their behaviour is the same as AirPods. And I found out that they work as expected (and the same way they work on my Vero 4k).

I deleted everything except a BT keyboard and did as you asked – AirPods do not fully reconnect. By ‘fully’ I mean that they stop/start playback when I double-tap but there still no audio device…

Here’s an output of all performed actions:

osmc@rpi3:~$ bluetoothctl
[NEW] Controller B8:27:EB:FF:7B:72 rpi3 [default]
[NEW] Device 34:88:5D:63:C0:97 Keyboard K380
[Keyboard K380]# agent on
Agent registered
[Keyboard K380]# scan on
Discovery started
[CHG] Controller B8:27:EB:FF:7B:72 Discovering: yes
[NEW] Device 61:DB:95:F3:1B:86 61-DB-95-F3-1B-86
[NEW] Device 7F:85:85:51:A6:CF 7F-85-85-51-A6-CF
[CHG] Device 61:DB:95:F3:1B:86 RSSI: -92
[NEW] Device 10:48:B1:BB:5C:D5 MITV-B5CD5
[CHG] Device 61:DB:95:F3:1B:86 RSSI: -70
[CHG] Device 7F:85:85:51:A6:CF RSSI: -71
[CHG] Device 61:DB:95:F3:1B:86 RSSI: -92
[CHG] Device 7F:85:85:51:A6:CF RSSI: -92
[NEW] Device F4:AF:E7:53:AE:52 Oleksii Mykus’s AirPods
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Key: 0x004c
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x07
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x0f
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x00
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x0f
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x20
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0xf4
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0xaf
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0xe7
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x53
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0xae
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x52
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x35
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0xb6
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0xc8
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x05
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x08
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x00
[CHG] Device 61:DB:95:F3:1B:86 RSSI: -73
[CHG] Device 7F:85:85:51:A6:CF RSSI: -75
[Keyboard K380]# pair F4:AF:E7:53:AE:52
Attempting to pair with F4:AF:E7:53:AE:52
[CHG] Device F4:AF:E7:53:AE:52 Connected: yes
[CHG] Device F4:AF:E7:53:AE:52 Modalias: bluetooth:v004Cp200Fd611B
[CHG] Device F4:AF:E7:53:AE:52 UUIDs: 00001000-0000-1000-8000-00805f9b34fb
[CHG] Device F4:AF:E7:53:AE:52 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Device F4:AF:E7:53:AE:52 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device F4:AF:E7:53:AE:52 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device F4:AF:E7:53:AE:52 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device F4:AF:E7:53:AE:52 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device F4:AF:E7:53:AE:52 UUIDs: 74ec2172-0bad-4d01-8f77-997b2be0722a
[CHG] Device F4:AF:E7:53:AE:52 ServicesResolved: yes
[CHG] Device F4:AF:E7:53:AE:52 Paired: yes
Pairing successful
[CHG] Device F4:AF:E7:53:AE:52 ServicesResolved: no
[CHG] Device F4:AF:E7:53:AE:52 Connected: no
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Key: 0x004c
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x07
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x0f
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x00
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x0f
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x20
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0xf4
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0xaf
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0xe7
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x53
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0xae
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x52
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x35
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0xb6
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0xc8
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x05
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x01
[CHG] Device F4:AF:E7:53:AE:52 ManufacturerData Value: 0x00
[Keyboard K380]# trust F4:AF:E7:53:AE:52
[CHG] Device F4:AF:E7:53:AE:52 Trusted: yes
Changing F4:AF:E7:53:AE:52 trust succeeded
[CHG] Device F4:AF:E7:53:AE:52 RSSI: -61
[CHG] Device F4:AF:E7:53:AE:52 Modalias: bluetooth:v004Cp200Fd0100
[Keyboard K380]# scan off
[CHG] Device F4:AF:E7:53:AE:52 RSSI is nil
[CHG] Device 10:48:B1:BB:5C:D5 RSSI is nil
[CHG] Device 7F:85:85:51:A6:CF RSSI is nil
[CHG] Device 61:DB:95:F3:1B:86 RSSI is nil
[CHG] Controller B8:27:EB:FF:7B:72 Discovering: no
Discovery stopped
[Keyboard K380]# agent off
Agent unregistered
[CHG] Device F4:AF:E7:53:AE:52 Connected: yes
[CHG] Device F4:AF:E7:53:AE:52 UUIDs: 00001000-0000-1000-8000-00805f9b34fb
[CHG] Device F4:AF:E7:53:AE:52 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Device F4:AF:E7:53:AE:52 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device F4:AF:E7:53:AE:52 UUIDs: 0000110d-0000-1000-8000-00805f9b34fb
[CHG] Device F4:AF:E7:53:AE:52 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device F4:AF:E7:53:AE:52 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device F4:AF:E7:53:AE:52 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device F4:AF:E7:53:AE:52 UUIDs: 74ec2172-0bad-4d01-8f77-997b2be0722a
[Keyboard K380]# quit
[DEL] Controller B8:27:EB:FF:7B:72 rpi3 [default]
osmc@rpi3:~$
osmc@rpi3:~$
osmc@rpi3:~$ bluetoothctl
[NEW] Controller B8:27:EB:FF:7B:72 rpi3 [default]
[NEW] Device F4:AF:E7:53:AE:52 Oleksii Mykus’s AirPods
[NEW] Device 34:88:5D:63:C0:97 Keyboard K380
[Keyboard K380]# info F4:AF:E7:53:AE:52
Device F4:AF:E7:53:AE:52
Name: Oleksii Mykus’s AirPods
Alias: Oleksii Mykus’s AirPods
Class: 0x240418
Icon: audio-card
Paired: yes
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
UUID: Service Discovery Serve… (00001000-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: Advanced Audio Distribu… (0000110d-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: Vendor specific (74ec2172-0bad-4d01-8f77-997b2be0722a)
Modalias: bluetooth:v004Cp200Fd0100
ManufacturerData Key: 0x004c
ManufacturerData Value: 0x07
ManufacturerData Value: 0x0f
ManufacturerData Value: 0x00
ManufacturerData Value: 0x0f
ManufacturerData Value: 0x20
ManufacturerData Value: 0xf4
ManufacturerData Value: 0xaf
ManufacturerData Value: 0xe7
ManufacturerData Value: 0x53
ManufacturerData Value: 0xae
ManufacturerData Value: 0x52
ManufacturerData Value: 0x35
ManufacturerData Value: 0xb6
ManufacturerData Value: 0xc8
ManufacturerData Value: 0x05
ManufacturerData Value: 0x01
ManufacturerData Value: 0x00
[CHG] Device F4:AF:E7:53:AE:52 Connected: yes
[CHG] Device F4:AF:E7:53:AE:52 Connected: no
[CHG] Device F4:AF:E7:53:AE:52 Connected: yes
[Keyboard K380]# info F4:AF:E7:53:AE:52
Device F4:AF:E7:53:AE:52
Name: Oleksii Mykus’s AirPods
Alias: Oleksii Mykus’s AirPods
Class: 0x240418
Icon: audio-card
Paired: yes
Trusted: yes
Blocked: no
Connected: yes
LegacyPairing: no
UUID: Service Discovery Serve… (00001000-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: Advanced Audio Distribu… (0000110d-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: Vendor specific (74ec2172-0bad-4d01-8f77-997b2be0722a)
Modalias: bluetooth:v004Cp200Fd0100
ManufacturerData Key: 0x004c
ManufacturerData Value: 0x07
ManufacturerData Value: 0x0f
ManufacturerData Value: 0x00
ManufacturerData Value: 0x0f
ManufacturerData Value: 0x20
ManufacturerData Value: 0xf4
ManufacturerData Value: 0xaf
ManufacturerData Value: 0xe7
ManufacturerData Value: 0x53
ManufacturerData Value: 0xae
ManufacturerData Value: 0x52
ManufacturerData Value: 0x35
ManufacturerData Value: 0xb6
ManufacturerData Value: 0xc8
ManufacturerData Value: 0x05
ManufacturerData Value: 0x01
ManufacturerData Value: 0x00
[Keyboard K380]#

Will try to connect AirPods to Vero 4k today and post a result.