Skip to content

Instantly share code, notes, and snippets.

@elehcim
Created May 20, 2019 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elehcim/e088a8868d82e3b36163aad19a641343 to your computer and use it in GitHub Desktop.
Save elehcim/e088a8868d82e3b36163aad19a641343 to your computer and use it in GitHub Desktop.
Enable midi on bluethooth on Ubuntu 18.04 Bionic
sudo service bluetooth stop
sudo apt install build-essential debhelper fakeroot wget dh-autoreconf flex bison libdbus-glib-1-dev libglib2.0-dev libcap-ng-dev udev libudev-dev libreadline-dev libical-dev check dh-systemd libebook1.2-dev libasound2-dev
cd /tmp/
mkdir blumidi
cd blumidi/
wget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/bluez/5.48-0ubuntu3.1/bluez_5.48.orig.tar.xz
wget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/bluez/5.48-0ubuntu3.1/bluez_5.48-0ubuntu3.1.debian.tar.xz
tar xJf bluez_5.48.orig.tar.xz
cd bluez-5.48/
tar xJf ../bluez_5.48-0ubuntu3.1.debian.tar.xz
sed -i 's/\(--enable-usb\)/\1 --enable-midi/' debian/rules
dpkg-buildpackage -rfakeroot -b
# I didn't care about the error on the impossibility to sign the packages
cd ..
sudo dpkg -i bluez*.deb libbluetooth*.deb
sudo service bluetooth restart
# To check the new MIDI device
aplay -l
aconnect -i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment