MIDI over Bluetooth in Linux?

Talk about your MIDI interfaces, microphones, keyboards...

Moderators: MattKingUSA, khz

pax-eterna
Established Member
Posts: 106
Joined: Sat Apr 24, 2021 11:30 pm
Has thanked: 9 times
Been thanked: 6 times

Re: MIDI over Bluetooth in Linux?

Post by pax-eterna »

folderol wrote: Thu Sep 09, 2021 10:34 am To paraphrase...
One is not so much surprised that it can be done,
but that anyone would want to do it! :shock:
hahaha! Too true :)
User avatar
Linuxmusician01
Established Member
Posts: 1523
Joined: Mon Feb 23, 2015 2:38 pm
Location: Holland
Has thanked: 756 times
Been thanked: 134 times

Re: MIDI over Bluetooth in Linux?

Post by Linuxmusician01 »

pax-eterna wrote: Fri Sep 10, 2021 3:49 am It's Elementary OS 6, which I believe is run on ubuntu. I have found I can install bluez from synaptic, all good there. BUT apparently the Bluetooth MIDI it enables is actually turned off by defaut??? So one needs to activate it. I've followed some instructions I found online, but none seem to work. My bluetooth midi device (Widi-Master) is both seen and paired to the system. The issue is the MIDI is turned off.....that's where I'm at.

PS: thanks for the explanation....I sorta kinda, logically thinking, thought it would be something like that, but it was a good explanation, easy to understand :)
The version of bluez that we Linuxers can install doesn't even have the Midi-over-bluetooth part built in, unfortunately. I dunno why not. We can not "activate" it because it's not there.

We'll have to uninstall the version that came with our distribution, download the source code, compile the source code (with the option to build Midi in) and install it. This is not for the faint of heart and I advise against it. For instance: you've tried it by following a guide from internet and unfortunately it didn't work...

If you do want to give it another try then I'm afraid that will require you to study Linux more. I have the impression that you might be confusing some things considering compiling from source code and installing (pre-compiled) packages from Synaptic (= a package manager). This is no problem for us regular users of Windows, Linux or MacOS. But when you want to go deeper and compile your own stuff than it requires some study.
pax-eterna
Established Member
Posts: 106
Joined: Sat Apr 24, 2021 11:30 pm
Has thanked: 9 times
Been thanked: 6 times

Re: MIDI over Bluetooth in Linux?

Post by pax-eterna »

okay, thanks - I'll need to research it a bit more then. I'd hate to HAVE to go back to windows just for the sake of this, but I do need it!
Musicmaker
Established Member
Posts: 47
Joined: Sun Oct 19, 2014 2:34 pm
Been thanked: 5 times

Re: MIDI over Bluetooth in Linux?

Post by Musicmaker »

Ubuntu 21.04 out of the box. USB BT Dongle. No issues
Attachments
Screenshot from 2021-10-14 21-21-09.png
Screenshot from 2021-10-14 21-21-09.png (41.48 KiB) Viewed 8999 times
Screenshot from 2021-10-14 21-19-30.png
Screenshot from 2021-10-14 21-19-30.png (18.25 KiB) Viewed 8999 times
User avatar
Linuxmusician01
Established Member
Posts: 1523
Joined: Mon Feb 23, 2015 2:38 pm
Location: Holland
Has thanked: 756 times
Been thanked: 134 times

Re: MIDI over Bluetooth in Linux?

Post by Linuxmusician01 »

Musicmaker wrote: Thu Oct 14, 2021 1:20 pm Ubuntu 21.04 out of the box. USB BT Dongle. No issues
Finally bluetooth w/ Midi built in per default! Could you post the output of the following command for me?:

Code: Select all

ldd /usr/sbin/bluetoothd

It should show a dependency on libasound2. If bluetoothd is not in /usr/bin/ on your computer then you can determine where it is with:

Code: Select all

which bluetoothd
Musicmaker
Established Member
Posts: 47
Joined: Sun Oct 19, 2014 2:34 pm
Been thanked: 5 times

Re: MIDI over Bluetooth in Linux?

Post by Musicmaker »

I recall this worked since several Ubuntu releases before . Now on 21.10 and this is the output:

linux-vdso.so.1 (0x00007fff8556d000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f2e6bbe1000)
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f2e6bb93000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2e6b96b000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f2e6b8f5000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2e6b811000)
libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f2e6b759000)
/lib64/ld-linux-x86-64.so.2 (0x00007f2e6be6a000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2e6b752000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f2e6b727000)
libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f2e6b65a000)
liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f2e6b63a000)
libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f2e6b62f000)
libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f2e6b50c000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f2e6b4e2000)

/usr/sbin/bluetoothd
User avatar
Linuxmusician01
Established Member
Posts: 1523
Joined: Mon Feb 23, 2015 2:38 pm
Location: Holland
Has thanked: 756 times
Been thanked: 134 times

Re: MIDI over Bluetooth in Linux?

Post by Linuxmusician01 »

Musicmaker wrote: Sun Oct 17, 2021 1:54 pm I recall this worked since several Ubuntu releases before . Now on 21.10 and this is the output:

linux-vdso.so.1 (0x00007fff8556d000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f2e6bbe1000)
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f2e6bb93000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2e6b96b000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f2e6b8f5000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2e6b811000)
libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f2e6b759000)
/lib64/ld-linux-x86-64.so.2 (0x00007f2e6be6a000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2e6b752000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f2e6b727000)
libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f2e6b65a000)
liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f2e6b63a000)
libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f2e6b62f000)
libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f2e6b50c000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f2e6b4e2000)

/usr/sbin/bluetoothd
That's funny. @Drumfix said on Mon Sep 06, 2021 17:37 in this topic that it should show a dependency on libasound2 if Midi support is built into bluetoothd...
Post Reply