MIDI device connects over Bluetooth then disconnects

Bug #2020467 reported by Marcel Brouillet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snappy-hwe-snaps
New
Undecided
Unassigned

Bug Description

Hello,

I have recompiled Bluez from source following https://tttapa.github.io/Pages/Ubuntu/Software-Installation/BlueZ.html to enable MIDI support. I used the same version as the original Ubuntu Studio 20.04 pré-installed version : 5.64 (https://mirrors.edge.kernel.org/pub/linux/bluetooth/bluez-5.64.tar.gz).

I have a Korg nanoKONTROL Studio MIDI controller which connects either USB (works fine) or Bluetooth.

Before recompiling, bluetooth would connect the controller in a stable manner but no MIDI signal would be available, which is why I recompiled.

After recompiling with MIDI enabled, it connects and then disconnects after a few seconds. I must be a step further, but what's next ?

Below information as requested on https://discourse.ubuntu.com/t/bluez-report-a-bug/19994

>>>>>>>>>>>>>>>

marcel@ux582lr:~$ uname -a
Linux ux582lr 5.15.0-72-lowlatency #79-Ubuntu SMP PREEMPT Thu Apr 20 12:16:31 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

marcel@ux582lr:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy

marcel@ux582lr:~$ sudo hciconfig -a
hci0: Type: Primary Bus: USB
 BD Address: 64:BC:58:F6:52:15 ACL MTU: 1021:4 SCO MTU: 96:6
 UP RUNNING PSCAN
 RX bytes:734098 acl:139 sco:0 events:102905 errors:0
 TX bytes:62006976 acl:94081 sco:0 commands:8751 errors:0
 Features: 0xbf 0xfe 0x0f 0xfe 0xdb 0xff 0x7b 0x87
 Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
 Link policy: RSWITCH SNIFF
 Link mode: PERIPHERAL ACCEPT
 Name: 'ux582lr'
 Class: 0x7c010c
 Service Classes: Rendering, Capturing, Object Transfer, Audio, Telephony
 Device Class: Computer, Laptop
 HCI Version: 5.2 (0xb) Revision: 0x237e
 LMP Version: 5.2 (0xb) Subversion: 0x237e
 Manufacturer: Intel Corp. (2)

marcel@ux582lr:~$ bluetoothctl
Agent registered
[JBL Xtreme camouflage]# show
Controller 64:BC:58:F6:52:15 (public)
 Name: ux582lr
 Alias: ux582lr
 Class: 0x007c010c
 Powered: yes
 Discoverable: no
 DiscoverableTimeout: 0x000000b4
 Pairable: yes
 UUID: Message Notification Se.. (00001133-0000-1000-8000-00805f9b34fb)
 UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
 UUID: OBEX Object Push (00001105-0000-1000-8000-00805f9b34fb)
 UUID: Message Access Server (00001132-0000-1000-8000-00805f9b34fb)
 UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
 UUID: IrMC Sync (00001104-0000-1000-8000-00805f9b34fb)
 UUID: Headset (00001108-0000-1000-8000-00805f9b34fb)
 UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
 UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
 UUID: Phonebook Access Server (0000112f-0000-1000-8000-00805f9b34fb)
 UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
 UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb)
 UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
 UUID: Handsfree Audio Gateway (0000111f-0000-1000-8000-00805f9b34fb)
 UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
 UUID: OBEX File Transfer (00001106-0000-1000-8000-00805f9b34fb)
 Modalias: usb:v1D6Bp0246d0540
 Discovering: no
 Roles: central
 Roles: peripheral
Advertising Features:
 ActiveInstances: 0x00 (0)
 SupportedInstances: 0x08 (8)
 SupportedIncludes: tx-power
 SupportedIncludes: appearance
 SupportedIncludes: local-name
 SupportedSecondaryChannels: 1M
 SupportedSecondaryChannels: 2M
 SupportedSecondaryChannels: Coded

>>>> By default: >>>>
[JBL Xtreme camouflage]# devices
Device F8:DF:15:D2:19:B6 JBL Xtreme noire
Device FE:40:1F:32:02:0C M585/M590
Device 00:42:79:DA:F3:3D JBL Xtreme camouflage

>>>> When I hit Search in the Bluetooth GUI at T=0 >>>>
[CHG] Controller 64:BC:58:F6:52:15 Discovering: yes
[NEW] Device 00:9D:6B:7E:37:93 nanoKONTROL Studio

[JBL Xtreme camouflage]# devices
Device F8:DF:15:D2:19:B6 JBL Xtreme noire
Device FE:40:1F:32:02:0C M585/M590
Device 00:42:79:DA:F3:3D JBL Xtreme camouflage
Device 00:9D:6B:7E:37:93 nanoKONTROL Studio

[JBL Xtreme camouflage]# info 00:9D:6B:7E:37:93
Device 00:9D:6B:7E:37:93 (public)
 Name: nanoKONTROL Studio
 Alias: nanoKONTROL Studio
 Paired: no
 Trusted: no
 Blocked: no
 Connected: no
 LegacyPairing: no
 UUID: Vendor specific (03b80e5a-ede8-4b33-a751-6ce34ec4c700)
 RSSI: -65

>>>> 10 seconds after T >>>>
[CHG] Device 00:9D:6B:7E:37:93 RSSI is nil
[CHG] Controller 64:BC:58:F6:52:15 Discovering: no

>>>> 30 seconds after T >>>>
[DEL] Device 00:9D:6B:7E:37:93 nanoKONTROL Studio
[JBL Xtreme camouflage]#

marcel@ux582lr:~$ sudo apt install wireless-tools
wireless-tools is already the newest version (30~pre9-13.1ubuntu4).
wireless-tools set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.

>>>> ...yet... >>>>
marcel@ux582lr:~$ sudo wireless-tools.rfkill list
sudo: wireless-tools.rfkill: command not found

>>>> Attached : >>>>>
hcitrace.snoop as requested on https://discourse.ubuntu.com/t/bluez-report-a-bug/19994
system-log.bz2 could not be uploaded here, but is available 30 days under this link https://edagora.fromsmash.com/1.-iA2.a1y-ct

Thank you for any help.
Marcel.

Tags: bluez midi
Revision history for this message
Marcel Brouillet (mbrouillet) wrote :
Revision history for this message
Marcel Brouillet (mbrouillet) wrote :

marcel@ux582lr:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy

description: updated
Revision history for this message
Marcel Brouillet (mbrouillet) wrote :
Revision history for this message
Marcel Brouillet (mbrouillet) wrote :

Problem SOLVED by upgrading the equipment's firmware from version 1.4 to version 1.5.
Korq NanoKontrol Studio firmware here : https://www.korg.com/us/support/download/software/0/552/2978/.
Seems to work fine. I'll report further issues or bugs in a separate report, if any

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.