Giter VIP home page Giter VIP logo

bluez's Introduction

BlueZ - Bluetooth protocol stack for Linux
******************************************

Copyright (C) 2000-2001  Qualcomm Incorporated
Copyright (C) 2002-2003  Maxim Krasnyansky <[email protected]>
Copyright (C) 2002-2010  Marcel Holtmann <[email protected]>


Compilation and installation
============================

In order to compile Bluetooth utilities you need following software packages:
	- GCC compiler
	- GLib library
	- D-Bus library
	- udev library (optional)
	- readline (command line clients)

	On a debian based system, this can be done by running the following command:
		sudo apt-get build-dep bluez
		./bootstrap

To configure run:
	./configure --prefix=/usr --mandir=/usr/share/man \
				--sysconfdir=/etc --localstatedir=/var

Configure automatically searches for all required components and packages.

To compile and install run:
	make && make install


Embedded Linux library
======================

In order to compile mesh support and test client utility the development
version of Embedded Linux library is required to be present. The development
repositories can be found here:

	git://git.kernel.org/pub/scm/libs/ell/ell.git
	https://kernel.googlesource.com/pub/scm/libs/ell/ell.git

The build systems requires that the Embedded Linux library source code
is available on the same top level directory as the source code:

	.
	|--- ell
	|    |--- ell
	|    `--- unit
	`--- bluez
	     |--- src
	     `--- tools

It is not required to build or install Embedded Linux library. The build
will happen when building the binaries and it will then be linked internally.

When using --enable-external-ell build option, it is not required that the
Embedded Linux library source code is available in the top level directory.

When neither --enable-mesh nor --enable-btpclient is specified, then this
part is irrelevant and Embedded Linux library is not required.


Kernel Build Options (for Mesh)
===============================

The Mesh daemon uses kernel provided crypto utilities to perform security
functions required of Bluetooth Mesh. Many standard distributions currently
enable all required crypto features, but a few notable distributions do
not.

If Mesh Cryptography is not working, the following configuration options
may need to be enabled, and the kernel rebuilt.

1. A minimum of kernel version 4.9 or later is required

2. The kernel must at a minimum have the following .config options turned on:
	CONFIG_CRYPTO_USER
	CONFIG_CRYPTO_USER_API
	CONFIG_CRYPTO_USER_API_AEAD
	CONFIG_CRYPTO_USER_API_HASH
	CONFIG_CRYPTO_USER_API_SKCIPHER

	CONFIG_CRYPTO_AES
	CONFIG_CRYPTO_CCM
	CONFIG_CRYPTO_AEAD
	CONFIG_CRYPTO_CMAC


Configuration and options
=========================

For a working system, certain configuration options need to be enabled:

	--enable-library

		Enable installation of Bluetooth library

		By default the Bluetooth library is no longer installed.

		The user interfaces or command line utilities do not
		require an installed Bluetooth library anymore. This
		option is provided for legacy third party applications
		that still depend on the library.

		When the library installation is enabled, it is a good
		idea to use a separate bluez-library or libbluetooth
		package for it.

	--disable-tools

		Disable support for Bluetooth utilities

		By default the Bluetooth utilities are built and also
		installed. For production systems the tools are not
		needed and this option allows to disable them to save
		build time and disk space.

		When the tools are selected, it is a good idea to
		use a separate bluez-tools package for them.

	--disable-cups

		Disable support for CUPS printer backend

		By default the printer backend for CUPS is build and
		also installed. For systems that do not require printing
		over Bluetooth, this options allows to disable it.

		When the CUPS backend is selected, it is a good idea to
		use a separate bluez-cups package for it.

	--disable-monitor

		Disable support for the Bluetooth monitor utility

		By default the monitor utility is enabled. It provides
		support for HCI level tracing and debugging. For systems
		that don't require any kind of tracing or debugging
		capabilities, this options allows to disable it.

		The monitor utility should be placed in the main package
		along with the daemons. It is universally useful.

	--disable-client

		Disable support for the command line client

		By default the command line client is enabled and uses the
		readline library. For specific systems where BlueZ is
		configured by other means, the command line client can be
		disabled and the dependency on readline is removed.

		The client should be placed in the main package along
		with the daemons. It is universally useful.

	--disable-systemd

		Disable integration with systemd

		By default the integration with systemd is enabled and
		installed. This gives the best integration into all
		distributions based on systemd.

		This option is provided for distributions that do not
		support systemd. In that case all integration with the
		init system is up to the package.

	--disable-a2dp

		Disable A2DP profile

		By default bluetoothd supports A2DP profile using a built-in
		plugin, this option disables it.

		This option is provided for distributions that do not have any
		audio capabilities.

	--disable-avrcp

		Disable AVRCP profile

		By default bluetoothd supports AVRCP profile using a built-in
		plugin, this option disables it.

		This option is provided for distributions that do not have any
		audio capabilities.

	--disable-network

		Disable PANU, NAP, GN profiles

		By default bluetoothd supports PANU, NAP and GN profile using a
		built-in plugin, this option disables it.

		This option is provided for distributions that do not have any
		network capabilities.

	--disable-hid

		Disable HID profile

		By default bluetoothd supports HID profile using a built-in
		plugin, this option disables it.

		This option is provided for distributions that do not have any
		input capabilities.

	--disable-hog

		Disable HoG profile

		By default bluetoothd supports HoG profile using a built-in
		plugin, this option disables it.

		This option is provided for distributions that do not have any
		input capabilities.

	--enable-testing

		Enable testing tools

		By default tools used only for testing emulation are disabled.
		This option can be used to enable them.

		It is not recommended to enable this option for production
		systems. These tools may contain tests that depend on specific
		environment or kernel features in development.

	--enable-experimental

		Enable experimental tools

		By default all tools that are still in development
		are disabled. This option can be used to enable them.

		It is not recommended to enable this option for production
		systems. The behavior of the experimental tools is unstable
		and might still change.

	--enable-deprecated

		Enable deprecated tools

		By defauld all tools that are no longer maintained are
		disabled. This option can be used to enable them.

		It is not recommended to enable this option for production
		systems. The behavior of the deprecated tools may be unstable
		or simply don't work anymore.

	--enable-external-plugins

		Enable support for external plugins

		By default external plugins for bluetoothd and obexd are not
		supported and thus disabled.

		External plugins require access to internal, undocumented and
		unversioned API in said daemons. As such they can break at any
		time. If you have such plugins, enable this option and work
		actively with the community to make said plugin part of the
		upstream bluez project.

	--enable-nfc

		This option enable NFC pairing support.

		By default the integration with neard is disabled, this gives
		the option to enable it in system where neard is supported.

		The plugin is built into bluetoothd therefore it does not need
		to be package separately.

	--enable-sap

		This option enable SAP profile using sap plugin.

		By default sap plugin is disabled since it requires tight
		integration with systems and is very rarely required.

		The plugin is built into bluetoothd therefore it does not need
		to be package separately.

	--enable-health

		This option enable health profiles.

		By default health plugin is disabled since its profiles are
		target for the health industry.

		The plugin is built into bluetoothd therefore it does not need
		to be package separately.

	--enable-midi

		This option enable MIDI support via ALSA Sequencer.

		By default midi plugin is disabled since it still considered
		experimental. When bluetoothd will create a new ALSA Sequencer
		client and port for each device connected that supports the
		MIDI GATT primary service.

		The plugin is built into bluetoothd therefore it does not need
		to be package separately.

Information
===========

Mailing lists:
	[email protected]

For additional information about the project visit BlueZ web site:
	http://www.bluez.org

bluez's People

Contributors

apusaka avatar armansito avatar bgix avatar bharatpanda avatar bulislaw avatar eramoto avatar finikorg avatar gowthamab avatar hadess avatar holtmann avatar inga-s avatar iulia-tanasescu avatar izabela48 avatar jcaden avatar jhedberg avatar kolodgrz avatar lkslawek avatar lucasdemarchi avatar marcinkraglak avatar michallowasrzechonek-silvair avatar michalskir avatar pv avatar rveerama1 avatar sancane avatar sjanc avatar syamsidhardh avatar tedd-an avatar tyszkjak avatar vcgomes avatar vudentz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bluez's Issues

Sennheiser Momentum True Wireless 2 (MTW2) not setting the Player Settings bits and crashing

Sennheiser Momentum True Wireless 2 headset are paired correctly but crash after connection.

From the Bluetooth packet dump it looks like the problem happens after bluetoothd sends AVRCP ListPlayerApplicationSettingAttributes message to the headphones. The headphones send Not Implemented response and then reboot.

Versions:
bluez-5.54-1.fc32.x86_64
On Fedora 32

Same issues as reported here:
https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/881#note_493398
https://www.spinics.net/lists/linux-bluetooth/msg84920.html
https://bugzilla.kernel.org/show_bug.cgi?id=207625

I can connect the headphones if I disable AVRCP by adding --noplugin=avrcp to bluetoothd command line.

v5.1 card and 5.x headset connect over older non-LE protocol

This is going to be a poor issue I'm afraid, since my knowledge is limited in this area, but I'm happy to provide whatever you can tell me is missing (or it may not be an issue with bluez).

I upgraded from a v2.1 to v5.1 Bluetooth adapter largely because the audio quality in HSP/HFP mode was so poor (A2DP ok). However, it didn't seem to make any difference, and I was suspicious of the (low-seeming) ~16.6KB/s up and down (~41KB/s up, 370B/s down in A2DP) reported in blueman.

btmon shows an LE Extended Advertising Report with Primary PHY: LE 1M (# 18) but then a non-LE connection (# 34):

btmon output (details dropdown)
> HCI Event: LE Meta Event (0x3e) plen 55                  #18 [hci0] 19.772247
      LE Extended Advertising Report (0x0d)
        Num reports: 1
        Entry 0
          Event type: 0x001b
            Props: 0x001b
              Connectable
              Scannable
              Scan response
              Use legacy advertising PDUs
            Data status: �[0;32mComplete�[0m
          Legacy PDU Type: SCAN_RSP to an ADV_SCAN_IND (0x001b)
          Address type: Public (0x00)
          Address: 64:1C:AE:04:7D:6D (Samsung Electronics Co.,Ltd)
          Primary PHY: LE 1M
          Secondary PHY: No packets
          SID: no ADI field (0xff)
          TX power: 127 dBm
          RSSI: -73 dBm (0xb7)
          Periodic advertising invteral: 0.00 msec (0x0000)
          Direct address type: Public (0x00)
          Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
          Data length: 0x1d
        1c 08 5b 54 56 5d 20 53 61 6d 73 75 6e 67 20 51  ..[TV] Samsung Q
        36 20 53 65 72 69 65 73 20 28 34 39 29           6 Series (49)   
@ MGMT Event: Device Found (0x0012) plen 74           {0x0001} [hci0] 19.772274
        LE Address: 64:1C:AE:04:7D:6D (Samsung Electronics Co.,Ltd)
        RSSI: -73 dBm (0xb7)
        Flags: 0x00000000
        Data length: 60
        Flags: 0x1a
          LE General Discoverable Mode
          Simultaneous LE and BR/EDR (Controller)
          Simultaneous LE and BR/EDR (Host)
        Company: Samsung Electronics Co. Ltd. (117)
          Data: 420401016f641cae047d6d661cae047d6c0bca0000000000
        Name (short): [TV] Samsung Q6 Series (49)
@ RAW Open: blueman-manager version 2.22                     {0x0002} 19.838483
@ RAW Close: blueman-manager                                 {0x0002} 19.838490
> HCI Event: LE Meta Event (0x3e) plen 43                  #19 [hci0] 19.970309
      LE Extended Advertising Report (0x0d)
        Num reports: 1
        Entry 0
          Event type: 0x0013
            Props: 0x0013
              Connectable
              Scannable
              Use legacy advertising PDUs
            Data status: �[0;32mComplete�[0m
          Legacy PDU Type: ADV_IND (0x0013)
          Address type: Random (0x01)
          Address: 73:CA:5D:70:5A:0D (Resolvable)
          Primary PHY: LE 1M
          Secondary PHY: No packets
          SID: no ADI field (0xff)
          TX power: 127 dBm
          RSSI: -85 dBm (0xab)
          Periodic advertising invteral: 0.00 msec (0x0000)
          Direct address type: Public (0x00)
          Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
          Data length: 0x11
        02 01 1a 02 0a 08 0a ff 4c 00 10 05 61 1c ca 67  ........L...a..g
        57                                               W               
> HCI Event: LE Meta Event (0x3e) plen 26                  #20 [hci0] 19.971308
      LE Extended Advertising Report (0x0d)
        Num reports: 1
        Entry 0
          Event type: 0x001b
            Props: 0x001b
              Connectable
              Scannable
              Scan response
              Use legacy advertising PDUs
            Data status: �[0;32mComplete�[0m
          Legacy PDU Type: SCAN_RSP to an ADV_SCAN_IND (0x001b)
          Address type: Random (0x01)
          Address: 73:CA:5D:70:5A:0D (Resolvable)
          Primary PHY: LE 1M
          Secondary PHY: No packets
          SID: no ADI field (0xff)
          TX power: 127 dBm
          RSSI: -86 dBm (0xaa)
          Periodic advertising invteral: 0.00 msec (0x0000)
          Direct address type: Public (0x00)
          Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
          Data length: 0x00
@ MGMT Event: Device Found (0x0012) plen 31           {0x0001} [hci0] 19.971340
        LE Address: 73:CA:5D:70:5A:0D (Resolvable)
        RSSI: -86 dBm (0xaa)
        Flags: 0x00000000
        Data length: 17
        Flags: 0x1a
          LE General Discoverable Mode
          Simultaneous LE and BR/EDR (Controller)
          Simultaneous LE and BR/EDR (Host)
        TX power: 8 dBm
        Company: Apple, Inc. (76)
          Type: Unknown (16)
          Data: 611cca6757
> HCI Event: Extended Inquiry Result (0x2f) plen 255       #21 [hci0] 20.025208
        Num responses: 1
        Address: 64:1C:AE:04:7D:6D (Samsung Electronics Co.,Ltd)
        Page scan repetition mode: R1 (0x01)
        Page period mode: P0 (0x00)
        Class: 0x0c043c
          Major class: Audio/Video (headset, speaker, stereo, video, vcr)
          Minor class: Video Display and Loudspeaker
          Rendering (Printing, Speaker)
          Capturing (Scanner, Microphone)
        Clock offset: 0x19f6
        RSSI: -86 dBm (0xaa)
        Device ID: Bluetooth SIG assigned (0x0001)
          Vendor: STABILO International (1256)
          Product: 0x8080
          Version: 0.0.0 (0x0000)
        Name (complete): [TV] Samsung Q6 Series (49)
        16-bit Service UUIDs (complete): 5 entries
          Audio Source (0x110a)
          Audio Sink (0x110b)
          A/V Remote Control Target (0x110c)
          A/V Remote Control (0x110e)
          PnP Information (0x1200)
        Company: Qualcomm (29)
          Data: 00014c
@ MGMT Event: Device Found (0x0012) plen 81           {0x0001} [hci0] 20.025223
        BR/EDR Address: 64:1C:AE:04:7D:6D (Samsung Electronics Co.,Ltd)
        RSSI: -86 dBm (0xaa)
        Flags: 0x00000000
        Data length: 67
        Device ID: Bluetooth SIG assigned (0x0001)
          Vendor: STABILO International (1256)
          Product: 0x8080
          Version: 0.0.0 (0x0000)
        Name (complete): [TV] Samsung Q6 Series (49)
        16-bit Service UUIDs (complete): 5 entries
          Audio Source (0x110a)
          Audio Sink (0x110b)
          A/V Remote Control Target (0x110c)
          A/V Remote Control (0x110e)
          PnP Information (0x1200)
        Company: Qualcomm (29)
          Data: 00014c
        Class: 0x0c043c
          Major class: Audio/Video (headset, speaker, stereo, video, vcr)
          Minor class: Video Display and Loudspeaker
          Rendering (Printing, Speaker)
          Capturing (Scanner, Microphone)
@ RAW Open: blueman-manager version 2.22                     {0x0002} 20.838806
@ RAW Close: blueman-manager                                 {0x0002} 20.838828
> HCI Event: LE Meta Event (0x3e) plen 57                  #22 [hci0] 20.990286
      LE Extended Advertising Report (0x0d)
        Num reports: 1
        Entry 0
          Event type: 0x0010
            Props: 0x0010
              Use legacy advertising PDUs
            Data status: �[0;32mComplete�[0m
          Legacy PDU Type: ADV_NONCONN_IND (0x0010)
          Address type: Random (0x01)
          Address: 21:74:80:01:6E:31 (Non-Resolvable)
          Primary PHY: LE 1M
          Secondary PHY: No packets
          SID: no ADI field (0xff)
          TX power: 127 dBm
          RSSI: -72 dBm (0xb8)
          Periodic advertising invteral: 0.00 msec (0x0000)
          Direct address type: Public (0x00)
          Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
          Data length: 0x1f
        02 01 1a 03 03 6f fd 17 16 6f fd d2 50 c7 61 f3  .....o...o..P.a.
        3e 93 55 88 a4 8b 70 ea 1e 6d a0 eb 4f 23 69     >.U...p..m..O#i 
@ MGMT Event: Device Found (0x0012) plen 45           {0x0001} [hci0] 20.990328
        LE Address: 21:74:80:01:6E:31 (Non-Resolvable)
        RSSI: -72 dBm (0xb8)
        Flags: 0x00000004
          Not Connectable
        Data length: 31
        Flags: 0x1a
          LE General Discoverable Mode
          Simultaneous LE and BR/EDR (Controller)
          Simultaneous LE and BR/EDR (Host)
        16-bit Service UUIDs (complete): 1 entry
          Apple, Inc. (0xfd6f)
        Service Data (UUID 0xfd6f): d250c761f33e935588a48b70ea1e6da0eb4f2369
@ RAW Open: blueman-manager version 2.22                     {0x0002} 21.839886
@ RAW Close: blueman-manager                                 {0x0002} 21.839909
> HCI Event: LE Meta Event (0x3e) plen 54                  #23 [hci0] 22.168253
      LE Extended Advertising Report (0x0d)
        Num reports: 1
        Entry 0
          Event type: 0x0010
            Props: 0x0010
              Use legacy advertising PDUs
            Data status: �[0;32mComplete�[0m
          Legacy PDU Type: ADV_NONCONN_IND (0x0010)
          Address type: Public (0x00)
          Address: 00:7C:2D:E2:E9:F1 (Samsung Electronics Co.,Ltd)
          Primary PHY: LE 1M
          Secondary PHY: No packets
          SID: no ADI field (0xff)
          TX power: 127 dBm
          RSSI: -96 dBm (0xa0)
          Periodic advertising invteral: 0.00 msec (0x0000)
          Direct address type: Public (0x00)
          Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
          Data length: 0x1c
        1b ff 75 00 42 04 01 80 60 00 7c 2d e2 e9 f1 02  ..u.B...`.|-....
        7c 2d e2 e9 f0 01 00 00 00 00 00 00              |-..........    
@ MGMT Event: Device Found (0x0012) plen 42           {0x0001} [hci0] 22.168307
        LE Address: 00:7C:2D:E2:E9:F1 (Samsung Electronics Co.,Ltd)
        RSSI: -96 dBm (0xa0)
        Flags: 0x00000004
          Not Connectable
        Data length: 28
        Company: Samsung Electronics Co. Ltd. (117)
          Data: 4204018060007c2de2e9f1027c2de2e9f001000000000000
> HCI Event: LE Meta Event (0x3e) plen 44                  #24 [hci0] 22.320251
      LE Extended Advertising Report (0x0d)
        Num reports: 1
        Entry 0
          Event type: 0x0013
            Props: 0x0013
              Connectable
              Scannable
              Use legacy advertising PDUs
            Data status: �[0;32mComplete�[0m
          Legacy PDU Type: ADV_IND (0x0013)
          Address type: Random (0x01)
          Address: 7B:A2:7C:31:F7:69 (Resolvable)
          Primary PHY: LE 1M
          Secondary PHY: No packets
          SID: no ADI field (0xff)
          TX power: 127 dBm
          RSSI: -77 dBm (0xb3)
          Periodic advertising invteral: 0.00 msec (0x0000)
          Direct address type: Public (0x00)
          Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
          Data length: 0x12
        02 01 1a 02 0a 0c 0b ff 4c 00 10 06 41 1e 13 64  ........L...A..d
        1e 6e                                            .n              
> HCI Event: LE Meta Event (0x3e) plen 26                  #25 [hci0] 22.321268
      LE Extended Advertising Report (0x0d)
        Num reports: 1
        Entry 0
          Event type: 0x001b
            Props: 0x001b
              Connectable
              Scannable
              Scan response
              Use legacy advertising PDUs
            Data status: �[0;32mComplete�[0m
          Legacy PDU Type: SCAN_RSP to an ADV_SCAN_IND (0x001b)
          Address type: Random (0x01)
          Address: 7B:A2:7C:31:F7:69 (Resolvable)
          Primary PHY: LE 1M
          Secondary PHY: No packets
          SID: no ADI field (0xff)
          TX power: 127 dBm
          RSSI: -77 dBm (0xb3)
          Periodic advertising invteral: 0.00 msec (0x0000)
          Direct address type: Public (0x00)
          Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
          Data length: 0x00
@ MGMT Event: Device Found (0x0012) plen 32           {0x0001} [hci0] 22.321347
        LE Address: 7B:A2:7C:31:F7:69 (Resolvable)
        RSSI: -77 dBm (0xb3)
        Flags: 0x00000000
        Data length: 18
        Flags: 0x1a
          LE General Discoverable Mode
          Simultaneous LE and BR/EDR (Controller)
          Simultaneous LE and BR/EDR (Host)
        TX power: 12 dBm
        Company: Apple, Inc. (76)
          Type: Unknown (16)
          Data: 411e13641e6e
> HCI Event: LE Meta Event (0x3e) plen 54                  #26 [hci0] 22.422254
      LE Extended Advertising Report (0x0d)
        Num reports: 1
        Entry 0
          Event type: 0x0012
            Props: 0x0012
              Scannable
              Use legacy advertising PDUs
            Data status: �[0;32mComplete�[0m
          Legacy PDU Type: ADV_SCAN_IND (0x0012)
          Address type: Random (0x01)
          Address: 6C:AC:AC:F6:06:36 (Resolvable)
          Primary PHY: LE 1M
          Secondary PHY: No packets
          SID: no ADI field (0xff)
          TX power: 127 dBm
          RSSI: -71 dBm (0xb9)
          Periodic advertising invteral: 0.00 msec (0x0000)
          Direct address type: Public (0x00)
          Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
          Data length: 0x1c
        03 03 9f fe 17 16 9f fe 00 00 00 00 00 00 00 00  ................
        00 00 00 00 00 00 00 00 00 00 00 00              ............    
> HCI Event: LE Meta Event (0x3e) plen 36                  #27 [hci0] 22.423251
      LE Extended Advertising Report (0x0d)
        Num reports: 1
        Entry 0
          Event type: 0x001a
            Props: 0x001a
              Scannable
              Scan response
              Use legacy advertising PDUs
            Data status: �[0;32mComplete�[0m
          Legacy PDU Type: SCAN_RSP to an ADV_IND (0x001a)
          Address type: Random (0x01)
          Address: 6C:AC:AC:F6:06:36 (Resolvable)
          Primary PHY: LE 1M
          Secondary PHY: No packets
          SID: no ADI field (0xff)
          TX power: 127 dBm
          RSSI: -71 dBm (0xb9)
          Periodic advertising invteral: 0.00 msec (0x0000)
          Direct address type: Public (0x00)
          Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
          Data length: 0x0a
        09 ff e0 00 01 69 ca 5c d8 a9                    .....i.\..      
@ MGMT Event: Device Found (0x0012) plen 52           {0x0001} [hci0] 22.423287
        LE Address: 6C:AC:AC:F6:06:36 (Resolvable)
        RSSI: -71 dBm (0xb9)
        Flags: 0x00000004
          Not Connectable
        Data length: 38
        16-bit Service UUIDs (complete): 1 entry
          Google (0xfe9f)
        Service Data (UUID 0xfe9f): 0000000000000000000000000000000000000000
        Company: Google (224)
          Data: 0169ca5cd8a9
> HCI Event: Extended Inquiry Result (0x2f) plen 255       #28 [hci0] 22.473242
        Num responses: 1
        Address: 00:25:BB:06:6D:62 (INNERINT Co., Ltd.)
        Page scan repetition mode: R1 (0x01)
        Page period mode: P0 (0x00)
        Class: 0x240418
          Major class: Audio/Video (headset, speaker, stereo, video, vcr)
          Minor class: Headphones
          Rendering (Printing, Speaker)
          Audio (Speaker, Microphone, Headset)
        Clock offset: 0x70c1
        RSSI: -59 dBm (0xc5)
        Device ID: Bluetooth SIG assigned (0x0001)
          Vendor: Cambridge Silicon Radio (10)
          Product: 0xffff
          Version: 255.15.15 (0xffff)
        TX power: 4 dBm
        16-bit Service UUIDs (partial): 7 entries
          Advanced Audio Distribution (0x110d)
          Audio Sink (0x110b)
          A/V Remote Control (0x110e)
          A/V Remote Control Controller (0x110f)
          Handsfree (0x111e)
          Headset (0x1108)
          Headset HS (0x1131)
        Name (complete): TAOTRONICS SoundElite 72
@ MGMT Event: Device Found (0x0012) plen 74           {0x0001} [hci0] 22.473317
        BR/EDR Address: 00:25:BB:06:6D:62 (INNERINT Co., Ltd.)
        RSSI: -59 dBm (0xc5)
        Flags: 0x00000000
        Data length: 60
        Device ID: Bluetooth SIG assigned (0x0001)
          Vendor: Cambridge Silicon Radio (10)
          Product: 0xffff
          Version: 255.15.15 (0xffff)
        TX power: 4 dBm
        16-bit Service UUIDs (partial): 7 entries
          Advanced Audio Distribution (0x110d)
          Audio Sink (0x110b)
          A/V Remote Control (0x110e)
          A/V Remote Control Controller (0x110f)
          Handsfree (0x111e)
          Headset (0x1108)
          Headset HS (0x1131)
        Name (complete): TAOTRONICS SoundElite 72
        Class: 0x240418
          Major class: Audio/Video (headset, speaker, stereo, video, vcr)
          Minor class: Headphones
          Rendering (Printing, Speaker)
          Audio (Speaker, Microphone, Headset)
> HCI Event: LE Meta Event (0x3e) plen 56                  #29 [hci0] 22.610252
      LE Extended Advertising Report (0x0d)
        Num reports: 1
        Entry 0
          Event type: 0x0013
            Props: 0x0013
              Connectable
              Scannable
              Use legacy advertising PDUs
            Data status: �[0;32mComplete�[0m
          Legacy PDU Type: ADV_IND (0x0013)
          Address type: Random (0x01)
          Address: 4E:E9:D4:CD:76:52 (Resolvable)
          Primary PHY: LE 1M
          Secondary PHY: No packets
          SID: no ADI field (0xff)
          TX power: 127 dBm
          RSSI: -93 dBm (0xa3)
          Periodic advertising invteral: 0.00 msec (0x0000)
          Direct address type: Public (0x00)
          Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
          Data length: 0x1e
        02 01 02 13 ff ff ff 63 64 35 30 35 64 30 61 64  .......cd505d0ad
        64 33 64 65 61 33 30 02 0a f1 03 03 56 34        d3dea30.....V4  
> HCI Event: LE Meta Event (0x3e) plen 34                  #30 [hci0] 22.611235
      LE Extended Advertising Report (0x0d)
        Num reports: 1
        Entry 0
          Event type: 0x001b
            Props: 0x001b
              Connectable
              Scannable
              Scan response
              Use legacy advertising PDUs
            Data status: �[0;32mComplete�[0m
          Legacy PDU Type: SCAN_RSP to an ADV_SCAN_IND (0x001b)
          Address type: Random (0x01)
          Address: 4E:E9:D4:CD:76:52 (Resolvable)
          Primary PHY: LE 1M
          Secondary PHY: No packets
          SID: no ADI field (0xff)
          TX power: 127 dBm
          RSSI: -94 dBm (0xa2)
          Periodic advertising invteral: 0.00 msec (0x0000)
          Direct address type: Public (0x00)
          Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
          Data length: 0x08
        07 09 53 48 49 45 4c 44                          ..SHIELD        
@ MGMT Event: Device Found (0x0012) plen 52           {0x0001} [hci0] 22.611264
        LE Address: 4E:E9:D4:CD:76:52 (Resolvable)
        RSSI: -94 dBm (0xa2)
        Flags: 0x00000000
        Data length: 38
        Flags: 0x02
          LE General Discoverable Mode
        Company: internal use (65535)
          Data: 63643530356430616464336465613330
        TX power: -15 dBm
        16-bit Service UUIDs (complete): 1 entry
          Unknown (0x3456)
        Name (complete): SHIELD
@ RAW Open: blueman-manager version 2.22                     {0x0002} 22.840784
@ RAW Close: blueman-manager                                 {0x0002} 22.840806
> HCI Event: LE Meta Event (0x3e) plen 44                  #31 [hci0] 23.103250
      LE Extended Advertising Report (0x0d)
        Num reports: 1
        Entry 0
          Event type: 0x0013
            Props: 0x0013
              Connectable
              Scannable
              Use legacy advertising PDUs
            Data status: �[0;32mComplete�[0m
          Legacy PDU Type: ADV_IND (0x0013)
          Address type: Random (0x01)
          Address: 62:06:CB:32:EC:15 (Resolvable)
          Primary PHY: LE 1M
          Secondary PHY: No packets
          SID: no ADI field (0xff)
          TX power: 127 dBm
          RSSI: -84 dBm (0xac)
          Periodic advertising invteral: 0.00 msec (0x0000)
          Direct address type: Public (0x00)
          Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
          Data length: 0x12
        02 01 1a 02 0a 0c 0b ff 4c 00 10 06 46 1e 16 df  ........L...F...
        8a 70                                            .p              
> HCI Event: LE Meta Event (0x3e) plen 26                  #32 [hci0] 23.104231
      LE Extended Advertising Report (0x0d)
        Num reports: 1
        Entry 0
          Event type: 0x001b
            Props: 0x001b
              Connectable
              Scannable
              Scan response
              Use legacy advertising PDUs
            Data status: �[0;32mComplete�[0m
          Legacy PDU Type: SCAN_RSP to an ADV_SCAN_IND (0x001b)
          Address type: Random (0x01)
          Address: 62:06:CB:32:EC:15 (Resolvable)
          Primary PHY: LE 1M
          Secondary PHY: No packets
          SID: no ADI field (0xff)
          TX power: 127 dBm
          RSSI: -83 dBm (0xad)
          Periodic advertising invteral: 0.00 msec (0x0000)
          Direct address type: Public (0x00)
          Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
          Data length: 0x00
@ MGMT Event: Device Found (0x0012) plen 32           {0x0001} [hci0] 23.104269
        LE Address: 62:06:CB:32:EC:15 (Resolvable)
        RSSI: -83 dBm (0xad)
        Flags: 0x00000000
        Data length: 18
        Flags: 0x1a
          LE General Discoverable Mode
          Simultaneous LE and BR/EDR (Controller)
          Simultaneous LE and BR/EDR (Host)
        TX power: 12 dBm
        Company: Apple, Inc. (76)
          Type: Unknown (16)
          Data: 461e16df8a70
> HCI Event: LE Meta Event (0x3e) plen 57                  #33 [hci0] 23.108257
      LE Extended Advertising Report (0x0d)
        Num reports: 1
        Entry 0
          Event type: 0x0010
            Props: 0x0010
              Use legacy advertising PDUs
            Data status: �[0;32mComplete�[0m
          Legacy PDU Type: ADV_NONCONN_IND (0x0010)
          Address type: Random (0x01)
          Address: 38:90:97:52:49:1D (Non-Resolvable)
          Primary PHY: LE 1M
          Secondary PHY: No packets
          SID: no ADI field (0xff)
          TX power: 127 dBm
          RSSI: -83 dBm (0xad)
          Periodic advertising invteral: 0.00 msec (0x0000)
          Direct address type: Public (0x00)
          Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
          Data length: 0x1f
        02 01 1a 03 03 6f fd 17 16 6f fd a8 f4 78 44 94  .....o...o...xD.
        a0 42 c5 09 04 c9 b6 f8 d4 4d 67 ae 16 00 ff     .B.......Mg.... 
@ MGMT Event: Device Found (0x0012) plen 45           {0x0001} [hci0] 23.108324
        LE Address: 38:90:97:52:49:1D (Non-Resolvable)
        RSSI: -83 dBm (0xad)
        Flags: 0x00000004
          Not Connectable
        Data length: 31
        Flags: 0x1a
          LE General Discoverable Mode
          Simultaneous LE and BR/EDR (Controller)
          Simultaneous LE and BR/EDR (Host)
        16-bit Service UUIDs (complete): 1 entry
          Apple, Inc. (0xfd6f)
        Service Data (UUID 0xfd6f): a8f4784494a042c50904c9b6f8d44d67ae1600ff
> HCI Event: LE Meta Event (0x3e) plen 57                  #34 [hci0] 23.176254
      LE Extended Advertising Report (0x0d)
        Num reports: 1
        Entry 0
          Event type: 0x0010
            Props: 0x0010
              Use legacy advertising PDUs
            Data status: �[0;32mComplete�[0m
          Legacy PDU Type: ADV_NONCONN_IND (0x0010)
          Address type: Random (0x01)
          Address: 15:E9:10:B9:96:3C (Non-Resolvable)
          Primary PHY: LE 1M
          Secondary PHY: No packets
          SID: no ADI field (0xff)
          TX power: 127 dBm
          RSSI: -90 dBm (0xa6)
          Periodic advertising invteral: 0.00 msec (0x0000)
          Direct address type: Public (0x00)
          Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
          Data length: 0x1f
        1e ff 06 00 01 09 20 02 90 f0 98 f7 32 05 b4 a2  ...... .....2...
        83 8f b1 5f fe 05 9e 63 ad 89 00 6b eb 32 0d     ..._...c...k.2. 

Apologies again if this is not a bluez issue, but I would appreciate even a redirection!

HoG profile accept failed if non-encrypted/paired mode

I'm developing a HoG device and since I wanted to try connection without pairing/encryption I disabled LEAutoSecurity. However, when doing this the hog profile is not accepted for my device according to bluetoothd log. You can see the log here:

Oct  8 15:15:35 pop-os bluetoothd[50800]: src/adapter.c:connected_callback() hci0 device AA:AA:AA:AA:AA:AA connected eir_len 22
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/gatt-database.c:connect_cb() New incoming LE ATT connection
Oct  8 15:15:35 pop-os bluetoothd[50800]: attrib/gattrib.c:g_attrib_ref() 0x55a0e9e92210: g_attrib_ref=1 
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/device.c:load_gatt_db() Restoring AA:AA:AA:AA:AA:AA gatt database from file
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/device.c:load_service() loading service: 0x0001, end: 0x0005, uuid: 00001800-0000-1000-8000-00805f9b34fb
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/device.c:load_service() loading service: 0x0006, end: 0x0008, uuid: 0000180a-0000-1000-8000-00805f9b34fb
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/device.c:load_service() loading service: 0x0009, end: 0x0013, uuid: 00001812-0000-1000-8000-00805f9b34fb
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/device.c:load_service() loading service: 0x0014, end: 0x0017, uuid: 0000180f-0000-1000-8000-00805f9b34fb
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/device.c:load_service() loading service: 0x0018, end: 0xffff, uuid: 00001801-0000-1000-8000-00805f9b34fb
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/device.c:load_chrc() loading characteristic handle: 0x0002, value handle: 0x0003, properties 0x0002 value:  uuid: 00002a00-0000-1000-8000-00805f9b34fb
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/device.c:load_chrc() loading characteristic handle: 0x0004, value handle: 0x0005, properties 0x0002 value:  uuid: 00002a01-0000-1000-8000-00805f9b34fb
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/device.c:load_chrc() loading characteristic handle: 0x0007, value handle: 0x0008, properties 0x0002 value:  uuid: 00002a24-0000-1000-8000-00805f9b34fb
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/device.c:load_chrc() loading characteristic handle: 0x000a, value handle: 0x000b, properties 0x0012 value:  uuid: 00002a4d-0000-1000-8000-00805f9b34fb
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/device.c:load_desc() loading descriptor handle: 0x000c, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/device.c:load_desc() loading descriptor handle: 0x000d, value: 0x0000, value uuid: 00002908-0000-1000-8000-00805f9b34fb
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/device.c:load_chrc() loading characteristic handle: 0x000e, value handle: 0x000f, properties 0x0002 value:  uuid: 00002a4b-0000-1000-8000-00805f9b34fb
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/device.c:load_chrc() loading characteristic handle: 0x0010, value handle: 0x0011, properties 0x0002 value:  uuid: 00002a4a-0000-1000-8000-00805f9b34fb
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/device.c:load_chrc() loading characteristic handle: 0x0012, value handle: 0x0013, properties 0x0004 value:  uuid: 00002a4c-0000-1000-8000-00805f9b34fb
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/device.c:load_chrc() loading characteristic handle: 0x0015, value handle: 0x0016, properties 0x0012 value:  uuid: 00002a19-0000-1000-8000-00805f9b34fb
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/device.c:load_desc() loading descriptor handle: 0x0017, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/device.c:load_chrc() loading characteristic handle: 0x0019, value handle: 0x001a, properties 0x0020 value:  uuid: 00002a05-0000-1000-8000-00805f9b34fb
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/device.c:load_desc() loading descriptor handle: 0x001b, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb
Oct  8 15:15:35 pop-os bluetoothd[50800]: profiles/battery/battery.c:batt_accept() BATT profile accept (AA:AA:AA:AA:AA:AA)
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/service.c:change_state() 0x55a0e9e9c9f0: device AA:AA:AA:AA:AA:AA profile batt-profile state changed: disconnected -> connected (0)
Oct  8 15:15:35 pop-os bluetoothd[50800]: profiles/deviceinfo/deviceinfo.c:deviceinfo_accept() deviceinfo profile accept (AA:AA:AA:AA:AA:AA)
Oct  8 15:15:35 pop-os bluetoothd[50800]: profiles/deviceinfo/deviceinfo.c:handle_characteristic() Unsupported characteristic: 00002a24-0000-1000-8000-00805f9b34fb
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/service.c:change_state() 0x55a0e9e9f950: device AA:AA:AA:AA:AA:AA profile deviceinfo state changed: disconnected -> connected (0)
Oct  8 15:15:35 pop-os bluetoothd[50800]: profiles/gap/gas.c:gap_accept() GAP profile accept (AA:AA:AA:AA:AA:AA)
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/service.c:change_state() 0x55a0e9e9ac80: device AA:AA:AA:AA:AA:AA profile gap-profile state changed: disconnected -> connected (0)
Oct  8 15:15:35 pop-os bluetoothd[50800]: profiles/input/hog.c:hog_device_accept() name=thumbmouse vendor=0x0, product=0x0, version=0x0
Oct  8 15:15:35 pop-os bluetoothd[50800]: input-hog profile accept failed for AA:AA:AA:AA:AA:AA
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/gatt-client.c:btd_gatt_client_connected() Device connected.
Oct  8 15:15:35 pop-os bluetoothd[50800]: src/device.c:gatt_debug() MTU exchange complete, with MTU: 256
Oct  8 15:15:35 pop-os bluetoothd[50800]: profiles/gap/gas.c:read_device_name_cb() GAP Device Name: thumbmouse
Oct  8 15:15:35 pop-os bluetoothd[50800]: profiles/gap/gas.c:read_appearance_cb() GAP Appearance: 0x03c0
Oct  8 15:15:36 pop-os bluetoothd[50800]: src/device.c:gatt_debug() Primary services found: 5
Oct  8 15:15:36 pop-os bluetoothd[50800]: src/device.c:gatt_debug() start: 0x0001, end: 0x0005, uuid: 00001800-0000-1000-8000-00805f9b34fb
Oct  8 15:15:36 pop-os bluetoothd[50800]: src/device.c:gatt_debug() start: 0x0006, end: 0x0008, uuid: 0000180a-0000-1000-8000-00805f9b34fb
Oct  8 15:15:36 pop-os bluetoothd[50800]: src/device.c:gatt_debug() start: 0x0009, end: 0x0013, uuid: 00001812-0000-1000-8000-00805f9b34fb
Oct  8 15:15:36 pop-os bluetoothd[50800]: src/device.c:gatt_debug() start: 0x0014, end: 0x0017, uuid: 0000180f-0000-1000-8000-00805f9b34fb
Oct  8 15:15:36 pop-os bluetoothd[50800]: src/device.c:gatt_debug() start: 0x0018, end: 0xffff, uuid: 00001801-0000-1000-8000-00805f9b34fb
Oct  8 15:15:36 pop-os bluetoothd[50800]: src/device.c:gatt_client_ready_cb() status: success, error: 0
Oct  8 15:15:36 pop-os bluetoothd[50800]: input-hog profile accept failed for AA:AA:AA:AA:AA:AA
Oct  8 15:15:36 pop-os bluetoothd[50800]: src/gatt-client.c:btd_gatt_client_ready() GATT client ready
Oct  8 15:15:36 pop-os bluetoothd[50800]: src/gatt-client.c:create_services() Exporting objects for GATT services: AA:AA:AA:AA:AA:AA
Oct  8 15:15:36 pop-os bluetoothd[50800]: src/gatt-client.c:service_create() Exported GATT service: /org/bluez/hci0/dev_AA_AA_AA_AA_AA_AA/service0006
Oct  8 15:15:36 pop-os bluetoothd[50800]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_AA_AA_AA_AA_AA_AA/service0006/char0007
Oct  8 15:15:36 pop-os bluetoothd[50800]: src/gatt-client.c:service_create() Exported GATT service: /org/bluez/hci0/dev_AA_AA_AA_AA_AA_AA/service0018
Oct  8 15:15:36 pop-os bluetoothd[50800]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_AA_AA_AA_AA_AA_AA/service0018/char0019
Oct  8 15:15:36 pop-os bluetoothd[50800]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_AA_AA_AA_AA_AA_AA/service0018/char0019/desc001b
Oct  8 15:15:36 pop-os bluetoothd[50800]: src/device.c:device_svc_resolved() /org/bluez/hci0/dev_AA_AA_AA_AA_AA_AA err 0
Oct  8 15:15:36 pop-os bluetoothd[50800]: profiles/battery/battery.c:parse_battery_level() Battery Level updated: 15%
Oct  8 15:15:36 pop-os bluetoothd[50800]: profiles/battery/battery.c:batt_io_ccc_written_cb() Battery Level: notification enabled
Oct  8 15:15:36 pop-os bluetoothd[50800]: src/device.c:gatt_debug() Registered handler for "Service Changed": 1
Oct  8 15:22:34 pop-os bluetoothd[50800]: Terminating
Oct  8 15:22:34 pop-os bluetoothd[50800]: src/adapter.c:adapter_shutdown() 
Oct  8 15:22:34 pop-os bluetoothd[50800]: src/adapter.c:set_mode() sending set mode command for index 0
Oct  8 15:22:34 pop-os bluetoothd[50800]: src/adapter.c:dev_disconnected() Device AA:AA:AA:AA:AA:AA disconnected, reason 2
Oct  8 15:22:34 pop-os bluetoothd[50800]: src/adapter.c:adapter_remove_connection() 
Oct  8 15:22:34 pop-os bluetoothd[50800]: plugins/policy.c:disconnect_cb() reason 2
Oct  8 15:22:34 pop-os bluetoothd[50800]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr AA:AA:AA:AA:AA:AA type 1 status 0xe
Oct  8 15:22:34 pop-os bluetoothd[50800]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e
Oct  8 15:22:34 pop-os bluetoothd[50800]: src/device.c:device_bonding_failed() status 14
Oct  8 15:22:34 pop-os bluetoothd[50800]: src/adapter.c:resume_discovery() 
Oct  8 15:22:34 pop-os bluetoothd[50800]: src/device.c:att_disconnected_cb() 
Oct  8 15:22:34 pop-os bluetoothd[50800]: src/device.c:att_disconnected_cb() Software caused connection abort (103)
Oct  8 15:22:34 pop-os bluetoothd[50800]: src/service.c:change_state() 0x55a0e9e9c9f0: device AA:AA:AA:AA:AA:AA profile batt-profile state changed: connected -> disconnecting (0)
Oct  8 15:22:34 pop-os bluetoothd[50800]: src/service.c:change_state() 0x55a0e9e9c9f0: device AA:AA:AA:AA:AA:AA profile batt-profile state changed: disconnecting -> disconnected (0)
Oct  8 15:22:34 pop-os bluetoothd[50800]: src/service.c:change_state() 0x55a0e9e9f950: device AA:AA:AA:AA:AA:AA profile deviceinfo state changed: connected -> disconnecting (0)
Oct  8 15:22:34 pop-os bluetoothd[50800]: src/service.c:change_state() 0x55a0e9e9f950: device AA:AA:AA:AA:AA:AA profile deviceinfo state changed: disconnecting -> disconnected (0)
Oct  8 15:22:34 pop-os bluetoothd[50800]: src/service.c:change_state() 0x55a0e9e9ac80: device AA:AA:AA:AA:AA:AA profile gap-profile state changed: connected -> disconnecting (0)
Oct  8 15:22:34 pop-os bluetoothd[50800]: src/service.c:change_state() 0x55a0e9e9ac80: device AA:AA:AA:AA:AA:AA profile gap-profile state changed: disconnecting -> disconnected (0)
Oct  8 15:22:34 pop-os bluetoothd[50800]: src/gatt-client.c:btd_gatt_client_disconnected() Device disconnected. Cleaning up.

git tags

Thank you whoever is maintaining this. 😄 Could you also push git tags to GitHub? It is useful to see which releases commits are included in.

bluetoothd crashes when change a2dp codec (profile) in pulseaudio

I've started bluetoothd:

==202219== Memcheck, a memory error detector
==202219== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==202219== Using Valgrind-3.16.1 and LibVEX; rerun with -h for copyright info
==202219== Command: ./src/bluetoothd -n -d -f ./src/main.conf
==202219== 
bluetoothd[202219]: Bluetooth daemon 5.55
bluetoothd[202219]: src/main.c:parse_config() parsing ./src/main.conf
bluetoothd[202219]: src/main.c:parse_config() Key file does not have key “DiscoverableTimeout” in group “General”
bluetoothd[202219]: src/main.c:parse_config() Key file does not have key “AlwaysPairable” in group “General”
bluetoothd[202219]: src/main.c:parse_config() Key file does not have key “PairableTimeout” in group “General”
bluetoothd[202219]: src/main.c:parse_config() Key file does not have key “Privacy” in group “General”
bluetoothd[202219]: src/main.c:parse_config() Key file does not have key “JustWorksRepairing” in group “General”
bluetoothd[202219]: src/main.c:parse_config() Key file does not have key “TemporaryTimeout” in group “General”
bluetoothd[202219]: src/main.c:parse_config() Key file does not have key “Name” in group “General”
bluetoothd[202219]: src/main.c:parse_config() Key file does not have key “Class” in group “General”
bluetoothd[202219]: src/main.c:parse_config() Key file does not have key “DeviceID” in group “General”
bluetoothd[202219]: src/main.c:parse_config() Key file does not have key “ReverseServiceDiscovery” in group “General”
bluetoothd[202219]: src/main.c:parse_config() Key file does not have key “Cache” in group “GATT”
bluetoothd[202219]: src/main.c:parse_config() Key file does not have key “KeySize” in group “GATT”
bluetoothd[202219]: src/main.c:parse_config() Key file does not have key “ExchangeMTU” in group “GATT”
bluetoothd[202219]: src/main.c:parse_config() Key file does not have key “Channels” in group “GATT”
bluetoothd[202219]: src/main.c:parse_config() Key file does not have key “SessionMode” in group “AVDTP”
bluetoothd[202219]: src/main.c:parse_config() Key file does not have key “StreamMode” in group “AVDTP”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have group “BREDR”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have group “BREDR”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have group “BREDR”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have group “BREDR”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have group “BREDR”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have group “BREDR”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have group “BREDR”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have group “BREDR”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have group “BREDR”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have group “BREDR”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have key “MinAdvertisementInterval” in group “LE”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have key “MaxAdvertisementInterval” in group “LE”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have key “MultiAdvertisementRotationInterval” in group “LE”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have key “ScanIntervalAutoConnect” in group “LE”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have key “ScanWindowAutoConnect” in group “LE”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have key “ScanIntervalSuspend” in group “LE”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have key “ScanWindowSuspend” in group “LE”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have key “ScanIntervalDiscovery” in group “LE”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have key “ScanWindowDiscovery” in group “LE”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have key “ScanIntervalAdvMonitor” in group “LE”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have key “ScanWindowAdvMonitor” in group “LE”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have key “ScanIntervalConnect” in group “LE”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have key “ScanWindowConnect” in group “LE”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have key “MinConnectionInterval” in group “LE”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have key “MaxConnectionInterval” in group “LE”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have key “ConnectionLatency” in group “LE”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have key “ConnectionSupervisionTimeout” in group “LE”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have key “Autoconnecttimeout” in group “LE”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have key “AdvMonAllowlistScanDuration” in group “LE”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have key “AdvMonNoFilterScanDuration” in group “LE”
bluetoothd[202219]: src/main.c:parse_mode_config() Key file does not have key “EnableAdvMonInterleaveScan” in group “LE”
bluetoothd[202219]: src/adapter.c:adapter_init() sending read version command
bluetoothd[202219]: Starting SDP server
bluetoothd[202219]: src/sdpd-service.c:register_device_id() Adding device id record for 0002:1d6b:0246:0537
bluetoothd[202219]: src/plugin.c:plugin_init() Loading builtin plugins
bluetoothd[202219]: src/plugin.c:add_plugin() Loading hostname plugin
bluetoothd[202219]: src/plugin.c:add_plugin() Loading wiimote plugin
bluetoothd[202219]: src/plugin.c:add_plugin() Loading autopair plugin
bluetoothd[202219]: src/plugin.c:add_plugin() Loading policy plugin
bluetoothd[202219]: src/plugin.c:add_plugin() Loading neard plugin
bluetoothd[202219]: src/plugin.c:add_plugin() Loading sap plugin
bluetoothd[202219]: src/plugin.c:add_plugin() Loading a2dp plugin
bluetoothd[202219]: src/plugin.c:add_plugin() Loading avrcp plugin
bluetoothd[202219]: src/plugin.c:add_plugin() Loading network plugin
bluetoothd[202219]: src/plugin.c:add_plugin() Loading input plugin
bluetoothd[202219]: src/plugin.c:add_plugin() Loading hog plugin
bluetoothd[202219]: src/plugin.c:add_plugin() Loading health plugin
bluetoothd[202219]: src/plugin.c:add_plugin() Loading gap plugin
bluetoothd[202219]: src/plugin.c:add_plugin() Loading scanparam plugin
bluetoothd[202219]: src/plugin.c:add_plugin() Loading deviceinfo plugin
bluetoothd[202219]: src/plugin.c:add_plugin() Loading midi plugin
bluetoothd[202219]: src/plugin.c:add_plugin() Loading battery plugin
bluetoothd[202219]: src/plugin.c:plugin_init() Loading plugins /home/kamil/projects/bluez/plugins/.libs
bluetoothd[202219]: src/plugin.c:add_plugin() Loading external_dummy plugin
bluetoothd[202219]: src/plugin.c:add_plugin() Loading sixaxis plugin
bluetoothd[202219]: profiles/health/hdp.c:hdp_manager_start() Starting Health manager
bluetoothd[202219]: profiles/input/suspend-none.c:suspend_init() 
bluetoothd[202219]: profiles/network/manager.c:read_config() Config options: Security=true
bluetoothd[202219]: plugins/neard.c:neard_init() Setup neard plugin
bluetoothd[202219]: plugins/hostname.c:read_dmi_fallback() chassis: laptop
bluetoothd[202219]: plugins/hostname.c:read_dmi_fallback() major: 0x01 minor: 0x03
bluetoothd[202219]: plugins/sixaxis.c:sixaxis_init() 
bluetoothd[202219]: plugins/external-dummy.c:dummy_init() 
bluetoothd[202219]: src/main.c:main() Entering main loop
bluetoothd[202219]: src/rfkill.c:rfkill_event() RFKILL event idx 0 type 2 op 0 soft 0 hard 0
bluetoothd[202219]: Bluetooth management interface 1.18 initialized
bluetoothd[202219]: src/adapter.c:read_version_complete() sending read supported commands command
bluetoothd[202219]: src/adapter.c:read_version_complete() sending read index list command
bluetoothd[202219]: src/rfkill.c:rfkill_event() RFKILL event idx 1 type 1 op 0 soft 0 hard 0
bluetoothd[202219]: src/rfkill.c:rfkill_event() RFKILL event idx 8 type 2 op 0 soft 0 hard 0
bluetoothd[202219]: src/adapter.c:read_commands_complete() Number of commands: 79
bluetoothd[202219]: src/adapter.c:read_commands_complete() Number of events: 38
bluetoothd[202219]: src/adapter.c:read_commands_complete() enabling kernel-side connection control
bluetoothd[202219]: src/adapter.c:read_commands_complete() kernel supports the set_blocked_keys op
bluetoothd[202219]: src/adapter.c:read_commands_complete() kernel supports controller cap command
bluetoothd[202219]: src/adapter.c:read_commands_complete() kernel supports exp features
bluetoothd[202219]: src/adapter.c:read_commands_complete() kernel supports set system confic
bluetoothd[202219]: src/adapter.c:read_index_list_complete() Number of controllers: 1
bluetoothd[202219]: src/adapter.c:read_index_list_complete() Found index 0
bluetoothd[202219]: src/adapter.c:index_added() index 0
bluetoothd[202219]: src/adapter.c:reset_adv_monitors() sending remove Adv Monitor command with handle 0
bluetoothd[202219]: src/adapter.c:btd_adapter_new() System name: BlueZ 5.55
bluetoothd[202219]: src/adapter.c:btd_adapter_new() Major class: 0
bluetoothd[202219]: src/adapter.c:btd_adapter_new() Minor class: 0
bluetoothd[202219]: src/adapter.c:btd_adapter_new() Modalias: usb:v1D6Bp0246d0537
bluetoothd[202219]: src/adapter.c:btd_adapter_new() Discoverable timeout: 180 seconds
bluetoothd[202219]: src/adapter.c:btd_adapter_new() Pairable timeout: 0 seconds
bluetoothd[202219]: src/adapter.c:index_added() sending read info command for index 0
bluetoothd[202219]: src/adapter.c:reset_adv_monitors_complete() Removed all Adv Monitors
bluetoothd[202219]: src/adapter.c:read_info_complete() index 0 status 0x00
bluetoothd[202219]: src/adapter.c:clear_uuids() sending clear uuids command for index 0
bluetoothd[202219]: src/adapter.c:clear_devices() sending clear devices command for index 0
bluetoothd[202219]: src/adapter.c:set_privacy() sending set privacy command for index 0
bluetoothd[202219]: src/adapter.c:set_privacy() setting privacy mode 0x00 for index 0
bluetoothd[202219]: src/gatt-database.c:btd_gatt_database_new() GATT Manager registered for adapter: /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10001
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000007-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001800-0000-1000-8000-00805f9
bluetoothd[202219]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[202219]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10002
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000007-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001801-0000-1000-8000-00805f9
bluetoothd[202219]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[202219]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10003
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000007-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000180a-0000-1000-8000-00805f9
bluetoothd[202219]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[202219]: src/advertising.c:btd_adv_manager_new() LE Advertising Manager created for adapter: /org/bluez/hci0
bluetoothd[202219]: profiles/audio/a2dp.c:media_server_probe() path /org/bluez/hci0
bluetoothd[202219]: plugins/policy.c:policy_adapter_probe() 
bluetoothd[202219]: plugins/hostname.c:hostname_probe() 
bluetoothd[202219]: plugins/hostname.c:update_class() major: 0x01 minor: 0x03
bluetoothd[202219]: src/adapter.c:btd_adapter_set_class() class: major 1 minor 3
bluetoothd[202219]: src/adapter.c:set_dev_class() sending set device class command for index 0
bluetoothd[202219]: profiles/network/manager.c:panu_server_probe() path /org/bluez/hci0
bluetoothd[202219]: profiles/network/server.c:server_register() Registered interface org.bluez.NetworkServer1 on path /org/bluez/hci0
bluetoothd[202219]: profiles/network/manager.c:gn_server_probe() path /org/bluez/hci0
bluetoothd[202219]: profiles/network/manager.c:nap_server_probe() path /org/bluez/hci0
bluetoothd[202219]: profiles/audio/avrcp.c:avrcp_controller_server_probe() path /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10004
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000017-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110e-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110f-0000-1000-8000-00805f9
bluetoothd[202219]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[202219]: profiles/audio/avrcp.c:avrcp_target_server_probe() path /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10005
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000017-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110c-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110e-0000-1000-8000-00805f9
bluetoothd[202219]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[202219]: profiles/audio/a2dp.c:a2dp_sink_server_probe() path /org/bluez/hci0
bluetoothd[202219]: profiles/audio/a2dp.c:a2dp_source_server_probe() path /org/bluez/hci0
bluetoothd[202219]: profiles/sap/manager.c:sap_server_probe() path /org/bluez/hci0
bluetoothd[202219]: profiles/sap/server.c:sap_server_register() Sap driver initialization failed.
bluetoothd[202219]: sap-server: Operation not permitted (1)
bluetoothd[202219]: src/adapter.c:btd_adapter_unblock_address() hci0 00:00:00:00:00:00
bluetoothd[202219]: src/adapter.c:get_ltk_info() FC:58:FA:CE:3E:5F
bluetoothd[202219]: src/adapter.c:get_slave_ltk_info() FC:58:FA:CE:3E:5F
bluetoothd[202219]: src/device.c:device_create_from_storage() address FC:58:FA:CE:3E:5F
bluetoothd[202219]: src/device.c:device_new() address FC:58:FA:CE:3E:5F
bluetoothd[202219]: src/device.c:device_new() Creating device /org/bluez/hci0/dev_FC_58_FA_CE_3E_5F
bluetoothd[202219]: src/device.c:btd_device_set_temporary() temporary 0
bluetoothd[202219]: src/device.c:device_set_bonded() 
bluetoothd[202219]: src/adapter.c:get_ltk_info() D8:32:E3:0A:4B:32
bluetoothd[202219]: src/adapter.c:get_slave_ltk_info() D8:32:E3:0A:4B:32
bluetoothd[202219]: src/device.c:device_create_from_storage() address D8:32:E3:0A:4B:32
bluetoothd[202219]: src/device.c:device_new() address D8:32:E3:0A:4B:32
bluetoothd[202219]: src/device.c:device_new() Creating device /org/bluez/hci0/dev_D8_32_E3_0A_4B_32
bluetoothd[202219]: src/device.c:btd_device_set_temporary() temporary 0
bluetoothd[202219]: src/device.c:device_set_bonded() 
bluetoothd[202219]: src/adapter.c:get_ltk_info() 3A:D1:F4:C1:62:C4
bluetoothd[202219]: src/adapter.c:get_slave_ltk_info() 3A:D1:F4:C1:62:C4
bluetoothd[202219]: src/device.c:device_create_from_storage() address 3A:D1:F4:C1:62:C4
bluetoothd[202219]: src/device.c:device_new() address 3A:D1:F4:C1:62:C4
bluetoothd[202219]: src/device.c:device_new() Creating device /org/bluez/hci0/dev_3A_D1_F4_C1_62_C4
bluetoothd[202219]: src/device.c:btd_device_set_temporary() temporary 0
bluetoothd[202219]: src/device.c:device_set_bonded() 
bluetoothd[202219]: src/adapter.c:get_ltk_info() E4:0E:EE:7B:CB:62
bluetoothd[202219]: src/adapter.c:get_slave_ltk_info() E4:0E:EE:7B:CB:62
bluetoothd[202219]: src/device.c:device_create_from_storage() address E4:0E:EE:7B:CB:62
bluetoothd[202219]: src/device.c:device_new() address E4:0E:EE:7B:CB:62
bluetoothd[202219]: src/device.c:device_new() Creating device /org/bluez/hci0/dev_E4_0E_EE_7B_CB_62
bluetoothd[202219]: src/device.c:btd_device_set_temporary() temporary 0
bluetoothd[202219]: src/device.c:device_set_bonded() 
bluetoothd[202219]: src/adapter.c:get_ltk_info() C0:7A:A5:00:9E:4A
bluetoothd[202219]: src/adapter.c:get_slave_ltk_info() C0:7A:A5:00:9E:4A
bluetoothd[202219]: src/device.c:device_create_from_storage() address C0:7A:A5:00:9E:4A
bluetoothd[202219]: src/device.c:device_new() address C0:7A:A5:00:9E:4A
bluetoothd[202219]: src/device.c:device_new() Creating device /org/bluez/hci0/dev_C0_7A_A5_00_9E_4A
bluetoothd[202219]: src/device.c:btd_device_set_temporary() temporary 0
bluetoothd[202219]: src/device.c:device_set_bonded() 
bluetoothd[202219]: src/adapter.c:get_ltk_info() 10:71:02:00:4F:CC
bluetoothd[202219]: src/adapter.c:get_slave_ltk_info() 10:71:02:00:4F:CC
bluetoothd[202219]: src/device.c:device_create_from_storage() address 10:71:02:00:4F:CC
bluetoothd[202219]: src/device.c:device_new() address 10:71:02:00:4F:CC
bluetoothd[202219]: src/device.c:device_new() Creating device /org/bluez/hci0/dev_10_71_02_00_4F_CC
bluetoothd[202219]: src/device.c:btd_device_set_temporary() temporary 0
bluetoothd[202219]: src/device.c:device_set_bonded() 
bluetoothd[202219]: src/adapter.c:get_ltk_info() 1C:52:16:4E:B9:9F
bluetoothd[202219]: src/adapter.c:get_slave_ltk_info() 1C:52:16:4E:B9:9F
bluetoothd[202219]: src/device.c:device_create_from_storage() address 1C:52:16:4E:B9:9F
bluetoothd[202219]: src/device.c:device_new() address 1C:52:16:4E:B9:9F
bluetoothd[202219]: src/device.c:device_new() Creating device /org/bluez/hci0/dev_1C_52_16_4E_B9_9F
bluetoothd[202219]: src/device.c:btd_device_set_temporary() temporary 0
bluetoothd[202219]: src/device.c:device_set_bonded() 
bluetoothd[202219]: src/adapter.c:get_ltk_info() E8:EC:A3:F8:92:B9
bluetoothd[202219]: src/adapter.c:get_slave_ltk_info() E8:EC:A3:F8:92:B9
bluetoothd[202219]: src/device.c:device_create_from_storage() address E8:EC:A3:F8:92:B9
bluetoothd[202219]: src/device.c:device_new() address E8:EC:A3:F8:92:B9
bluetoothd[202219]: src/device.c:device_new() Creating device /org/bluez/hci0/dev_E8_EC_A3_F8_92_B9
bluetoothd[202219]: src/device.c:btd_device_set_temporary() temporary 0
bluetoothd[202219]: src/device.c:device_set_bonded() 
bluetoothd[202219]: src/adapter.c:load_link_keys() hci0 keys 8 debug_keys 0
bluetoothd[202219]: src/adapter.c:load_ltks() hci0 keys 0
bluetoothd[202219]: src/adapter.c:load_irks() hci0 irks 0
bluetoothd[202219]: src/adapter.c:load_conn_params() hci0 conn params 0
bluetoothd[202219]: src/device.c:device_probe_profiles() Probing profiles for device FC:58:FA:CE:3E:5F
bluetoothd[202219]: profiles/audio/avrcp.c:avrcp_controller_probe() path /org/bluez/hci0/dev_FC_58_FA_CE_3E_5F
bluetoothd[202219]: profiles/audio/control.c:control_init() Registered interface org.bluez.MediaControl1 on path /org/bluez/hci0/dev_FC_58_FA_CE_3E_5F
bluetoothd[202219]: src/service.c:btd_service_ref() 0x565f160: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x565f160: device FC:58:FA:CE:3E:5F profile avrcp-controller state changed: unavailable -> disconnected (0)
bluetoothd[202219]: profiles/audio/avrcp.c:avrcp_target_probe() path /org/bluez/hci0/dev_FC_58_FA_CE_3E_5F
bluetoothd[202219]: src/service.c:btd_service_ref() 0x5668e50: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x5668e50: device FC:58:FA:CE:3E:5F profile audio-avrcp-target state changed: unavailable -> disconnected (0)
bluetoothd[202219]: profiles/audio/a2dp.c:a2dp_sink_probe() path /org/bluez/hci0/dev_FC_58_FA_CE_3E_5F
bluetoothd[202219]: profiles/audio/sink.c:sink_init() /org/bluez/hci0/dev_FC_58_FA_CE_3E_5F
bluetoothd[202219]: src/service.c:btd_service_ref() 0x566fe60: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x566fe60: device FC:58:FA:CE:3E:5F profile a2dp-sink state changed: unavailable -> disconnected (0)
bluetoothd[202219]: src/device.c:device_probe_profiles() Probing profiles for device D8:32:E3:0A:4B:32
bluetoothd[202219]: profiles/gap/gas.c:gap_probe() GAP profile probe (D8:32:E3:0A:4B:32)
bluetoothd[202219]: src/service.c:change_state() 0x567b950: device D8:32:E3:0A:4B:32 profile gap-profile state changed: unavailable -> disconnected (0)
bluetoothd[202219]: profiles/network/connection.c:connection_register() /org/bluez/hci0/dev_D8_32_E3_0A_4B_32 id 4373
bluetoothd[202219]: profiles/network/connection.c:create_peer() Registered interface org.bluez.Network1 on path /org/bluez/hci0/dev_D8_32_E3_0A_4B_32
bluetoothd[202219]: src/service.c:btd_service_ref() 0x5680540: ref=2
bluetoothd[202219]: profiles/network/connection.c:connection_register() id 4373 registered
bluetoothd[202219]: src/service.c:change_state() 0x5680540: device D8:32:E3:0A:4B:32 profile network-panu state changed: unavailable -> disconnected (0)
bluetoothd[202219]: profiles/network/connection.c:connection_register() /org/bluez/hci0/dev_D8_32_E3_0A_4B_32 id 4374
bluetoothd[202219]: src/service.c:btd_service_ref() 0x568c6b0: ref=2
bluetoothd[202219]: profiles/network/connection.c:connection_register() id 4374 registered
bluetoothd[202219]: src/service.c:change_state() 0x568c6b0: device D8:32:E3:0A:4B:32 profile network-nap state changed: unavailable -> disconnected (0)
bluetoothd[202219]: profiles/audio/avrcp.c:avrcp_controller_probe() path /org/bluez/hci0/dev_D8_32_E3_0A_4B_32
bluetoothd[202219]: profiles/audio/control.c:control_init() Registered interface org.bluez.MediaControl1 on path /org/bluez/hci0/dev_D8_32_E3_0A_4B_32
bluetoothd[202219]: src/service.c:btd_service_ref() 0x5695c20: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x5695c20: device D8:32:E3:0A:4B:32 profile avrcp-controller state changed: unavailable -> disconnected (0)
bluetoothd[202219]: profiles/audio/avrcp.c:avrcp_target_probe() path /org/bluez/hci0/dev_D8_32_E3_0A_4B_32
bluetoothd[202219]: src/service.c:btd_service_ref() 0x569f910: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x569f910: device D8:32:E3:0A:4B:32 profile audio-avrcp-target state changed: unavailable -> disconnected (0)
bluetoothd[202219]: profiles/audio/a2dp.c:a2dp_source_probe() path /org/bluez/hci0/dev_D8_32_E3_0A_4B_32
bluetoothd[202219]: profiles/audio/source.c:source_init() /org/bluez/hci0/dev_D8_32_E3_0A_4B_32
bluetoothd[202219]: src/service.c:btd_service_ref() 0x56a6920: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x56a6920: device D8:32:E3:0A:4B:32 profile a2dp-source state changed: unavailable -> disconnected (0)
bluetoothd[202219]: src/device.c:device_probe_profiles() Probing profiles for device 3A:D1:F4:C1:62:C4
bluetoothd[202219]: profiles/audio/avrcp.c:avrcp_controller_probe() path /org/bluez/hci0/dev_3A_D1_F4_C1_62_C4
bluetoothd[202219]: profiles/audio/control.c:control_init() Registered interface org.bluez.MediaControl1 on path /org/bluez/hci0/dev_3A_D1_F4_C1_62_C4
bluetoothd[202219]: src/service.c:btd_service_ref() 0x56b2420: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x56b2420: device 3A:D1:F4:C1:62:C4 profile avrcp-controller state changed: unavailable -> disconnected (0)
bluetoothd[202219]: profiles/audio/avrcp.c:avrcp_target_probe() path /org/bluez/hci0/dev_3A_D1_F4_C1_62_C4
bluetoothd[202219]: src/service.c:btd_service_ref() 0x56bc110: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x56bc110: device 3A:D1:F4:C1:62:C4 profile audio-avrcp-target state changed: unavailable -> disconnected (0)
bluetoothd[202219]: profiles/audio/a2dp.c:a2dp_sink_probe() path /org/bluez/hci0/dev_3A_D1_F4_C1_62_C4
bluetoothd[202219]: profiles/audio/sink.c:sink_init() /org/bluez/hci0/dev_3A_D1_F4_C1_62_C4
bluetoothd[202219]: src/service.c:btd_service_ref() 0x56c3120: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x56c3120: device 3A:D1:F4:C1:62:C4 profile a2dp-sink state changed: unavailable -> disconnected (0)
bluetoothd[202219]: src/device.c:device_probe_profiles() Probing profiles for device E4:0E:EE:7B:CB:62
bluetoothd[202219]: profiles/gap/gas.c:gap_probe() GAP profile probe (E4:0E:EE:7B:CB:62)
bluetoothd[202219]: src/service.c:change_state() 0x56ccbd0: device E4:0E:EE:7B:CB:62 profile gap-profile state changed: unavailable -> disconnected (0)
bluetoothd[202219]: profiles/network/connection.c:connection_register() /org/bluez/hci0/dev_E4_0E_EE_7B_CB_62 id 4373
bluetoothd[202219]: profiles/network/connection.c:create_peer() Registered interface org.bluez.Network1 on path /org/bluez/hci0/dev_E4_0E_EE_7B_CB_62
bluetoothd[202219]: src/service.c:btd_service_ref() 0x56cd740: ref=2
bluetoothd[202219]: profiles/network/connection.c:connection_register() id 4373 registered
bluetoothd[202219]: src/service.c:change_state() 0x56cd740: device E4:0E:EE:7B:CB:62 profile network-panu state changed: unavailable -> disconnected (0)
bluetoothd[202219]: profiles/network/connection.c:connection_register() /org/bluez/hci0/dev_E4_0E_EE_7B_CB_62 id 4374
bluetoothd[202219]: src/service.c:btd_service_ref() 0x5ec8990: ref=2
bluetoothd[202219]: profiles/network/connection.c:connection_register() id 4374 registered
bluetoothd[202219]: src/service.c:change_state() 0x5ec8990: device E4:0E:EE:7B:CB:62 profile network-nap state changed: unavailable -> disconnected (0)
bluetoothd[202219]: profiles/audio/avrcp.c:avrcp_target_probe() path /org/bluez/hci0/dev_E4_0E_EE_7B_CB_62
bluetoothd[202219]: profiles/audio/control.c:control_init() Registered interface org.bluez.MediaControl1 on path /org/bluez/hci0/dev_E4_0E_EE_7B_CB_62
bluetoothd[202219]: src/service.c:btd_service_ref() 0x5ed1f00: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x5ed1f00: device E4:0E:EE:7B:CB:62 profile audio-avrcp-target state changed: unavailable -> disconnected (0)
bluetoothd[202219]: profiles/audio/a2dp.c:a2dp_source_probe() path /org/bluez/hci0/dev_E4_0E_EE_7B_CB_62
bluetoothd[202219]: profiles/audio/source.c:source_init() /org/bluez/hci0/dev_E4_0E_EE_7B_CB_62
bluetoothd[202219]: src/service.c:btd_service_ref() 0x5edbbe0: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x5edbbe0: device E4:0E:EE:7B:CB:62 profile a2dp-source state changed: unavailable -> disconnected (0)
bluetoothd[202219]: src/device.c:device_probe_profiles() Probing profiles for device C0:7A:A5:00:9E:4A
bluetoothd[202219]: profiles/audio/avrcp.c:avrcp_controller_probe() path /org/bluez/hci0/dev_C0_7A_A5_00_9E_4A
bluetoothd[202219]: profiles/audio/control.c:control_init() Registered interface org.bluez.MediaControl1 on path /org/bluez/hci0/dev_C0_7A_A5_00_9E_4A
bluetoothd[202219]: src/service.c:btd_service_ref() 0x5ee76e0: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x5ee76e0: device C0:7A:A5:00:9E:4A profile avrcp-controller state changed: unavailable -> disconnected (0)
bluetoothd[202219]: profiles/audio/avrcp.c:avrcp_target_probe() path /org/bluez/hci0/dev_C0_7A_A5_00_9E_4A
bluetoothd[202219]: src/service.c:btd_service_ref() 0x5ef13d0: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x5ef13d0: device C0:7A:A5:00:9E:4A profile audio-avrcp-target state changed: unavailable -> disconnected (0)
bluetoothd[202219]: profiles/audio/a2dp.c:a2dp_sink_probe() path /org/bluez/hci0/dev_C0_7A_A5_00_9E_4A
bluetoothd[202219]: profiles/audio/sink.c:sink_init() /org/bluez/hci0/dev_C0_7A_A5_00_9E_4A
bluetoothd[202219]: src/service.c:btd_service_ref() 0x5ef83e0: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x5ef83e0: device C0:7A:A5:00:9E:4A profile a2dp-sink state changed: unavailable -> disconnected (0)
bluetoothd[202219]: src/device.c:device_probe_profiles() Probing profiles for device 10:71:02:00:4F:CC
bluetoothd[202219]: profiles/input/device.c:input_device_register() /org/bluez/hci0/dev_10_71_02_00_4F_CC
bluetoothd[202219]: src/service.c:btd_service_ref() 0x5f03ed0: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x5f03ed0: device 10:71:02:00:4F:CC profile input-hid state changed: unavailable -> disconnected (0)
bluetoothd[202219]: src/device.c:device_probe_profiles() Probing profiles for device 1C:52:16:4E:B9:9F
bluetoothd[202219]: profiles/audio/avrcp.c:avrcp_controller_probe() path /org/bluez/hci0/dev_1C_52_16_4E_B9_9F
bluetoothd[202219]: profiles/audio/control.c:control_init() Registered interface org.bluez.MediaControl1 on path /org/bluez/hci0/dev_1C_52_16_4E_B9_9F
bluetoothd[202219]: src/service.c:btd_service_ref() 0x5f13ac0: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x5f13ac0: device 1C:52:16:4E:B9:9F profile avrcp-controller state changed: unavailable -> disconnected (0)
bluetoothd[202219]: profiles/audio/avrcp.c:avrcp_target_probe() path /org/bluez/hci0/dev_1C_52_16_4E_B9_9F
bluetoothd[202219]: src/service.c:btd_service_ref() 0x5f1d7b0: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x5f1d7b0: device 1C:52:16:4E:B9:9F profile audio-avrcp-target state changed: unavailable -> disconnected (0)
bluetoothd[202219]: profiles/audio/a2dp.c:a2dp_sink_probe() path /org/bluez/hci0/dev_1C_52_16_4E_B9_9F
bluetoothd[202219]: profiles/audio/sink.c:sink_init() /org/bluez/hci0/dev_1C_52_16_4E_B9_9F
bluetoothd[202219]: src/service.c:btd_service_ref() 0x5f247c0: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x5f247c0: device 1C:52:16:4E:B9:9F profile a2dp-sink state changed: unavailable -> disconnected (0)
bluetoothd[202219]: src/device.c:device_probe_profiles() Probing profiles for device E8:EC:A3:F8:92:B9
bluetoothd[202219]: profiles/audio/avrcp.c:avrcp_controller_probe() path /org/bluez/hci0/dev_E8_EC_A3_F8_92_B9
bluetoothd[202219]: profiles/audio/control.c:control_init() Registered interface org.bluez.MediaControl1 on path /org/bluez/hci0/dev_E8_EC_A3_F8_92_B9
bluetoothd[202219]: src/service.c:btd_service_ref() 0x5f302b0: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x5f302b0: device E8:EC:A3:F8:92:B9 profile avrcp-controller state changed: unavailable -> disconnected (0)
bluetoothd[202219]: profiles/audio/avrcp.c:avrcp_target_probe() path /org/bluez/hci0/dev_E8_EC_A3_F8_92_B9
bluetoothd[202219]: src/service.c:btd_service_ref() 0x5f39fa0: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x5f39fa0: device E8:EC:A3:F8:92:B9 profile audio-avrcp-target state changed: unavailable -> disconnected (0)
bluetoothd[202219]: profiles/audio/a2dp.c:a2dp_sink_probe() path /org/bluez/hci0/dev_E8_EC_A3_F8_92_B9
bluetoothd[202219]: profiles/audio/sink.c:sink_init() /org/bluez/hci0/dev_E8_EC_A3_F8_92_B9
bluetoothd[202219]: src/service.c:btd_service_ref() 0x5f40fb0: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x5f40fb0: device E8:EC:A3:F8:92:B9 profile a2dp-sink state changed: unavailable -> disconnected (0)
bluetoothd[202219]: src/gatt-database.c:restore_state() /org/bluez/hci0/dev_FC_58_FA_CE_3E_5F BR/EDR
bluetoothd[202219]: src/gatt-database.c:restore_state() /org/bluez/hci0/dev_D8_32_E3_0A_4B_32 BR/EDR
bluetoothd[202219]: src/gatt-database.c:restore_state() /org/bluez/hci0/dev_3A_D1_F4_C1_62_C4 BR/EDR
bluetoothd[202219]: src/gatt-database.c:restore_state() /org/bluez/hci0/dev_E4_0E_EE_7B_CB_62 BR/EDR
bluetoothd[202219]: src/gatt-database.c:restore_state() /org/bluez/hci0/dev_C0_7A_A5_00_9E_4A BR/EDR
bluetoothd[202219]: src/gatt-database.c:restore_state() /org/bluez/hci0/dev_10_71_02_00_4F_CC BR/EDR
bluetoothd[202219]: src/gatt-database.c:restore_state() /org/bluez/hci0/dev_1C_52_16_4E_B9_9F BR/EDR
bluetoothd[202219]: src/gatt-database.c:restore_state() /org/bluez/hci0/dev_E8_EC_A3_F8_92_B9 BR/EDR
bluetoothd[202219]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[202219]: src/adapter.c:set_did() hci0 source 2 vendor 1d6b product 246 version 537
bluetoothd[202219]: src/adapter.c:adapter_register() Adapter /org/bluez/hci0 registered
bluetoothd[202219]: src/adapter.c:set_dev_class() sending set device class command for index 0
bluetoothd[202219]: src/adapter.c:set_name() sending set local name command for index 0
bluetoothd[202219]: src/adapter.c:set_mode() sending set mode command for index 0
bluetoothd[202219]: src/adapter.c:set_discoverable() sending set mode command for index 0
bluetoothd[202219]: src/adapter.c:set_mode() sending set mode command for index 0
bluetoothd[202219]: src/adapter.c:set_privacy_complete() Successfuly set privacy for index 0
bluetoothd[202219]: src/adapter.c:read_exp_features_complete() index 0 status 0x00
bluetoothd[202219]: src/adapter.c:add_whitelist_complete() FC:58:FA:CE:3E:5F added to kernel whitelist
bluetoothd[202219]: src/adapter.c:add_whitelist_complete() D8:32:E3:0A:4B:32 added to kernel whitelist
bluetoothd[202219]: src/adapter.c:add_whitelist_complete() 3A:D1:F4:C1:62:C4 added to kernel whitelist
bluetoothd[202219]: src/adapter.c:add_whitelist_complete() E4:0E:EE:7B:CB:62 added to kernel whitelist
bluetoothd[202219]: src/adapter.c:add_whitelist_complete() C0:7A:A5:00:9E:4A added to kernel whitelist
bluetoothd[202219]: src/adapter.c:add_whitelist_complete() 10:71:02:00:4F:CC added to kernel whitelist
bluetoothd[202219]: src/adapter.c:add_whitelist_complete() 1C:52:16:4E:B9:9F added to kernel whitelist
bluetoothd[202219]: src/adapter.c:add_whitelist_complete() E8:EC:A3:F8:92:B9 added to kernel whitelist
bluetoothd[202219]: src/adapter.c:load_link_keys_complete() link keys loaded for hci0
bluetoothd[202219]: src/adapter.c:load_ltks_complete() LTKs loaded for hci0
bluetoothd[202219]: src/adapter.c:load_irks_complete() IRKs loaded for hci0
bluetoothd[202219]: src/adapter.c:load_conn_params_complete() Connection Parameters loaded for hci0
bluetoothd[202219]: src/adapter.c:local_name_changed_callback() Name: BlueZ 5.55
bluetoothd[202219]: src/adapter.c:local_name_changed_callback() Short name: 
bluetoothd[202219]: src/adapter.c:local_name_changed_callback() Current alias: BlueZ 5.55
bluetoothd[202219]: src/adapter.c:set_blocked_keys_complete() Successfully set blocked keys for index 0
bluetoothd[202219]: src/adapter.c:new_settings_callback() Settings: 0x00000ad0
bluetoothd[202219]: src/adapter.c:settings_changed() Changed settings: 0x0000000a
bluetoothd[202219]: src/adapter.c:settings_changed() Pending settings: 0x00000000
bluetoothd[202219]: src/adapter.c:new_settings_callback() Settings: 0x00000ad2
bluetoothd[202219]: src/adapter.c:settings_changed() Changed settings: 0x00000002
bluetoothd[202219]: src/adapter.c:settings_changed() Pending settings: 0x00000000
bluetoothd[202219]: src/adapter.c:new_settings_callback() Settings: 0x00000ada
bluetoothd[202219]: src/adapter.c:settings_changed() Changed settings: 0x00000008
bluetoothd[202219]: src/adapter.c:settings_changed() Pending settings: 0x00000000
bluetoothd[202219]: src/profile.c:register_profile() sender :1.70
bluetoothd[202219]: src/profile.c:create_ext() Created "Message Notification"
bluetoothd[202219]: src/profile.c:ext_adapter_probe() "Message Notification" probed
bluetoothd[202219]: src/profile.c:ext_start_servers() Message Notification listening on PSM 4097
bluetoothd[202219]: src/profile.c:ext_start_servers() Message Notification listening on chan 17
bluetoothd[202219]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10006
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000003-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000008-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001133-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001134-0000-1000-8000-00805f9
bluetoothd[202219]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[202219]: src/profile.c:register_profile() sender :1.70
bluetoothd[202219]: src/profile.c:create_ext() Created "Message Access"
bluetoothd[202219]: src/profile.c:ext_adapter_probe() "Message Access" probed
bluetoothd[202219]: src/profile.c:ext_start_servers() Message Access listening on PSM 4099
bluetoothd[202219]: src/profile.c:ext_start_servers() Message Access listening on chan 16
bluetoothd[202219]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10007
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000003-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000008-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001132-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001134-0000-1000-8000-00805f9
bluetoothd[202219]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[202219]: src/profile.c:ext_device_probe() Message Access probed with UUID 00001132-0000-1000-8000-00805f9b34fb
bluetoothd[202219]: src/service.c:change_state() 0x6034520: device D8:32:E3:0A:4B:32 profile Message Access state changed: unavailable -> disconnected (0)
bluetoothd[202219]: src/profile.c:ext_device_probe() Message Access probed with UUID 00001132-0000-1000-8000-00805f9b34fb
bluetoothd[202219]: src/service.c:change_state() 0x6039260: device E4:0E:EE:7B:CB:62 profile Message Access state changed: unavailable -> disconnected (0)
bluetoothd[202219]: src/profile.c:register_profile() sender :1.70
bluetoothd[202219]: src/profile.c:create_ext() Created "Phone Book Access"
bluetoothd[202219]: src/profile.c:ext_adapter_probe() "Phone Book Access" probed
bluetoothd[202219]: src/profile.c:ext_start_servers() Phone Book Access listening on PSM 4101
bluetoothd[202219]: src/profile.c:ext_start_servers() Phone Book Access listening on chan 15
bluetoothd[202219]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10008
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000003-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000008-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000112f-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001130-0000-1000-8000-00805f9
bluetoothd[202219]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[202219]: src/profile.c:ext_device_probe() Phone Book Access probed with UUID 0000112f-0000-1000-8000-00805f9b34fb
bluetoothd[202219]: src/service.c:change_state() 0x606a9f0: device D8:32:E3:0A:4B:32 profile Phone Book Access state changed: unavailable -> disconnected (0)
bluetoothd[202219]: src/profile.c:ext_device_probe() Phone Book Access probed with UUID 0000112f-0000-1000-8000-00805f9b34fb
bluetoothd[202219]: src/service.c:change_state() 0x606f750: device E4:0E:EE:7B:CB:62 profile Phone Book Access state changed: unavailable -> disconnected (0)
bluetoothd[202219]: src/profile.c:register_profile() sender :1.70
bluetoothd[202219]: src/profile.c:create_ext() Created "Synchronization"
bluetoothd[202219]: src/profile.c:ext_adapter_probe() "Synchronization" probed
bluetoothd[202219]: src/profile.c:ext_start_servers() Synchronization listening on chan 14
bluetoothd[202219]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10009
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000003-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000008-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001104-0000-1000-8000-00805f9
bluetoothd[202219]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[202219]: src/profile.c:register_profile() sender :1.70
bluetoothd[202219]: src/profile.c:create_ext() Created "File Transfer"
bluetoothd[202219]: src/profile.c:ext_adapter_probe() "File Transfer" probed
bluetoothd[202219]: src/profile.c:ext_start_servers() File Transfer listening on PSM 4103
bluetoothd[202219]: src/profile.c:ext_start_servers() File Transfer listening on chan 10
bluetoothd[202219]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x1000a
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000003-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000008-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001106-0000-1000-8000-00805f9
bluetoothd[202219]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[202219]: src/profile.c:register_profile() sender :1.70
bluetoothd[202219]: src/profile.c:create_ext() Created "Object Push"
bluetoothd[202219]: src/profile.c:ext_adapter_probe() "Object Push" probed
bluetoothd[202219]: src/profile.c:ext_start_servers() Object Push listening on PSM 4105
bluetoothd[202219]: src/profile.c:ext_start_servers() Object Push listening on chan 9
bluetoothd[202219]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x1000b
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000003-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000008-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001105-0000-1000-8000-00805f9
bluetoothd[202219]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[202219]: src/profile.c:ext_device_probe() Object Push probed with UUID 00001105-0000-1000-8000-00805f9b34fb
bluetoothd[202219]: src/service.c:change_state() 0x60f1bb0: device D8:32:E3:0A:4B:32 profile Object Push state changed: unavailable -> disconnected (0)
bluetoothd[202219]: src/profile.c:ext_device_probe() Object Push probed with UUID 00001105-0000-1000-8000-00805f9b34fb
bluetoothd[202219]: src/service.c:change_state() 0x60f6780: device E4:0E:EE:7B:CB:62 profile Object Push state changed: unavailable -> disconnected (0)
bluetoothd[202219]: src/profile.c:register_profile() sender :1.70
bluetoothd[202219]: src/profile.c:create_ext() Created ":1.70/org/bluez/obex/00005005_0000_1000_8000_0002ee000001/00005005-0000-1000-8000-0002ee000001"
bluetoothd[202219]: src/profile.c:ext_adapter_probe() ":1.70/org/bluez/obex/00005005_0000_1000_8000_0002ee000001/00005005-0000-1000-8000-0002ee000001" probed
bluetoothd[202219]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x1000c
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000003-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000008-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00005005-0000-1000-8000-0002ee0
bluetoothd[202219]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[202219]: profiles/audio/media.c:register_app() Registering application: :1.5600:/A2DPEndpoint
bluetoothd[202219]: src/agent.c:add_default_agent() Default agent set to :1.37 /modules/bluedevil/Agent
bluetoothd[202219]: src/agent.c:agent_ref() 0x612eaa0: ref=1
bluetoothd[202219]: src/agent.c:register_agent() agent :1.37
bluetoothd[202219]: src/profile.c:register_profile() sender :1.13
bluetoothd[202219]: src/profile.c:create_ext() Created "Hands-Free Voice gateway"
bluetoothd[202219]: src/profile.c:ext_adapter_probe() "Hands-Free Voice gateway" probed
bluetoothd[202219]: src/profile.c:ext_start_servers() Hands-Free Voice gateway listening on chan 13
bluetoothd[202219]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x1000d
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000003-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000111e-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000111f-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001203-0000-1000-8000-00805f9
bluetoothd[202219]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[202219]: src/profile.c:ext_device_probe() Hands-Free Voice gateway probed with UUID 0000111e-0000-1000-8000-00805f9b34fb
bluetoothd[202219]: src/service.c:change_state() 0x61601a0: device 3A:D1:F4:C1:62:C4 profile Hands-Free Voice gateway state changed: unavailable -> disconnected (0)
bluetoothd[202219]: src/profile.c:ext_device_probe() Hands-Free Voice gateway probed with UUID 0000111e-0000-1000-8000-00805f9b34fb
bluetoothd[202219]: src/service.c:change_state() 0x6164f10: device 1C:52:16:4E:B9:9F profile Hands-Free Voice gateway state changed: unavailable -> disconnected (0)
bluetoothd[202219]: src/profile.c:ext_device_probe() Hands-Free Voice gateway probed with UUID 0000111e-0000-1000-8000-00805f9b34fb
bluetoothd[202219]: src/service.c:change_state() 0x6169c80: device E8:EC:A3:F8:92:B9 profile Hands-Free Voice gateway state changed: unavailable -> disconnected (0)
bluetoothd[202219]: plugins/hostname.c:property_changed() static hostname: thinkpad-e530
bluetoothd[202219]: plugins/hostname.c:property_changed() pretty hostname: 
bluetoothd[202219]: plugins/hostname.c:update_name() name: thinkpad-e530
bluetoothd[202219]: src/adapter.c:adapter_set_name() name: thinkpad-e530
bluetoothd[202219]: src/adapter.c:adapter_set_name() alias: thinkpad-e530
bluetoothd[202219]: src/adapter.c:set_name() sending set local name command for index 0
bluetoothd[202219]: plugins/hostname.c:property_changed() chassis: laptop
bluetoothd[202219]: plugins/hostname.c:update_class() major: 0x01 minor: 0x03
bluetoothd[202219]: src/adapter.c:local_name_changed_callback() Name: thinkpad-e530
bluetoothd[202219]: src/adapter.c:local_name_changed_callback() Short name: 
bluetoothd[202219]: src/adapter.c:local_name_changed_callback() Current alias: thinkpad-e530
bluetoothd[202219]: src/profile.c:register_profile() sender :1.13
bluetoothd[202219]: src/profile.c:create_ext() Created "Headset Voice gateway"
bluetoothd[202219]: src/profile.c:ext_adapter_probe() "Headset Voice gateway" probed
bluetoothd[202219]: src/profile.c:ext_start_servers() Headset Voice gateway listening on chan 12
bluetoothd[202219]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x1000e
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000003-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001108-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001112-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001203-0000-1000-8000-00805f9
bluetoothd[202219]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[202219]: src/profile.c:ext_device_probe() Headset Voice gateway probed with UUID 00001108-0000-1000-8000-00805f9b34fb
bluetoothd[202219]: src/service.c:change_state() 0x61e48a0: device D8:32:E3:0A:4B:32 profile Headset Voice gateway state changed: unavailable -> disconnected (0)
bluetoothd[202219]: src/profile.c:ext_device_probe() Headset Voice gateway probed with UUID 00001108-0000-1000-8000-00805f9b34fb
bluetoothd[202219]: src/service.c:change_state() 0x61e9600: device E4:0E:EE:7B:CB:62 profile Headset Voice gateway state changed: unavailable -> disconnected (0)
bluetoothd[202219]: src/profile.c:ext_device_probe() Headset Voice gateway probed with UUID 00001108-0000-1000-8000-00805f9b34fb
bluetoothd[202219]: src/service.c:change_state() 0x61ee360: device E8:EC:A3:F8:92:B9 profile Headset Voice gateway state changed: unavailable -> disconnected (0)
bluetoothd[202219]: profiles/audio/media.c:proxy_added_cb() Proxy added: /A2DPEndpoint/Sink/sbc_xq2, iface: org.bluez.MediaEndpoint1
bluetoothd[202219]: profiles/audio/media.c:proxy_added_cb() Proxy added: /A2DPEndpoint/Source/sbc_xq2, iface: org.bluez.MediaEndpoint1
bluetoothd[202219]: profiles/audio/media.c:proxy_added_cb() Proxy added: /A2DPEndpoint/Sink/sbc_xq1, iface: org.bluez.MediaEndpoint1
bluetoothd[202219]: profiles/audio/media.c:proxy_added_cb() Proxy added: /A2DPEndpoint/Source/sbc_xq1, iface: org.bluez.MediaEndpoint1
bluetoothd[202219]: profiles/audio/media.c:proxy_added_cb() Proxy added: /A2DPEndpoint/Sink/aptx_hd, iface: org.bluez.MediaEndpoint1
bluetoothd[202219]: profiles/audio/media.c:proxy_added_cb() Proxy added: /A2DPEndpoint/Source/aptx_hd, iface: org.bluez.MediaEndpoint1
bluetoothd[202219]: profiles/audio/media.c:proxy_added_cb() Proxy added: /A2DPEndpoint/Sink/sbc_hq, iface: org.bluez.MediaEndpoint1
bluetoothd[202219]: profiles/audio/media.c:proxy_added_cb() Proxy added: /A2DPEndpoint/Source/sbc_hq, iface: org.bluez.MediaEndpoint1
bluetoothd[202219]: profiles/audio/media.c:proxy_added_cb() Proxy added: /A2DPEndpoint/Sink/aptx, iface: org.bluez.MediaEndpoint1
bluetoothd[202219]: profiles/audio/media.c:proxy_added_cb() Proxy added: /A2DPEndpoint/Source/aptx, iface: org.bluez.MediaEndpoint1
bluetoothd[202219]: profiles/audio/media.c:proxy_added_cb() Proxy added: /A2DPEndpoint/Sink/sbc, iface: org.bluez.MediaEndpoint1
bluetoothd[202219]: profiles/audio/media.c:proxy_added_cb() Proxy added: /A2DPEndpoint/Source/sbc, iface: org.bluez.MediaEndpoint1
bluetoothd[202219]: profiles/audio/media.c:proxy_added_cb() Proxy added: /A2DPEndpoint/Sink/sbc_mq, iface: org.bluez.MediaEndpoint1
bluetoothd[202219]: profiles/audio/media.c:proxy_added_cb() Proxy added: /A2DPEndpoint/Source/sbc_mq, iface: org.bluez.MediaEndpoint1
bluetoothd[202219]: profiles/audio/media.c:proxy_added_cb() Proxy added: /A2DPEndpoint/Sink/faststream_mic, iface: org.bluez.MediaEndpoint1
bluetoothd[202219]: profiles/audio/media.c:proxy_added_cb() Proxy added: /A2DPEndpoint/Source/faststream_mic, iface: org.bluez.MediaEndpoint1
bluetoothd[202219]: profiles/audio/media.c:proxy_added_cb() Proxy added: /A2DPEndpoint/Sink/faststream, iface: org.bluez.MediaEndpoint1
bluetoothd[202219]: profiles/audio/media.c:proxy_added_cb() Proxy added: /A2DPEndpoint/Source/faststream, iface: org.bluez.MediaEndpoint1
bluetoothd[202219]: profiles/audio/media.c:proxy_added_cb() Proxy added: /A2DPEndpoint/Sink/sbc_lq, iface: org.bluez.MediaEndpoint1
bluetoothd[202219]: profiles/audio/media.c:proxy_added_cb() Proxy added: /A2DPEndpoint/Source/sbc_lq, iface: org.bluez.MediaEndpoint1
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x62420b0 registered: type:1 codec:0 seid:1
bluetoothd[202219]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x1000f
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000019-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110b-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110d-0000-1000-8000-00805f9
bluetoothd[202219]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[202219]: Endpoint registered: sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_xq2
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x625e210 registered: type:0 codec:0 seid:2
bluetoothd[202219]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10010
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000019-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110a-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110d-0000-1000-8000-00805f9
bluetoothd[202219]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[202219]: Endpoint registered: sender=:1.5600 path=/A2DPEndpoint/Source/sbc_xq2
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x627a020 registered: type:1 codec:0 seid:3
bluetoothd[202219]: Endpoint registered: sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_xq1
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x627ee70 registered: type:0 codec:0 seid:4
bluetoothd[202219]: Endpoint registered: sender=:1.5600 path=/A2DPEndpoint/Source/sbc_xq1
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x6283cc0 registered: type:1 codec:255 seid:5
bluetoothd[202219]: Endpoint registered: sender=:1.5600 path=/A2DPEndpoint/Sink/aptx_hd
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x6288b10 registered: type:0 codec:255 seid:6
bluetoothd[202219]: Endpoint registered: sender=:1.5600 path=/A2DPEndpoint/Source/aptx_hd
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x628d960 registered: type:1 codec:0 seid:7
bluetoothd[202219]: Endpoint registered: sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_hq
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x62927b0 registered: type:0 codec:0 seid:8
bluetoothd[202219]: Endpoint registered: sender=:1.5600 path=/A2DPEndpoint/Source/sbc_hq
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x6297600 registered: type:1 codec:255 seid:9
bluetoothd[202219]: Endpoint registered: sender=:1.5600 path=/A2DPEndpoint/Sink/aptx
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x629c450 registered: type:0 codec:255 seid:10
bluetoothd[202219]: Endpoint registered: sender=:1.5600 path=/A2DPEndpoint/Source/aptx
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x62a12a0 registered: type:1 codec:0 seid:11
bluetoothd[202219]: Endpoint registered: sender=:1.5600 path=/A2DPEndpoint/Sink/sbc
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x62a60e0 registered: type:0 codec:0 seid:12
bluetoothd[202219]: Endpoint registered: sender=:1.5600 path=/A2DPEndpoint/Source/sbc
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x62aaf30 registered: type:1 codec:0 seid:13
bluetoothd[202219]: Endpoint registered: sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_mq
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x62afd80 registered: type:0 codec:0 seid:14
bluetoothd[202219]: Endpoint registered: sender=:1.5600 path=/A2DPEndpoint/Source/sbc_mq
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x62b4be0 registered: type:1 codec:255 seid:15
bluetoothd[202219]: Endpoint registered: sender=:1.5600 path=/A2DPEndpoint/Sink/faststream_mic
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x62b9a90 registered: type:0 codec:255 seid:16
bluetoothd[202219]: Endpoint registered: sender=:1.5600 path=/A2DPEndpoint/Source/faststream_mic
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x62be8f0 registered: type:1 codec:255 seid:17
bluetoothd[202219]: Endpoint registered: sender=:1.5600 path=/A2DPEndpoint/Sink/faststream
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x62c3740 registered: type:0 codec:255 seid:18
bluetoothd[202219]: Endpoint registered: sender=:1.5600 path=/A2DPEndpoint/Source/faststream
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x62c85a0 registered: type:1 codec:0 seid:19
bluetoothd[202219]: Endpoint registered: sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_lq
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x62cd3f0 registered: type:0 codec:0 seid:20
bluetoothd[202219]: Endpoint registered: sender=:1.5600 path=/A2DPEndpoint/Source/sbc_lq
bluetoothd[202219]: profiles/audio/media.c:client_ready_cb() Media application registered: :1.5600:/A2DPEndpoint
bluetoothd[202219]: src/profile.c:register_profile() sender :1.13
bluetoothd[202219]: src/profile.c:create_ext() Created "Headset unit"
bluetoothd[202219]: src/profile.c:ext_adapter_probe() "Headset unit" probed
bluetoothd[202219]: src/profile.c:ext_start_servers() Headset unit listening on chan 6
bluetoothd[202219]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10011
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000003-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001108-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001131-0000-1000-8000-00805f9
bluetoothd[202219]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001203-0000-1000-8000-00805f9
bluetoothd[202219]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[202219]: src/profile.c:ext_device_probe() Headset unit probed with UUID 00001112-0000-1000-8000-00805f9b34fb
bluetoothd[202219]: src/service.c:change_state() 0x62fd380: device D8:32:E3:0A:4B:32 profile Headset unit state changed: unavailable -> disconnected (0)
bluetoothd[202219]: src/profile.c:ext_device_probe() Headset unit probed with UUID 00001112-0000-1000-8000-00805f9b34fb
bluetoothd[202219]: src/service.c:change_state() 0x6301f50: device E4:0E:EE:7B:CB:62 profile Headset unit state changed: unavailable -> disconnected (0)
bluetoothd[202219]: src/adapter.c:dev_class_changed_callback() Class: 0x7c010c
bluetoothd[202219]: src/adapter.c:new_settings_callback() Settings: 0x00000adb
bluetoothd[202219]: src/adapter.c:settings_changed() Changed settings: 0x00000001
bluetoothd[202219]: src/adapter.c:settings_changed() Pending settings: 0x00000000
bluetoothd[202219]: src/adapter.c:adapter_start() adapter /org/bluez/hci0 has been enabled
bluetoothd[202219]: src/adapter.c:trigger_passive_scanning() 
bluetoothd[202219]: src/device.c:connect_profiles() /org/bluez/hci0/dev_1C_52_16_4E_B9_9F (all), client :1.64
bluetoothd[202219]: src/service.c:btd_service_ref() 0x6164f10: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x6164f10: device 1C:52:16:4E:B9:9F profile Hands-Free Voice gateway state changed: disconnected -> connecting (0)
bluetoothd[202219]: src/adapter.c:connect_failed_callback() hci0 1C:52:16:4E:B9:9F status 4
bluetoothd[202219]: plugins/policy.c:conn_fail_cb() status 4
bluetoothd[202219]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr 1C:52:16:4E:B9:9F type 0 status 0x4
bluetoothd[202219]: src/device.c:device_bonding_complete() bonding (nil) status 0x04
bluetoothd[202219]: src/device.c:device_bonding_failed() status 4
bluetoothd[202219]: src/adapter.c:resume_discovery() 
bluetoothd[202219]: src/profile.c:record_cb() Unable to get Hands-Free Voice gateway SDP record: Host is down
bluetoothd[202219]: src/service.c:change_state() 0x6164f10: device 1C:52:16:4E:B9:9F profile Hands-Free Voice gateway state changed: connecting -> disconnected (-112)
bluetoothd[202219]: src/device.c:device_profile_connected() Hands-Free Voice gateway Host is down (112)
bluetoothd[202219]: src/device.c:device_profile_connected() returning response to :1.64
bluetoothd[202219]: src/service.c:btd_service_unref() 0x6164f10: ref=1
bluetoothd[202219]: src/device.c:connect_profiles() /org/bluez/hci0/dev_1C_52_16_4E_B9_9F (all), client :1.64
bluetoothd[202219]: src/service.c:btd_service_ref() 0x6164f10: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x6164f10: device 1C:52:16:4E:B9:9F profile Hands-Free Voice gateway state changed: disconnected -> connecting (0)
bluetoothd[202219]: src/adapter.c:connected_callback() hci0 device 1C:52:16:4E:B9:9F connected eir_len 10
bluetoothd[202219]: src/profile.c:ext_connect() Hands-Free Voice gateway connected to 1C:52:16:4E:B9:9F
bluetoothd[202219]: src/service.c:change_state() 0x6164f10: device 1C:52:16:4E:B9:9F profile Hands-Free Voice gateway state changed: connecting -> connected (0)
bluetoothd[202219]: src/device.c:device_profile_connected() Hands-Free Voice gateway Success (0)
bluetoothd[202219]: profiles/audio/a2dp.c:a2dp_sink_connect() path /org/bluez/hci0/dev_1C_52_16_4E_B9_9F
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_ref() 0x636f780: ref=1
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_ref() 0x636f780: ref=2
bluetoothd[202219]: profiles/audio/a2dp.c:setup_ref() 0x6372710: ref=1
bluetoothd[202219]: profiles/audio/sink.c:sink_set_state() State changed /org/bluez/hci0/dev_1C_52_16_4E_B9_9F: SINK_STATE_DISCONNECTED -> SINK_STATE_CONNECTING
bluetoothd[202219]: profiles/audio/sink.c:sink_connect() stream creation in progress
bluetoothd[202219]: src/service.c:change_state() 0x5f247c0: device 1C:52:16:4E:B9:9F profile a2dp-sink state changed: disconnected -> connecting (0)
bluetoothd[202219]: plugins/policy.c:policy_connect() /org/bluez/hci0/dev_1C_52_16_4E_B9_9F profile a2dp-sink
bluetoothd[202219]: src/service.c:btd_service_ref() 0x6164f10: ref=3
bluetoothd[202219]: plugins/policy.c:service_cb() Added Hands-Free Voice gateway reconnect 0
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_connect_cb() AVDTP: connected signaling channel to 1C:52:16:4E:B9:9F
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_connect_cb() AVDTP imtu=672, omtu=128
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_register_remote_sep() seid 1 type 1 media 0 delay_reporting false
bluetoothd[202219]: profiles/audio/a2dp.c:register_remote_sep() Found remote SEP: /org/bluez/hci0/dev_1C_52_16_4E_B9_9F/sep1
bluetoothd[202219]: profiles/audio/avdtp.c:session_cb() 
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_parse_resp() DISCOVER request succeeded
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_discover_resp() seid 1 type 1 media 0 in use 0
bluetoothd[202219]: profiles/audio/a2dp.c:discover_cb() version 0x0103 err (nil)
bluetoothd[202219]: profiles/audio/sink.c:discovery_complete() Discovery complete
bluetoothd[202219]: profiles/audio/a2dp.c:setup_ref() 0x6372710: ref=2
bluetoothd[202219]: profiles/audio/a2dp.c:setup_ref() 0x6372710: ref=3
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_async_call() Calling SelectConfiguration: name = :1.5600 path = /A2DPEndpoint/Source/sbc_xq2
bluetoothd[202219]: profiles/audio/a2dp.c:setup_unref() 0x6372710: ref=2
bluetoothd[202219]: profiles/audio/a2dp.c:a2dp_config() a2dp_config: selected SEP 0x625e210
bluetoothd[202219]: profiles/audio/a2dp.c:setup_ref() 0x6372710: ref=3
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_set_configuration() 0x636f780: int_seid=2, acp_seid=1
bluetoothd[202219]: profiles/audio/a2dp.c:setup_unref() 0x6372710: ref=2
bluetoothd[202219]: profiles/audio/a2dp.c:setup_unref() 0x6372710: ref=1
bluetoothd[202219]: profiles/audio/avdtp.c:session_cb() 
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_parse_resp() SET_CONFIGURATION request succeeded
bluetoothd[202219]: profiles/audio/a2dp.c:setconf_cfm() Source 0x625e210: Set_Configuration_Cfm
bluetoothd[202219]: profiles/audio/a2dp.c:setup_ref() 0x6372710: ref=2
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_async_call() Calling SetConfiguration: name = :1.5600 path = /A2DPEndpoint/Source/sbc_xq2
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_sep_set_state() stream state changed: IDLE -> CONFIGURED
bluetoothd[202219]: profiles/audio/a2dp.c:setup_unref() 0x6372710: ref=1
bluetoothd[202219]: profiles/audio/transport.c:media_owner_create() Owner created: sender=:1.5600
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_ref() 0x636f780: ref=3
bluetoothd[202219]: profiles/audio/a2dp.c:a2dp_sep_lock() SEP 0x625e210 locked
bluetoothd[202219]: profiles/audio/a2dp.c:setup_ref() 0x6372710: ref=2
bluetoothd[202219]: profiles/audio/transport.c:transport_set_state() State changed /org/bluez/hci0/dev_1C_52_16_4E_B9_9F/sep1/fd0: TRANSPORT_STATE_IDLE -> TRANSPORT_STATE_REQUESTING
bluetoothd[202219]: profiles/audio/transport.c:media_request_create() Request created: method=Acquire id=4
bluetoothd[202219]: profiles/audio/transport.c:media_owner_add() Owner :1.5600 Request Acquire
bluetoothd[202219]: profiles/audio/transport.c:media_transport_set_owner() Transport /org/bluez/hci0/dev_1C_52_16_4E_B9_9F/sep1/fd0 Owner :1.5600
bluetoothd[202219]: profiles/audio/avdtp.c:session_cb() 
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_parse_resp() OPEN request succeeded
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_connect_cb() AVDTP: connected transport channel to 1C:52:16:4E:B9:9F
bluetoothd[202219]: profiles/audio/avdtp.c:handle_transport_connect() Flushable packets enabled
bluetoothd[202219]: profiles/audio/avdtp.c:handle_transport_connect() sk 66, omtu 672, send buffer size 106496
bluetoothd[202219]: profiles/audio/a2dp.c:open_cfm() Source 0x625e210: Open_Cfm
bluetoothd[202219]: profiles/audio/a2dp.c:setup_unref() 0x6372710: ref=1
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_sep_set_state() stream state changed: CONFIGURED -> OPEN
bluetoothd[202219]: src/service.c:change_state() 0x5f247c0: device 1C:52:16:4E:B9:9F profile a2dp-sink state changed: connecting -> connected (0)
bluetoothd[202219]: src/device.c:device_profile_connected() a2dp-sink Success (0)
bluetoothd[202219]: src/device.c:device_profile_connected() returning response to :1.64
bluetoothd[202219]: plugins/policy.c:policy_connect() /org/bluez/hci0/dev_1C_52_16_4E_B9_9F profile avrcp-controller
bluetoothd[202219]: profiles/audio/avrcp.c:avrcp_connect() path /org/bluez/hci0/dev_1C_52_16_4E_B9_9F
bluetoothd[202219]: profiles/audio/avctp.c:avctp_set_state() AVCTP Connecting
bluetoothd[202219]: src/service.c:change_state() 0x5f13ac0: device 1C:52:16:4E:B9:9F profile avrcp-controller state changed: disconnected -> connecting (0)
bluetoothd[202219]: src/service.c:btd_service_ref() 0x5f247c0: ref=3
bluetoothd[202219]: plugins/policy.c:service_cb() Added a2dp-sink reconnect 1
bluetoothd[202219]: profiles/audio/sink.c:sink_set_state() State changed /org/bluez/hci0/dev_1C_52_16_4E_B9_9F: SINK_STATE_CONNECTING -> SINK_STATE_CONNECTED
bluetoothd[202219]: profiles/audio/transport.c:transport_update_playing() /org/bluez/hci0/dev_1C_52_16_4E_B9_9F/sep1/fd0 State=TRANSPORT_STATE_REQUESTING Playing=0
bluetoothd[202219]: profiles/audio/avdtp.c:session_cb() 
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_parse_resp() START request succeeded
bluetoothd[202219]: profiles/audio/a2dp.c:start_cfm() Source 0x625e210: Start_Cfm
bluetoothd[202219]: /org/bluez/hci0/dev_1C_52_16_4E_B9_9F/sep1/fd0: fd(66) ready
bluetoothd[202219]: profiles/audio/transport.c:media_owner_remove() Owner :1.5600 Request Acquire
bluetoothd[202219]: profiles/audio/transport.c:transport_set_state() State changed /org/bluez/hci0/dev_1C_52_16_4E_B9_9F/sep1/fd0: TRANSPORT_STATE_REQUESTING -> TRANSPORT_STATE_ACTIVE
bluetoothd[202219]: profiles/audio/a2dp.c:setup_unref() 0x6372710: ref=0
bluetoothd[202219]: profiles/audio/a2dp.c:setup_free() 0x6372710
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unref() 0x636f780: ref=2
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_sep_set_state() stream state changed: OPEN -> STREAMING
bluetoothd[202219]: profiles/audio/sink.c:sink_set_state() State changed /org/bluez/hci0/dev_1C_52_16_4E_B9_9F: SINK_STATE_CONNECTED -> SINK_STATE_PLAYING
bluetoothd[202219]: profiles/audio/transport.c:transport_update_playing() /org/bluez/hci0/dev_1C_52_16_4E_B9_9F/sep1/fd0 State=TRANSPORT_STATE_ACTIVE Playing=1
bluetoothd[202219]: profiles/audio/avctp.c:avctp_connect_cb() AVCTP: connected to 1C:52:16:4E:B9:9F
bluetoothd[202219]: profiles/audio/avctp.c:init_uinput() AVRCP: uinput initialized for QCY-QY19
bluetoothd[202219]: profiles/audio/avrcp.c:controller_init() 0x64411a0 version 0x0106
bluetoothd[202219]: src/service.c:change_state() 0x5f1d7b0: device 1C:52:16:4E:B9:9F profile audio-avrcp-target state changed: disconnected -> connected (0)
bluetoothd[202219]: profiles/audio/avrcp.c:target_init() 0x6446370 version 0x0106
bluetoothd[202219]: src/service.c:change_state() 0x5f13ac0: device 1C:52:16:4E:B9:9F profile avrcp-controller state changed: connecting -> connected (0)
bluetoothd[202219]: src/device.c:device_profile_connected() avrcp-controller Success (0)
bluetoothd[202219]: profiles/audio/avctp.c:avctp_set_state() AVCTP Connected
bluetoothd[202219]: profiles/audio/avrcp.c:handle_vendordep_pdu() AVRCP PDU 0x10, company 0x001958 len 0x0001
bluetoothd[202219]: profiles/audio/avrcp.c:avrcp_handle_get_capabilities() id=3
bluetoothd[202219]: profiles/audio/avrcp.c:handle_vendordep_pdu() AVRCP PDU 0x31, company 0x001958 len 0x0005
bluetoothd[202219]: profiles/audio/avrcp.c:handle_vendordep_pdu() AVRCP PDU 0x31, company 0x001958 len 0x0005
bluetoothd[202219]: src/device.c:search_cb() 1C:52:16:4E:B9:9F: No service update
bluetoothd[202219]: src/device.c:device_svc_resolved() /org/bluez/hci0/dev_1C_52_16_4E_B9_9F err 0

Here I've tried to change codec in pulseaudio

bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_ref() 0x636f780: ref=3
bluetoothd[202219]: profiles/audio/a2dp.c:setup_ref() 0x64b9080: ref=1
bluetoothd[202219]: profiles/audio/avdtp.c:session_cb() 
bluetoothd[202219]: profiles/audio/avdtp.c:stream_rej_to_err() Too small packet for stream_rej
bluetoothd[202219]: profiles/audio/avdtp.c:session_cb() Unable to parse reject response
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_ref() 0x636f780: ref=4
bluetoothd[202219]: profiles/audio/avdtp.c:connection_lost() Disconnected from 1C:52:16:4E:B9:9F
bluetoothd[202219]: profiles/audio/a2dp.c:abort_cfm() Source 0x625e210: Abort_Cfm
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_sep_set_state() stream state changed: STREAMING -> IDLE
bluetoothd[202219]: profiles/audio/avdtp.c:handle_unanswered_req() No reply to Close request
bluetoothd[202219]: profiles/audio/a2dp.c:close_cfm() Source 0x625e210: Close_Cfm
bluetoothd[202219]: profiles/audio/a2dp.c:setup_unref() 0x64b9080: ref=0
bluetoothd[202219]: profiles/audio/a2dp.c:setup_free() 0x64b9080
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unref() 0x636f780: ref=3
bluetoothd[202219]: profiles/audio/transport.c:media_transport_remove_owner() Transport /org/bluez/hci0/dev_1C_52_16_4E_B9_9F/sep1/fd0 Owner :1.5600
bluetoothd[202219]: profiles/audio/transport.c:media_owner_free() Owner :1.5600
bluetoothd[202219]: profiles/audio/transport.c:transport_set_state() State changed /org/bluez/hci0/dev_1C_52_16_4E_B9_9F/sep1/fd0: TRANSPORT_STATE_ACTIVE -> TRANSPORT_STATE_IDLE
bluetoothd[202219]: profiles/audio/a2dp.c:a2dp_sep_unlock() SEP 0x625e210 unlocked
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unref() 0x636f780: ref=2
bluetoothd[202219]: src/service.c:change_state() 0x5f247c0: device 1C:52:16:4E:B9:9F profile a2dp-sink state changed: connected -> disconnected (0)
bluetoothd[202219]: plugins/policy.c:policy_disconnect() /org/bluez/hci0/dev_1C_52_16_4E_B9_9F profile avrcp-controller
bluetoothd[202219]: src/service.c:change_state() 0x5f13ac0: device 1C:52:16:4E:B9:9F profile avrcp-controller state changed: connected -> disconnecting (0)
bluetoothd[202219]: profiles/audio/avrcp.c:avrcp_disconnect() path /org/bluez/hci0/dev_1C_52_16_4E_B9_9F
bluetoothd[202219]: src/service.c:change_state() 0x5f1d7b0: device 1C:52:16:4E:B9:9F profile audio-avrcp-target state changed: connected -> disconnected (0)
bluetoothd[202219]: src/service.c:change_state() 0x5f13ac0: device 1C:52:16:4E:B9:9F profile avrcp-controller state changed: disconnecting -> disconnected (0)
bluetoothd[202219]: profiles/audio/avrcp.c:controller_destroy() 0x64411a0
bluetoothd[202219]: profiles/audio/avrcp.c:target_destroy() 0x6446370
bluetoothd[202219]: profiles/audio/avctp.c:avctp_set_state() AVCTP Disconnected
bluetoothd[202219]: profiles/audio/avctp.c:avctp_disconnected() AVCTP: closing uinput for 1C:52:16:4E:B9:9F
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unref() 0x636f780: ref=1
bluetoothd[202219]: profiles/audio/sink.c:sink_set_state() State changed /org/bluez/hci0/dev_1C_52_16_4E_B9_9F: SINK_STATE_PLAYING -> SINK_STATE_DISCONNECTED
bluetoothd[202219]: profiles/audio/a2dp.c:channel_remove() chan 0x636f5a0
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unref() 0x636f780: ref=0
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_free() 0x636f780
==202219== Invalid read of size 8
==202219==    at 0x137B87: a2dp_reconfigure (a2dp.c:1164)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64b9098 is 24 bytes inside a block of size 112 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x138186: setup_new (a2dp.c:193)
==202219==    by 0x138186: a2dp_setup_get (a2dp.c:421)
==202219==    by 0x13980D: a2dp_reconfig (a2dp.c:1647)
==202219==    by 0x13980D: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219== 
==202219== Invalid read of size 8
==202219==    at 0x137B98: a2dp_reconfigure (a2dp.c:1175)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64b90a0 is 32 bytes inside a block of size 112 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x138186: setup_new (a2dp.c:193)
==202219==    by 0x138186: a2dp_setup_get (a2dp.c:421)
==202219==    by 0x13980D: a2dp_reconfig (a2dp.c:1647)
==202219==    by 0x13980D: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219== 
==202219== Invalid read of size 8
==202219==    at 0x137BA1: a2dp_reconfigure (a2dp.c:1176)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x638ecd0 is 16 bytes inside a block of size 24 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x1CB419: remove_interface (object.c:654)
==202219==    by 0x1CB886: g_dbus_unregister_interface (object.c:1388)
==202219==    by 0x1CFDF1: queue_remove_all (queue.c:341)
==202219==    by 0x1CFE24: queue_destroy (queue.c:60)
==202219==    by 0x135987: channel_free (a2dp.c:1508)
==202219==    by 0x13B1C7: avdtp_set_state (avdtp.c:712)
==202219==    by 0x13C5D2: connection_lost (avdtp.c:1139)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==  Block was alloc'd at
==202219==    at 0x483A77F: malloc (vg_replace_malloc.c:307)
==202219==    by 0x1CFEBE: btd_malloc (util.c:34)
==202219==    by 0x1370E7: register_remote_sep.part.0 (a2dp.c:1870)
==202219==    by 0x1378DB: register_remote_sep (a2dp.c:1867)
==202219==    by 0x1378DB: load_remote_sep (a2dp.c:1997)
==202219==    by 0x1378DB: load_remote_seps (a2dp.c:2044)
==202219==    by 0x13B1C7: avdtp_set_state (avdtp.c:712)
==202219==    by 0x13F163: avdtp_connect_cb (avdtp.c:2346)
==202219==    by 0x177082: connect_cb (btio.c:224)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219== 
==202219== Invalid read of size 8
==202219==    at 0x137BA5: a2dp_reconfigure (a2dp.c:1176)
==202219==    by 0x499C0EF: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x638c768 is 8 bytes inside a block of size 40 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49BA90B: g_slist_free_full (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C714: avdtp_free (avdtp.c:1117)
==202219==    by 0x13C714: avdtp_unref (avdtp.c:1212)
==202219==    by 0x13C714: avdtp_unref (avdtp.c:1191)
==202219==    by 0x13C5DA: connection_lost (avdtp.c:1141)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13D1F1: avdtp_register_remote_sep (avdtp.c:3306)
==202219==    by 0x1378A1: load_remote_sep (a2dp.c:1990)
==202219==    by 0x1378A1: load_remote_seps (a2dp.c:2044)
==202219==    by 0x13B1C7: avdtp_set_state (avdtp.c:712)
==202219==    by 0x13F163: avdtp_connect_cb (avdtp.c:2346)
==202219==    by 0x177082: connect_cb (btio.c:224)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219== 
==202219== Invalid read of size 8
==202219==    at 0x137BB1: a2dp_reconfigure (a2dp.c:1180)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64b90a0 is 32 bytes inside a block of size 112 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x138186: setup_new (a2dp.c:193)
==202219==    by 0x138186: a2dp_setup_get (a2dp.c:421)
==202219==    by 0x13980D: a2dp_reconfig (a2dp.c:1647)
==202219==    by 0x13980D: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219== 
==202219== Invalid read of size 1
==202219==    at 0x137BBA: a2dp_reconfigure (a2dp.c:1180)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x638c6c3 is 3 bytes inside a block of size 8 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49BA90B: g_slist_free_full (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13B263: sep_free (avdtp.c:1077)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49BA90B: g_slist_free_full (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C714: avdtp_free (avdtp.c:1117)
==202219==    by 0x13C714: avdtp_unref (avdtp.c:1212)
==202219==    by 0x13C714: avdtp_unref (avdtp.c:1191)
==202219==    by 0x13C5DA: connection_lost (avdtp.c:1141)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==  Block was alloc'd at
==202219==    at 0x483A77F: malloc (vg_replace_malloc.c:307)
==202219==    by 0x49992A9: g_malloc (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13D134: avdtp_service_cap_new (avdtp.c:3285)
==202219==    by 0x135333: caps_add_codec (a2dp.c:1553)
==202219==    by 0x137877: load_remote_sep (a2dp.c:1988)
==202219==    by 0x137877: load_remote_seps (a2dp.c:2044)
==202219==    by 0x13B1C7: avdtp_set_state (avdtp.c:712)
==202219==    by 0x13F163: avdtp_connect_cb (avdtp.c:2346)
==202219==    by 0x177082: connect_cb (btio.c:224)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219== 
==202219== Invalid read of size 8
==202219==    at 0x137BF6: a2dp_reconfigure (a2dp.c:1189)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64b90c8 is 72 bytes inside a block of size 112 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x138186: setup_new (a2dp.c:193)
==202219==    by 0x138186: a2dp_setup_get (a2dp.c:421)
==202219==    by 0x13980D: a2dp_reconfig (a2dp.c:1647)
==202219==    by 0x13980D: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219== 
==202219== Invalid read of size 8
==202219==    at 0x137BFA: a2dp_reconfigure (a2dp.c:1189)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x638ecd0 is 16 bytes inside a block of size 24 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x1CB419: remove_interface (object.c:654)
==202219==    by 0x1CB886: g_dbus_unregister_interface (object.c:1388)
==202219==    by 0x1CFDF1: queue_remove_all (queue.c:341)
==202219==    by 0x1CFE24: queue_destroy (queue.c:60)
==202219==    by 0x135987: channel_free (a2dp.c:1508)
==202219==    by 0x13B1C7: avdtp_set_state (avdtp.c:712)
==202219==    by 0x13C5D2: connection_lost (avdtp.c:1139)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==  Block was alloc'd at
==202219==    at 0x483A77F: malloc (vg_replace_malloc.c:307)
==202219==    by 0x1CFEBE: btd_malloc (util.c:34)
==202219==    by 0x1370E7: register_remote_sep.part.0 (a2dp.c:1870)
==202219==    by 0x1378DB: register_remote_sep (a2dp.c:1867)
==202219==    by 0x1378DB: load_remote_sep (a2dp.c:1997)
==202219==    by 0x1378DB: load_remote_seps (a2dp.c:2044)
==202219==    by 0x13B1C7: avdtp_set_state (avdtp.c:712)
==202219==    by 0x13F163: avdtp_connect_cb (avdtp.c:2346)
==202219==    by 0x177082: connect_cb (btio.c:224)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219== 
==202219== Invalid read of size 8
==202219==    at 0x137C02: a2dp_reconfigure (a2dp.c:1189)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64b9088 is 8 bytes inside a block of size 112 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x138186: setup_new (a2dp.c:193)
==202219==    by 0x138186: a2dp_setup_get (a2dp.c:421)
==202219==    by 0x13980D: a2dp_reconfig (a2dp.c:1647)
==202219==    by 0x13980D: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219== 
==202219== Invalid read of size 4
==202219==    at 0x13D4AE: avdtp_set_configuration (avdtp.c:3448)
==202219==    by 0x137C0A: a2dp_reconfigure (a2dp.c:1189)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x636f798 is 24 bytes inside a block of size 1,184 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x13C5DA: connection_lost (avdtp.c:1141)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13F23E: avdtp_new (avdtp.c:2395)
==202219==    by 0x139B1D: a2dp_avdtp_get (a2dp.c:2141)
==202219==    by 0x134C6F: sink_setup_stream (sink.c:250)
==202219==    by 0x134CDB: sink_connect (sink.c:283)
==202219==    by 0x1A4B88: btd_service_connect (service.c:248)
==202219==    by 0x1B1A1C: connect_next (device.c:1724)
==202219==    by 0x1B1A1C: device_profile_connected (device.c:1770)
==202219==    by 0x1B1A1C: service_state_changed (device.c:6881)
==202219==    by 0x1A45F1: change_state (service.c:96)
==202219==    by 0x1A1862: new_conn_reply (profile.c:868)
==202219==    by 0x4A93FA1: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219== 
bluetoothd[202219]: profiles/audio/a2dp.c:a2dp_reconfigure() avdtp_set_configuration: Transport endpoint is not connected
==202219== Invalid write of size 8
==202219==    at 0x137B66: finalize_setup_errno (a2dp.c:265)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64b90b0 is 48 bytes inside a block of size 112 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x138186: setup_new (a2dp.c:193)
==202219==    by 0x138186: a2dp_setup_get (a2dp.c:421)
==202219==    by 0x13980D: a2dp_reconfig (a2dp.c:1647)
==202219==    by 0x13980D: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219== 
==202219== Invalid read of size 4
==202219==    at 0x137AA4: setup_ref (a2dp.c:153)
==202219==    by 0x137AA4: finalize_setup_errno (a2dp.c:270)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64b90e8 is 104 bytes inside a block of size 112 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x138186: setup_new (a2dp.c:193)
==202219==    by 0x138186: a2dp_setup_get (a2dp.c:421)
==202219==    by 0x13980D: a2dp_reconfig (a2dp.c:1647)
==202219==    by 0x13980D: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219== 
==202219== Invalid write of size 4
==202219==    at 0x137AAB: setup_ref (a2dp.c:153)
==202219==    by 0x137AAB: finalize_setup_errno (a2dp.c:270)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64b90e8 is 104 bytes inside a block of size 112 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x138186: setup_new (a2dp.c:193)
==202219==    by 0x138186: a2dp_setup_get (a2dp.c:421)
==202219==    by 0x13980D: a2dp_reconfig (a2dp.c:1647)
==202219==    by 0x13980D: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219== 
bluetoothd[202219]: profiles/audio/a2dp.c:setup_ref() 0x64b9080: ref=1
==202219== Invalid read of size 8
==202219==    at 0x138914: finalize_config (a2dp.c:306)
==202219==    by 0x137ADA: finalize_setup_errno (a2dp.c:272)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64b90b0 is 48 bytes inside a block of size 112 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x138186: setup_new (a2dp.c:193)
==202219==    by 0x138186: a2dp_setup_get (a2dp.c:421)
==202219==    by 0x13980D: a2dp_reconfig (a2dp.c:1647)
==202219==    by 0x13980D: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219== 
==202219== Invalid read of size 8
==202219==    at 0x13891F: finalize_config (a2dp.c:308)
==202219==    by 0x137ADA: finalize_setup_errno (a2dp.c:272)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64b90d8 is 88 bytes inside a block of size 112 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x138186: setup_new (a2dp.c:193)
==202219==    by 0x138186: a2dp_setup_get (a2dp.c:421)
==202219==    by 0x13980D: a2dp_reconfig (a2dp.c:1647)
==202219==    by 0x13980D: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219== 
==202219== Invalid read of size 4
==202219==    at 0x13580A: setup_unref (a2dp.c:222)
==202219==    by 0x137B01: finalize_setup_errno (a2dp.c:275)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64b90e8 is 104 bytes inside a block of size 112 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x138186: setup_new (a2dp.c:193)
==202219==    by 0x138186: a2dp_setup_get (a2dp.c:421)
==202219==    by 0x13980D: a2dp_reconfig (a2dp.c:1647)
==202219==    by 0x13980D: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219== 
==202219== Invalid write of size 4
==202219==    at 0x135811: setup_unref (a2dp.c:222)
==202219==    by 0x137B01: finalize_setup_errno (a2dp.c:275)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64b90e8 is 104 bytes inside a block of size 112 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x138186: setup_new (a2dp.c:193)
==202219==    by 0x138186: a2dp_setup_get (a2dp.c:421)
==202219==    by 0x13980D: a2dp_reconfig (a2dp.c:1647)
==202219==    by 0x13980D: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219== 
bluetoothd[202219]: profiles/audio/a2dp.c:setup_unref() 0x64b9080: ref=0
==202219== Invalid read of size 4
==202219==    at 0x1358E4: setup_unref (a2dp.c:226)
==202219==    by 0x137B01: finalize_setup_errno (a2dp.c:275)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64b90e8 is 104 bytes inside a block of size 112 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x138186: setup_new (a2dp.c:193)
==202219==    by 0x138186: a2dp_setup_get (a2dp.c:421)
==202219==    by 0x13980D: a2dp_reconfig (a2dp.c:1647)
==202219==    by 0x13980D: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219== 
bluetoothd[202219]: profiles/audio/a2dp.c:setup_free() 0x64b9080
==202219== Invalid read of size 8
==202219==    at 0x135914: setup_free (a2dp.c:203)
==202219==    by 0x135914: setup_unref (a2dp.c:229)
==202219==    by 0x137B01: finalize_setup_errno (a2dp.c:275)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64b90e0 is 96 bytes inside a block of size 112 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x138186: setup_new (a2dp.c:193)
==202219==    by 0x138186: a2dp_setup_get (a2dp.c:421)
==202219==    by 0x13980D: a2dp_reconfig (a2dp.c:1647)
==202219==    by 0x13980D: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219== 
==202219== Invalid read of size 8
==202219==    at 0x13585B: setup_free (a2dp.c:210)
==202219==    by 0x13585B: setup_unref (a2dp.c:229)
==202219==    by 0x137B01: finalize_setup_errno (a2dp.c:275)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64b9090 is 16 bytes inside a block of size 112 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x138186: setup_new (a2dp.c:193)
==202219==    by 0x138186: a2dp_setup_get (a2dp.c:421)
==202219==    by 0x13980D: a2dp_reconfig (a2dp.c:1647)
==202219==    by 0x13980D: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219== 
==202219== Invalid read of size 8
==202219==    at 0x135875: setup_free (a2dp.c:213)
==202219==    by 0x135875: setup_unref (a2dp.c:229)
==202219==    by 0x137B01: finalize_setup_errno (a2dp.c:275)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64b9088 is 8 bytes inside a block of size 112 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x138186: setup_new (a2dp.c:193)
==202219==    by 0x138186: a2dp_setup_get (a2dp.c:421)
==202219==    by 0x13980D: a2dp_reconfig (a2dp.c:1647)
==202219==    by 0x13980D: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219== 
==202219== Invalid read of size 4
==202219==    at 0x13C643: avdtp_unref (avdtp.c:1196)
==202219==    by 0x135889: setup_free (a2dp.c:214)
==202219==    by 0x135889: setup_unref (a2dp.c:229)
==202219==    by 0x137B01: finalize_setup_errno (a2dp.c:275)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x636f780 is 0 bytes inside a block of size 1,184 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x13C5DA: connection_lost (avdtp.c:1141)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13F23E: avdtp_new (avdtp.c:2395)
==202219==    by 0x139B1D: a2dp_avdtp_get (a2dp.c:2141)
==202219==    by 0x134C6F: sink_setup_stream (sink.c:250)
==202219==    by 0x134CDB: sink_connect (sink.c:283)
==202219==    by 0x1A4B88: btd_service_connect (service.c:248)
==202219==    by 0x1B1A1C: connect_next (device.c:1724)
==202219==    by 0x1B1A1C: device_profile_connected (device.c:1770)
==202219==    by 0x1B1A1C: service_state_changed (device.c:6881)
==202219==    by 0x1A45F1: change_state (service.c:96)
==202219==    by 0x1A1862: new_conn_reply (profile.c:868)
==202219==    by 0x4A93FA1: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219== 
==202219== Invalid write of size 4
==202219==    at 0x13C649: avdtp_unref (avdtp.c:1196)
==202219==    by 0x135889: setup_free (a2dp.c:214)
==202219==    by 0x135889: setup_unref (a2dp.c:229)
==202219==    by 0x137B01: finalize_setup_errno (a2dp.c:275)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x636f780 is 0 bytes inside a block of size 1,184 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x13C5DA: connection_lost (avdtp.c:1141)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13F23E: avdtp_new (avdtp.c:2395)
==202219==    by 0x139B1D: a2dp_avdtp_get (a2dp.c:2141)
==202219==    by 0x134C6F: sink_setup_stream (sink.c:250)
==202219==    by 0x134CDB: sink_connect (sink.c:283)
==202219==    by 0x1A4B88: btd_service_connect (service.c:248)
==202219==    by 0x1B1A1C: connect_next (device.c:1724)
==202219==    by 0x1B1A1C: device_profile_connected (device.c:1770)
==202219==    by 0x1B1A1C: service_state_changed (device.c:6881)
==202219==    by 0x1A45F1: change_state (service.c:96)
==202219==    by 0x1A1862: new_conn_reply (profile.c:868)
==202219==    by 0x4A93FA1: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219== 
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unref() 0x636f780: ref=-1
==202219== Invalid read of size 4
==202219==    at 0x13C774: avdtp_unref (avdtp.c:1200)
==202219==    by 0x135889: setup_free (a2dp.c:214)
==202219==    by 0x135889: setup_unref (a2dp.c:229)
==202219==    by 0x137B01: finalize_setup_errno (a2dp.c:275)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x636f780 is 0 bytes inside a block of size 1,184 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x13C5DA: connection_lost (avdtp.c:1141)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13F23E: avdtp_new (avdtp.c:2395)
==202219==    by 0x139B1D: a2dp_avdtp_get (a2dp.c:2141)
==202219==    by 0x134C6F: sink_setup_stream (sink.c:250)
==202219==    by 0x134CDB: sink_connect (sink.c:283)
==202219==    by 0x1A4B88: btd_service_connect (service.c:248)
==202219==    by 0x1B1A1C: connect_next (device.c:1724)
==202219==    by 0x1B1A1C: device_profile_connected (device.c:1770)
==202219==    by 0x1B1A1C: service_state_changed (device.c:6881)
==202219==    by 0x1A45F1: change_state (service.c:96)
==202219==    by 0x1A1862: new_conn_reply (profile.c:868)
==202219==    by 0x4A93FA1: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219== 
==202219== Invalid read of size 8
==202219==    at 0x135891: setup_free (a2dp.c:215)
==202219==    by 0x135891: setup_unref (a2dp.c:229)
==202219==    by 0x137B01: finalize_setup_errno (a2dp.c:275)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64b90d8 is 88 bytes inside a block of size 112 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x138186: setup_new (a2dp.c:193)
==202219==    by 0x138186: a2dp_setup_get (a2dp.c:421)
==202219==    by 0x13980D: a2dp_reconfig (a2dp.c:1647)
==202219==    by 0x13980D: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219== 
==202219== Invalid read of size 8
==202219==    at 0x13589D: setup_free (a2dp.c:216)
==202219==    by 0x13589D: setup_unref (a2dp.c:229)
==202219==    by 0x137B01: finalize_setup_errno (a2dp.c:275)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64b90c8 is 72 bytes inside a block of size 112 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x138186: setup_new (a2dp.c:193)
==202219==    by 0x138186: a2dp_setup_get (a2dp.c:421)
==202219==    by 0x13980D: a2dp_reconfig (a2dp.c:1647)
==202219==    by 0x13980D: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219== 
==202219== Invalid read of size 8
==202219==    at 0x49B6AAB: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49BA90B: g_slist_free_full (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1358A8: setup_free (a2dp.c:216)
==202219==    by 0x1358A8: setup_unref (a2dp.c:229)
==202219==    by 0x137B01: finalize_setup_errno (a2dp.c:275)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64bdb58 is 8 bytes inside a block of size 16 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x49BA722: g_slice_free_chain_with_offset (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1358A8: setup_free (a2dp.c:216)
==202219==    by 0x1358A8: setup_unref (a2dp.c:229)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==  Block was alloc'd at
==202219==    at 0x483A77F: malloc (vg_replace_malloc.c:307)
==202219==    by 0x49992A9: g_malloc (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49BA9BF: g_slice_alloc (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49BB0C4: g_slist_append (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1352FD: caps_add_codec (a2dp.c:1546)
==202219==    by 0x13989C: a2dp_reconfig (a2dp.c:1661)
==202219==    by 0x13989C: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219== 
==202219== Invalid read of size 8
==202219==    at 0x49B6AB2: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49BA90B: g_slist_free_full (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1358A8: setup_free (a2dp.c:216)
==202219==    by 0x1358A8: setup_unref (a2dp.c:229)
==202219==    by 0x137B01: finalize_setup_errno (a2dp.c:275)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64bdb50 is 0 bytes inside a block of size 16 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x49BA722: g_slice_free_chain_with_offset (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1358A8: setup_free (a2dp.c:216)
==202219==    by 0x1358A8: setup_unref (a2dp.c:229)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==  Block was alloc'd at
==202219==    at 0x483A77F: malloc (vg_replace_malloc.c:307)
==202219==    by 0x49992A9: g_malloc (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49BA9BF: g_slice_alloc (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49BB0C4: g_slist_append (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1352FD: caps_add_codec (a2dp.c:1546)
==202219==    by 0x13989C: a2dp_reconfig (a2dp.c:1661)
==202219==    by 0x13989C: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219== 
==202219== Invalid free() / delete / delete[] / realloc()
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49BA90B: g_slist_free_full (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1358A8: setup_free (a2dp.c:216)
==202219==    by 0x1358A8: setup_unref (a2dp.c:229)
==202219==    by 0x137B01: finalize_setup_errno (a2dp.c:275)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==  Address 0x64bdb00 is 0 bytes inside a block of size 2 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49BA90B: g_slist_free_full (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1358A8: setup_free (a2dp.c:216)
==202219==    by 0x1358A8: setup_unref (a2dp.c:229)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==  Block was alloc'd at
==202219==    at 0x483A77F: malloc (vg_replace_malloc.c:307)
==202219==    by 0x49992A9: g_malloc (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13D134: avdtp_service_cap_new (avdtp.c:3285)
==202219==    by 0x1352F1: caps_add_codec (a2dp.c:1543)
==202219==    by 0x13989C: a2dp_reconfig (a2dp.c:1661)
==202219==    by 0x13989C: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219== 
==202219== Invalid read of size 8
==202219==    at 0x49BA731: g_slice_free_chain_with_offset (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1358A8: setup_free (a2dp.c:216)
==202219==    by 0x1358A8: setup_unref (a2dp.c:229)
==202219==    by 0x137B01: finalize_setup_errno (a2dp.c:275)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64bdb58 is 8 bytes inside a block of size 16 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x49BA722: g_slice_free_chain_with_offset (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1358A8: setup_free (a2dp.c:216)
==202219==    by 0x1358A8: setup_unref (a2dp.c:229)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==  Block was alloc'd at
==202219==    at 0x483A77F: malloc (vg_replace_malloc.c:307)
==202219==    by 0x49992A9: g_malloc (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49BA9BF: g_slice_alloc (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49BB0C4: g_slist_append (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1352FD: caps_add_codec (a2dp.c:1546)
==202219==    by 0x13989C: a2dp_reconfig (a2dp.c:1661)
==202219==    by 0x13989C: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219== 
==202219== Invalid free() / delete / delete[] / realloc()
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x49BA722: g_slice_free_chain_with_offset (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1358A8: setup_free (a2dp.c:216)
==202219==    by 0x1358A8: setup_unref (a2dp.c:229)
==202219==    by 0x137B01: finalize_setup_errno (a2dp.c:275)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64bdb50 is 0 bytes inside a block of size 16 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x49BA722: g_slice_free_chain_with_offset (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1358A8: setup_free (a2dp.c:216)
==202219==    by 0x1358A8: setup_unref (a2dp.c:229)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==  Block was alloc'd at
==202219==    at 0x483A77F: malloc (vg_replace_malloc.c:307)
==202219==    by 0x49992A9: g_malloc (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49BA9BF: g_slice_alloc (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49BB0C4: g_slist_append (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1352FD: caps_add_codec (a2dp.c:1546)
==202219==    by 0x13989C: a2dp_reconfig (a2dp.c:1661)
==202219==    by 0x13989C: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219== 
==202219== Invalid free() / delete / delete[] / realloc()
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x137B01: finalize_setup_errno (a2dp.c:275)
==202219==    by 0x137C5A: a2dp_reconfigure (a2dp.c:1201)
==202219==    by 0x499C103: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Address 0x64b9080 is 0 bytes inside a block of size 112 free'd
==202219==    at 0x483B9AB: free (vg_replace_malloc.c:538)
==202219==    by 0x1389AD: setup_cb_free (a2dp.c:252)
==202219==    by 0x1389AD: finalize_config (a2dp.c:318)
==202219==    by 0x13E26A: handle_unanswered_req (avdtp.c:956)
==202219==    by 0x13E26A: avdtp_sep_set_state (avdtp.c:1021)
==202219==    by 0x49B6AB7: g_slist_foreach (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x13C5B5: connection_lost (avdtp.c:1134)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2277)
==202219==    by 0x13F3EB: session_cb (avdtp.c:2165)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219==    by 0x1E1A1B: mainloop_run_with_signal (mainloop-notify.c:188)
==202219==    by 0x12C310: main (main.c:1084)
==202219==  Block was alloc'd at
==202219==    at 0x483CB65: calloc (vg_replace_malloc.c:760)
==202219==    by 0x4999641: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x138186: setup_new (a2dp.c:193)
==202219==    by 0x138186: a2dp_setup_get (a2dp.c:421)
==202219==    by 0x13980D: a2dp_reconfig (a2dp.c:1647)
==202219==    by 0x13980D: set_configuration (a2dp.c:1752)
==202219==    by 0x1CC2E8: process_message (object.c:246)
==202219==    by 0x4AA47D5: ??? (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x4A943BC: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.19.13)
==202219==    by 0x1C8A9F: message_dispatch (mainloop.c:59)
==202219==    by 0x499B913: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x49EF7D0: ??? (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x499AE62: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6600.2)
==202219==    by 0x1E15C4: mainloop_run (mainloop-glib.c:66)
==202219== 
bluetoothd[202219]: Terminating
bluetoothd[202219]: src/adapter.c:adapter_shutdown() 
bluetoothd[202219]: src/adapter.c:set_mode() sending set mode command for index 0
bluetoothd[202219]: src/adapter.c:dev_disconnected() Device 1C:52:16:4E:B9:9F disconnected, reason 2
bluetoothd[202219]: src/adapter.c:adapter_remove_connection() 
bluetoothd[202219]: plugins/policy.c:disconnect_cb() reason 2
bluetoothd[202219]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr 1C:52:16:4E:B9:9F type 0 status 0xe
bluetoothd[202219]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e
bluetoothd[202219]: src/device.c:device_bonding_failed() status 14
bluetoothd[202219]: src/adapter.c:resume_discovery() 
bluetoothd[202219]: src/profile.c:ext_io_disconnected() Unable to get io data for Hands-Free Voice gateway: getpeername: Transport endpoint is not connected (107)
bluetoothd[202219]: src/service.c:change_state() 0x6164f10: device 1C:52:16:4E:B9:9F profile Hands-Free Voice gateway state changed: connected -> disconnected (0)
bluetoothd[202219]: src/service.c:btd_service_unref() 0x6164f10: ref=2
bluetoothd[202219]: src/adapter.c:new_settings_callback() Settings: 0x00000ada
bluetoothd[202219]: src/adapter.c:settings_changed() Changed settings: 0x00000001
bluetoothd[202219]: src/adapter.c:settings_changed() Pending settings: 0x00000000
bluetoothd[202219]: src/adapter.c:cancel_passive_scanning() 
bluetoothd[202219]: src/adapter.c:adapter_stop() adapter /org/bluez/hci0 has been disabled
bluetoothd[202219]: src/plugin.c:plugin_cleanup() Cleanup plugins
bluetoothd[202219]: profiles/health/hdp.c:hdp_manager_stop() Stopped Health manager
bluetoothd[202219]: profiles/input/suspend-none.c:suspend_exit() 
bluetoothd[202219]: profiles/audio/a2dp.c:media_server_remove() path /org/bluez/hci0
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_xq2
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_xq2
bluetoothd[202219]: Endpoint unregistered: sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_xq2
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_xq2
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x62420b0 unregistered: type:1 codec:0 seid:1
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Source/sbc_xq2
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Source/sbc_xq2
bluetoothd[202219]: Endpoint unregistered: sender=:1.5600 path=/A2DPEndpoint/Source/sbc_xq2
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.5600 path=/A2DPEndpoint/Source/sbc_xq2
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x625e210 unregistered: type:0 codec:0 seid:2
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_xq1
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_xq1
bluetoothd[202219]: Endpoint unregistered: sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_xq1
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_xq1
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x627a020 unregistered: type:1 codec:0 seid:3
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Source/sbc_xq1
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Source/sbc_xq1
bluetoothd[202219]: Endpoint unregistered: sender=:1.5600 path=/A2DPEndpoint/Source/sbc_xq1
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.5600 path=/A2DPEndpoint/Source/sbc_xq1
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x627ee70 unregistered: type:0 codec:0 seid:4
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Sink/aptx_hd
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Sink/aptx_hd
bluetoothd[202219]: Endpoint unregistered: sender=:1.5600 path=/A2DPEndpoint/Sink/aptx_hd
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.5600 path=/A2DPEndpoint/Sink/aptx_hd
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x6283cc0 unregistered: type:1 codec:255 seid:5
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Source/aptx_hd
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Source/aptx_hd
bluetoothd[202219]: Endpoint unregistered: sender=:1.5600 path=/A2DPEndpoint/Source/aptx_hd
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.5600 path=/A2DPEndpoint/Source/aptx_hd
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x6288b10 unregistered: type:0 codec:255 seid:6
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_hq
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_hq
bluetoothd[202219]: Endpoint unregistered: sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_hq
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_hq
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x628d960 unregistered: type:1 codec:0 seid:7
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Source/sbc_hq
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Source/sbc_hq
bluetoothd[202219]: Endpoint unregistered: sender=:1.5600 path=/A2DPEndpoint/Source/sbc_hq
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.5600 path=/A2DPEndpoint/Source/sbc_hq
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x62927b0 unregistered: type:0 codec:0 seid:8
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Sink/aptx
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Sink/aptx
bluetoothd[202219]: Endpoint unregistered: sender=:1.5600 path=/A2DPEndpoint/Sink/aptx
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.5600 path=/A2DPEndpoint/Sink/aptx
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x6297600 unregistered: type:1 codec:255 seid:9
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Source/aptx
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Source/aptx
bluetoothd[202219]: Endpoint unregistered: sender=:1.5600 path=/A2DPEndpoint/Source/aptx
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.5600 path=/A2DPEndpoint/Source/aptx
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x629c450 unregistered: type:0 codec:255 seid:10
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Sink/sbc
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Sink/sbc
bluetoothd[202219]: Endpoint unregistered: sender=:1.5600 path=/A2DPEndpoint/Sink/sbc
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.5600 path=/A2DPEndpoint/Sink/sbc
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x62a12a0 unregistered: type:1 codec:0 seid:11
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Source/sbc
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Source/sbc
bluetoothd[202219]: Endpoint unregistered: sender=:1.5600 path=/A2DPEndpoint/Source/sbc
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.5600 path=/A2DPEndpoint/Source/sbc
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x62a60e0 unregistered: type:0 codec:0 seid:12
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_mq
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_mq
bluetoothd[202219]: Endpoint unregistered: sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_mq
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_mq
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x62aaf30 unregistered: type:1 codec:0 seid:13
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Source/sbc_mq
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Source/sbc_mq
bluetoothd[202219]: Endpoint unregistered: sender=:1.5600 path=/A2DPEndpoint/Source/sbc_mq
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.5600 path=/A2DPEndpoint/Source/sbc_mq
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x62afd80 unregistered: type:0 codec:0 seid:14
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Sink/faststream_mic
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Sink/faststream_mic
bluetoothd[202219]: Endpoint unregistered: sender=:1.5600 path=/A2DPEndpoint/Sink/faststream_mic
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.5600 path=/A2DPEndpoint/Sink/faststream_mic
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x62b4be0 unregistered: type:1 codec:255 seid:15
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Source/faststream_mic
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Source/faststream_mic
bluetoothd[202219]: Endpoint unregistered: sender=:1.5600 path=/A2DPEndpoint/Source/faststream_mic
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.5600 path=/A2DPEndpoint/Source/faststream_mic
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x62b9a90 unregistered: type:0 codec:255 seid:16
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Sink/faststream
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Sink/faststream
bluetoothd[202219]: Endpoint unregistered: sender=:1.5600 path=/A2DPEndpoint/Sink/faststream
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.5600 path=/A2DPEndpoint/Sink/faststream
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x62be8f0 unregistered: type:1 codec:255 seid:17
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Source/faststream
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Source/faststream
bluetoothd[202219]: Endpoint unregistered: sender=:1.5600 path=/A2DPEndpoint/Source/faststream
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.5600 path=/A2DPEndpoint/Source/faststream
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x62c3740 unregistered: type:0 codec:255 seid:18
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_lq
bluetoothd[202219]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
bluetoothd[202219]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x1000f
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_lq
bluetoothd[202219]: Endpoint unregistered: sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_lq
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.5600 path=/A2DPEndpoint/Sink/sbc_lq
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x62c85a0 unregistered: type:1 codec:0 seid:19
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Source/sbc_lq
bluetoothd[202219]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
bluetoothd[202219]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10010
bluetoothd[202219]: profiles/audio/media.c:release_endpoint() sender=:1.5600 path=/A2DPEndpoint/Source/sbc_lq
bluetoothd[202219]: Endpoint unregistered: sender=:1.5600 path=/A2DPEndpoint/Source/sbc_lq
bluetoothd[202219]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.5600 path=/A2DPEndpoint/Source/sbc_lq
bluetoothd[202219]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x62cd3f0 unregistered: type:0 codec:0 seid:20
bluetoothd[202219]: plugins/neard.c:neard_exit() Cleanup neard plugin
bluetoothd[202219]: src/service.c:btd_service_unref() 0x6164f10: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5f247c0: ref=2
bluetoothd[202219]: plugins/hostname.c:hostname_remove() 
bluetoothd[202219]: plugins/sixaxis.c:sixaxis_exit() 
bluetoothd[202219]: plugins/external-dummy.c:dummy_exit() 
bluetoothd[202219]: src/profile.c:btd_profile_cleanup() Releasing "Message Notification"
bluetoothd[202219]: src/profile.c:ext_adapter_remove() "Message Notification" removed
bluetoothd[202219]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
bluetoothd[202219]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10006
bluetoothd[202219]: src/profile.c:remove_ext() Removed "Message Notification"
bluetoothd[202219]: src/profile.c:btd_profile_cleanup() Releasing "Message Access"
bluetoothd[202219]: src/service.c:change_state() 0x6034520: device D8:32:E3:0A:4B:32 profile Message Access state changed: disconnected -> unavailable (0)
bluetoothd[202219]: src/profile.c:ext_device_remove() Message Access
bluetoothd[202219]: src/service.c:btd_service_unref() 0x6034520: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x6039260: device E4:0E:EE:7B:CB:62 profile Message Access state changed: disconnected -> unavailable (0)
bluetoothd[202219]: src/profile.c:ext_device_remove() Message Access
bluetoothd[202219]: src/service.c:btd_service_unref() 0x6039260: ref=0
bluetoothd[202219]: src/profile.c:ext_adapter_remove() "Message Access" removed
bluetoothd[202219]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
bluetoothd[202219]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10007
bluetoothd[202219]: src/profile.c:remove_ext() Removed "Message Access"
bluetoothd[202219]: src/profile.c:btd_profile_cleanup() Releasing "Phone Book Access"
bluetoothd[202219]: src/service.c:change_state() 0x606a9f0: device D8:32:E3:0A:4B:32 profile Phone Book Access state changed: disconnected -> unavailable (0)
bluetoothd[202219]: src/profile.c:ext_device_remove() Phone Book Access
bluetoothd[202219]: src/service.c:btd_service_unref() 0x606a9f0: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x606f750: device E4:0E:EE:7B:CB:62 profile Phone Book Access state changed: disconnected -> unavailable (0)
bluetoothd[202219]: src/profile.c:ext_device_remove() Phone Book Access
bluetoothd[202219]: src/service.c:btd_service_unref() 0x606f750: ref=0
bluetoothd[202219]: src/profile.c:ext_adapter_remove() "Phone Book Access" removed
bluetoothd[202219]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
bluetoothd[202219]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10008
bluetoothd[202219]: src/profile.c:remove_ext() Removed "Phone Book Access"
bluetoothd[202219]: src/profile.c:btd_profile_cleanup() Releasing "Synchronization"
bluetoothd[202219]: src/profile.c:ext_adapter_remove() "Synchronization" removed
bluetoothd[202219]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
bluetoothd[202219]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10009
bluetoothd[202219]: src/profile.c:remove_ext() Removed "Synchronization"
bluetoothd[202219]: src/profile.c:btd_profile_cleanup() Releasing "File Transfer"
bluetoothd[202219]: src/profile.c:ext_adapter_remove() "File Transfer" removed
bluetoothd[202219]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
bluetoothd[202219]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x1000a
bluetoothd[202219]: src/profile.c:remove_ext() Removed "File Transfer"
bluetoothd[202219]: src/profile.c:btd_profile_cleanup() Releasing "Object Push"
bluetoothd[202219]: src/service.c:change_state() 0x60f1bb0: device D8:32:E3:0A:4B:32 profile Object Push state changed: disconnected -> unavailable (0)
bluetoothd[202219]: src/profile.c:ext_device_remove() Object Push
bluetoothd[202219]: src/service.c:btd_service_unref() 0x60f1bb0: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x60f6780: device E4:0E:EE:7B:CB:62 profile Object Push state changed: disconnected -> unavailable (0)
bluetoothd[202219]: src/profile.c:ext_device_remove() Object Push
bluetoothd[202219]: src/service.c:btd_service_unref() 0x60f6780: ref=0
bluetoothd[202219]: src/profile.c:ext_adapter_remove() "Object Push" removed
bluetoothd[202219]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
bluetoothd[202219]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x1000b
bluetoothd[202219]: src/profile.c:remove_ext() Removed "Object Push"
bluetoothd[202219]: src/profile.c:btd_profile_cleanup() Releasing ":1.70/org/bluez/obex/00005005_0000_1000_8000_0002ee000001/00005005-0000-1000-8000-0002ee000001"
bluetoothd[202219]: src/profile.c:ext_adapter_remove() ":1.70/org/bluez/obex/00005005_0000_1000_8000_0002ee000001/00005005-0000-1000-8000-0002ee000001" removed
bluetoothd[202219]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
bluetoothd[202219]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x1000c
bluetoothd[202219]: src/profile.c:remove_ext() Removed ":1.70/org/bluez/obex/00005005_0000_1000_8000_0002ee000001/00005005-0000-1000-8000-0002ee000001"
bluetoothd[202219]: src/profile.c:btd_profile_cleanup() Releasing "Hands-Free Voice gateway"
bluetoothd[202219]: src/service.c:change_state() 0x61601a0: device 3A:D1:F4:C1:62:C4 profile Hands-Free Voice gateway state changed: disconnected -> unavailable (0)
bluetoothd[202219]: src/profile.c:ext_device_remove() Hands-Free Voice gateway
bluetoothd[202219]: src/service.c:btd_service_unref() 0x61601a0: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x6164f10: device 1C:52:16:4E:B9:9F profile Hands-Free Voice gateway state changed: disconnected -> unavailable (0)
bluetoothd[202219]: src/profile.c:ext_device_remove() Hands-Free Voice gateway
bluetoothd[202219]: src/service.c:btd_service_unref() 0x6164f10: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x6169c80: device E8:EC:A3:F8:92:B9 profile Hands-Free Voice gateway state changed: disconnected -> unavailable (0)
bluetoothd[202219]: src/profile.c:ext_device_remove() Hands-Free Voice gateway
bluetoothd[202219]: src/service.c:btd_service_unref() 0x6169c80: ref=0
bluetoothd[202219]: src/profile.c:ext_adapter_remove() "Hands-Free Voice gateway" removed
bluetoothd[202219]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
bluetoothd[202219]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x1000d
bluetoothd[202219]: src/profile.c:remove_ext() Removed "Hands-Free Voice gateway"
bluetoothd[202219]: src/profile.c:btd_profile_cleanup() Releasing "Headset Voice gateway"
bluetoothd[202219]: src/service.c:change_state() 0x61e48a0: device D8:32:E3:0A:4B:32 profile Headset Voice gateway state changed: disconnected -> unavailable (0)
bluetoothd[202219]: src/profile.c:ext_device_remove() Headset Voice gateway
bluetoothd[202219]: src/service.c:btd_service_unref() 0x61e48a0: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x61e9600: device E4:0E:EE:7B:CB:62 profile Headset Voice gateway state changed: disconnected -> unavailable (0)
bluetoothd[202219]: src/profile.c:ext_device_remove() Headset Voice gateway
bluetoothd[202219]: src/service.c:btd_service_unref() 0x61e9600: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x61ee360: device E8:EC:A3:F8:92:B9 profile Headset Voice gateway state changed: disconnected -> unavailable (0)
bluetoothd[202219]: src/profile.c:ext_device_remove() Headset Voice gateway
bluetoothd[202219]: src/service.c:btd_service_unref() 0x61ee360: ref=0
bluetoothd[202219]: src/profile.c:ext_adapter_remove() "Headset Voice gateway" removed
bluetoothd[202219]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
bluetoothd[202219]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x1000e
bluetoothd[202219]: src/profile.c:remove_ext() Removed "Headset Voice gateway"
bluetoothd[202219]: src/profile.c:btd_profile_cleanup() Releasing "Headset unit"
bluetoothd[202219]: src/service.c:change_state() 0x62fd380: device D8:32:E3:0A:4B:32 profile Headset unit state changed: disconnected -> unavailable (0)
bluetoothd[202219]: src/profile.c:ext_device_remove() Headset unit
bluetoothd[202219]: src/service.c:btd_service_unref() 0x62fd380: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x6301f50: device E4:0E:EE:7B:CB:62 profile Headset unit state changed: disconnected -> unavailable (0)
bluetoothd[202219]: src/profile.c:ext_device_remove() Headset unit
bluetoothd[202219]: src/service.c:btd_service_unref() 0x6301f50: ref=0
bluetoothd[202219]: src/profile.c:ext_adapter_remove() "Headset unit" removed
bluetoothd[202219]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
bluetoothd[202219]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10011
bluetoothd[202219]: src/profile.c:remove_ext() Removed "Headset unit"
bluetoothd[202219]: src/agent.c:agent_destroy() agent :1.37
bluetoothd[202219]: src/agent.c:agent_release() Releasing agent :1.37, /modules/bluedevil/Agent
bluetoothd[202219]: src/agent.c:remove_default_agent() Default agent cleared
bluetoothd[202219]: src/adapter.c:set_mode() sending set mode command for index 0
bluetoothd[202219]: src/agent.c:agent_unref() 0x612eaa0: ref=0
bluetoothd[202219]: src/adapter.c:adapter_remove() Removing adapter /org/bluez/hci0
bluetoothd[202219]: src/device.c:device_remove() Removing device /org/bluez/hci0/dev_FC_58_FA_CE_3E_5F
bluetoothd[202219]: src/service.c:change_state() 0x565f160: device FC:58:FA:CE:3E:5F profile avrcp-controller state changed: disconnected -> unavailable (0)
bluetoothd[202219]: profiles/audio/control.c:path_unregister() Unregistered interface org.bluez.MediaControl1 on path /org/bluez/hci0/dev_FC_58_FA_CE_3E_5F
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5668e50: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x565f160: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x565f160: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x5668e50: device FC:58:FA:CE:3E:5F profile audio-avrcp-target state changed: disconnected -> unavailable (0)
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5668e50: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x566fe60: device FC:58:FA:CE:3E:5F profile a2dp-sink state changed: disconnected -> unavailable (0)
bluetoothd[202219]: profiles/audio/sink.c:sink_unregister() /org/bluez/hci0/dev_FC_58_FA_CE_3E_5F
bluetoothd[202219]: src/service.c:btd_service_unref() 0x566fe60: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x566fe60: ref=0
bluetoothd[202219]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci0/dev_FC_58_FA_CE_3E_5F
bluetoothd[202219]: src/device.c:device_free() 0x559d780
bluetoothd[202219]: src/device.c:device_remove() Removing device /org/bluez/hci0/dev_D8_32_E3_0A_4B_32
bluetoothd[202219]: src/service.c:change_state() 0x567b950: device D8:32:E3:0A:4B:32 profile gap-profile state changed: disconnected -> unavailable (0)
bluetoothd[202219]: profiles/gap/gas.c:gap_remove() GAP profile remove (D8:32:E3:0A:4B:32)
bluetoothd[202219]: src/service.c:btd_service_unref() 0x567b950: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x5680540: device D8:32:E3:0A:4B:32 profile network-panu state changed: disconnected -> unavailable (0)
bluetoothd[202219]: profiles/network/connection.c:connection_unregister() /org/bluez/hci0/dev_D8_32_E3_0A_4B_32 id 4373
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5680540: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5680540: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x568c6b0: device D8:32:E3:0A:4B:32 profile network-nap state changed: disconnected -> unavailable (0)
bluetoothd[202219]: profiles/network/connection.c:connection_unregister() /org/bluez/hci0/dev_D8_32_E3_0A_4B_32 id 4374
bluetoothd[202219]: src/service.c:btd_service_unref() 0x568c6b0: ref=1
bluetoothd[202219]: profiles/network/connection.c:path_unregister() Unregistered interface org.bluez.Network1 on path /org/bluez/hci0/dev_D8_32_E3_0A_4B_32
bluetoothd[202219]: src/service.c:btd_service_unref() 0x568c6b0: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x5695c20: device D8:32:E3:0A:4B:32 profile avrcp-controller state changed: disconnected -> unavailable (0)
bluetoothd[202219]: profiles/audio/control.c:path_unregister() Unregistered interface org.bluez.MediaControl1 on path /org/bluez/hci0/dev_D8_32_E3_0A_4B_32
bluetoothd[202219]: src/service.c:btd_service_unref() 0x569f910: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5695c20: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5695c20: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x569f910: device D8:32:E3:0A:4B:32 profile audio-avrcp-target state changed: disconnected -> unavailable (0)
bluetoothd[202219]: src/service.c:btd_service_unref() 0x569f910: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x56a6920: device D8:32:E3:0A:4B:32 profile a2dp-source state changed: disconnected -> unavailable (0)
bluetoothd[202219]: profiles/audio/source.c:source_unregister() /org/bluez/hci0/dev_D8_32_E3_0A_4B_32
bluetoothd[202219]: src/service.c:btd_service_unref() 0x56a6920: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x56a6920: ref=0
bluetoothd[202219]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci0/dev_D8_32_E3_0A_4B_32
bluetoothd[202219]: src/device.c:device_free() 0x55b5100
bluetoothd[202219]: src/device.c:device_remove() Removing device /org/bluez/hci0/dev_3A_D1_F4_C1_62_C4
bluetoothd[202219]: src/service.c:change_state() 0x56b2420: device 3A:D1:F4:C1:62:C4 profile avrcp-controller state changed: disconnected -> unavailable (0)
bluetoothd[202219]: profiles/audio/control.c:path_unregister() Unregistered interface org.bluez.MediaControl1 on path /org/bluez/hci0/dev_3A_D1_F4_C1_62_C4
bluetoothd[202219]: src/service.c:btd_service_unref() 0x56bc110: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x56b2420: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x56b2420: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x56bc110: device 3A:D1:F4:C1:62:C4 profile audio-avrcp-target state changed: disconnected -> unavailable (0)
bluetoothd[202219]: src/service.c:btd_service_unref() 0x56bc110: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x56c3120: device 3A:D1:F4:C1:62:C4 profile a2dp-sink state changed: disconnected -> unavailable (0)
bluetoothd[202219]: profiles/audio/sink.c:sink_unregister() /org/bluez/hci0/dev_3A_D1_F4_C1_62_C4
bluetoothd[202219]: src/service.c:btd_service_unref() 0x56c3120: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x56c3120: ref=0
bluetoothd[202219]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci0/dev_3A_D1_F4_C1_62_C4
bluetoothd[202219]: src/device.c:device_free() 0x55cefa0
bluetoothd[202219]: src/device.c:device_remove() Removing device /org/bluez/hci0/dev_E4_0E_EE_7B_CB_62
bluetoothd[202219]: src/service.c:change_state() 0x56ccbd0: device E4:0E:EE:7B:CB:62 profile gap-profile state changed: disconnected -> unavailable (0)
bluetoothd[202219]: profiles/gap/gas.c:gap_remove() GAP profile remove (E4:0E:EE:7B:CB:62)
bluetoothd[202219]: src/service.c:btd_service_unref() 0x56ccbd0: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x56cd740: device E4:0E:EE:7B:CB:62 profile network-panu state changed: disconnected -> unavailable (0)
bluetoothd[202219]: profiles/network/connection.c:connection_unregister() /org/bluez/hci0/dev_E4_0E_EE_7B_CB_62 id 4373
bluetoothd[202219]: src/service.c:btd_service_unref() 0x56cd740: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x56cd740: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x5ec8990: device E4:0E:EE:7B:CB:62 profile network-nap state changed: disconnected -> unavailable (0)
bluetoothd[202219]: profiles/network/connection.c:connection_unregister() /org/bluez/hci0/dev_E4_0E_EE_7B_CB_62 id 4374
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5ec8990: ref=1
bluetoothd[202219]: profiles/network/connection.c:path_unregister() Unregistered interface org.bluez.Network1 on path /org/bluez/hci0/dev_E4_0E_EE_7B_CB_62
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5ec8990: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x5ed1f00: device E4:0E:EE:7B:CB:62 profile audio-avrcp-target state changed: disconnected -> unavailable (0)
bluetoothd[202219]: profiles/audio/control.c:path_unregister() Unregistered interface org.bluez.MediaControl1 on path /org/bluez/hci0/dev_E4_0E_EE_7B_CB_62
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5ed1f00: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5ed1f00: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x5edbbe0: device E4:0E:EE:7B:CB:62 profile a2dp-source state changed: disconnected -> unavailable (0)
bluetoothd[202219]: profiles/audio/source.c:source_unregister() /org/bluez/hci0/dev_E4_0E_EE_7B_CB_62
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5edbbe0: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5edbbe0: ref=0
bluetoothd[202219]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci0/dev_E4_0E_EE_7B_CB_62
bluetoothd[202219]: src/device.c:device_free() 0x55e6ca0
bluetoothd[202219]: src/device.c:device_remove() Removing device /org/bluez/hci0/dev_C0_7A_A5_00_9E_4A
bluetoothd[202219]: src/service.c:change_state() 0x5ee76e0: device C0:7A:A5:00:9E:4A profile avrcp-controller state changed: disconnected -> unavailable (0)
bluetoothd[202219]: profiles/audio/control.c:path_unregister() Unregistered interface org.bluez.MediaControl1 on path /org/bluez/hci0/dev_C0_7A_A5_00_9E_4A
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5ef13d0: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5ee76e0: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5ee76e0: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x5ef13d0: device C0:7A:A5:00:9E:4A profile audio-avrcp-target state changed: disconnected -> unavailable (0)
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5ef13d0: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x5ef83e0: device C0:7A:A5:00:9E:4A profile a2dp-sink state changed: disconnected -> unavailable (0)
bluetoothd[202219]: profiles/audio/sink.c:sink_unregister() /org/bluez/hci0/dev_C0_7A_A5_00_9E_4A
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5ef83e0: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5ef83e0: ref=0
bluetoothd[202219]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci0/dev_C0_7A_A5_00_9E_4A
bluetoothd[202219]: src/device.c:device_free() 0x5602290
bluetoothd[202219]: src/device.c:device_remove() Removing device /org/bluez/hci0/dev_10_71_02_00_4F_CC
bluetoothd[202219]: src/service.c:change_state() 0x5f03ed0: device 10:71:02:00:4F:CC profile input-hid state changed: disconnected -> unavailable (0)
bluetoothd[202219]: profiles/input/device.c:input_device_unregister() /org/bluez/hci0/dev_10_71_02_00_4F_CC
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5f03ed0: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5f03ed0: ref=0
bluetoothd[202219]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci0/dev_10_71_02_00_4F_CC
bluetoothd[202219]: src/device.c:device_free() 0x5619700
bluetoothd[202219]: src/device.c:device_remove() Removing device /org/bluez/hci0/dev_1C_52_16_4E_B9_9F
bluetoothd[202219]: src/service.c:change_state() 0x5f13ac0: device 1C:52:16:4E:B9:9F profile avrcp-controller state changed: disconnected -> unavailable (0)
bluetoothd[202219]: profiles/audio/control.c:path_unregister() Unregistered interface org.bluez.MediaControl1 on path /org/bluez/hci0/dev_1C_52_16_4E_B9_9F
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5f1d7b0: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5f13ac0: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5f13ac0: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x5f1d7b0: device 1C:52:16:4E:B9:9F profile audio-avrcp-target state changed: disconnected -> unavailable (0)
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5f1d7b0: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x5f247c0: device 1C:52:16:4E:B9:9F profile a2dp-sink state changed: disconnected -> unavailable (0)
bluetoothd[202219]: profiles/audio/sink.c:sink_unregister() /org/bluez/hci0/dev_1C_52_16_4E_B9_9F
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5f247c0: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5f247c0: ref=0
bluetoothd[202219]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci0/dev_1C_52_16_4E_B9_9F
bluetoothd[202219]: src/device.c:device_free() 0x5630670
bluetoothd[202219]: src/device.c:device_remove() Removing device /org/bluez/hci0/dev_E8_EC_A3_F8_92_B9
bluetoothd[202219]: src/service.c:change_state() 0x5f302b0: device E8:EC:A3:F8:92:B9 profile avrcp-controller state changed: disconnected -> unavailable (0)
bluetoothd[202219]: profiles/audio/control.c:path_unregister() Unregistered interface org.bluez.MediaControl1 on path /org/bluez/hci0/dev_E8_EC_A3_F8_92_B9
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5f39fa0: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5f302b0: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5f302b0: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x5f39fa0: device E8:EC:A3:F8:92:B9 profile audio-avrcp-target state changed: disconnected -> unavailable (0)
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5f39fa0: ref=0
bluetoothd[202219]: src/service.c:change_state() 0x5f40fb0: device E8:EC:A3:F8:92:B9 profile a2dp-sink state changed: disconnected -> unavailable (0)
bluetoothd[202219]: profiles/audio/sink.c:sink_unregister() /org/bluez/hci0/dev_E8_EC_A3_F8_92_B9
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5f40fb0: ref=1
bluetoothd[202219]: src/service.c:btd_service_unref() 0x5f40fb0: ref=0
bluetoothd[202219]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci0/dev_E8_EC_A3_F8_92_B9
bluetoothd[202219]: src/device.c:device_free() 0x5647a60
bluetoothd[202219]: profiles/audio/a2dp.c:a2dp_source_server_remove() path /org/bluez/hci0
bluetoothd[202219]: profiles/audio/a2dp.c:a2dp_sink_server_remove() path /org/bluez/hci0
bluetoothd[202219]: profiles/audio/avrcp.c:avrcp_target_server_remove() path /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
bluetoothd[202219]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10005
bluetoothd[202219]: profiles/audio/avrcp.c:avrcp_controller_server_remove() path /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
bluetoothd[202219]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10004
bluetoothd[202219]: profiles/network/manager.c:nap_server_remove() path /org/bluez/hci0
bluetoothd[202219]: profiles/network/manager.c:gn_server_remove() path /org/bluez/hci0
bluetoothd[202219]: profiles/network/manager.c:panu_server_remove() path /org/bluez/hci0
bluetoothd[202219]: profiles/network/server.c:path_unregister() Unregistered interface org.bluez.NetworkServer1 on path /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
bluetoothd[202219]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10001
bluetoothd[202219]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
bluetoothd[202219]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10002
bluetoothd[202219]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
bluetoothd[202219]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10003
bluetoothd[202219]: src/adapter.c:btd_adapter_unref() Freeing adapter /org/bluez/hci0
bluetoothd[202219]: src/adapter.c:adapter_free() 0x54c85e0
bluetoothd[202219]: Stopping SDP server
bluetoothd[202219]: Exit
==202219== 
==202219== HEAP SUMMARY:
==202219==     in use at exit: 118,184 bytes in 1,252 blocks
==202219==   total heap usage: 30,525 allocs, 29,278 frees, 12,601,589 bytes allocated
==202219== 
==202219== LEAK SUMMARY:
==202219==    definitely lost: 0 bytes in 0 blocks
==202219==    indirectly lost: 0 bytes in 0 blocks
==202219==      possibly lost: 0 bytes in 0 blocks
==202219==    still reachable: 118,180 bytes in 1,251 blocks
==202219==         suppressed: 4 bytes in 1 blocks
==202219== Reachable blocks (those to which a pointer was found) are not shown.
==202219== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==202219== 
==202219== For lists of detected and suppressed errors, rerun with: -s
==202219== ERROR SUMMARY: 37 errors from 32 contexts (suppressed: 0 from 0)

slow point-to-multipoint file transfer speed over l2cap

I'm facing to a problem when I set up a point-to-multipoint l2cap connection between a master and multiples slaves.

First, on a fresh bluez install, I pair the master device with only one slave, and I transfer a file over L2CAP, the file speed transfer is around 200KB/s. When I connect a second device to the master and try to transfer a file over l2cap connection the file transfer speed is now divided by 2 (~100KB/s), even if there is no activities on the first connection, If I connect a third device the file transfer speed is divided by 3...

how can I disable this behavior and share dynamically the bandwidth?

Bluez 5.50 is installed on all my devices.

failed to connect Huawei Mouse

-- Logs begin at Fri 2020-09-04 12:12:06 CST, end at Tue 2020-09-08 19:40:29 CST. --
9月 08 14:02:33 qw010 bluetoothd[2212]: Bluetooth daemon 5.50
9月 08 14:02:33 qw010 bluetoothd[2212]: Starting SDP server
9月 08 14:02:33 qw010 bluetoothd[2212]: Bluetooth management interface 1.16 initialized
9月 08 14:02:33 qw010 bluetoothd[2212]: Sap driver initialization failed.
9月 08 14:02:33 qw010 bluetoothd[2212]: sap-server: Operation not permitted (1)
9月 08 14:02:39 qw010 bluetoothd[2212]: Endpoint registered: sender=:1.69 path=/MediaEndpoint/A2DPSource
9月 08 14:02:39 qw010 bluetoothd[2212]: Endpoint registered: sender=:1.69 path=/MediaEndpoint/A2DPSink
9月 08 19:38:53 qw010 bluetoothd[2212]: Terminating
9月 08 19:38:53 qw010 bluetoothd[2212]: Endpoint unregistered: sender=:1.69 path=/MediaEndpoint/A2DPSource
9月 08 19:38:53 qw010 bluetoothd[2212]: Endpoint unregistered: sender=:1.69 path=/MediaEndpoint/A2DPSink
9月 08 19:38:53 qw010 bluetoothd[2212]: Stopping SDP server
9月 08 19:38:53 qw010 bluetoothd[2212]: Exit
9月 08 19:38:53 qw010 bluetoothd[8888]: Bluetooth daemon 5.50
9月 08 19:38:53 qw010 bluetoothd[8888]: src/main.c:parse_config() parsing /etc/bluetooth/main.conf
9月 08 19:38:53 qw010 bluetoothd[8888]: src/main.c:parse_config() Key file does not have key “DiscoverableTimeout” in group “General”
9月 08 19:38:53 qw010 bluetoothd[8888]: src/main.c:parse_config() Key file does not have key “PairableTimeout” in group “General”
9月 08 19:38:53 qw010 bluetoothd[8888]: src/main.c:parse_config() Key file does not have key “Privacy” in group “General”
9月 08 19:38:53 qw010 bluetoothd[8888]: src/main.c:parse_config() Key file does not have key “Name” in group “General”
9月 08 19:38:53 qw010 bluetoothd[8888]: src/main.c:parse_config() Key file does not have key “Class” in group “General”
9月 08 19:38:53 qw010 bluetoothd[8888]: src/main.c:parse_config() Key file does not have key “DeviceID” in group “General”
9月 08 19:38:53 qw010 bluetoothd[8888]: src/main.c:parse_config() Key file does not have key “ReverseServiceDiscovery” in group “General”
9月 08 19:38:53 qw010 bluetoothd[8888]: src/main.c:parse_config() Key file does not have key “MinEncKeySize” in group “GATT”
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:adapter_init() sending read version command
9月 08 19:38:53 qw010 bluetoothd[8888]: Starting SDP server
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:register_device_id() Adding device id record for 0002:1d6b:0246:0532
9月 08 19:38:53 qw010 bluetoothd[8888]: src/plugin.c:plugin_init() Loading builtin plugins
9月 08 19:38:53 qw010 bluetoothd[8888]: src/plugin.c:add_plugin() Loading hostname plugin
9月 08 19:38:53 qw010 bluetoothd[8888]: src/plugin.c:add_plugin() Loading wiimote plugin
9月 08 19:38:53 qw010 bluetoothd[8888]: src/plugin.c:add_plugin() Loading autopair plugin
9月 08 19:38:53 qw010 bluetoothd[8888]: src/plugin.c:add_plugin() Loading policy plugin
9月 08 19:38:53 qw010 bluetoothd[8888]: src/plugin.c:add_plugin() Loading neard plugin
9月 08 19:38:53 qw010 bluetoothd[8888]: src/plugin.c:add_plugin() Loading sap plugin
9月 08 19:38:53 qw010 bluetoothd[8888]: src/plugin.c:add_plugin() Loading a2dp plugin
9月 08 19:38:53 qw010 bluetoothd[8888]: src/plugin.c:add_plugin() Loading avrcp plugin
9月 08 19:38:53 qw010 bluetoothd[8888]: src/plugin.c:add_plugin() Loading network plugin
9月 08 19:38:53 qw010 bluetoothd[8888]: src/plugin.c:add_plugin() Loading input plugin
9月 08 19:38:53 qw010 bluetoothd[8888]: src/plugin.c:add_plugin() Loading hog plugin
9月 08 19:38:53 qw010 bluetoothd[8888]: src/plugin.c:add_plugin() Loading health plugin
9月 08 19:38:53 qw010 bluetoothd[8888]: src/plugin.c:add_plugin() Loading gap plugin
9月 08 19:38:53 qw010 bluetoothd[8888]: src/plugin.c:add_plugin() Loading scanparam plugin
9月 08 19:38:53 qw010 bluetoothd[8888]: src/plugin.c:add_plugin() Loading deviceinfo plugin
9月 08 19:38:53 qw010 bluetoothd[8888]: src/plugin.c:add_plugin() Loading midi plugin
9月 08 19:38:53 qw010 bluetoothd[8888]: src/plugin.c:add_plugin() Loading battery plugin
9月 08 19:38:53 qw010 bluetoothd[8888]: src/plugin.c:plugin_init() Loading plugins /usr/lib/x86_64-linux-gnu/bluetooth/plugins
9月 08 19:38:53 qw010 bluetoothd[8888]: src/plugin.c:add_plugin() Loading sixaxis plugin
9月 08 19:38:53 qw010 bluetoothd[8888]: profiles/health/hdp.c:hdp_manager_start() Starting Health manager
9月 08 19:38:53 qw010 bluetoothd[8888]: profiles/input/suspend-none.c:suspend_init()
9月 08 19:38:53 qw010 bluetoothd[8888]: profiles/network/manager.c:read_config() /etc/bluetooth/network.conf: Key file does not have key “DisableSecurity” in group “General”
9月 08 19:38:53 qw010 bluetoothd[8888]: profiles/network/manager.c:read_config() Config options: Security=true
9月 08 19:38:53 qw010 bluetoothd[8888]: plugins/neard.c:neard_init() Setup neard plugin
9月 08 19:38:53 qw010 bluetoothd[8888]: plugins/hostname.c:read_dmi_fallback() chassis: laptop
9月 08 19:38:53 qw010 bluetoothd[8888]: plugins/hostname.c:read_dmi_fallback() major: 0x01 minor: 0x03
9月 08 19:38:53 qw010 bluetoothd[8888]: plugins/sixaxis.c:sixaxis_init()
9月 08 19:38:53 qw010 bluetoothd[8888]: src/main.c:main() Entering main loop
9月 08 19:38:53 qw010 bluetoothd[8888]: src/rfkill.c:rfkill_event() RFKILL event idx 0 type 1 op 0 soft 0 hard 0
9月 08 19:38:53 qw010 bluetoothd[8888]: Bluetooth management interface 1.16 initialized
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:read_version_complete() sending read supported commands command
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:read_version_complete() sending read index list command
9月 08 19:38:53 qw010 bluetoothd[8888]: src/rfkill.c:rfkill_event() RFKILL event idx 1 type 2 op 0 soft 0 hard 0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:read_commands_complete() Number of commands: 67
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:read_commands_complete() Number of events: 35
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:read_commands_complete() enabling kernel-side connection control
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:read_index_list_complete() Number of controllers: 1
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:read_index_list_complete() Found index 0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:index_added() index 0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:btd_adapter_new() System name: BlueZ 5.50
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:btd_adapter_new() Major class: 0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:btd_adapter_new() Minor class: 0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:btd_adapter_new() Modalias: usb:v1D6Bp0246d0532
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:btd_adapter_new() Discoverable timeout: 180 seconds
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:btd_adapter_new() Pairable timeout: 0 seconds
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:index_added() sending read info command for index 0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:read_info_complete() index 0 status 0x00
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:clear_uuids() sending clear uuids command for index 0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:clear_devices() sending clear devices command for index 0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:set_privacy() sending set privacy command for index 0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:set_privacy() setting privacy mode 0x00 for index 0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/gatt-database.c:btd_gatt_database_new() GATT Manager registered for adapter: /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/advertising.c:btd_adv_manager_new() LE Advertising Manager created for adapter: /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: profiles/audio/a2dp.c:media_server_probe() path /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: plugins/policy.c:policy_adapter_probe()
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:set_mode() sending set mode command for index 0
9月 08 19:38:53 qw010 bluetoothd[8888]: plugins/hostname.c:hostname_probe()
9月 08 19:38:53 qw010 bluetoothd[8888]: plugins/hostname.c:update_class() major: 0x01 minor: 0x03
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:btd_adapter_set_class() class: major 1 minor 3
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:set_dev_class() sending set device class command for index 0
9月 08 19:38:53 qw010 bluetoothd[8888]: profiles/network/manager.c:panu_server_probe() path /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: profiles/network/server.c:server_register() Registered interface org.bluez.NetworkServer1 on path /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: profiles/network/manager.c:gn_server_probe() path /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: profiles/network/manager.c:nap_server_probe() path /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: profiles/audio/avrcp.c:avrcp_controller_server_probe() path /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:adapter_service_add() /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10001
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000017-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110e-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110f-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:add_uuid() sending add uuid command for index 0
9月 08 19:38:53 qw010 bluetoothd[8888]: profiles/audio/avrcp.c:avrcp_target_server_probe() path /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:adapter_service_add() /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10002
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000017-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110c-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110e-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:add_uuid() sending add uuid command for index 0
9月 08 19:38:53 qw010 bluetoothd[8888]: profiles/audio/a2dp.c:a2dp_sink_server_probe() path /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: profiles/audio/a2dp.c:a2dp_source_server_probe() path /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: profiles/sap/manager.c:sap_server_probe() path /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: Sap driver initialization failed.
9月 08 19:38:53 qw010 bluetoothd[8888]: sap-server: Operation not permitted (1)
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:btd_adapter_unblock_address() hci0 00:00:00:00:00:00
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:load_link_keys() hci0 keys 0 debug_keys 0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:load_ltks() hci0 keys 0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:load_irks() hci0 irks 0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:load_conn_params() hci0 conn params 0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:add_uuid() sending add uuid command for index 0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:set_did() hci0 source 2 vendor 1d6b product 246 version 532
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:adapter_register() Adapter /org/bluez/hci0 registered
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:set_dev_class() sending set device class command for index 0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:set_name() sending set local name command for index 0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:set_privacy_complete() Successfully set privacy for index 0
9月 08 19:38:53 qw010 bluetoothd[8888]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0xfe2800 registered: type:0 codec:0 seid:1
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:adapter_service_add() /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10003
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000019-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110a-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110d-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:add_uuid() sending add uuid command for index 0
9月 08 19:38:53 qw010 bluetoothd[8888]: Endpoint registered: sender=:1.69 path=/MediaEndpoint/A2DPSource
9月 08 19:38:53 qw010 bluetoothd[8888]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0xfeb160 registered: type:1 codec:0 seid:2
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:adapter_service_add() /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10004
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000019-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110b-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110d-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:add_uuid() sending add uuid command for index 0
9月 08 19:38:53 qw010 bluetoothd[8888]: Endpoint registered: sender=:1.69 path=/MediaEndpoint/A2DPSink
9月 08 19:38:53 qw010 bluetoothd[8888]: src/profile.c:register_profile() sender :1.69
9月 08 19:38:53 qw010 bluetoothd[8888]: src/profile.c:create_ext() Created "Headset Voice gateway"
9月 08 19:38:53 qw010 bluetoothd[8888]: src/profile.c:ext_adapter_probe() "Headset Voice gateway" probed
9月 08 19:38:53 qw010 bluetoothd[8888]: src/profile.c:ext_start_servers() Headset Voice gateway listening on chan 12
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:adapter_service_add() /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10005
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000003-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001108-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001112-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001203-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:add_uuid() sending add uuid command for index 0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/profile.c:register_profile() sender :1.69
9月 08 19:38:53 qw010 bluetoothd[8888]: src/profile.c:create_ext() Created ":1.69/Profile/HSPHSProfile/00001108-0000-1000-8000-00805f9b34fb"
9月 08 19:38:53 qw010 bluetoothd[8888]: src/profile.c:ext_adapter_probe() ":1.69/Profile/HSPHSProfile/00001108-0000-1000-8000-00805f9b34fb" probed
9月 08 19:38:53 qw010 bluetoothd[8888]: src/profile.c:ext_start_servers() :1.69/Profile/HSPHSProfile/00001108-0000-1000-8000-00805f9b34fb listening on chan 3
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:adapter_service_add() /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10006
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000003-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001108-0000-1000-8000-00805f9
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
9月 08 19:38:53 qw010 bluetoothd[8888]: src/adapter.c:add_uuid() sending add uuid command for index 0
9月 08 19:38:54 qw010 bluetoothd[8888]: plugins/hostname.c:property_changed() static hostname: qw010
9月 08 19:38:54 qw010 bluetoothd[8888]: plugins/hostname.c:property_changed() pretty hostname:
9月 08 19:38:54 qw010 bluetoothd[8888]: plugins/hostname.c:update_name() name: qw010
9月 08 19:38:54 qw010 bluetoothd[8888]: src/adapter.c:adapter_set_name() name: qw010
9月 08 19:38:54 qw010 bluetoothd[8888]: src/adapter.c:adapter_set_name() alias: qw010
9月 08 19:38:54 qw010 bluetoothd[8888]: src/adapter.c:set_name() sending set local name command for index 0
9月 08 19:38:54 qw010 bluetoothd[8888]: plugins/hostname.c:property_changed() chassis: laptop
9月 08 19:38:54 qw010 bluetoothd[8888]: plugins/hostname.c:update_class() major: 0x01 minor: 0x03
9月 08 19:38:54 qw010 bluetoothd[8888]: src/adapter.c:dev_class_changed_callback() Class: 0x00010c
9月 08 19:38:54 qw010 bluetoothd[8888]: src/adapter.c:new_settings_callback() Settings: 0x00000ad1
9月 08 19:38:54 qw010 bluetoothd[8888]: src/adapter.c:settings_changed() Changed settings: 0x00000001
9月 08 19:38:54 qw010 bluetoothd[8888]: src/adapter.c:adapter_start() adapter /org/bluez/hci0 has been enabled
9月 08 19:38:54 qw010 bluetoothd[8888]: src/adapter.c:trigger_passive_scanning()
9月 08 19:38:54 qw010 bluetoothd[8888]: src/adapter.c:load_link_keys_complete() link keys loaded for hci0
9月 08 19:38:54 qw010 bluetoothd[8888]: src/adapter.c:load_ltks_complete() LTKs loaded for hci0
9月 08 19:38:54 qw010 bluetoothd[8888]: src/adapter.c:load_irks_complete() IRKs loaded for hci0
9月 08 19:38:54 qw010 bluetoothd[8888]: src/adapter.c:load_conn_params_complete() Connection Parameters loaded for hci0
9月 08 19:38:54 qw010 bluetoothd[8888]: src/adapter.c:local_name_changed_callback() Name: BlueZ 5.50
9月 08 19:38:54 qw010 bluetoothd[8888]: src/adapter.c:local_name_changed_callback() Short name:
9月 08 19:38:54 qw010 bluetoothd[8888]: src/adapter.c:local_name_changed_callback() Current alias: BlueZ 5.50
9月 08 19:38:54 qw010 bluetoothd[8888]: src/adapter.c:dev_class_changed_callback() Class: 0x08010c
9月 08 19:38:54 qw010 bluetoothd[8888]: src/adapter.c:dev_class_changed_callback() Class: 0x0c010c
9月 08 19:38:54 qw010 bluetoothd[8888]: src/adapter.c:local_name_changed_callback() Name: qw010
9月 08 19:38:54 qw010 bluetoothd[8888]: src/adapter.c:local_name_changed_callback() Short name:
9月 08 19:38:54 qw010 bluetoothd[8888]: src/adapter.c:local_name_changed_callback() Current alias: qw010
9月 08 19:38:54 qw010 bluetoothd[8888]: src/agent.c:agent_ref() 0xfe7170: ref=1
9月 08 19:38:54 qw010 bluetoothd[8888]: src/agent.c:register_agent() agent :1.71
9月 08 19:38:54 qw010 bluetoothd[8888]: src/agent.c:add_default_agent() Default agent set to :1.71 /com/deepin/daemon/Bluetooth/Agent
9月 08 19:38:57 qw010 bluetoothd[8888]: src/adapter.c:set_mode() sending set mode command for index 0
9月 08 19:38:57 qw010 bluetoothd[8888]: src/adapter.c:property_set_mode() sending Set Discoverable command for index 0
9月 08 19:38:57 qw010 bluetoothd[8888]: src/adapter.c:start_discovery() sender :1.71
9月 08 19:38:57 qw010 bluetoothd[8888]: src/adapter.c:update_discovery_filter()
9月 08 19:38:57 qw010 bluetoothd[8888]: src/adapter.c:discovery_filter_to_mgmt_cp()
9月 08 19:38:57 qw010 bluetoothd[8888]: src/adapter.c:trigger_start_discovery()
9月 08 19:38:57 qw010 bluetoothd[8888]: src/adapter.c:cancel_passive_scanning()
9月 08 19:38:58 qw010 bluetoothd[8888]: src/adapter.c:new_settings_callback() Settings: 0x00000ad3
9月 08 19:38:58 qw010 bluetoothd[8888]: src/adapter.c:settings_changed() Changed settings: 0x00000002
9月 08 19:38:58 qw010 bluetoothd[8888]: src/adapter.c:property_set_mode_complete() Success (0x00)
9月 08 19:38:58 qw010 bluetoothd[8888]: src/adapter.c:new_settings_callback() Settings: 0x00000adb
9月 08 19:38:58 qw010 bluetoothd[8888]: src/adapter.c:settings_changed() Changed settings: 0x00000008
9月 08 19:38:58 qw010 bluetoothd[8888]: src/adapter.c:start_discovery_timeout()
9月 08 19:38:58 qw010 bluetoothd[8888]: src/adapter.c:start_discovery_timeout() adapter->current_discovery_filter == 0
9月 08 19:38:58 qw010 bluetoothd[8888]: src/adapter.c:start_discovery_complete() status 0x00
9月 08 19:38:58 qw010 bluetoothd[8888]: src/adapter.c:discovering_callback() hci0 type 7 discovering 1 method 0
9月 08 19:39:09 qw010 bluetoothd[8888]: src/adapter.c:discovering_callback() hci0 type 7 discovering 0 method 0
9月 08 19:39:09 qw010 bluetoothd[8888]: src/adapter.c:trigger_start_discovery()
9月 08 19:39:09 qw010 bluetoothd[8888]: src/adapter.c:cancel_passive_scanning()
9月 08 19:39:10 qw010 bluetoothd[8888]: src/adapter.c:set_mode() sending set mode command for index 0
9月 08 19:39:10 qw010 bluetoothd[8888]: src/adapter.c:property_set_mode() sending Set Powered command for index 0
9月 08 19:39:10 qw010 bluetoothd[8888]: src/adapter.c:new_settings_callback() Settings: 0x00000ad1
9月 08 19:39:10 qw010 bluetoothd[8888]: src/adapter.c:settings_changed() Changed settings: 0x0000000a
9月 08 19:39:10 qw010 bluetoothd[8888]: src/adapter.c:property_set_mode_complete() Success (0x00)
9月 08 19:39:10 qw010 bluetoothd[8888]: src/adapter.c:new_settings_callback() Settings: 0x00000ad0
9月 08 19:39:10 qw010 bluetoothd[8888]: src/adapter.c:settings_changed() Changed settings: 0x00000001
9月 08 19:39:10 qw010 bluetoothd[8888]: src/adapter.c:cancel_passive_scanning()
9月 08 19:39:10 qw010 bluetoothd[8888]: src/adapter.c:adapter_stop() adapter /org/bluez/hci0 has been disabled
9月 08 19:39:10 qw010 bluetoothd[8888]: src/adapter.c:property_set_mode() sending Set Powered command for index 0
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:dev_class_changed_callback() Class: 0x0c010c
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:property_set_mode_complete() Success (0x00)
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:new_settings_callback() Settings: 0x00000ad1
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:settings_changed() Changed settings: 0x00000001
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:adapter_start() adapter /org/bluez/hci0 has been enabled
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:trigger_passive_scanning()
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:set_mode() sending set mode command for index 0
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:property_set_mode() sending Set Discoverable command for index 0
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:new_settings_callback() Settings: 0x00000ad3
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:settings_changed() Changed settings: 0x00000002
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:property_set_mode_complete() Success (0x00)
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:new_settings_callback() Settings: 0x00000adb
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:settings_changed() Changed settings: 0x00000008
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:start_discovery() sender :1.71
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:update_discovery_filter()
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:discovery_filter_to_mgmt_cp()
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:trigger_start_discovery()
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:cancel_passive_scanning()
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:start_discovery_timeout()
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:start_discovery_timeout() adapter->current_discovery_filter == 0
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:start_discovery_complete() status 0x00
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:discovering_callback() hci0 type 7 discovering 1 method 0
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:set_discoverable() sending set mode command for index 0
9月 08 19:39:11 qw010 bluetoothd[8888]: src/adapter.c:set_mode() sending set mode command for index 0
9月 08 19:39:16 qw010 bluetoothd[8888]: src/adapter.c:device_found_callback() hci0 addr E5:4F:38:27:34:DD, rssi -20 flags 0x0000 eir_len 26
9月 08 19:39:16 qw010 bluetoothd[8888]: src/device.c:device_create() dst E5:4F:38:27:34:DD
9月 08 19:39:16 qw010 bluetoothd[8888]: src/device.c:device_new() address E5:4F:38:27:34:DD
9月 08 19:39:16 qw010 bluetoothd[8888]: src/device.c:device_new() Creating device /org/bluez/hci0/dev_E5_4F_38_27_34_DD
9月 08 19:39:16 qw010 bluetoothd[8888]: src/device.c:device_set_legacy() legacy 0
9月 08 19:39:16 qw010 bluetoothd[8888]: src/device.c:device_set_rssi_with_delta() rssi -20
9月 08 19:39:16 qw010 bluetoothd[8888]: src/device.c:device_set_flags() flags 5
9月 08 19:39:18 qw010 bluetoothd[8888]: src/device.c:btd_device_set_temporary() temporary 0
9月 08 19:39:18 qw010 bluetoothd[8888]: src/agent.c:agent_ref() 0xfe7170: ref=2
9月 08 19:39:18 qw010 bluetoothd[8888]: src/device.c:bonding_request_new() Requesting bonding for E5:4F:38:27:34:DD
9月 08 19:39:18 qw010 bluetoothd[8888]: src/agent.c:agent_ref() 0xfe7170: ref=3
9月 08 19:39:18 qw010 bluetoothd[8888]: src/agent.c:agent_unref() 0xfe7170: ref=2
9月 08 19:39:18 qw010 bluetoothd[8888]: src/adapter.c:suspend_discovery()
9月 08 19:39:18 qw010 bluetoothd[8888]: src/adapter.c:adapter_bonding_attempt() hci0 bdaddr E5:4F:38:27:34:DD type 2 io_cap 0x01
9月 08 19:39:18 qw010 bluetoothd[8888]: src/adapter.c:discovering_callback() hci0 type 7 discovering 0 method 0
9月 08 19:39:18 qw010 bluetoothd[8888]: src/adapter.c:suspend_discovery_complete() status 0x00
9月 08 19:39:19 qw010 bluetoothd[8888]: src/adapter.c:connected_callback() hci0 device E5:4F:38:27:34:DD connected eir_len 26
9月 08 19:39:19 qw010 bluetoothd[8888]: src/adapter.c:dev_disconnected() Device E5:4F:38:27:34:DD disconnected, reason 0
9月 08 19:39:19 qw010 bluetoothd[8888]: src/adapter.c:adapter_remove_connection()
9月 08 19:39:19 qw010 bluetoothd[8888]: plugins/policy.c:disconnect_cb() reason 0
9月 08 19:39:19 qw010 bluetoothd[8888]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr E5:4F:38:27:34:DD type 2 status 0xe
9月 08 19:39:19 qw010 bluetoothd[8888]: src/device.c:device_bonding_complete() bonding 0xfe8b50 status 0x0e
9月 08 19:39:19 qw010 bluetoothd[8888]: src/device.c:device_bonding_failed() status 14
9月 08 19:39:19 qw010 bluetoothd[8888]: src/agent.c:agent_unref() 0xfe7170: ref=1
9月 08 19:39:19 qw010 bluetoothd[8888]: src/adapter.c:resume_discovery()
9月 08 19:39:19 qw010 bluetoothd[8888]: src/adapter.c:trigger_start_discovery()
9月 08 19:39:19 qw010 bluetoothd[8888]: src/adapter.c:cancel_passive_scanning()
9月 08 19:39:19 qw010 bluetoothd[8888]: src/adapter.c:pair_device_complete() Failed (0x03)
9月 08 19:39:19 qw010 bluetoothd[8888]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr E5:4F:38:27:34:DD type 2 status 0x3
9月 08 19:39:19 qw010 bluetoothd[8888]: src/device.c:device_bonding_complete() bonding (nil) status 0x03
9月 08 19:39:19 qw010 bluetoothd[8888]: src/device.c:device_bonding_failed() status 3
9月 08 19:39:19 qw010 bluetoothd[8888]: src/adapter.c:resume_discovery()
9月 08 19:39:19 qw010 bluetoothd[8888]: src/adapter.c:trigger_start_discovery()
9月 08 19:39:19 qw010 bluetoothd[8888]: src/adapter.c:cancel_passive_scanning()
9月 08 19:39:24 qw010 bluetoothd[8888]: src/adapter.c:start_discovery_timeout()
9月 08 19:39:24 qw010 bluetoothd[8888]: src/adapter.c:start_discovery_timeout() adapter->current_discovery_filter == 0
9月 08 19:39:24 qw010 bluetoothd[8888]: src/adapter.c:start_discovery_complete() status 0x00
9月 08 19:39:24 qw010 bluetoothd[8888]: src/adapter.c:discovering_callback() hci0 type 7 discovering 1 method 0
9月 08 19:39:29 qw010 bluetoothd[8888]: src/adapter.c:device_found_callback() hci0 addr E5:4F:38:27:34:DD, rssi -22 flags 0x0000 eir_len 26
9月 08 19:39:29 qw010 bluetoothd[8888]: src/device.c:device_set_legacy() legacy 0
9月 08 19:39:29 qw010 bluetoothd[8888]: src/device.c:device_set_flags() flags 5
9月 08 19:39:32 qw010 bluetoothd[8888]: src/adapter.c:device_found_callback() hci0 addr 40:23:43:D2:49:92, rssi -56 flags 0x0000 eir_len 39
9月 08 19:39:32 qw010 bluetoothd[8888]: src/device.c:device_create() dst 40:23:43:D2:49:92
9月 08 19:39:32 qw010 bluetoothd[8888]: src/device.c:device_new() address 40:23:43:D2:49:92
9月 08 19:39:32 qw010 bluetoothd[8888]: src/device.c:device_new() Creating device /org/bluez/hci0/dev_40_23_43_D2_49_92
9月 08 19:39:32 qw010 bluetoothd[8888]: src/device.c:device_set_legacy() legacy 0
9月 08 19:39:32 qw010 bluetoothd[8888]: src/device.c:device_set_rssi_with_delta() rssi -56
9月 08 19:39:32 qw010 bluetoothd[8888]: src/device.c:device_set_tx_power() tx_power 0
9月 08 19:39:32 qw010 bluetoothd[8888]: src/device.c:device_set_class() /org/bluez/hci0/dev_40_23_43_D2_49_92 0x0C010C
9月 08 19:39:35 qw010 bluetoothd[8888]: src/adapter.c:discovering_callback() hci0 type 7 discovering 0 method 0
9月 08 19:39:35 qw010 bluetoothd[8888]: src/adapter.c:trigger_start_discovery()
9月 08 19:39:35 qw010 bluetoothd[8888]: src/adapter.c:cancel_passive_scanning()
9月 08 19:39:40 qw010 bluetoothd[8888]: src/adapter.c:start_discovery_timeout()
9月 08 19:39:40 qw010 bluetoothd[8888]: src/adapter.c:start_discovery_timeout() adapter->current_discovery_filter == 0
9月 08 19:39:40 qw010 bluetoothd[8888]: src/adapter.c:start_discovery_complete() status 0x00
9月 08 19:39:40 qw010 bluetoothd[8888]: src/adapter.c:discovering_callback() hci0 type 7 discovering 1 method 0
9月 08 19:39:40 qw010 bluetoothd[8888]: src/adapter.c:device_found_callback() hci0 addr 18:F6:41:8E:D8:1A, rssi -82 flags 0x0004 eir_len 31
9月 08 19:39:45 qw010 bluetoothd[8888]: src/adapter.c:device_found_callback() hci0 addr E5:4F:38:27:34:DD, rssi -32 flags 0x0000 eir_len 26
9月 08 19:39:45 qw010 bluetoothd[8888]: src/device.c:device_set_legacy() legacy 0
9月 08 19:39:45 qw010 bluetoothd[8888]: src/device.c:device_set_rssi_with_delta() rssi -32 delta 12
9月 08 19:39:45 qw010 bluetoothd[8888]: src/device.c:device_set_flags() flags 5
9月 08 19:39:50 qw010 bluetoothd[8888]: src/adapter.c:discovering_callback() hci0 type 7 discovering 0 method 0
9月 08 19:39:50 qw010 bluetoothd[8888]: src/adapter.c:trigger_start_discovery()
9月 08 19:39:50 qw010 bluetoothd[8888]: src/adapter.c:cancel_passive_scanning()
9月 08 19:39:56 qw010 bluetoothd[8888]: src/adapter.c:start_discovery_timeout()
9月 08 19:39:56 qw010 bluetoothd[8888]: src/adapter.c:start_discovery_timeout() adapter->current_discovery_filter == 0
9月 08 19:39:56 qw010 bluetoothd[8888]: src/adapter.c:start_discovery_complete() status 0x00
9月 08 19:39:56 qw010 bluetoothd[8888]: src/adapter.c:discovering_callback() hci0 type 7 discovering 1 method 0
9月 08 19:39:59 qw010 bluetoothd[8888]: Terminating
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:adapter_shutdown()
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:set_mode() sending set mode command for index 0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:set_mode() sending set mode command for index 0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:new_settings_callback() Settings: 0x00000ad1
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:settings_changed() Changed settings: 0x0000000a
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:discovering_callback() hci0 type 7 discovering 0 method 0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:trigger_start_discovery()
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:cancel_passive_scanning()
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:new_settings_callback() Settings: 0x00000ad0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:settings_changed() Changed settings: 0x00000001
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:cancel_passive_scanning()
9月 08 19:39:59 qw010 bluetoothd[8888]: src/device.c:device_set_rssi_with_delta() rssi 0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/device.c:device_set_tx_power() tx_power 127
9月 08 19:39:59 qw010 bluetoothd[8888]: src/device.c:device_set_rssi_with_delta() rssi 0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:adapter_stop() adapter /org/bluez/hci0 has been disabled
9月 08 19:39:59 qw010 bluetoothd[8888]: src/plugin.c:plugin_cleanup() Cleanup plugins
9月 08 19:39:59 qw010 bluetoothd[8888]: profiles/health/hdp.c:hdp_manager_stop() Stopped Health manager
9月 08 19:39:59 qw010 bluetoothd[8888]: profiles/input/suspend-none.c:suspend_exit()
9月 08 19:39:59 qw010 bluetoothd[8888]: profiles/audio/a2dp.c:media_server_remove() path /org/bluez/hci0
9月 08 19:39:59 qw010 bluetoothd[8888]: profiles/audio/media.c:release_endpoint() sender=:1.69 path=/MediaEndpoint/A2DPSource
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10003
9月 08 19:39:59 qw010 bluetoothd[8888]: profiles/audio/media.c:release_endpoint() sender=:1.69 path=/MediaEndpoint/A2DPSource
9月 08 19:39:59 qw010 bluetoothd[8888]: Endpoint unregistered: sender=:1.69 path=/MediaEndpoint/A2DPSource
9月 08 19:39:59 qw010 bluetoothd[8888]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.69 path=/MediaEndpoint/A2DPSource
9月 08 19:39:59 qw010 bluetoothd[8888]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0xfe2800 unregistered: type:0 codec:0 seid:1
9月 08 19:39:59 qw010 bluetoothd[8888]: profiles/audio/media.c:release_endpoint() sender=:1.69 path=/MediaEndpoint/A2DPSink
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10004
9月 08 19:39:59 qw010 bluetoothd[8888]: profiles/audio/media.c:release_endpoint() sender=:1.69 path=/MediaEndpoint/A2DPSink
9月 08 19:39:59 qw010 bluetoothd[8888]: Endpoint unregistered: sender=:1.69 path=/MediaEndpoint/A2DPSink
9月 08 19:39:59 qw010 bluetoothd[8888]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.69 path=/MediaEndpoint/A2DPSink
9月 08 19:39:59 qw010 bluetoothd[8888]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0xfeb160 unregistered: type:1 codec:0 seid:2
9月 08 19:39:59 qw010 bluetoothd[8888]: plugins/neard.c:neard_exit() Cleanup neard plugin
9月 08 19:39:59 qw010 bluetoothd[8888]: plugins/hostname.c:hostname_remove()
9月 08 19:39:59 qw010 bluetoothd[8888]: plugins/sixaxis.c:sixaxis_exit()
9月 08 19:39:59 qw010 bluetoothd[8888]: src/profile.c:btd_profile_cleanup() Releasing "Headset Voice gateway"
9月 08 19:39:59 qw010 bluetoothd[8888]: src/profile.c:ext_adapter_remove() "Headset Voice gateway" removed
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10005
9月 08 19:39:59 qw010 bluetoothd[8888]: src/profile.c:remove_ext() Removed "Headset Voice gateway"
9月 08 19:39:59 qw010 bluetoothd[8888]: src/profile.c:btd_profile_cleanup() Releasing ":1.69/Profile/HSPHSProfile/00001108-0000-1000-8000-00805f9b34fb"
9月 08 19:39:59 qw010 bluetoothd[8888]: src/profile.c:ext_adapter_remove() ":1.69/Profile/HSPHSProfile/00001108-0000-1000-8000-00805f9b34fb" removed
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10006
9月 08 19:39:59 qw010 bluetoothd[8888]: src/profile.c:remove_ext() Removed ":1.69/Profile/HSPHSProfile/00001108-0000-1000-8000-00805f9b34fb"
9月 08 19:39:59 qw010 bluetoothd[8888]: src/agent.c:agent_destroy() agent :1.71
9月 08 19:39:59 qw010 bluetoothd[8888]: src/agent.c:agent_release() Releasing agent :1.71, /com/deepin/daemon/Bluetooth/Agent
9月 08 19:39:59 qw010 bluetoothd[8888]: src/agent.c:remove_default_agent() Default agent cleared
9月 08 19:39:59 qw010 bluetoothd[8888]: src/agent.c:agent_unref() 0xfe7170: ref=0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:adapter_remove() Removing adapter /org/bluez/hci0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/device.c:device_remove() Removing device /org/bluez/hci0/dev_E5_4F_38_27_34_DD
9月 08 19:39:59 qw010 bluetoothd[8888]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci0/dev_E5_4F_38_27_34_DD
9月 08 19:39:59 qw010 bluetoothd[8888]: src/device.c:device_free() 0xff2670
9月 08 19:39:59 qw010 bluetoothd[8888]: src/device.c:device_remove() Removing device /org/bluez/hci0/dev_40_23_43_D2_49_92
9月 08 19:39:59 qw010 bluetoothd[8888]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci0/dev_40_23_43_D2_49_92
9月 08 19:39:59 qw010 bluetoothd[8888]: src/device.c:device_free() 0xff0850
9月 08 19:39:59 qw010 bluetoothd[8888]: profiles/audio/a2dp.c:a2dp_source_server_remove() path /org/bluez/hci0
9月 08 19:39:59 qw010 bluetoothd[8888]: profiles/audio/a2dp.c:a2dp_sink_server_remove() path /org/bluez/hci0
9月 08 19:39:59 qw010 bluetoothd[8888]: profiles/audio/avrcp.c:avrcp_target_server_remove() path /org/bluez/hci0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10002
9月 08 19:39:59 qw010 bluetoothd[8888]: profiles/audio/avrcp.c:avrcp_controller_server_remove() path /org/bluez/hci0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10001
9月 08 19:39:59 qw010 bluetoothd[8888]: profiles/network/manager.c:nap_server_remove() path /org/bluez/hci0
9月 08 19:39:59 qw010 bluetoothd[8888]: profiles/network/manager.c:gn_server_remove() path /org/bluez/hci0
9月 08 19:39:59 qw010 bluetoothd[8888]: profiles/network/manager.c:panu_server_remove() path /org/bluez/hci0
9月 08 19:39:59 qw010 bluetoothd[8888]: profiles/network/server.c:path_unregister() Unregistered interface org.bluez.NetworkServer1 on path /org/bluez/hci0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:btd_adapter_unref() Freeing adapter /org/bluez/hci0
9月 08 19:39:59 qw010 bluetoothd[8888]: src/adapter.c:adapter_free() 0xfe4680
9月 08 19:39:59 qw010 bluetoothd[8888]: Stopping SDP server
9月 08 19:39:59 qw010 bluetoothd[8888]: Exit
9月 08 19:40:00 qw010 bluetoothd[9040]: Bluetooth daemon 5.50
9月 08 19:40:00 qw010 bluetoothd[9040]: Starting SDP server
9月 08 19:40:00 qw010 bluetoothd[9040]: Bluetooth management interface 1.16 initialized
9月 08 19:40:00 qw010 bluetoothd[9040]: Sap driver initialization failed.
9月 08 19:40:00 qw010 bluetoothd[9040]: sap-server: Operation not permitted (1)
9月 08 19:40:00 qw010 bluetoothd[9040]: Endpoint registered: sender=:1.69 path=/MediaEndpoint/A2DPSource
9月 08 19:40:00 qw010 bluetoothd[9040]: Endpoint registered: sender=:1.69 path=/MediaEndpoint/A2DPSink

Puzzled by HID-over-GATT, feature, report ID

I have been playing a bit with a HOGP device (microsoft surface dial) under linux and found a strange behavior when using linux's hidraw interface to get and send feature reports. I am sharing this with you because it is puzzling me, and because I might have found a bug in bluez but do not have enough familiarity with Bluetooth stack to recognize it.

What I do:

  1. I send a HID feature report with report_id 1 and the following sequence of bytes [255, 0, 1, 3, 1, 80, 0] as payload. This is a totally valid payload for the device, although its meaning does not matter here.
  2. I request just after a HID feature report with same id and look at the payload.

What I expect:
The buffer should contain the byte I just sent [255, 0, 1, 3, 1, 80, 0] as detailed in hidraw docs :

HIDIOCGFEATURE(len): Get a Feature Report
[...] The report will be returned starting at
the first byte of the buffer (ie: the report number is not returned).

What I observe:
The returned buffer contains [0, 1, 3, 1, 80, 0, 0]. It seems to be shifted by one byte and truncated (255 is not here anymore).


I did some investigation, and ended up -- after trying to find anything in linux hidp module 🤦‍♂️ -- in the implementation of HOGP in bluez.
I found this in get_report_cb :

--len;
++pdu;
if (hog->has_report_id && len > 0) {
--len;
++pdu;
}

I am not familiar at all with the bluetooth stack so I don't quite understand why the two first bytes are removed from the buffer here. However, this seems to be the only place that could cause my issue in the entire stack.
After digging a bit more, I also read here that in the case of HOGP, the report id of HID are not serialized with the data sent over the air. (which I also kind of decrypt from the section 4.8.1 of the HOGP spec but it is not clear).

That makes me wonder if the report_id is really present in pdu buffer, and if the code should rather be:

	--len;
	++pdu;
        // the following is useless as the HID is not returned over GATT
	//if (hog->has_report_id && len > 0) {
	//	--len;
	//	++pdu;
	//}

And indeed, testing this gives me the expected behavior.

This solution looks very hacky dark magic to me : I guess such a deep change in the stack would break other things.
What do you think? Should I look elsewhere? The only alternative I can think of is that I am dealing with a non-compliant device. 🙃


The following python code snippet can be used to reproduce. It will be surely not useful for someone without the device, posting it for completeness.

# hidraw comes from
# https://github.com/vpelletier/python-hidraw simple
# passtrhough around hidraw ioctl, seems fine
import hidraw
import struct
a = hidraw.HIDRaw(open("/dev/hidraw0", "w+b"))

# byte payload, no report-id, will be added just before sendinf
toSend = struct.pack(forma_inv, 255, 0 , 1, 3, 1, 80, 0)

# 1 = report_id
a.sendFeatureReport(toSend, 1)

# 1 = report_id, 6 = size of expected buffer - 1 (weirdness of hidraw)
ret = a.getFeatureReport(1, length=6)  

print("Payload sent", struct.unpack("BBBBBBB", toSend))
print("Payload received", struct.unpack("BBBBBBB", ret)) 

print

Payload sent (255, 0, 1, 3, 1, 80, 0)
Payload received (0, 1, 3, 1, 80, 0, 0)

obexd: Crash if outgouing transfer is cancelled by peer

Steps to reproduce:

  1. Send a file big enough using obex bluetooth
  2. Cancel transfer on receiving side

I discovered it on BlueZ 5.50 but as I see from the commit history, the bug is still there.

Backtrace :
__GI___pthread_mutex_lock (mutex=0x65732f74) at pthread_mutex_lock.c:67
0xecc6eeda in dbus_connection_get_object_path_data () from /usr/lib/libdbus-1.so.3
0x000457d4 in g_dbus_emit_property_changed_full () at gdbus/object.c:1794
0x00045868 in g_dbus_emit_property_changed () at gdbus/object.c:1832
0x000367f0 in transfer_set_status () at obexd/client/transfer.c:211
0x0003681e in transfer_set_status () at obexd/client/transfer.c:206
xfer_complete () at obexd/client/transfer.c:672
0x00022df6 in transfer_complete () at gobex/gobex-transfer.c:103
0x00022f44 in transfer_abort_response () at gobex/gobex-transfer.c:124
0x00020a0e in handle_response () at gobex/gobex.c:1128

Continuous reconnect when first turning on/waking up Logitech MX Keys

bluetoothd_debug-profiles_input_hog-lib.c-2020-08-04.log
Running a081a33 from git, on a Raspberry Pi 4, on Manjaro Linux 20.08 on aarch64 (ARMv8).
I have a Logitech MX Keys keyboard and when I turn it off, and turn it on after a while (or just leave it there for e.g. the night and wake it up), it disconnects/reconnects for minutes with bluez after it settles and becomes usable. Also, I have to continuously push buttons for it to reconnect, otherwise it doesn't do anything after disconnecting for some reason.
So a typical day begins with me pushing a button (doesn't seem to matter which) for minutes, and noticing when what I type doesn't get lost and the input is continuous so that I know that it has connected for sure.
Here's some debug log from bluez (I attached the full log file to this issue), running with /usr/lib/bluetooth/bluetoothd -P battery --debug=profiles/input/hog-lib.c (I had to disable the battery module, because it was erroneous; see #19 ):

aug 04 10:43:29  bluetoothd[9651]: profiles/input/hog-lib.c:bt_hog_attach() HoG discovering characteristics
aug 04 10:43:29  bluetoothd[9651]: profiles/input/hog-lib.c:info_read_cb() bcdHID: 0x0111 bCountryCode: 0x00 Flags: 0x03
aug 04 10:43:29  bluetoothd[9651]: profiles/input/hog-lib.c:report_reference_cb() Report 0x002f: id 0x01 type input
aug 04 10:43:30  bluetoothd[9651]: profiles/input/hog-lib.c:report_reference_cb() Report 0x0033: id 0x01 type output
aug 04 10:43:30  bluetoothd[9651]: profiles/input/hog-lib.c:report_reference_cb() Report 0x0036: id 0x03 type input
aug 04 10:43:30  bluetoothd[9651]: profiles/input/hog-lib.c:report_reference_cb() Report 0x003a: id 0x02 type input
aug 04 10:43:30  bluetoothd[9651]: profiles/input/hog-lib.c:report_reference_cb() Report 0x003e: id 0x11 type input
aug 04 10:43:30  bluetoothd[9651]: profiles/input/hog-lib.c:report_reference_cb() Report 0x0042: id 0x11 type output
aug 04 10:43:30  bluetoothd[9651]: profiles/input/hog-lib.c:proto_mode_read_cb() HoG is operating in Report Protocol Mode
aug 04 10:43:32  bluetoothd[9651]: profiles/input/hog-lib.c:report_ccc_written_cb() Report characteristic descriptor written: notifications enabled
aug 04 10:43:32  bluetoothd[9651]: profiles/input/hog-lib.c:report_ccc_written_cb() Report characteristic descriptor written: notifications enabled
aug 04 10:43:32  bluetoothd[9651]: profiles/input/hog-lib.c:report_ccc_written_cb() Report characteristic descriptor written: notifications enabled
aug 04 10:43:32  bluetoothd[9651]: profiles/input/hog-lib.c:report_ccc_written_cb() Report characteristic descriptor written: notifications enabled
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb() HoG inspecting report map
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb() Report MAP:
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          05 01
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          09 06
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          a1 01
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          85 01
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          05 07
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          19 e0
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          29 e7
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          15 00
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          25 01
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          75 01
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          95 08
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          81 02
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          95 05
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          05 08
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          19 01
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          29 05
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          91 02
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          95 01
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          75 03
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          91 01
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          95 06
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          75 08
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          15 00
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          26 a4 00
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          05 07
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          19 00
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          2a a4 00
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          81 00
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          c0
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          05 01
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          09 02
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          a1 01
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb() Report Map parsing failed at 65
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          85
aug 04 10:43:34  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb() Failed to connection details: getpeername: Transport endpoint is not connected (107)
aug 04 10:43:35  bluetoothd[9651]: profiles/input/hog-lib.c:bt_hog_attach() HoG discovering characteristics
aug 04 10:43:36  bluetoothd[9651]: profiles/input/hog-lib.c:info_read_cb() bcdHID: 0x0111 bCountryCode: 0x00 Flags: 0x03
aug 04 10:43:36  bluetoothd[9651]: profiles/input/hog-lib.c:report_reference_cb() Report 0x002d: id 0x01 type input
aug 04 10:43:36  bluetoothd[9651]: profiles/input/hog-lib.c:report_reference_cb() Report 0x0031: id 0x02 type input
aug 04 10:43:36  bluetoothd[9651]: profiles/input/hog-lib.c:report_reference_cb() Report 0x0035: id 0x11 type input
aug 04 10:43:36  bluetoothd[9651]: profiles/input/hog-lib.c:report_reference_cb() Report 0x0039: id 0x11 type output
aug 04 10:43:36  bluetoothd[9651]: profiles/input/hog-lib.c:proto_mode_read_cb() HoG is operating in Report Protocol Mode
aug 04 10:43:36  bluetoothd[9651]: profiles/input/hog-lib.c:report_ccc_written_cb() Report characteristic descriptor written: notifications enabled
aug 04 10:43:36  bluetoothd[9651]: profiles/input/hog-lib.c:report_ccc_written_cb() Report characteristic descriptor written: notifications enabled
aug 04 10:43:36  bluetoothd[9651]: profiles/input/hog-lib.c:report_ccc_written_cb() Report characteristic descriptor written: notifications enabled
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb() HoG inspecting report map
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb() Report MAP:
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          05 01
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          09 06
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          a1 01
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          85 01
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          05 07
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          19 e0
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          29 e7
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          15 00
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          25 01
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          75 01
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          95 08
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          81 02
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          95 06
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          75 08
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          15 00
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          26 a4 00
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          05 07
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          19 00
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          2a a4 00
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          81 00
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          c0
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          05 01
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          09 02
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          a1 01
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          85 02
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          09 01
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          a1 00
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          95 10
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          75 01
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          15 00
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          25 01
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          05 09
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          19 01
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          29 10
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          81 02
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          05 01
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          16 01 f8
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          26 ff 07
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          75 0c
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          95 02
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          09 30
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          09 31
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          81 06
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          15 81
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          25 7f
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          75 08
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          95 01
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          09 38
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          81 06
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          95 01
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          05 0c
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          0a 38 02
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          81 06
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          c0
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          c0
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          06 43 ff
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          0a 02 02
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          a1 01
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          85 11
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          75 08
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          95 13
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          15 00
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          26 ff 00
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          09 02
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          81 00
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          09 02
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          91 00
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          c0
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb() HoG created uHID device
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:set_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:set_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:set_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:set_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:set_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:set_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:set_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:set_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:set_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:set_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:set_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:set_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:set_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:set_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:set_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:set_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:set_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:set_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:set_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:set_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:37  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:38  bluetoothd[9651]: profiles/input/hog-lib.c:forward_report() Sending report type 2 ID 17 to handle 0x39
aug 04 10:43:40  bluetoothd[9651]: profiles/input/hog-lib.c:bt_hog_attach() HoG discovering characteristics
aug 04 10:43:40  bluetoothd[9651]: profiles/input/hog-lib.c:info_read_cb() bcdHID: 0x0111 bCountryCode: 0x00 Flags: 0x03
aug 04 10:43:41  bluetoothd[9651]: profiles/input/hog-lib.c:report_reference_cb() Report 0x002f: id 0x01 type input
aug 04 10:43:41  bluetoothd[9651]: profiles/input/hog-lib.c:report_reference_cb() Report 0x0033: id 0x01 type output
aug 04 10:43:41  bluetoothd[9651]: profiles/input/hog-lib.c:report_reference_cb() Report 0x0036: id 0x03 type input
aug 04 10:43:41  bluetoothd[9651]: profiles/input/hog-lib.c:report_reference_cb() Report 0x003a: id 0x02 type input
aug 04 10:43:41  bluetoothd[9651]: profiles/input/hog-lib.c:report_reference_cb() Report 0x003e: id 0x11 type input
aug 04 10:43:41  bluetoothd[9651]: profiles/input/hog-lib.c:report_reference_cb() Report 0x0042: id 0x11 type output
aug 04 10:43:41  bluetoothd[9651]: profiles/input/hog-lib.c:proto_mode_read_cb() HoG is operating in Report Protocol Mode
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_ccc_written_cb() Report characteristic descriptor written: notifications enabled
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_ccc_written_cb() Report characteristic descriptor written: notifications enabled
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_ccc_written_cb() Report characteristic descriptor written: notifications enabled
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_ccc_written_cb() Report characteristic descriptor written: notifications enabled
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_value_cb() bt_uhid_send: Invalid argument (22)
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_value_cb() bt_uhid_send: Invalid argument (22)
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_value_cb() bt_uhid_send: Invalid argument (22)
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_value_cb() bt_uhid_send: Invalid argument (22)
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_value_cb() bt_uhid_send: Invalid argument (22)
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb() HoG inspecting report map
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb() Report MAP:
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          05 01
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          09 06
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          a1 01
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          85 01
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          05 07
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          19 e0
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          29 e7
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          15 00
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          25 01
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          75 01
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          95 08
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          81 02
aug 04 10:43:42  bluetoothd[9651]: profiles/input/hog-lib.c:report_map_read_cb()          95 05
[...]

Device characteristics are trying to be read even though device isn't paired - can't pair on first try

Hello,

We're developing a BLE device whose characteristics values can only be read when the device is paired to the host (https://github.com/mooltipass/minible/blob/master/source_code/aux_mcu/src/LOGIC/logic_bluetooth.c#L905).

However, during pairing I get the following errors, likely causing a pairing fail:

Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/deviceinfo/deviceinfo.c:read_pnpid_cb() Error reading PNP_ID value: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/deviceinfo/deviceinfo.c:read_pnpid_cb() Error reading PNP_ID value: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/deviceinfo/dis.c:read_pnpid_cb() Error reading PNP_ID value: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:info_read_cb() HID Information read failed: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:report_map_read_cb() Report Map read failed: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:report_read_cb() Error reading Report value: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:report_reference_cb() Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:report_read_cb() Error reading Report value: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:report_reference_cb() Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:info_read_cb() HID Information read failed: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:report_map_read_cb() Report Map read failed: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:report_reference_cb() Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:report_reference_cb() Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:proto_mode_read_cb() Protocol Mode characteristic read failed: Request attribute has encountered an unlikely error

What I'm seeing using a Bluetooth RF analyzer is that the host never tries to query the device for the end of PIN entering.... therefore leading to a pairing fail (see the warning below).

99457796-d7747c00-292b-11eb-9378-ae8f7b43ebd3

At the end of said pairing, it however tries to pair again but much later, which fails due to a time-out on our device.
The captures can be seen here: mooltipass/minible#205 and more can be taken if you'd like.

bluetoothctl --version gives

bluetoothctl: 5.55

uname -r gives

5.9.8-arch1-1

Can't set volume of Airpods Pro

I had an issue where connected Airpod Pro bluetooth headphones only ran at ~50% volume. I tried all "tips" I found on the Internet and the only one that worked was this one. It seems there is a problem with volume_exists so it doesn't resolve to TRUE and thus no volume control is possible.

Once this is patched to return TRUE, setting and querying the volume of the Airpod Pro works great. From what I could gather this problem also occurs with other headsets (Sony, beats, etc.).

Plz don't check whether SDP service entry exists for a HID device

Hello,
I found that bluez checks if SDP service entry exists for a HID device like in the following code:
`static struct input_device *find_device(const bdaddr_t *src,
const bdaddr_t *dst)
{
struct btd_device *device;
struct btd_service *service;

device = btd_adapter_find_device(adapter_find(src), dst, BDADDR_BREDR);
if (device == NULL)
	return NULL;

service = btd_device_get_service(device, HID_UUID);
if (service == NULL)
	return NULL;

return btd_service_get_user_data(service);

}`

I mean, if (service == NULL) return NULL;

As a BT HID device can work in the Boot mode without publishing the SDP service, I think you have to allow the HID without SDP service to connect, and bluez should work in the Boot mode. (BT HID has two reporting modes: boot mode vs report mode)

For your reference, I am the author of across (www.acrosscenter.com), and am about to release a Linux version. It works well mostly except in the case of trying to pair with a Windows client. Windows PC needs to connect CTRL/INTR L2cap server to pair and load the HID's driver for a BT HID. But bluez checks if SDP service entry exists or not, and as Windows PC doesn't have the HID service, bluez disconnect L2cap connections and therefore it failed to pair with a Linux PC (which works as a HID device). So we have to make a Windows PC work as a HID device (working in Across Server mode which make SDP service available) to pair with a Linux PC.

For the L2cap connections, Windows PC seems to not send meaningful requests (no data for the INTR channel) and so if bluez get some data for the CTRL channel, you could just send a handshake and disregard them. All that I am mentioning is needed only for a pairing process to succeed.
Thank you!

Regards,

bluetoothd crashes with Logitech MX Keys (with a fix already applied)

I've had reported a similar issue a couple of days back for which @Vudentz issued a fix, and now I'm using that patch on top of bluez 5.54.
Most of the time now bluetoothd doesn't crash when I turn on the keyboard, but unfortunately it still happens sometimes.

This is on Manjaro Linux 20.06 on aarch64 (ARMv8) on a Raspberry Pi 4.

The backtrace and the logs follow:

Reading symbols from /usr/lib/bluetooth/bluetoothd...
[New LWP 3970196]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/lib/bluetooth/bluetoothd'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  gatt_db_unref (db=0x36413a43442f6874) at src/shared/gatt-db.c:420
420             if (__sync_sub_and_fetch(&db->ref_count, 1))
(gdb) list
415     void gatt_db_unref(struct gatt_db *db)
416     {
417             if (!db)
418                     return;
419
420             if (__sync_sub_and_fetch(&db->ref_count, 1))
421                     return;
422
423             gatt_db_destroy(db);
424     }
(gdb) bt
#0  gatt_db_unref (db=0x36413a43442f6874) at src/shared/gatt-db.c:420
#1  gatt_db_unref (db=0x36413a43442f6874) at src/shared/gatt-db.c:415
#2  0x0000005579b9dda8 in batt_reset (batt=0x5586490dd0) at profiles/battery/battery.c:86
#3  0x0000005579c11938 in complete_notify_request (data=0x55864967c0) at src/shared/gatt-client.c:1563
#4  enable_ccc_callback (opcode=1 '\001', pdu=0x0, length=0, user_data=0x55864967c0) at src/shared/gatt-client.c:1637
#5  0x0000005579c0b47c in disc_att_send_op (data=0x55864abeb0) at src/shared/att.c:417
#6  0x0000005579c05c18 in queue_remove_all (queue=<optimized out>, function=function@entry=0x0, user_data=user_data@entry=0x0, destroy=destroy@entry=0x5579c0b450 <disc_att_send_op>) at src/shared/queue.c:353
#7  0x0000005579c0d7b8 in disconnect_cb (io=<optimized out>, user_data=0x55864afae0) at src/shared/att.c:635
#8  0x0000005579c1a6a0 in watch_callback (channel=<optimized out>, cond=<optimized out>, user_data=<optimized out>) at src/shared/io-glib.c:170
#9  0x0000007fba32466c in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#10 0x0000007fba324af8 in ?? () from /usr/lib/libglib-2.0.so.0
#11 0x0000007fba324f00 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#12 0x0000005579c1ae30 in mainloop_run () at src/shared/mainloop-glib.c:79
#13 0x0000005579c1b34c in mainloop_run_with_signal (func=<optimized out>, user_data=0x0) at src/shared/mainloop-notify.c:201
#14 0x0000005579b64c3c in main (argc=<optimized out>, argv=<optimized out>) at src/main.c:770
(gdb) bt full
#0  gatt_db_unref (db=0x36413a43442f6874) at src/shared/gatt-db.c:420
No locals.
#1  gatt_db_unref (db=0x36413a43442f6874) at src/shared/gatt-db.c:415
No locals.
#2  0x0000005579b9dda8 in batt_reset (batt=0x5586490dd0) at profiles/battery/battery.c:86
No locals.
#3  0x0000005579c11938 in complete_notify_request (data=0x55864967c0) at src/shared/gatt-client.c:1563
        notify_data = 0x55864967c0
#4  enable_ccc_callback (opcode=1 '\001', pdu=0x0, length=0, user_data=0x55864967c0) at src/shared/gatt-client.c:1637
        notify_data = 0x55864967c0
        __PRETTY_FUNCTION__ = "enable_ccc_callback"
#5  0x0000005579c0b47c in disc_att_send_op (data=0x55864abeb0) at src/shared/att.c:417
        op = 0x55864abeb0
#6  0x0000005579c05c18 in queue_remove_all (queue=<optimized out>, function=function@entry=0x0, user_data=user_data@entry=0x0, destroy=destroy@entry=0x5579c0b450 <disc_att_send_op>) at src/shared/queue.c:353
        tmp = 0x558648f6a0
        entry = 0x0
        count = 9
#7  0x0000005579c0d7b8 in disconnect_cb (io=<optimized out>, user_data=0x55864afae0) at src/shared/att.c:635
        chan = 0x55864afae0
        att = 0x55864ac6e0
        err = 110
        len = 4
#8  0x0000005579c1a6a0 in watch_callback (channel=<optimized out>, cond=<optimized out>, user_data=<optimized out>) at src/shared/io-glib.c:170
        watch = <optimized out>
        result = <optimized out>
        destroy = <optimized out>
#9  0x0000007fba32466c in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#10 0x0000007fba324af8 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#11 0x0000007fba324f00 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#12 0x0000005579c1ae30 in mainloop_run () at src/shared/mainloop-glib.c:79
No locals.
#13 0x0000005579c1b34c in mainloop_run_with_signal (func=<optimized out>, user_data=0x0) at src/shared/mainloop-notify.c:201
        data = 0x558647e170
        io = 0x558647f330
        ret = <optimized out>
#14 0x0000005579b64c3c in main (argc=<optimized out>, argv=<optimized out>) at src/main.c:770
        context = <optimized out>
        err = 0x0
        sdp_flags = <optimized out>
        gdbus_flags = <optimized out>
        __func__ = "main"
jún 27 09:17:04 bluetoothd[540701]: Endpoint registered: sender=:1.53 path=/MediaEndpoint/A2DPSource/sbc
jún 27 09:17:04 bluetoothd[540701]: Endpoint registered: sender=:1.53 path=/MediaEndpoint/A2DPSink/sbc
jún 27 09:17:04 bluetoothd[540701]: Failed to set privacy: Rejected (0x0b)
jún 27 09:17:04 bluetoothd[540701]: Bluetooth management interface 1.16 initialized
jún 27 09:17:04 bluetoothd[540701]: Starting SDP server
jún 27 09:17:04 systemd[1]: Started Bluetooth service.
jún 27 09:17:04 bluetoothd[540701]: Bluetooth daemon 5.54
jún 27 09:17:04 systemd[1]: Starting Bluetooth service...
jún 27 09:17:04 systemd[1]: Stopped Bluetooth service.
jún 27 09:17:04 systemd[1]: bluetooth.service: Scheduled restart job, restart counter is at 3.
jún 27 09:17:04 systemd[1]: bluetooth.service: Failed with result 'core-dump'.
jún 27 09:17:04 systemd[1]: bluetooth.service: Main process exited, code=dumped, status=11/SEGV
jún 27 09:17:03 bluetoothd[3970196]: [57B blob data]
jún 27 09:17:03 bluetoothd[3970196]: Protocol Mode characteristic read failed: Request attribute has encountered an unlikely error
jún 27 09:17:03 bluetoothd[3970196]: Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
jún 27 09:17:03 bluetoothd[3970196]: Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
jún 27 09:17:03 bluetoothd[3970196]: Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
jún 27 09:17:03 bluetoothd[3970196]: Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
jún 27 09:17:03 bluetoothd[3970196]: Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
jún 27 09:17:03 bluetoothd[3970196]: Read Report Reference descriptor failed: Request attribute has encountered an unlikely error

bluetoothctl terminal issues

Ubuntu 18.04
bluetoothctl version: 5.54

Initially I had an old Bluez installed (no issues), upgraded to the latest stable release 5.54 using the following instructions:

wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.54.tar.xz
tar xf bluez-5.54.tar.xz
cd bluez-5.54/
./configure --enable-library
make
sudo make install
sudo systemctl enable bluetooth

The problem is bluetoothctl shows weird characters in the terminal. It still functions as expected but the characters are messed up! I attached a screenshot for your review.
bluetoothctl

Any ideas why is this happening? Missing fonts?

Thank you!

Can't see registered player when introspecting

So I've registered a player using the python example
It seems to register fine as it doesn't error anymore and the log in "/var/log/syslog" says it's registered

But when I introspect with gdbus introspect --system --dest org.bluez --object-path /org --recurse I don't see it
Am I missing something?

The reason I want to register a player is for my headphone which connects but doesn't have a player so the volume key have no effects.
I checked the code and it seems like it's checking if it has a player if it does it updates the Volume property.

Thanks!

sixaxis timeout?

my controller turns off after some minutes of inactivity. is it possible to adjust this?

bluetoothd segfaults after connecting to loudspeaker

I have a raspberry pi 3 setup as a loudspeaker:

[bluetoothctl]# info 00:1A:7D:DA:71:0F
Device 00:1A:7D:DA:71:0F (public)
Name: radio1
Alias: radio1
Class: 0x00040414
Icon: audio-card
Paired: yes
Trusted: no
Blocked: no
Connected: no
LegacyPairing: no
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0532
RSSI: -69

I can connect to it using my android phone and a window box.

When I try on arch (5.9.4-arch1-1, bluez 5.55-1, pulseaudio 13.99.3-1, pulseaudio-modules-bt 1.4-3), the bluetoothd crashes:

Nov 06 13:25:03 kathmandu pulseaudio[1934]: Found duplicated D-Bus path for sep endpoint /org/bluez/hci0/dev_00_1A_7D_DA_71_0F/sep1
Nov 06 13:25:03 kathmandu pulseaudio[1934]: Found duplicated D-Bus path for sep endpoint /org/bluez/hci0/dev_00_1A_7D_DA_71_0F/sep2
Nov 06 13:25:03 kathmandu pulseaudio[1934]: Found duplicated D-Bus path for sep endpoint /org/bluez/hci0/dev_00_1A_7D_DA_71_0F/sep3
Nov 06 13:25:03 kathmandu bluetoothd[11096]: profiles/audio/a2dp.c:register_remote_sep() Could not register remote sep /org/bluez/hci0/dev_00_1A_7D_DA_71_0F/sep2
Nov 06 13:25:03 kathmandu audit[11096]: ANOM_ABEND auid=4294967295 uid=0 gid=0 ses=4294967295 pid=11096 comm="bluetoothd" exe="/usr/lib/bluetooth/bluetoothd" sig=11 res=1
Nov 06 13:25:03 kathmandu bluetoothd[11096]: profiles/audio/a2dp.c:register_remote_sep() Could not register remote sep /org/bluez/hci0/dev_00_1A_7D_DA_71_0F/sep3
Nov 06 13:25:03 kathmandu kernel: bluetoothd[11096]: segfault at 3 ip 00005602dce85517 sp 00007fffefc38050 error 4 in bluetoothd[5602dce80000+a8000]
Nov 06 13:25:03 kathmandu kernel: Code: 48 8d 0d d7 35 0a 00 ba 04 00 00 00 4c 89 f7 44 0f b6 c0 be 01 00 00 00 31 c0 ff 15 db 58 10 00 48 8b 7d 10 67 e8 99 77 00 00 <44> 0f b6 6b 03 48 8b 7d 10 44 0f b6 f8 67 e8 66 77 00 00 48 83 ec
Nov 06 13:25:03 kathmandu kernel: audit: type=1701 audit(1604665503.844:244): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=11096 comm="bluetoothd" exe="/usr/lib/bluetooth/bluetoothd" sig=11 res=1
Nov 06 13:25:03 kathmandu audit: BPF prog-id=42 op=LOAD
Nov 06 13:25:03 kathmandu audit: BPF prog-id=43 op=LOAD
Nov 06 13:25:03 kathmandu kernel: audit: type=1334 audit(1604665503.891:245): prog-id=42 op=LOAD
Nov 06 13:25:03 kathmandu kernel: audit: type=1334 audit(1604665503.891:246): prog-id=43 op=LOAD
Nov 06 13:25:03 kathmandu systemd[1]: Started Process Core Dump (PID 11445/UID 0).
Nov 06 13:25:03 kathmandu audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@6-11445-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 06 13:25:03 kathmandu kernel: audit: type=1130 audit(1604665503.894:247): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@6-11445-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 06 13:25:04 kathmandu systemd[1]: bluetooth.service: Main process exited, code=dumped, status=11/SEGV
Nov 06 13:25:04 kathmandu systemd[1]: bluetooth.service: Failed with result 'core-dump'.
Nov 06 13:25:04 kathmandu audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=bluetooth comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Nov 06 13:25:04 kathmandu kernel: audit: type=1131 audit(1604665504.181:248): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=bluetooth comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Nov 06 13:25:04 kathmandu systemd-coredump[11446]: [?] Process 11096 (bluetoothd) of user 0 dumped core.

Stack trace of thread 2526285:
#0 0x000055ac5132c517 store_remote_sep (bluetoothd + 0x25517)
#1 0x000055ac513baf6d queue_foreach (bluetoothd + 0xb3f6d)
#2 0x000055ac5132ce3e store_remote_seps (bluetoothd + 0x25e3e)
#3 0x000055ac5132fb13 discover_cb (bluetoothd + 0x28b13)
#4 0x000055ac51331d5e finalize_discovery (bluetoothd + 0x2ad5e)
#5 0x000055ac513373a9 avdtp_parse_resp (bluetoothd + 0x303a9)
#6 0x00007f55bd639914 g_main_context_dispatch (libglib-2.0.so.0 + 0x52914)
#7 0x00007f55bd68d7d1 n/a (libglib-2.0.so.0 + 0xa67d1)
#8 0x00007f55bd638e63 g_main_loop_run (libglib-2.0.so.0 + 0x51e63)
#9 0x000055ac513cca06 mainloop_run (bluetoothd + 0xc5a06)
#10 0x000055ac513cce88 mainloop_run_with_signal (bluetoothd + 0xc5e88)
#11 0x000055ac51327ac1 main (bluetoothd + 0x20ac1)
#12 0x00007f55bd30c152 __libc_start_main (libc.so.6 + 0x28152)
#13 0x000055ac5132877e _start (bluetoothd + 0x2177e)Nov 06 13:25:04 kathmandu systemd[1]: systemd-coredump%406-11445-0.service: Succeeded.
Nov 06 13:25:04 kathmandu kernel: audit: type=1131 audit(1604665504.201:249): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@6-11445-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 06 13:25:04 kathmandu audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@6-11445-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 06 13:25:04 kathmandu audit: BPF prog-id=43 op=UNLOAD
Nov 06 13:25:04 kathmandu audit: BPF prog-id=42 op=UNLOAD

The segfault happens in store_remote_sep (profiles/audio/a2dp.c) after dereferencing NULL pointer:

2657 offset = sprintf(value, "%02hhx:%02hhx:%02hhx:",
2658   avdtp_get_type(sep->sep), codec->media_codec_type,
2659   avdtp_get_delay_reporting(sep->sep));

The codec is NULL When I add a simple null check and return early from the function, it works. I guess the problem is somewhere else, but I do not understand the bluez stack.

Connecting other loudspeaker (Bose mini 2 soundlink) works fine.
One last thing, if I install and start ofono service, bluetoothd does not crash, but after connecting, it immediately disconnects.

segfault in media_endpoint_destroy

Hi, since archlinux have upgraded bluez to 5.55 it got a segfault:

# /usr/lib/bluetooth/bluetoothd
free(): double free detected in tcache 2
Aborted (core dumped)

So I recompiled the package with symbol and get the following backtrace:

(gdb) bt
#0  0x00007ffff7b9e615 in raise () from /usr/lib/libc.so.6
#1  0x00007ffff7b87862 in abort () from /usr/lib/libc.so.6
#2  0x00007ffff7be05e8 in __libc_message () from /usr/lib/libc.so.6
#3  0x00007ffff7be827a in malloc_printerr () from /usr/lib/libc.so.6
#4  0x00007ffff7be9d4c in _int_free () from /usr/lib/libc.so.6
#5  0x000055555558735e in media_endpoint_destroy (endpoint=0x5555556c4ce0) at profiles/audio/media.c:180
#6  0x0000555555587b63 in media_endpoint_create (adapter=adapter@entry=0x5555556c3480, sender=sender@entry=0x5555556be868 ":1.2566", path=0x5555556c7534 "/MediaEndpoint/A2DPSink/sbc",
    uuid=0x5555556c7568 "0000110b-0000-1000-8000-00805f9b34fb", delay_reporting=0, codec=<optimized out>, capabilities=0x5555556c75bc "\377\377\002\065", size=4, err=0x7fffffffe340) at profiles/audio/media.c:823
#7  0x00005555555881e4 in register_endpoint (conn=<optimized out>, msg=0x5555556bd580, data=0x5555556c3480) at profiles/audio/media.c:926
#8  0x0000555555604519 in process_message (connection=0x5555556927f0, message=0x5555556bd580, method=0x555555676ba0 <media_methods>, iface_user_data=<optimized out>) at gdbus/object.c:259
#9  0x00007ffff7e357d6 in ?? () from /usr/lib/libdbus-1.so.3
#10 0x00007ffff7e253bd in dbus_connection_dispatch () from /usr/lib/libdbus-1.so.3
#11 0x0000555555600bb1 in message_dispatch (data=0x5555556927f0) at gdbus/mainloop.c:72
#12 0x00007ffff7eb5924 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#13 0x00007ffff7f09621 in ?? () from /usr/lib/libglib-2.0.so.0
#14 0x00007ffff7eb4e73 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#15 0x0000555555619a06 in mainloop_run () at src/shared/mainloop-glib.c:79
#16 0x0000555555619e88 in mainloop_run_with_signal (func=<optimized out>, user_data=0x0) at src/shared/mainloop-notify.c:201
#17 0x0000555555574ac1 in main (argc=<optimized out>, argv=<optimized out>) at src/main.c:971

IAlso notice it's related to MultiProfile = multiple, I don't have crash with MultiProfile = off

Meshctl sub-add with vendor id ?

To my surprise, I saw that meshctl doesn't provide a sub-set with [cid] parameter.. ?
If I look to all commands in menu config, I can read this :

  • pub-set <ele_addr> <pub_addr> <app_idx> <per (step|res)> <re-xmt (cnt|per)> [cid]
  • bind <ele_idx> <app_idx> <mod_id> [cid]
  • sub-add <ele_addr> <sub_addr>

I'm running the latest version, ie 5.55 of bluetooth and meshctl (cf. bluetoothd -v and meshctl -v).

Question: How to override RequestPasskey (Python)

Using Python example for simple-agent, I am trying to run the agent with DisplayOnly capability and would like to return a fixed pass key always . But the passkey is being generated outside the scope of python script. Is there a way to override this behaviour?

Running bluez 5.48-1 snap on ubuntu core 16 machine with out keyboard and display.

$ sudo snap list bluez
Name   Version  Rev  Tracking  Publisher   Notes
bluez  5.48-1   229  20/edge   canonical✓  -

Key file does not have group "Controller"

Started getting this issue after upgrading Linux from 5.8.* to 5.9.*, currently sitting on 5.9.4-arch1-1, and now my Bluetooth adapter doesn't even turn on. Here are some logs:

20201107_191236

20201107_191626

20201107_191902

Bluez 5.55 update shows errors each system boot

Since bluez 5.55 update on sat. Sept, 19th 2020,

journalctl --unit=bluetooth.service :
systemd[1]: Starting Bluetooth service...
bluetoothd[1416]: Bluetooth daemon 5.55
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “BRPageScanType” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “BRPageScanInterval” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “BRPageScanWindow” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “BRInquiryScanType” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “BRInquiryScanInterval” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “BRInquiryScanWindow” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “BRLinkSupervisionTimeout” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “BRPageTimeout” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “BRMinSniffInterval” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “BRMaxSniffInterval” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “LEMinAdvertisementInterval” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “LEMaxAdvertisementInterval” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “LEMultiAdvertisementRotationInterval” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “LEScanIntervalAutoConnect” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “LEScanWindowAutoConnect” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “LEScanIntervalSuspend” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “LEScanWindowSuspend” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “LEScanIntervalDiscovery” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “LEScanWindowDiscovery” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “LEScanIntervalAdvMonitor” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “LEScanWindowAdvMonitor” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “LEScanIntervalConnect” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “LEScanWindowConnect” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “LEMinConnectionInterval” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “LEMaxConnectionInterval” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “LEConnectionLatency” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “LEConnectionSupervisionTimeout” in group “Controller”
bluetoothd[1416]: src/main.c:parse_controller_config() Key file does not have key “LEAutoconnecttimeout” in group “Controller”
systemd[1]: Started Bluetooth service.
bluetoothd[1416]: Starting SDP server
systemd[1]: Started Bluetooth service.
ssystemd[1]: Reached target Bluetooth.
bluetoothd[1416]: Bluetooth management interface 1.17 initialized
bluetoothd[1416]: Endpoint registered: sender=:1.52 path=/MediaEndpoint/A2DPSink/sbc
bluetoothd[1416]: Endpoint registered: sender=:1.52 path=/MediaEndpoint/A2DPSource/sbc

Before:
systemd[1]: Starting Bluetooth service...
bluetoothd[1747]: Bluetooth daemon 5.54
bluetoothd[1747]: Starting SDP server
bluetoothd[1747]: Bluetooth management interface 1.17 initialized
systemd[1]: Started Bluetooth service.
bluetoothd[1747]: Endpoint registered: sender=:1.52 path=/MediaEndpoint/A2DPSink/sbc
bluetoothd[1747]: Endpoint registered: sender=:1.52 path=/MediaEndpoint/A2DPSource/sbc

Meanwhile, function is OK, my bluetooth headset still works fine.

Analyzing /etc/bluetooth/main.conf as refered in RPM SPEC file as %{_sysconfdir}/bluetooth/*.conf :

In [Controller] section, there are these comments:

---BEGIN QUOTE-----

[Controller]

The following values are used to load default adapter parameters. BlueZ loads

the values into the kernel before the adapter is powered if the kernel

supports the MGMT_LOAD_DEFAULT_PARAMETERS command. If a value isn't provided,

the kernel will be initialized to it's default value. The actual value will

vary based on the kernel version and thus aren't provided here.

The Bluetooth Core Specification should be consulted for the meaning and valid

domain of each of these values.

BR/EDR Page scan activity configuration

#BRPageScanType=
#BRPageScanInterval=
#BRPageScanWindow=

BR/EDR Inquiry scan activity configuration

#BRInquiryScanType=
#BRInquiryScanInterval=
#BRInquiryScanWindow=

BR/EDR Link supervision timeout

#BRLinkSupervisionTimeout=

BR/EDR Page Timeout

#BRPageTimeout=

BR/EDR Sniff Intervals

#BRMinSniffInterval=
#BRMaxSniffInterval=

LE advertisement interval (used for legacy advertisement interface only)

#LEMinAdvertisementInterval=
#LEMaxAdvertisementInterval=
#LEMultiAdvertisementRotationInterval=

LE scanning parameters used for passive scanning supporting auto connect

scenarios

#LEScanIntervalAutoConnect=
#LEScanWindowAutoConnect=

LE scanning parameters used for passive scanning supporting wake from suspend

scenarios

#LEScanIntervalSuspend=
#LEScanWindowSuspend=

LE scanning parameters used for active scanning supporting discovery

proceedure

#LEScanIntervalDiscovery=
#LEScanWindowDiscovery=

LE scanning parameters used for passive scanning supporting the advertisement

monitor Apis

#LEScanIntervalAdvMonitor=
#LEScanWindowAdvMonitor=

LE scanning parameters used for connection establishment.

#LEScanIntervalConnect=
#LEScanWindowConnect=

LE default connection parameters. These values are superceeded by any

specific values provided via the Load Connection Parameters interface

#LEMinConnectionInterval=
#LEMaxConnectionInterval=
#LEConnectionLatency=
#LEConnectionSupervisionTimeout=
#LEAutoconnecttimeout=

--- END QUOTE-----------

All these values are not set. Comment above explicitly says: "If a value isn't provided,
the kernel will be initialized to it's default value. The actual value will
vary based on the kernel version and thus aren't provided here.
The Bluetooth Core Specification should be consulted for the meaning and valid
domain of each of these values."

So if there is no value set, Kernel should set his default value and daemon should not complain by spamming dmesg.

Why these values are not set by default in config file provided upstream?

See Mageia Cauldron Bugzilla report: https://bugs.mageia.org/show_bug.cgi?id=27314

The org.bluez.Network1 dbus interface does not emit PropertiesChanged signals on Disconnect

I'm using the dbus interface to connect to an iPhone Personal Hotspot using Bluez 5.54 / Linux 5.4.32. When connecting, Bluez emits PropertiesChanged signals for the org.bluez.Network1 interface of the device informing me of the Connected (true), Interface (bnep0) and UUID (00001116-...). However, when disconnecting, no such signal is emitted. Querying the properties shows, however, that the values reverted to the unconnected values.

When I disconnect by disabling the hotspot on the iPhone, the signal is emitted.

To reproduce, run busctl monitor org.bluez on one console and issue

busctl call org.bluez /org/bluez/hci0/dev_? org.bluez.Network1 Connect s 00001116-0000-1000-8000-00805f9b34fb

resulting in

  • method_call
  • signal PropertiesChanged for org.bluez.Device1 (Connected true)
  • method_return
  • signal PropertiesChanged for org.bluez.Network1 (Connected true)

and then

busctl call org.bluez /org/bluez/hci0/dev_? org.bluez.Network1 Disconnect

resulting in

  • method_call
  • method_return
  • signal PropertiesChanged for org.bluez.Device1 (Connected false)

but no PropertiesChanged for org.bluez.Network1 (Connected false).

segfault connecting to specific device

Hello,
I have 2 bluetooth devices: a pair of true wireless earbuds and a JBL Link 300. Both devices have been paired.
I can connect and use the earbuds without any problems.
When I try to connect to the JBL, the bluetooth service throws a segfault.
I kept downgrading bluez, getting packages from here: https://archive.archlinux.org/packages/b/bluez/.

What I found out is that the problem started from here:
bluez-5.51-1-x86_64.pkg.tar.xz 22-Sep-2019 20:46 676K

Link 300 works fine with this one:
bluez-5.50-7-x86_64.pkg.tar.xz 06-Sep-2019 19:32 518K

The issue seems similar to these:
https://bugs.archlinux.org/task/48644
https://bugs.archlinux.org/task/53442

System Info:
OS: Arch with kernel 5.9.8-arch1-1
bluez: 5.55
dongle: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

This is the output of systemd when connecting to the JBL:

$ systemctl status bluetooth
bluetoothd[6079]: profiles/audio/a2dp.c:register_remote_sep() Could not register remote sep /org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/sep7
bluetoothd[6079]: profiles/audio/a2dp.c:register_remote_sep() Could not register remote sep /org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/sep8
bluetoothd[6079]: profiles/audio/a2dp.c:register_remote_sep() Could not register remote sep /org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/sep9
bluetooth.service: Main process exited, code=dumped, status=11/SEGV
bluetooth.service: Failed with result 'core-dump'.

dmesg:

$ dmesg
[ 6874.438813] bluetoothd[6079]: segfault at 3 ip 00005574cedbf517 sp 00007ffc58571f40 error 4 in bluetoothd[5574cedba000+a8000]
[ 6874.438818] Code: 48 8d 0d d7 35 0a 00 ba 04 00 00 00 4c 89 f7 44 0f b6 c0 be 01 00 00 00 31 c0 ff 15 db 58 10 00 48 8b 7d 10 67 e8 99 77 00 00 <44> 0f b6 6b 03 48 8b 7d 10 44 0f b6 f8 67 e8 66 77 00 00 48 83 ec

The coredump:

# coredumpctl info 6079
           PID: 6079 (bluetoothd)
           UID: 0 (root)
           GID: 0 (root)
           Signal: 11 (SEGV)
           Timestamp: Sat 2020-11-14 13:45:39 CET (20h ago)
           Command Line: /usr/lib/bluetooth/bluetoothd
           Executable: /usr/lib/bluetooth/bluetoothd
           Control Group: /system.slice/bluetooth.service
           Unit: bluetooth.service
           Slice: system.slice
           Boot ID: XXX
           Machine ID: XXX
           Hostname: XX
           Storage: /var/lib/systemd/coredump/core.bluetoothd.0.2c2cc8a8928c48d3b4080aebc2d5d6ad.6079.1605357939000000.zst
           Message: Process 6079 (bluetoothd) of user 0 dumped core.
                
                Stack trace of thread 6079:
                #0  0x00005574cedbf517 n/a (bluetoothd + 0x25517)
                #1  0x00005574cee4df6d n/a (bluetoothd + 0xb3f6d)
                #2  0x00005574cedbfe3e n/a (bluetoothd + 0x25e3e)
                #3  0x00005574cedc2b13 n/a (bluetoothd + 0x28b13)
                #4  0x00005574cedc4d5e n/a (bluetoothd + 0x2ad5e)
                #5  0x00005574cedca3a9 n/a (bluetoothd + 0x303a9)
                #6  0x00007f2ed307d914 g_main_context_dispatch (libglib-2.0.so.0 + 0x52914)
                #7  0x00007f2ed30d17d1 n/a (libglib-2.0.so.0 + 0xa67d1)
                #8  0x00007f2ed307ce63 g_main_loop_run (libglib-2.0.so.0 + 0x51e63)
                #9  0x00005574cee5fa06 n/a (bluetoothd + 0xc5a06)
                #10 0x00005574cee5fe88 n/a (bluetoothd + 0xc5e88)
                #11 0x00005574cedbaac1 n/a (bluetoothd + 0x20ac1)
                #12 0x00007f2ed2d50152 __libc_start_main (libc.so.6 + 0x28152)
                #13 0x00005574cedbb77e n/a (bluetoothd + 0x2177e)

Let me know if some data is missing and I'll provide it.
Thanks for your work.

bluetoothd: segmentation fault when cleaning up tmp. devices

Hello,
I'm trying to read several BLE devices data using Nordic UART service.
But sometimes bluetoothd tries to free notify client two times and then daemon crashes.

The logs using valgrind:

bluetoothd[10082]: src/gatt-client.c:unregister_characteristic() Removing GATT characteristic: /org/bluez/hci5/dev_E4_5F_84_E4_9A_B3/service0100/char0103
bluetoothd[10082]: src/gatt-client.c:unregister_descriptor() Removing GATT descriptor: /org/bluez/hci5/dev_E4_5F_84_E4_9A_B3/service0100/char0103/desc0105
==10082== Invalid read of size 8
==10082==    at 0x18F8E5: notify_io_destroy (gatt-client.c:1491)
==10082==    by 0x18F632: sock_io_destroy (gatt-client.c:1108)
==10082==    by 0x18F7CE: characteristic_free (gatt-client.c:1702)
==10082==    by 0x1B2C36: remove_interface (object.c:667)
==10082==    by 0x1B318A: g_dbus_unregister_interface (object.c:1401)
==10082==    by 0x1B76A1: queue_remove_all (queue.c:354)
==10082==    by 0x18EB9C: unregister_service (gatt-client.c:1923)
==10082==    by 0x1B76A1: queue_remove_all (queue.c:354)
==10082==    by 0x1B76D8: queue_destroy (queue.c:73)
==10082==    by 0x19257C: btd_gatt_client_destroy (gatt-client.c:2124)
==10082==    by 0x196BD9: device_free (device.c:677)
==10082==    by 0x1B2C36: remove_interface (object.c:667)
==10082==  Address 0x64d23b0 is 0 bytes inside a block of size 32 free'd
==10082==    at 0x483CA3F: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==10082==    by 0x1C0E4B: complete_notify_request (gatt-client.c:1592)
==10082==    by 0x1C0E4B: enable_ccc_callback (gatt-client.c:1666)
==10082==    by 0x1BB57F: disc_att_send_op (att.c:420)
==10082==    by 0x1BD59D: disconnect_cb (att.c:638)
==10082==    by 0x1C82C8: watch_callback (io-glib.c:170)
==10082==    by 0x48B8E8D: g_main_context_dispatch (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.3)
==10082==    by 0x48B923F: ??? (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.3)
==10082==    by 0x48B9532: g_main_loop_run (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.3)
==10082==    by 0x1C8928: mainloop_run (mainloop-glib.c:79)
==10082==    by 0x1C8D8F: mainloop_run_with_signal (mainloop-notify.c:201)
==10082==    by 0x12A789: main (main.c:971)
==10082==  Block was alloc'd at
==10082==    at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==10082==    by 0x1B7762: btd_malloc (util.c:47)
==10082==    by 0x18FAD3: notify_client_create (gatt-client.c:1355)
==10082==    by 0x18FE94: characteristic_acquire_notify (gatt-client.c:1516)
==10082==    by 0x1B3BCB: process_message.isra.0 (object.c:259)
==10082==    by 0x49B444C: ??? (in /usr/lib/x86_64-linux-gnu/libdbus-1.so.3.19.11)
==10082==    by 0x49A4B03: dbus_connection_dispatch (in /usr/lib/x86_64-linux-gnu/libdbus-1.so.3.19.11)
==10082==    by 0x1B0317: message_dispatch (mainloop.c:72)
==10082==    by 0x48B8E8D: g_main_context_dispatch (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.3)
==10082==    by 0x48B923F: ??? (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.3)
==10082==    by 0x48B9532: g_main_loop_run (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.3)
==10082==    by 0x1C8928: mainloop_run (mainloop-glib.c:79)
==10082== 
bluetoothd[10082]: src/device.c:device_free() 0x64c4d30
bluetoothd[10082]: src/device.c:device_remove() Removing device /org/bluez/hci6/dev_AC_23_3F_5C_2F_B1
bluetoothd[10082]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci6/dev_AC_23_3F_5C_2F_B1
bluetoothd[10082]: src/device.c:device_free() 0x52efb20

further debugging revealed that if device disconnected due to timeout it cleans up notify client sets device as temporary and in some while it is removed witch triggers notify client clean up again. I printed out the address of notify client.

bluetoothd[68635]: src/device.c:device_probe_profiles() Probing profiles for device F3:A7:AB:48:6B:AD
bluetoothd[68635]: profiles/gap/gas.c:gap_probe() GAP profile probe (F3:A7:AB:48:6B:AD)
bluetoothd[68635]: src/service.c:change_state() 0x55bad6c91820: device F3:A7:AB:48:6B:AD profile gap-profile state changed: unavailable -> disconnected (0)
bluetoothd[68635]: profiles/gap/gas.c:gap_accept() GAP profile accept (F3:A7:AB:48:6B:AD)
bluetoothd[68635]: src/service.c:change_state() 0x55bad6c91820: device F3:A7:AB:48:6B:AD profile gap-profile state changed: disconnected -> connected (0)
bluetoothd[68635]: src/device.c:device_probe_profiles() Probing profiles for device F3:A7:AB:48:6B:AD
bluetoothd[68635]: src/device.c:device_probe_profiles() Probing profiles for device F3:A7:AB:48:6B:AD
bluetoothd[68635]: src/gatt-client.c:btd_gatt_client_ready() GATT client ready
bluetoothd[68635]: src/gatt-client.c:create_services() Exporting objects for GATT services: F3:A7:AB:48:6B:AD
bluetoothd[68635]: src/gatt-client.c:service_create() Exported GATT service: /org/bluez/hci4/dev_F3_A7_AB_48_6B_AD/service0006
bluetoothd[68635]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci4/dev_F3_A7_AB_48_6B_AD/service0006/char0007
bluetoothd[68635]: src/gatt-client.c:service_create() Exported GATT service: /org/bluez/hci4/dev_F3_A7_AB_48_6B_AD/service0100
bluetoothd[68635]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci4/dev_F3_A7_AB_48_6B_AD/service0100/char0101
bluetoothd[68635]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci4/dev_F3_A7_AB_48_6B_AD/service0100/char0103
bluetoothd[68635]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci4/dev_F3_A7_AB_48_6B_AD/service0100/char0103/desc0105
bluetoothd[68635]: src/gatt-client.c:btd_gatt_client_ready() Features 0x00
bluetoothd[68635]: src/gatt-client.c:btd_gatt_client_ready() Update Features 0x00
bluetoothd[68635]: src/device.c:device_svc_resolved() /org/bluez/hci4/dev_F3_A7_AB_48_6B_AD err 0
bluetoothd[68635]: src/gatt-client.c:notify_client_ref() owner :1.1029
bluetoothd[68635]: src/adapter.c:dev_disconnected() Device F3:A7:AB:48:6B:AD disconnected, reason 1
bluetoothd[68635]: src/adapter.c:adapter_remove_connection() 
bluetoothd[68635]: plugins/policy.c:disconnect_cb() reason 1
bluetoothd[68635]: src/adapter.c:bonding_attempt_complete() hci4 bdaddr F3:A7:AB:48:6B:AD type 2 status 0xe
bluetoothd[68635]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e
bluetoothd[68635]: src/device.c:btd_device_set_temporary() temporary 1
bluetoothd[68635]: src/device.c:device_bonding_failed() status 14
bluetoothd[68635]: src/adapter.c:resume_discovery() 
bluetoothd[68635]: src/adapter.c:remove_whitelist_complete() F3:A7:AB:48:6B:AD removed from kernel whitelist
bluetoothd[68635]: profiles/gap/gas.c:read_device_name_cb() Reading device name failed with ATT errror: 14
bluetoothd[68635]: profiles/gap/gas.c:read_appearance_cb() Reading appearance failed with ATT error: 14
bluetoothd[68635]: src/gatt-client.c:notify_client_free() pointer: 0x55bad6e000d0
bluetoothd[68635]: src/gatt-client.c:notify_client_free() owner :1.1029
bluetoothd[68635]: src/device.c:att_disconnected_cb() 
bluetoothd[68635]: src/device.c:att_disconnected_cb() Connection timed out (110)
bluetoothd[68635]: src/service.c:change_state() 0x55bad6c91820: device F3:A7:AB:48:6B:AD profile gap-profile state changed: connected -> disconnecting (0)
bluetoothd[68635]: src/service.c:change_state() 0x55bad6c91820: device F3:A7:AB:48:6B:AD profile gap-profile state changed: disconnecting -> disconnected (0)
bluetoothd[68635]: src/gatt-client.c:btd_gatt_client_disconnected() Device disconnected. Cleaning up.
bluetoothd[68635]: src/device.c:att_disconnected_cb() Automatic connection disabled
bluetoothd[68635]: src/gatt-database.c:btd_gatt_database_att_disconnected() 
bluetoothd[68635]: attrib/gattrib.c:g_attrib_unref() 0x55bad6c6faf0: g_attrib_unref=0 
bluetoothd[68635]: src/adapter.c:dev_disconnected() Device E6:15:EC:60:0F:7D disconnected, reason 2
bluetoothd[68635]: src/adapter.c:adapter_remove_connection() 
bluetoothd[68635]: plugins/policy.c:disconnect_cb() reason 2
bluetoothd[68635]: src/adapter.c:bonding_attempt_complete() hci7 bdaddr E6:15:EC:60:0F:7D type 2 status 0xe
bluetoothd[68635]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e
bluetoothd[68635]: src/device.c:btd_device_set_temporary() temporary 1
bluetoothd[68635]: src/device.c:device_bonding_failed() status 14
bluetoothd[68635]: src/adapter.c:resume_discovery() 
bluetoothd[68635]: src/adapter.c:trigger_start_discovery() 
bluetoothd[68635]: src/adapter.c:cancel_passive_scanning() 
bluetoothd[68635]: src/adapter.c:remove_whitelist_complete() E6:15:EC:60:0F:7D removed from kernel whitelist
bluetoothd[68635]: src/device.c:att_disconnected_cb() 
bluetoothd[68635]: src/device.c:att_disconnected_cb() Software caused connection abort (103)
bluetoothd[68635]: src/gatt-client.c:btd_gatt_client_disconnected() Device disconnected. Cleaning up.
bluetoothd[68635]: src/device.c:att_disconnected_cb() Automatic connection disabled
bluetoothd[68635]: src/gatt-database.c:btd_gatt_database_att_disconnected() 
bluetoothd[68635]: src/gatt-database.c:att_disconnected() 
bluetoothd[68635]: attrib/gattrib.c:g_attrib_unref() 0x55bad6ddc4f0: g_attrib_unref=0 
bluetoothd[68635]: src/device.c:device_remove() Removing device /org/bluez/hci7/dev_E6_15_EC_60_0F_7D
bluetoothd[68635]: src/service.c:change_state() 0x55bad6df4690: device E6:15:EC:60:0F:7D profile gap-profile state changed: disconnected -> unavailable (0)
bluetoothd[68635]: profiles/gap/gas.c:gap_remove() GAP profile remove (E6:15:EC:60:0F:7D)
bluetoothd[68635]: src/service.c:btd_service_unref() 0x55bad6df4690: ref=0
bluetoothd[68635]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci7/dev_E6_15_EC_60_0F_7D
bluetoothd[68635]: src/gatt-client.c:unregister_service() Removing GATT service: /org/bluez/hci7/dev_E6_15_EC_60_0F_7D/service0006
bluetoothd[68635]: src/gatt-client.c:unregister_characteristic() Removing GATT characteristic: /org/bluez/hci7/dev_E6_15_EC_60_0F_7D/service0006/char0007
bluetoothd[68635]: src/gatt-client.c:unregister_service() Removing GATT service: /org/bluez/hci7/dev_E6_15_EC_60_0F_7D/service0100
bluetoothd[68635]: src/gatt-client.c:unregister_characteristic() Removing GATT characteristic: /org/bluez/hci7/dev_E6_15_EC_60_0F_7D/service0100/char0101
bluetoothd[68635]: src/gatt-client.c:unregister_characteristic() Removing GATT characteristic: /org/bluez/hci7/dev_E6_15_EC_60_0F_7D/service0100/char0103
bluetoothd[68635]: src/gatt-client.c:unregister_descriptor() Removing GATT descriptor: /org/bluez/hci7/dev_E6_15_EC_60_0F_7D/service0100/char0103/desc0105
bluetoothd[68635]: src/gatt-client.c:notify_io_destroy() pointer1: 0x55bad6e02fb0
bluetoothd[68635]: src/gatt-client.c:notify_client_unref() owner :1.1026
bluetoothd[68635]: src/gatt-client.c:notify_client_free() pointer: 0x55bad6e02fb0
bluetoothd[68635]: src/gatt-client.c:notify_client_free() owner :1.1026
bluetoothd[68635]: src/gatt-client.c:notify_io_destroy() pointer2: 0x55bad6e02fb0
bluetoothd[68635]: src/device.c:device_free() 0x55bad6d13b10
bluetoothd[68635]: src/service.c:change_state() 0x55bad6cbaa30: device E8:BF:08:0F:B2:D3 profile gap-profile state changed: connected -> disconnecting (0)
bluetoothd[68635]: src/service.c:change_state() 0x55bad6cbaa30: device E8:BF:08:0F:B2:D3 profile gap-profile state changed: disconnecting -> disconnected (0)
bluetoothd[68635]: src/device.c:device_remove() Removing device /org/bluez/hci6/dev_6F_1C_00_71_DC_39
bluetoothd[68635]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci6/dev_6F_1C_00_71_DC_39
bluetoothd[68635]: src/device.c:device_free() 0x55bad6d50c60
bluetoothd[68635]: src/device.c:device_remove() Removing device /org/bluez/hci5/dev_6F_1C_00_71_DC_39
bluetoothd[68635]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci5/dev_6F_1C_00_71_DC_39
bluetoothd[68635]: src/device.c:device_free() 0x55bad6d4f5e0
bluetoothd[68635]: src/device.c:device_remove() Removing device /org/bluez/hci4/dev_6F_1C_00_71_DC_39
bluetoothd[68635]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci4/dev_6F_1C_00_71_DC_39
bluetoothd[68635]: src/device.c:device_free() 0x55bad6d323f0
bluetoothd[68635]: src/device.c:device_remove() Removing device /org/bluez/hci2/dev_6F_1C_00_71_DC_39
bluetoothd[68635]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci2/dev_6F_1C_00_71_DC_39
bluetoothd[68635]: src/device.c:device_free() 0x55bad6dc3cb0
bluetoothd[68635]: src/device.c:device_remove() Removing device /org/bluez/hci1/dev_6F_1C_00_71_DC_39
bluetoothd[68635]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci1/dev_6F_1C_00_71_DC_39
bluetoothd[68635]: src/device.c:device_free() 0x55bad6d27760
bluetoothd[68635]: src/device.c:device_remove() Removing device /org/bluez/hci0/dev_6F_1C_00_71_DC_39
bluetoothd[68635]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci0/dev_6F_1C_00_71_DC_39
bluetoothd[68635]: src/device.c:device_free() 0x55bad6def290
bluetoothd[68635]: src/device.c:device_remove() Removing device /org/bluez/hci3/dev_6F_1C_00_71_DC_39
bluetoothd[68635]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci3/dev_6F_1C_00_71_DC_39
bluetoothd[68635]: src/device.c:device_free() 0x55bad6d70e00
bluetoothd[68635]: src/adapter.c:dev_disconnected() Device E8:BF:08:0F:B2:D3 disconnected, reason 2
bluetoothd[68635]: src/adapter.c:adapter_remove_connection() 
bluetoothd[68635]: plugins/policy.c:disconnect_cb() reason 2
bluetoothd[68635]: src/adapter.c:bonding_attempt_complete() hci1 bdaddr E8:BF:08:0F:B2:D3 type 2 status 0xe
bluetoothd[68635]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e
bluetoothd[68635]: src/device.c:btd_device_set_temporary() temporary 1
bluetoothd[68635]: src/device.c:device_bonding_failed() status 14
bluetoothd[68635]: src/adapter.c:resume_discovery() 
bluetoothd[68635]: src/adapter.c:remove_whitelist_complete() E8:BF:08:0F:B2:D3 removed from kernel whitelist
bluetoothd[68635]: src/device.c:att_disconnected_cb() 
bluetoothd[68635]: src/device.c:att_disconnected_cb() Software caused connection abort (103)
bluetoothd[68635]: src/gatt-client.c:btd_gatt_client_disconnected() Device disconnected. Cleaning up.
bluetoothd[68635]: src/device.c:att_disconnected_cb() Automatic connection disabled
bluetoothd[68635]: src/gatt-database.c:btd_gatt_database_att_disconnected() 
bluetoothd[68635]: src/gatt-database.c:att_disconnected() 
bluetoothd[68635]: attrib/gattrib.c:g_attrib_unref() 0x55bad6dfcb60: g_attrib_unref=0 
bluetoothd[68635]: src/device.c:device_remove() Removing device /org/bluez/hci1/dev_E8_BF_08_0F_B2_D3
bluetoothd[68635]: src/service.c:change_state() 0x55bad6cbaa30: device E8:BF:08:0F:B2:D3 profile gap-profile state changed: disconnected -> unavailable (0)
bluetoothd[68635]: profiles/gap/gas.c:gap_remove() GAP profile remove (E8:BF:08:0F:B2:D3)
bluetoothd[68635]: src/service.c:btd_service_unref() 0x55bad6cbaa30: ref=0
bluetoothd[68635]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci1/dev_E8_BF_08_0F_B2_D3
bluetoothd[68635]: src/gatt-client.c:unregister_service() Removing GATT service: /org/bluez/hci1/dev_E8_BF_08_0F_B2_D3/service0006
bluetoothd[68635]: src/gatt-client.c:unregister_characteristic() Removing GATT characteristic: /org/bluez/hci1/dev_E8_BF_08_0F_B2_D3/service0006/char0007
bluetoothd[68635]: src/gatt-client.c:unregister_service() Removing GATT service: /org/bluez/hci1/dev_E8_BF_08_0F_B2_D3/service0100
bluetoothd[68635]: src/gatt-client.c:unregister_characteristic() Removing GATT characteristic: /org/bluez/hci1/dev_E8_BF_08_0F_B2_D3/service0100/char0101
bluetoothd[68635]: src/gatt-client.c:unregister_characteristic() Removing GATT characteristic: /org/bluez/hci1/dev_E8_BF_08_0F_B2_D3/service0100/char0103
bluetoothd[68635]: src/gatt-client.c:unregister_descriptor() Removing GATT descriptor: /org/bluez/hci1/dev_E8_BF_08_0F_B2_D3/service0100/char0103/desc0105
bluetoothd[68635]: src/gatt-client.c:notify_io_destroy() pointer1: 0x55bad6dc0f40
bluetoothd[68635]: src/gatt-client.c:notify_client_unref() owner :1.1031
bluetoothd[68635]: src/gatt-client.c:notify_client_free() pointer: 0x55bad6dc0f40
bluetoothd[68635]: src/gatt-client.c:notify_client_free() owner :1.1031
bluetoothd[68635]: src/gatt-client.c:notify_io_destroy() pointer2: 0x55bad6dc0f40
bluetoothd[68635]: src/device.c:device_free() 0x55bad6d950d0
bluetoothd[68635]: src/adapter.c:start_discovery_timeout() 
bluetoothd[68635]: src/adapter.c:start_discovery_timeout() adapter->current_discovery_filter == 1
bluetoothd[68635]: src/adapter.c:start_discovery_timeout() sending MGMT_OP_START_SERVICE_DISCOVERY 127, 7, 0
bluetoothd[68635]: src/adapter.c:start_discovery_complete() status 0x0a
bluetoothd[68635]: src/adapter.c:trigger_start_discovery() 
bluetoothd[68635]: src/adapter.c:cancel_passive_scanning() 
bluetoothd[68635]: src/adapter.c:set_discovery_filter() sender :1.1025
bluetoothd[68635]: src/adapter.c:parse_discovery_filter_dict() filtered discovery params: transport: 7 rssi: 32767 pathloss: 32767  duplicate data: false discoverable false pattern SAFE_LE
bluetoothd[68635]: src/adapter.c:update_discovery_filter() 
bluetoothd[68635]: src/adapter.c:discovery_filter_to_mgmt_cp() 
bluetoothd[68635]: src/adapter.c:update_discovery_filter() filters were equal, deciding to not restart the scan.
bluetoothd[68635]: src/device.c:device_remove() Removing device /org/bluez/hci6/dev_AC_23_3F_5C_2F_B0
bluetoothd[68635]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci6/dev_AC_23_3F_5C_2F_B0
bluetoothd[68635]: src/device.c:device_free() 0x55bad6d2c8b0
bluetoothd[68635]: src/device.c:device_remove() Removing device /org/bluez/hci5/dev_AC_23_3F_5C_2F_B0
bluetoothd[68635]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci5/dev_AC_23_3F_5C_2F_B0
bluetoothd[68635]: src/device.c:device_free() 0x55bad6d37db0
bluetoothd[68635]: src/device.c:device_remove() Removing device /org/bluez/hci4/dev_AC_23_3F_5C_2F_B0
bluetoothd[68635]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci4/dev_AC_23_3F_5C_2F_B0
bluetoothd[68635]: src/device.c:device_free() 0x55bad6d261c0
bluetoothd[68635]: src/device.c:device_remove() Removing device /org/bluez/hci2/dev_AC_23_3F_5C_2F_B0
bluetoothd[68635]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci2/dev_AC_23_3F_5C_2F_B0
bluetoothd[68635]: src/device.c:device_free() 0x55bad6dfb720
bluetoothd[68635]: src/device.c:device_remove() Removing device /org/bluez/hci1/dev_AC_23_3F_5C_2F_B0
bluetoothd[68635]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci1/dev_AC_23_3F_5C_2F_B0
bluetoothd[68635]: src/device.c:device_free() 0x55bad6c90d10
bluetoothd[68635]: src/device.c:device_remove() Removing device /org/bluez/hci0/dev_AC_23_3F_5C_2F_B0
bluetoothd[68635]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci0/dev_AC_23_3F_5C_2F_B0
bluetoothd[68635]: src/device.c:device_free() 0x55bad6ca8070
bluetoothd[68635]: src/device.c:device_remove() Removing device /org/bluez/hci3/dev_AC_23_3F_5C_2F_B0
bluetoothd[68635]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci3/dev_AC_23_3F_5C_2F_B0
bluetoothd[68635]: src/device.c:device_free() 0x55bad6def530
bluetoothd[68635]: src/device.c:device_remove() Removing device /org/bluez/hci4/dev_F3_A7_AB_48_6B_AD
bluetoothd[68635]: src/service.c:change_state() 0x55bad6c91820: device F3:A7:AB:48:6B:AD profile gap-profile state changed: disconnected -> unavailable (0)
bluetoothd[68635]: profiles/gap/gas.c:gap_remove() GAP profile remove (F3:A7:AB:48:6B:AD)
bluetoothd[68635]: src/service.c:btd_service_unref() 0x55bad6c91820: ref=0
bluetoothd[68635]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci4/dev_F3_A7_AB_48_6B_AD
bluetoothd[68635]: src/gatt-client.c:unregister_service() Removing GATT service: /org/bluez/hci4/dev_F3_A7_AB_48_6B_AD/service0006
bluetoothd[68635]: src/gatt-client.c:unregister_characteristic() Removing GATT characteristic: /org/bluez/hci4/dev_F3_A7_AB_48_6B_AD/service0006/char0007
bluetoothd[68635]: src/gatt-client.c:unregister_service() Removing GATT service: /org/bluez/hci4/dev_F3_A7_AB_48_6B_AD/service0100
bluetoothd[68635]: src/gatt-client.c:unregister_characteristic() Removing GATT characteristic: /org/bluez/hci4/dev_F3_A7_AB_48_6B_AD/service0100/char0101
bluetoothd[68635]: src/gatt-client.c:unregister_characteristic() Removing GATT characteristic: /org/bluez/hci4/dev_F3_A7_AB_48_6B_AD/service0100/char0103
bluetoothd[68635]: src/gatt-client.c:unregister_descriptor() Removing GATT descriptor: /org/bluez/hci4/dev_F3_A7_AB_48_6B_AD/service0100/char0103/desc0105
bluetoothd[68635]: src/gatt-client.c:notify_io_destroy() pointer1: 0x55bad6e000d0

I'm using several bluetooth adapters to scan and find my BLE devices to connect and read its data using just bluetoothctl commmands. Is there quick way to fix or prevent this crash?
Thank you for your time.

bluetoothd 5.54 crash upon service authorization

Trying to connect to a computer configured as audio sink through bluetoothctl, after pairing and trusting in both sides bluetoothd crashes

Steps to reproduce:

bluetoothctl

[bluetooth]# connect 00:xx:xx ...

bluetoothd segmentation fault

coredumpctl debug
PID: 4564 (bluetoothd)
UID: 0 (root)
GID: 0 (root)
Signal: 11 (SEGV)
Timestamp: Tue 2020-04-14 14:15:44 CEST (40s ago)
Command Line: /usr/lib/bluetooth/bluetoothd
Executable: /usr/lib/bluetooth/bluetoothd
Control Group: /system.slice/bluetooth.service
Unit: bluetooth.service
Slice: system.slice
Boot ID: b6a0f48bcf494e3684d85d5ad94ec636
Machine ID: 520c90fd05654925aee82c084e1546d3
Hostname: woody
Storage: /var/lib/systemd/coredump/core.bluetoothd.0.b6a0f48bcf494e3684d85d5ad94ec636.4564.1586866544000000000000.lz4
Message: Process 4564 (bluetoothd) of user 0 dumped core.

            Stack trace of thread 4564:
            #0  0x000055d74461b65d n/a (bluetoothd + 0x2365d)
            #1  0x000055d74469e1fd n/a (bluetoothd + 0xa61fd)
            #2  0x000055d74461ea2d n/a (bluetoothd + 0x26a2d)
            #3  0x000055d74461eb79 n/a (bluetoothd + 0x26b79)
            #4  0x000055d74462012e n/a (bluetoothd + 0x2812e)
            #5  0x000055d7446250fa n/a (bluetoothd + 0x2d0fa)
            #6  0x00007f5177a1b88f g_main_context_dispatch (libglib-2.0.so.0 + 0x6b88f)
            #7  0x00007f5177a1d831 n/a (libglib-2.0.so.0 + 0x6d831)
            #8  0x00007f5177a1e843 g_main_loop_run (libglib-2.0.so.0 + 0x6e843)
            #9  0x000055d7446af166 n/a (bluetoothd + 0xb7166)
            #10 0x000055d7446af5e8 n/a (bluetoothd + 0xb75e8)
            #11 0x000055d744616941 n/a (bluetoothd + 0x1e941)
            #12 0x00007f51776e7023 __libc_start_main (libc.so.6 + 0x27023)
            #13 0x000055d74461754e n/a (bluetoothd + 0x1f54e)

GNU gdb (GDB) 9.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib/bluetooth/bluetoothd...
(No debugging symbols found in /usr/lib/bluetooth/bluetoothd)
[New LWP 4564]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/lib/bluetooth/bluetoothd'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000055d74461b65d in ?? ()
(gdb) bt
#0 0x000055d74461b65d in ?? ()
#1 0x000055d74469e1fd in ?? ()
#2 0x000055d74461ea2d in ?? ()
#3 0x000055d74461eb79 in ?? ()
#4 0x000055d74462012e in ?? ()
#5 0x000055d7446250fa in ?? ()
#6 0x00007f5177a1b88f in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#7 0x00007f5177a1d831 in ?? () from /usr/lib/libglib-2.0.so.0
#8 0x00007f5177a1e843 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#9 0x000055d7446af166 in ?? ()
#10 0x000055d7446af5e8 in ?? ()
#11 0x000055d744616941 in ?? ()
#12 0x00007f51776e7023 in __libc_start_main () from /usr/lib/libc.so.6
#13 0x000055d74461754e in ?? ()
(gdb) quit

Additional info:

  • package version(s)

pacman -Q --info bluez
Name : bluez
Version : 5.54-1
Description : Daemons for the bluetooth protocol stack
Architecture : x86_64
URL : http://www.bluez.org/
Licenses : GPL2
Groups : None
Provides : None
Depends On : libical dbus glib2 alsa-lib json-c
Optional Deps : None
Required By : bluez-qt gnome-bluetooth pulseaudio-bluetooth
Optional For : networkmanager
Conflicts With : obexd-client obexd-server
Replaces : None
Installed Size : 2.27 MiB
Packager : Andreas Radke [email protected]
Build Date : Mon 16 Mar 2020 12:41:49 PM CET
Install Date : Tue 14 Apr 2020 09:43:36 AM CEST
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature

  • config and/or log files etc.

defaults

NOTES: if you don't trust beforehand, the crash takes place as soon as you type "yes" when Authorization for service is required.

GATT Server Callbacks/Events

Hello!

Is possible to make callbacks/events for GATT server when:

  • client connected,
  • client disconnected?

Best Regards!
PK

bluez 5.55 unit/test-mesh-crypto fails

The test suite failed on alpine linux x86_64 (musl libc 1.2.1).

Linux ncopa-edge-x86_64 4.19.80-0-vanilla #1-Alpine SMP Fri Oct 18 11:27:53 UTC 2019 x86_64 GNU/Linux
...
FAIL: unit/test-mesh-crypto
============================================================================
Testsuite summary for bluez 5.55
============================================================================
# TOTAL: 26
# PASS:  25
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
============================================================================

Content of test-suite.log:

==================================
   bluez 5.55: ./test-suite.log
==================================

# TOTAL: 26
# PASS:  25
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: unit/test-mesh-crypto
===========================

�[0;94m[8.1.1 s1 SALT generation function]�[0m
Salt Input           = test
Salt Input           = 74657374
s1(Salt)             = b73cefbd641ef2ea598c2b6efb62f79c
                       00000000000000000000000000000000 => �[0;91mFAIL�[0m
FAIL unit/test-mesh-crypto (exit status: 1)

Incomplete A2DP endpoint capabilities cached due to incorrect session version

When first connecting a device, the A2DP session version with be 0x0100 (because the SDP aren't available yet IIUC).

This means that during the discover phase all the end points are going to be checked with GetCapabilities instead of GetAllCapabilities (if the device is AVDTP 1.3 compliant) and so some capabilities will be missing (like Delay reporting). And those incomplete caps will be cached and thus the device will not be queried again.

On subsequent connections the session->version will be 0x0103 but then it's too late, the endpoint capabilities will be taken from the cache and not re-queried with GetAllCapabilities.

SHANWAN PS3 GamePad - vibration issue when connected wirelessly

Kubuntu 20.04.1
Kernel 5.8.14
Bluez 5.53

I have 3rd party controllers for PS3 (SHANWAN PS3 GamePad), it works fine when it is connected by the USB cable, but I have an issue with the vibration when it is connected wirelessly, the vibration works at full speed for around 10 seconds instead of vibrating for a second or two.

When I connect the controller by the USB cable, I get these messages from dmesg:

[21397.801573] usb 3-2: new full-speed USB device number 5 using xhci_hcd
[21397.951098] usb 3-2: New USB device found, idVendor=054c, idProduct=0268, bcdDevice= 1.00
[21397.951103] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[21397.951106] usb 3-2: Product: PS3 GamePad
[21397.951108] usb 3-2: Manufacturer: SHANWAN
[21397.955927] input: SHANWAN PS3 GamePad Motion Sensors as /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/0003:054C:0268.0003/input/input29
[21398.013884] input: SHANWAN PS3 GamePad as /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/0003:054C:0268.0003/input/input28
[21398.014462] sony 0003:054C:0268.0003: input,hiddev0,hidraw1: USB HID v81.10 Joystick [SHANWAN PS3 GamePad] on usb-0000:00:14.0-2/input0
[21461.499738] usb 3-2: USB disconnect, device number 5

but when it is connected by Bluetooth, I get these messages from dmesg:

[21471.515216] sony 0005:054C:0268.0004: unknown main item tag 0x0
[21471.530748] input: Sony PLAYSTATION(R)3 Controller Motion Sensors as /devices/pci0000:00/0000:00:14.0/usb3/3-12/3-12:1.0/bluetooth/hci0/hci0:42/0005:054C:0268.0004/input/input31
[21471.531075] input: Sony PLAYSTATION(R)3 Controller as /devices/pci0000:00/0000:00:14.0/usb3/3-12/3-12:1.0/bluetooth/hci0/hci0:42/0005:054C:0268.0004/input/input30
[21471.531283] sony 0005:054C:0268.0004: input,hidraw1: BLUETOOTH HID v80.00 Joystick [Sony PLAYSTATION(R)3 Controller] on 1c:65:9d:82:b0:1c

I think if Bluez recognizes the controller as SHANWAN PS3 GamePad instead of Sony PLAYSTATION(R)3 Controller, the controller may behave correctly, but I do not know how to do that.

I searched the internet, and I found a similar issue with the same controller:
https://forum.batocera.org/d/4471-vibration-generic-ps3-controller

GATT server Handle values cause iOS apps to crash

Hi

I've had trouble with iOS when I fix handle values to my services and characteristics. I had to fix the Handle values in order to get Android's cache to play nicely with my GATT server.

The moment I set the Handle value to a fixed value, iOS won't connect. In fact, it actually causes any of the bluetooth apps I tried to crash. It works perfectly with Android, and it correctly uses the Handles I set without requiring a cache clear on Android's side.

I've used the example_gatt_server.py file and added fixed handles in get_properties for services and characteristics.

So in essence: am I somehow setting the Handle values improperly, or is there a compatibility issue with Handles and iOS?

Bluetoothctl - write call is returning not supported error

Hi, am able to do the write call with two bytes of data. However, it returns a not supported error when I send more than 2 hex bytes to data.

[C by GE:/service0010/char001a]# write 0x0c 0x90 0x9d 0x15 0x11 0x65 0xda 0xad 0x2d 0xa1 0x19 0x81 0x8b 0x72 0xd5 0xa4 0xae
Attempting to write /org/bluez/hci0/dev_A4_C1_38_E6_92_1C/service0010/char001a
Failed to write: org.bluez.Error.NotSupported
[C by GE:/service0010/char001a]# write 0x0c 0x90 
Attempting to write /org/bluez/hci0/dev_A4_C1_38_E6_92_1C/service0010/char001a
[C by GE:/service0010/char001a]#


smuralik@smuralik-NUC8i7BEH:~/Documents/0b7a162995d0b465ba9c84728e60ec01-b1c0984fe241bf94a0e652947354ed22e9d0de0e$ bluetoothctl -V
bluetoothctl: invalid option -- 'V'
bluetoothctl ver 5.54
Usage:
	bluetoothctl [--options] [commands]
Options:
	--agent 	Register agent handler: <capability>
	--monitor 	Enable monitor output
	--timeout 	Timeout in seconds for non-interactive mode
	--version 	Display version
	--help 		Display help

Do I miss something before the write call. I have checked twice, thrice and I am writing to the correct characteristics.
Kindly let me know, If I need to provide more data.

Thanks.
Santhoshkumar M

Pairing Failed (0x05)

When I try to read a BLE characteristic which require encryption via GattTool on a RPI 3B

gatttool -b 04:EE:03:B1:47:DF --char-read --handle=0x000e --sec-level=low

It end up with an error Characteristic value/descriptor read failed: Request attribute has encountered an unlikely error

I tried with/without --sec-level=low|medium|high

hcidump

2020-06-05 10:35:50.696249 < HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7
    type 0x00 (passive)
    interval 60.000ms window 30.000ms
    own address: 0x00 (Public) policy: white list only
2020-06-05 10:35:50.697091 > HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Parameters (0x08|0x000b) ncmd 1
    status 0x00
2020-06-05 10:35:50.697158 < HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2
    value 0x01 (scanning enabled)
    filter duplicates 0x01 (enabled)
2020-06-05 10:35:50.697910 > HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Enable (0x08|0x000c) ncmd 1
    status 0x00
2020-06-05 10:35:50.909070 > HCI Event: LE Meta Event (0x3e) plen 33
    LE Advertising Report
      ADV_IND - Connectable undirected advertising (0)
      bdaddr 04:EE:03:B1:47:DF (Public)
      Flags: 0x06
      Unknown type 0x06 with 16 bytes data
      RSSI: -34
2020-06-05 10:35:50.909151 < HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2
    value 0x00 (scanning disabled)
    filter duplicates 0x00 (disabled)
2020-06-05 10:35:50.911659 > HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Enable (0x08|0x000c) ncmd 1
    status 0x00
2020-06-05 10:35:50.911717 < HCI Command: LE Create Connection (0x08|0x000d) plen 25
    bdaddr 04:EE:03:B1:47:DF type 0
    interval 96 window 96 initiator_filter 0
    own_bdaddr_type 0 min_interval 24 max_interval 40
    latency 0 supervision_to 42 min_ce 0 max_ce 0
2020-06-05 10:35:50.912840 > HCI Event: Command Status (0x0f) plen 4
    LE Create Connection (0x08|0x000d) status 0x00 ncmd 1
2020-06-05 10:35:52.419884 > HCI Event: LE Meta Event (0x3e) plen 19
    LE Connection Complete
      status 0x00 handle 64, role master
      bdaddr 04:EE:03:B1:47:DF (Public)
2020-06-05 10:35:52.420183 < HCI Command: LE Read Remote Used Features (0x08|0x0016) plen 2
  40 00 
2020-06-05 10:35:52.421473 > HCI Event: Command Status (0x0f) plen 4
    LE Read Remote Used Features (0x08|0x0016) status 0x00 ncmd 1
2020-06-05 10:35:52.588728 > HCI Event: LE Meta Event (0x3e) plen 12
    LE Read Remote Used Features Complete
      status 0x00 handle 64
      Features: 0x1d 0x00 0x00 0x00 0x00 0x00 0x00 0x00
2020-06-05 10:35:52.596785 < ACL data: handle 64 flags 0x00 dlen 7
    ATT: Read req (0x0a)
      handle 0x000e
2020-06-05 10:35:52.686141 > ACL data: handle 64 flags 0x02 dlen 9
    ATT: Error (0x01)
      Error: Insufficient authentication (5)
      Read req (0x0a) on handle 0x000e
2020-06-05 10:35:52.884191 > HCI Event: Number of Completed Packets (0x13) plen 5
    handle 64 packets 1
2020-06-05 10:35:52.884221 < ACL data: handle 64 flags 0x00 dlen 11
    SMP: Pairing Request (0x01)
      capability 0x04 oob 0x00 auth req 0x2d
      max key size 0x10 init key dist 0x0d resp key dist 0x0f
      Capability: KeyboardDisplay (OOB data not present)
      Authentication: Bonding (MITM Protection)
      Initiator Key Distribution:  LTK  CSRK
      Responder Key Distribution:  LTK IRK CSRK
2020-06-05 10:35:52.978584 > ACL data: handle 64 flags 0x02 dlen 6
    SMP: Pairing Failed (0x05)
      reason 0x05
      Reason Pairing Not Supported
2020-06-05 10:35:52.978640 < HCI Command: Disconnect (0x01|0x0006) plen 3
    handle 64 reason 0x05
    Reason: Authentication Failure
2020-06-05 10:35:52.979073 > HCI Event: Command Status (0x0f) plen 4
    Disconnect (0x01|0x0006) status 0x00 ncmd 1
2020-06-05 10:35:53.027840 > HCI Event: Number of Completed Packets (0x13) plen 5
    handle 64 packets 1
2020-06-05 10:35:53.027952 > HCI Event: Disconn Complete (0x05) plen 4
    status 0x00 handle 64 reason 0x16
    Reason: Connection Terminated by Local Host

Anyone know how to fix this pairing issue ?

Unable to connect multiple BLE devices

I am using BlueZ on a Raspberry PI to provide some GATT services. It seems that only one BLE phone can connect to my GATT service. The second BLE phone can only connect, when the first one disconnects. Is this a BlueZ limitation?

When using Paypal Gatt library, I can make multiple simultaneous connections. I would rather use the BlueZ implementation, because I don't want to use Go.

Crackling or choppy sound when scanning for a device.

Hi.

I'm using KDE neon (like Kubuntu with a different way updates are served). I use bluetooth headphones. The sound coming through the headphones is crackling or choppy when scanning is on.

I play music in the background, then I do $ bluetoothctl then # scan on. The sound immediately chops or crackles.

I filed a bug report at bugs.kde.org (here: https://bugs.kde.org/show_bug.cgi?id=429830), however they directed me to here. Also they couldn't reproduce the issue on their end. It might be hardware specific or something.

Also note that I tried making a screen recording, but the issue didn't appear in the screen recording.

Am I in the right place? Is this where I should report the bug?

IOS phone are not able to write characteristics to bluez

Hi,

I still observe the same issue described in the mailing list bellow:
https://marc.info/?l=linux-bluetooth&m=152154683807490&w=2

When an IOS device is connected to the bluez GATT server, bluez systematically try to read the battery level characteristic. (since it's advertised by the Iphone)

The read request failed due to the lack of pairing. (used in a app with just std ble connection)

Then, all the write_request_with_response made by the Iphone, fails.

The only founded workaround is to disable the battery profile in bluez binary.
Is there something messy in the pending message list ? A failed read shouldn't avoid to send write response.

Thanks

Characteristic ReadValue / WriteValue never finish

Hi,

I'm running Linux 5.4.32 and Bluez 5.54 on my embedded platform and use from my
application the DBus interface to set up the local GATT database and work with
remote services.

In one scenario, I have an agent registered and call as peripheral the
ReadValue method of a central's encrypted characteristic before pairing has
been done. This results in my agent implementation receiving a
RequestConfirmation call for pairing. I complete that agent's method call with
an org.bluez.Error.Rejected error and unregister my agent. The initial
ReadValue method call, though, is never completed - my application neither
receives a DBus method return nor an error for that method call.

Instead, using btmon, I can see that internally, the read request is
continuously retried every ~1.2 seconds. Each time, there is an Insufficient
Authentication error, a Pairing Request, an immediate Authentication Failed,
and a Pairing Failed response.

I would have expected that after rejecting the first pairing request, the
ReadValue method call is completed with for example a
org.bluez.Error.NotAuthorized error, and not an uninterruptible loop.

These are the bluetoothd debug messages while in the loop:

bluetoothd[2370]: ../bluez-5.54/src/device.c:gatt_debug() Read By Type - start: 0x0001 end: 0x0005
bluetoothd[2370]: ../bluez-5.54/src/gatt-database.c:gap_device_name_read_cb() GAP Device Name read request
bluetoothd[2370]: ../bluez-5.54/src/adapter.c:bonding_attempt_complete() hci0 bdaddr 5A:2A:C3:75:E8:BB type 2 status 0x5
bluetoothd[2370]: ../bluez-5.54/src/device.c:device_bonding_complete() bonding (nil) status 0x05
bluetoothd[2370]: ../bluez-5.54/src/device.c:device_bonding_failed() status 5
bluetoothd[2370]: ../bluez-5.54/src/adapter.c:resume_discovery()
[pause, then repeat]

Here's an excerpt from the btmon log starting at the reject and showing the loop

@ MGMT Command: User Confirmation... (0x001d) plen 7  {0x0001} [hci0] 44.045329
        LE Address: 4E:FE:AC:7A:F8:93 (Resolvable)
< ACL Data TX: Handle 1025 flags 0x00 dlen 6              #322 [hci0] 44.045373
      SMP: Pairing Failed (0x05) len 1
        Reason: Numeric comparison failed (0x0c)
@ MGMT Event: Authentication Failed (0x0011) plen 8   {0x0002} [hci0] 44.045400
        LE Address: 4E:FE:AC:7A:F8:93 (Resolvable)
        Status: Authentication Failed (0x05)
@ MGMT Event: Authentication Failed (0x0011) plen 8   {0x0001} [hci0] 44.045400
        LE Address: 4E:FE:AC:7A:F8:93 (Resolvable)
        Status: Authentication Failed (0x05)
@ MGMT Event: Command Complete (0x0001) plen 10       {0x0001} [hci0] 44.045426
      User Confirmation Negative Reply (0x001d) plen 7
        Status: Success (0x00)
        LE Address: 4E:FE:AC:7A:F8:93 (Resolvable)
@ MGMT Command: Remove Advertising (0x003f) plen 1    {0x0001} [hci0] 44.052011
        Instance: 2
@ MGMT Event: Advertising Removed (0x0024) plen 1     {0x0002} [hci0] 44.052029
        Instance: 2
@ MGMT Event: Command Complete (0x0001) plen 4        {0x0001} [hci0] 44.052041
      Remove Advertising (0x003f) plen 1
        Status: Success (0x00)
        Instance: 2
> HCI Event: Number of Completed Packets (0x13) plen 5    #323 [hci0] 44.190618
        Num handles: 1
        Handle: 1025
        Count: 1
> ACL Data RX: Handle 1025 flags 0x02 dlen 11             #324 [hci0] 45.082137
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0001-0x0005
        Attribute type: Device Name (0x2a00)
< ACL Data TX: Handle 1025 flags 0x00 dlen 14             #325 [hci0] 45.084191
      ATT: Read By Type Response (0x09) len 9
        Attribute data length: 8
        Attribute data list: 1 entry
        Handle: 0x0003
        Value: 663930307378
< ACL Data TX: Handle 1025 flags 0x00 dlen 7              #326 [hci0] 45.086693
      ATT: Read Request (0x0a) len 2
        Handle: 0x003b
> ACL Data RX: Handle 1025 flags 0x02 dlen 9              #327 [hci0] 45.141328
      ATT: Error Response (0x01) len 4
        Read Request (0x0a)
        Handle: 0x003b
        Error: Insufficient Authentication (0x05)
> HCI Event: Number of Completed Packets (0x13) plen 5    #328 [hci0] 45.141350
        Num handles: 1
        Handle: 1025
        Count: 2
< ACL Data TX: Handle 1025 flags 0x00 dlen 6              #329 [hci0] 45.142787
      SMP: Security Request (0x0b) len 1
        Authentication requirement: Bonding, MITM, SC, No Keypresses, CT2 (0x2d)
> ACL Data RX: Handle 1025 flags 0x02 dlen 11             #330 [hci0] 45.201290
      SMP: Pairing Request (0x01) len 6
        IO capability: KeyboardDisplay (0x04)
        OOB data: Authentication data not present (0x00)
        Authentication requirement: Bonding, MITM, SC, No Keypresses, CT2 (0x2d)
        Max encryption key size: 16
        Initiator key distribution: EncKey IdKey LinkKey (0x0b)
        Responder key distribution: EncKey IdKey LinkKey (0x0b)
@ MGMT Event: Authentication Failed (0x0011) plen 8   {0x0002} [hci0] 45.201455
        LE Address: 4E:FE:AC:7A:F8:93 (Resolvable)
        Status: Authentication Failed (0x05)
@ MGMT Event: Authentication Failed (0x0011) plen 8   {0x0001} [hci0] 45.201455
        LE Address: 4E:FE:AC:7A:F8:93 (Resolvable)
        Status: Authentication Failed (0x05)
< ACL Data TX: Handle 1025 flags 0x00 dlen 6              #331 [hci0] 45.201551
      SMP: Pairing Failed (0x05) len 1
        Reason: Pairing not supported (0x05)
> HCI Event: Number of Completed Packets (0x13) plen 5    #332 [hci0] 45.261239
        Num handles: 1
        Handle: 1025
        Count: 2
 [pause, then goto 45.082137]

3rd party sixaxis fails to connect

Fedora 32, bluez 5.54, kernel 5.8.4.

I have both an official Sony PS3 DS3 sixaxis controller, and two identical 3rd party controllers.

I can connect the official Sony controller just fine, although it does take a while from pressing the PS button, until it manages to successfully pair. Watching bluetoothctl output shows that it simply takes a long time before the MAC address gets listed.

But the 3rd party controllers are problematic. They work just fine with the PS3 or when plugged in via USB. But over Bluetooth it is impossible to get them to connect. And even if you get them to connect after many tries, they almost immediately again disconnect.

The 3rd party controllers are branded as "Under Control" by "Proxima Plus".

 sudo lsusb -v -d 054c:0268
Bus 003 Device 044: ID 054c:0268 Sony Corp. Batoh Device / PlayStation 3 Controller
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x054c Sony Corp.
  idProduct          0x0268 Batoh Device / PlayStation 3 Controller
  bcdDevice            1.00
  iManufacturer           1 Sony
  iProduct                2 PLAYSTATION(R)3 Controller
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0029
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     148
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)

kernel messages on USB plug:

Sep 04 13:34:45 e93z kernel: usb 3-2.1: new full-speed USB device number 47 using xhci_hcd
Sep 04 13:34:45 e93z kernel: usb 3-2.1: New USB device found, idVendor=054c, idProduct=0268, bcdDevice= 1.00
Sep 04 13:34:45 e93z kernel: usb 3-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Sep 04 13:34:45 e93z kernel: usb 3-2.1: Product: PLAYSTATION(R)3 Controller
Sep 04 13:34:45 e93z kernel: usb 3-2.1: Manufacturer: Sony
Sep 04 13:34:45 e93z kernel: input: Sony PLAYSTATION(R)3 Controller Motion Sensors as /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1:1.0/0003:054C:0268.0030/input/input118
Sep 04 13:34:45 e93z kernel: input: Sony PLAYSTATION(R)3 Controller as /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1:1.0/0003:054C:0268.0030/input/input117
Sep 04 13:34:45 e93z kernel: sony 0003:054C:0268.0030: input,hiddev99,hidraw6: USB HID v81.11 Joystick [Sony PLAYSTATION(R)3 Controller] on usb-0000:00:14.0-2.1/input0
Sep 04 13:34:45 e93z mtp-probe[164880]: checking bus 3, device 47: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1"
Sep 04 13:34:45 e93z mtp-probe[164880]: bus: 3, device: 47 was not an MTP device
Sep 04 13:34:45 e93z systemd[1]: Starting IIO Sensor Proxy service...
Sep 04 13:34:45 e93z bluetoothd[157879]: sixaxis: compatible device connected: Sony PLAYSTATION(R)3 Controller (054C:0268 /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1:1.0/0003:054C:0268.0030/hidraw/hidraw6)
Sep 04 13:34:45 e93z bluetoothd[157879]: sixaxis: setting up new device
Sep 04 13:34:45 e93z bluetoothd[157879]: Authentication attempt without agent
Sep 04 13:34:45 e93z systemd-udevd[164884]: js0: Process '/usr/lib/snapd/snap-device-helper add snap_retroarch_retroarch /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1:1.0/0003:054C:0268.0030/input/input117/js0 13:0' failed with exit code 1.
Sep 04 13:34:45 e93z /usr/libexec/gdm-x-session[1737]: (II) config/udev: Adding input device Sony PLAYSTATION(R)3 Controller (/dev/input/js0)
Sep 04 13:34:45 e93z /usr/libexec/gdm-x-session[1737]: (II) No input driver specified, ignoring this device.
Sep 04 13:34:45 e93z /usr/libexec/gdm-x-session[1737]: (II) This device may have been added with another device file.
Sep 04 13:34:45 e93z systemd[1]: Started IIO Sensor Proxy service.
Sep 04 13:34:45 e93z audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=iio-sensor-proxy comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 04 13:34:45 e93z /usr/libexec/gdm-x-session[1737]: (II) config/udev: Adding input device Sony PLAYSTATION(R)3 Controller Motion Sensors (/dev/input/event16)
Sep 04 13:34:45 e93z /usr/libexec/gdm-x-session[1737]: (II) No input driver specified, ignoring this device.
Sep 04 13:34:45 e93z /usr/libexec/gdm-x-session[1737]: (II) This device may have been added with another device file.
Sep 04 13:34:45 e93z systemd-udevd[164886]: event17: Process '/usr/lib/snapd/snap-device-helper add snap_retroarch_retroarch /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1:1.0/0003:054C:0268.0030/input/input117/event17 13:81' failed with exit code 1.
Sep 04 13:34:45 e93z /usr/libexec/gdm-x-session[1737]: (II) config/udev: Adding input device Sony PLAYSTATION(R)3 Controller (/dev/input/event17)
Sep 04 13:34:45 e93z /usr/libexec/gdm-x-session[1737]: (II) No input driver specified, ignoring this device.
Sep 04 13:34:45 e93z /usr/libexec/gdm-x-session[1737]: (II) This device may have been added with another device file.
Sep 04 13:34:45 e93z mtp-probe[164902]: checking bus 3, device 47: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1"
Sep 04 13:34:45 e93z mtp-probe[164902]: bus: 3, device: 47 was not an MTP device
Sep 04 13:34:45 e93z upowerd[834]: treating change event as add on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1:1.0/0003:054C:0268.0030/power_supply/sony_controller_battery_33:22:23:00:05:42
Sep 04 13:34:45 e93z systemd[1]: iio-sensor-proxy.service: Succeeded.
Sep 04 13:34:45 e93z audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=iio-sensor-proxy comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 04 13:34:45 e93z gsd-power[2105]: Call to iio-proxy failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable

bluetoothctl output for 3rd party controller:

[Sony PLAYSTATION(R)3 Controller]# info 33:22:23:00:05:42 
Device 33:22:23:00:05:42 (public)
	Name: Sony PLAYSTATION(R)3 Controller
	Alias: Sony PLAYSTATION(R)3 Controller
	Class: 0x00001f00
	Paired: no
	Trusted: yes
	Blocked: no
	Connected: no
	LegacyPairing: no
	UUID: Human Interface Device... (00001124-0000-1000-8000-00805f9b34fb)
	Modalias: usb:v054Cp0268d0000

When I plug it in with the Gnome Bluetooth settings open, I get a pop-up telling me that the PS3 controller wants to connect to this device, and if I want to allow it. In fact, it asks this EVERY single time it gets plugged in, even if you allow it (perhaps it should remember it?).

[Q] How to refresh SDP services of a device, or remove a SDP service entry?

As I said in the previous posting:

So we have to make a Windows PC work as a HID device (working in Across Server mode which make SDP service available) to pair with a Linux PC.
.... All that I am mentioning is need only for a pairing process to succeed.

For pairing with a Windows PC, I made a Windows have a HID SDP service, but it is needed only in a pairing process, I want to refresh SDP service of the Win PC, or remove the HID SDP service entry after pairing done, but failed to find a relevant method to do that.

I think bluez must have a measure to do that if it doesn't have yet, since a BT device could publish/remove SDP service at its will. If bluez have an outdated SDP entry, bluez could go wrong easily.
Anyway, thanks for the nice BT stack! :)

DisplayOnly IO capability does not work with BR/EDR connections

When using the DisplayOnly IO capability on a
receiving device running Bluetooth 4.1 and an initiation device with
DisplayKeyboard IO capability (android phone), the pairing
provokes a Request Confirmation and requests a yes/no confirmation on
the receiving device. This is obviously a problem when the receiving
device is only able to display and not input and has been set as such.

I suspect that this could be caused by the conversion of an incoming device's capability from
DisplayKeyboard to DisplayYesNo on BR/EDR connections. However, I do not have a device capable of SMP to test this. As a short term fix, is there anyway to change this behavior to default to KeyboardOnly?

This was noticed on Raspbian 2020-02-13 release (Rapsbian 10, Kernel 4.19.97) running Bluez 5.54

Segfault in bluetoothd during service discovery of an emulated BLE keyboard.

Testing a GATT service for emulating a keyboard on one machine, bluetoothd on the host machine crashes. Linux kernel version is 5.9.1. BlueZ built from master (a9bf6a2).

Here's the traceback:

Program received signal SIGSEGV, Segmentation fault.
0x00005555555bbbe8 in external_service_char_cb (status=0 '\000', chars=0x555555757d50 = {...}, user_data=0x55555574b0a0) at profiles/input/hog-lib.c:570
570                     end = (next ? next->handle - 1 : primary->range.end);
(gdb) bt
#0  0x00005555555bbbe8 in external_service_char_cb (status=0 '\000', chars=0x555555757d50 = {...}, user_data=0x55555574b0a0) at profiles/input/hog-lib.c:570
#1  0x00005555555d7a3a in char_discovered_cb (status=10 '\n', ipdu=0x555555758be0 "\001\b;", iplen=5, user_data=0x555555760c90) at attrib/gatt.c:671
#2  0x00005555555d961c in attrib_callback_result (opcode=1 '\001', pdu=0x55555575ac81, length=4, user_data=0x555555757e00) at attrib/gattrib.c:260
#3  0x000055555565e3f7 in handle_rsp (chan=0x55555575a720, opcode=1 '\001', pdu=0x55555575ac81 "\b;", pdu_len=4) at src/shared/att.c:814
#4  0x000055555565e9d2 in can_read_data (io=0x555555761050, user_data=0x55555575a720) at src/shared/att.c:1011
#5  0x000055555566fbaa in watch_callback (channel=0x5555557539f0, cond=G_IO_IN, user_data=0x55555575ebe0) at src/shared/io-glib.c:157
#6  0x00007ffff7e1d914 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#7  0x00007ffff7e717d1 in ?? () from /usr/lib/libglib-2.0.so.0
#8  0x00007ffff7e1ce63 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#9  0x0000555555670101 in mainloop_run () at src/shared/mainloop-glib.c:66
#10 0x00005555556706e3 in mainloop_run_with_signal (func=0x5555555e223b <signal_callback>, user_data=0x0) at src/shared/mainloop-notify.c:188
#11 0x00005555555e2828 in main (argc=1, argv=0x7fffffffe4d8) at src/main.c:959
(gdb) p/x primary
$1 = 0x0
(gdb)

Debugging messages from console log attached: bt-host.log

The crash is easy enough to fix. But it suggests a different problem. This occurs at the end of service discovery. At this point primary should not be NULL.

Further instrumentation suggests that discover_primary has not been called because hog->attr is not NULL when bt_hog_attach is called. The attr so referenced has a uuid of 1812. See hoglib.c:1583:

	if (!hog->attr && !hog->primary) {
		discover_primary(hog, hog->attrib, NULL, primary_cb, hog);
		return true;
	}

Is this a race condition? Or is it an issue in the peripheral implementation?

I've attached the output of btmon-logger, hci.log, but it seems corrupt. Let me know if there's a better way to document this failure.

Thanks,
Hugh

Not all characteristics are listed for the service

Hi :)

Environment

Device: Raspberry Pi 4 and 3
OS: Raspbian GNU/Linux 10 (buster) tried ubuntu as well
Hardware: Makeblock Ultimate 2.0
Bluez version: 5.54

Issue

  1. Connect to the device Makeblock Ultimate 2.0
  2. List all services
  3. Pick the service in question
  4. List characteristics

Expected:
2 characteristics should be present. I found it by looking at Makeblock's source code for Android and iOS app.
Additionally, when using nRF Connect it correctly lists 2 characteristics under the service in question.
image

Actual:
1 characteristic is present
image

Initial debugging

When using btgatt-client tool I get this error:

pi@raspberrypi:~/bluez-5.54/tools $ ./btgatt-client -v -d 00:0D:19:12:75:22
btgatt-client: Opening L2CAP LE connection on ATT channel:
         src: 00:00:00:00:00:00
        dest: 00:0D:19:12:75:22
Connecting to device... Done
...
[GATT client]# att: (chan 0xc82570) ATT response received: 0x09
[GATT client]# att: (chan 0xc82570) ATT op 0x08
[GATT client]# att: < 08 15 00 ff ff 03 28                             ......(         
[GATT client]# att: (chan 0xc82570) ATT received: 5
[GATT client]# att: > 01 08 15 00 0a                                   .....           
[GATT client]# att: (chan 0xc82570) ATT response received: 0x01
[GATT client]# gatt: Characteristics found: 7
[GATT client]# gatt: start: 0x0002, end: 0x0003, value: 0x0003, props: 0x0a, uuid: 00002a00-0000-1
[GATT client]# gatt: start: 0x0004, end: 0x0005, value: 0x0005, props: 0x02, uuid: 00002a01-0000-1
[GATT client]# gatt: start: 0x0006, end: 0x0008, value: 0x0007, props: 0x02, uuid: 00002a04-0000-1
[GATT client]# gatt: start: 0x0009, end: 0x000c, value: 0x000a, props: 0x20, uuid: 00002a05-0000-1
[GATT client]# gatt: start: 0x000d, end: 0x000f, value: 0x000e, props: 0x10, uuid: 0000ffe2-0000-1
[GATT client]# gatt: start: 0x0010, end: 0x0013, value: 0x0011, props: 0x04, uuid: 0000ffe3-0000-1
[GATT client]# gatt: start: 0x0014, end: 0xffff, value: 0x0015, props: 0x06, uuid: 0000ffe5-0000-1
[GATT client]# Service Added - UUID: 00001800-0000-1000-8000-00805f9b34fb start: 0x0001 end: 0x0007
[GATT client]# Service Added - UUID: 00001801-0000-1000-8000-00805f9b34fb start: 0x0008 end: 0x000b
[GATT client]# Service Added - UUID: 0000ffe1-0000-1000-8000-00805f9b34fb start: 0x000c end: 0x0010
[GATT client]# gatt: Failed to insert characteristic at 0x0011
[GATT client]# gatt: service disappeared: start 0x0013 end 0xffff
[GATT client]# gatt: Failed to initialize gatt-client
[GATT client]# GATT discovery procedures failed - error code: 0x0a

According to the BT Core spec 0x0a is Attribute Not Found - No attribute found within the given attribute handle range

Using the gatttool I can see that there are 4 services:

[00:0D:19:12:75:22][LE]> primary
attr handle: 0x0001, end grp handle: 0x0007 uuid: 00001800-0000-1000-8000-00805f9b34fb
attr handle: 0x0008, end grp handle: 0x000b uuid: 00001801-0000-1000-8000-00805f9b34fb
attr handle: 0x000c, end grp handle: 0x0010 uuid: 0000ffe1-0000-1000-8000-00805f9b34fb
attr handle: 0x0013, end grp handle: 0xffff uuid: 0000ffe4-0000-1000-8000-00805f9b34fb

Service that I need is 0000ffe1-0000-1000-8000-00805f9b34fb and it's group handle ends at 0x0010.
Listing characteristics lists the following:

handle: 0x0002, char properties: 0x0a, char value handle: 0x0003, uuid: 00002a00-0000-1000-8000-00805f9b34fb
handle: 0x0004, char properties: 0x02, char value handle: 0x0005, uuid: 00002a01-0000-1000-8000-00805f9b34fb
handle: 0x0006, char properties: 0x02, char value handle: 0x0007, uuid: 00002a04-0000-1000-8000-00805f9b34fb
handle: 0x0009, char properties: 0x20, char value handle: 0x000a, uuid: 00002a05-0000-1000-8000-00805f9b34fb
handle: 0x000d, char properties: 0x10, char value handle: 0x000e, uuid: 0000ffe2-0000-1000-8000-00805f9b34fb
handle: 0x0010, char properties: 0x04, char value handle: 0x0011, uuid: 0000ffe3-0000-1000-8000-00805f9b34fb
handle: 0x0014, char properties: 0x06, char value handle: 0x0015, uuid: 0000ffe5-0000-1000-8000-00805f9b34fb

Notice that missing characteristic is 0000ffe3-0000-1000-8000-00805f9b34fb and it is right on the edge of the service's group handle address. Maybe that is the reason for 0x0a aka Attribute Not Found.

One other thing to mention, if I use gatttool to write to the 0x11 (0000ffe3-0000-1000-8000-00805f9b34fb) characteristics, it works and returns a result:

[00:0D:19:12:75:22][LE]> char-write-cmd 0x11 ff5504010101070a
Notification handle = 0x000e value: ff 55 01 02 ee 69 a4 41 0d 0a 

Let me know what other diagnostics I can run to generate more information.

MIDI input parsing fails if timestamp_high bits are zero

Problem

Consider this packet made of 2 MIDI messages:
{0x80, 0x80, 0xe00, 0x00, 0x80, 0x90, 0x3c, 0x40}

Expected

pitch_bend: ch. 1, val: 0
note_on: ch: 1, note: 60, vel: 64

Result

pitch_bend: ch. 1, val: 8252
pitch_bend: ch. 1, bend: 60

The second message is incorrectly interpreted as a running status of the first message. This error will happen whenever a packet starts with 0x80 and has >1 MIDI message.

Root cause

The logic uses 0 to check for an uninitialized timestamp_high for the packet. But after masking with 0x3F, timestamp_high can still be zero. Later iterations will incorrectly assign timestamp_high again.

size_t midi_read_raw(struct midi_read_parser *parser, const uint8_t *data,
size_t size, snd_seq_event_t *ev /* OUT */)
{
size_t midi_size = 0;
size_t i = 0;
bool err = false;
if (parser->timestamp_high == 0)
parser->timestamp_high = data[i++] & 0x3F;

Proposed solution

In the read reset function, use a value other than 0 (like -1) to mark an unassigned timestamp_high and update the check.

static inline void midi_read_reset(struct midi_read_parser *parser)
{
parser->rstatus = 0;
parser->timestamp_low = 0;
parser->timestamp_high = 0;
}

This wasn't detected by unit tests because test packet timestamp values were all non-zero.

Thanks for you attention in advance.

RFE: synthesize hid device for fido2 tokens

Hmm, so bluez already does some hid stuff. It would make a ton of sense I think if it would also synthesize hid devices for fido2 tokens. Maybe that's something that is interesting to the bluez project?

Eventually Android apparently will expose a fido2 bluetooth token, and it would be awesome to hook that up to any bluez running system.

There's prior code for this:

https://github.com/freeu2f/u2fhid2bt

And I think it would be excellent if bluez would just support this out of the box?

/cc @npmccallum

Gatt Characteristics write crash issue

Using https://github.com/bluez/bluez/blob/master/tools/gatt-service.c in tools I've implemented a simple gatt server . Using chr_write(chr, value, len); method i can write to a characteristics successfully. But writing more frequently i found some crashes.. I'm attaching several gdb trace log of the crash.

Log 1

Thread 3 "acbluetooth" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb5eff3e0 (LWP 710)]
0xb6ec1980 in g_slist_last () from /usr/lib/arm-linux-gnueabihf/libglib-2.0.so.0
(gdb) where
#0 0xb6ec1980 in g_slist_last () from /usr/lib/arm-linux-gnueabihf/libglib-2.0.so.0
#1 0xb6ec19c8 in g_slist_append () from /usr/lib/arm-linux-gnueabihf/libglib-2.0.so.0
#2 0x0003fff0 in add_pending ()
#3 0x00042440 in g_dbus_emit_property_changed_full ()
#4 0x000424b4 in g_dbus_emit_property_changed ()
#5 0x00044d0c in chr_write ()
#6 0x000460b0 in write_to_client ()
#7 0x0001db04 in AcBluetooth::writeToClient (uuid=0x46960 "8E400002-B5A3-F393-E0A9-E50E24DCCA9E",
data=0xbefff72a 'a' <repeats 100 times>, "\001d", 'b' <repeats 98 times>..., datalen=100)
at /workspaces/Workspace/work/anytemp/ac-bluetooths/ac-ble/ac-bluetooth/src/AcBluetooth.cpp:118
#8 0x0001eb38 in <lambda()>::operator()(void) const (__closure=0x753fc)
at /workspaces/Workspace/work/anytemp/ac-bluetooths/ac-ble/ac-bluetooth/src/AcBluetooth.cpp:494
#9 0x00020a68 in std::_Bind_simple<runAcBluetoothWithSocket()::<lambda()>()>::_M_invoke<>(std::_Index_tuple<>) (this=0x753fc)
at /opt/RPi/arm-linux-gnueabihf/include/c++/6.3.0/functional:1391
#10 0x0002098c in std::_Bind_simple<runAcBluetoothWithSocket()::<lambda()>()>::operator()(void) (this=0x753fc)
at /opt/RPi/arm-linux-gnueabihf/include/c++/6.3.0/functional:1380
#11 0x0002090c in std::thread::_State_impl<std::_Bind_simple<runAcBluetoothWithSocket()::<lambda()>()> >::_M_run(void) (this=0x753f8)
at /opt/RPi/arm-linux-gnueabihf/include/c++/6.3.0/thread:196
#12 0xb6d2f9b0 in ?? () from /usr/lib/arm-linux-gnueabihf/libstdc++.so.6
#13 0xb6e30494 in start_thread (arg=0xb5eff3e0) at pthread_create.c:486
#14 0xb6b6c578 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Bari 2

Log 2

Thread 3 "acbluetooth" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb5eff3e0 (LWP 742)]
0xb6ec0438 in g_slice_alloc () from /usr/lib/arm-linux-gnueabihf/libglib-2.0.so.0
(gdb) where
#0 0xb6ec0438 in g_slice_alloc () from /usr/lib/arm-linux-gnueabihf/libglib-2.0.so.0
#1 0xb6ec19a8 in g_slist_append () from /usr/lib/arm-linux-gnueabihf/libglib-2.0.so.0
#2 0x0003fff0 in add_pending ()
#3 0x00042440 in g_dbus_emit_property_changed_full ()
#4 0x000424b4 in g_dbus_emit_property_changed ()
#5 0x00044d0c in chr_write ()
#6 0x000460b0 in write_to_client ()
#7 0x0001db04 in AcBluetooth::writeToClient (uuid=0x46960 "8E400002-B5A3-F393-E0A9-E50E24DCCA9E",
data=0xbefff72a 'a' <repeats 100 times>, "\001d", 'b' <repeats 98 times>..., datalen=100)
at /workspaces/Workspace/work/anytemp/ac-bluetooths/ac-ble/ac-bluetooth/src/AcBluetooth.cpp:118
#8 0x0001eb38 in <lambda()>::operator()(void) const (__closure=0x753fc)
at /workspaces/Workspace/work/anytemp/ac-bluetooths/ac-ble/ac-bluetooth/src/AcBluetooth.cpp:494
#9 0x00020a68 in std::_Bind_simple<runAcBluetoothWithSocket()::<lambda()>()>::_M_invoke<>(std::_Index_tuple<>)
(this=0x753fc) at /opt/RPi/arm-linux-gnueabihf/include/c++/6.3.0/functional:1391
#10 0x0002098c in std::_Bind_simple<runAcBluetoothWithSocket()::<lambda()>()>::operator()(void) (this=0x753fc)
at /opt/RPi/arm-linux-gnueabihf/include/c++/6.3.0/functional:1380
#11 0x0002090c in std::thread::_State_impl<std::_Bind_simple<runAcBluetoothWithSocket()::<lambda()>()> >::_M_run(void) (this=0x753f8) at /opt/RPi/arm-linux-gnueabihf/include/c++/6.3.0/thread:196
#12 0xb6d2f9b0 in ?? () from /usr/lib/arm-linux-gnueabihf/libstdc++.so.6
#13 0xb6e30494 in start_thread (arg=0xb5eff3e0) at pthread_create.c:486
#14 0xb6b6c578 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Log 3

Thread 3 "acbluetooth" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb5eff3e0 (LWP 770)]
0xb6ec1980 in g_slist_last () from /usr/lib/arm-linux-gnueabihf/libglib-2.0.so.0
(gdb) where
#0 0xb6ec1980 in g_slist_last () from /usr/lib/arm-linux-gnueabihf/libglib-2.0.so.0
#1 0xb6ec19c8 in g_slist_append () from /usr/lib/arm-linux-gnueabihf/libglib-2.0.so.0
#2 0x000401e0 in add_pending ()
#3 0x00042630 in g_dbus_emit_property_changed_full ()
#4 0x000426a4 in g_dbus_emit_property_changed ()
#5 0x00044efc in chr_write ()
#6 0x000462a0 in write_to_client ()
#7 0x0001dc54 in AcBluetooth::writeToClient (uuid=0x46b7c "8E400002-B5A3-F393-E0A9-E50E24DCCA9E",
data=0xbefff72a 'a' <repeats 100 times>, "\001d", 'b' <repeats 98 times>..., datalen=100)
at /workspaces/Workspace/work/anytemp/ac-bluetooths/ac-ble/ac-bluetooth/src/AcBluetooth.cpp:120
#8 0x0001ed28 in <lambda()>::operator()(void) const (__closure=0x753fc)
at /workspaces/Workspace/work/anytemp/ac-bluetooths/ac-ble/ac-bluetooth/src/AcBluetooth.cpp:502
#9 0x00020c58 in std::_Bind_simple<runAcBluetoothWithSocket()::<lambda()>()>::_M_invoke<>(std::_Index_tuple<>) (this=0x753fc)
at /opt/RPi/arm-linux-gnueabihf/include/c++/6.3.0/functional:1391
#10 0x00020b7c in std::_Bind_simple<runAcBluetoothWithSocket()::<lambda()>()>::operator()(void) (this=0x753fc)
at /opt/RPi/arm-linux-gnueabihf/include/c++/6.3.0/functional:1380
#11 0x00020afc in std::thread::_State_impl<std::_Bind_simple<runAcBluetoothWithSocket()::<lambda()>()> >::_M_run(void) (this=0x753f8)
at /opt/RPi/arm-linux-gnueabihf/include/c++/6.3.0/thread:196
#12 0xb6d2f9b0 in ?? () from /usr/lib/arm-linux-gnueabihf/libstdc++.so.6
#13 0xb6e30494 in start_thread (arg=0xb5eff3e0) at pthread_create.c:486
#14 0xb6b6c578 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Also i'm finding this log from Glib time to time
**GLib-CRITICAL : Source ID XXX was not found when attempting to remove it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.