Skip to content

Installation ​

blocksd uses ALSA MIDI on Linux, CoreMIDI on macOS, and WinMM on Windows, with Python 3.13 or newer. Background startup uses a systemd user service on Linux and a per-user LaunchAgent on macOS. Windows runs in the foreground.

Windows ​

Install Microsoft C++ Build Tools with the Desktop development with C++ workload and a Windows SDK. The locked python-rtmidi version builds from source on Python 3.13 and 3.14. Use a Developer PowerShell terminal so its compiler is available.

From a source checkout, install the runtime and build the dashboard:

powershell
uv sync --locked
pnpm --dir web install --frozen-lockfile
pnpm --dir web build
uv run --locked blocksd run --foreground

Leave that terminal running. In a second terminal in the same checkout:

powershell
uv run --locked blocksd status --probe
uv run --locked blocksd ui

Press Ctrl+C in the first terminal to stop. Windows commands use the dashboard's local WebSocket endpoint at 127.0.0.1:9010; they do not open another MIDI connection. The Unix socket API is disabled by default on Windows. The --socket option and api_socket setting are not supported there. Keep web_enabled = true for device commands.

Configuration and presets live in %APPDATA%\blocksd. To change the web port, set web_port in %APPDATA%\blocksd\config.toml so both the daemon and commands use the same endpoint. An existing configuration copied from Linux or macOS must set api_enabled = false and remove api_socket.

Discovery recognizes LUMI and ROLI Piano M names and pairs WinMM's independently numbered input/output ports. Close ROLI Dashboard and other applications that own those MIDI ports before starting blocksd. Background service installation is not implemented on Windows; blocksd install remains a Linux/macOS command.

Windows startup, transport, and discovery have automated checks. Physical Piano M renderer execution, unplug/replug, and DAW coexistence still need device testing. An acknowledged program upload does not establish that the renderer is running or that its LEDs changed.

macOS ​

macOS requires v0.6.0 or newer. Follow From Source, or build only the runtime and dashboard:

bash
git clone https://github.com/hyperb1iss/blocksd.git
cd blocksd
uv sync --locked
pnpm --dir web install --frozen-lockfile
pnpm --dir web build
uv run --locked blocksd status
uv run --locked blocksd run -v

Stop the foreground process before installing the background service:

bash
uv run --locked blocksd install
launchctl print "gui/$(id -u)/tech.hyperbliss.blocksd"
tail -n 30 "$HOME/Library/Logs/blocksd/stderr.log"

Installation requires a GUI login session and creates ~/Library/LaunchAgents/tech.hyperbliss.blocksd.plist. The agent starts on login, restarts after a failed exit, and writes logs under ~/Library/Logs/blocksd/. Re-running installation unloads the previous registration and starts the current executable. The service uses an absolute executable path, so keep the checkout and virtual environment in place.

Use blocksd install --no-enable to write the plist without changing the running service. The --no-service option skips service setup entirely. macOS ignores --no-udev; no device permission rules or sudo are needed. Use the uv run --locked prefix for commands in a source checkout.

Inspect devices and open the dashboard while the service is running:

bash
uv run --locked blocksd status --probe
uv run --locked blocksd ui

Open http://localhost:9010 while the daemon runs. User configuration lives at ~/Library/Application Support/blocksd/config.toml. The Unix socket is /tmp/blocksd-<uid>/blocksd.sock (replace <uid> with id -u); its parent must be owned by the current user with mode 0700.

CoreMIDI scanning, runtime startup, and installer behavior can be checked without hardware. Before treating a Mac/device combination as hardware-validated, check:

  • Serial and topology responses during status --probe, followed by sustained API keepalive.
  • Touch/button events and configuration reads with the daemon running.
  • USB unplug/replug and DNA topology changes, including two identical Blocks.
  • Recovery after sleep/wake.
  • Concurrent MIDI use with your DAW. Close ROLI Dashboard during the protocol check so another host does not change API mode.

USB LUMI Keys and a DNA-connected Lightpad Block M have been confirmed entering API mode on macOS. Sleep/wake and DAW coexistence still need hardware acceptance testing. The existing LittleFoot renderer limitation also applies on macOS: accepted LED writes do not prove visible output.

Homebrew Packaging ​

Starting with v0.6.0, releases include a Homebrew formula for hyperb1iss/tap. The formula must be merged into the tap before this install path is available:

bash
brew install hyperb1iss/tap/blocksd
blocksd run

After stopping the foreground process, run blocksd install to enable startup at login. Homebrew installation does not start a daemon automatically. Run blocksd install again after upgrades to refresh the LaunchAgent's executable path. Before brew uninstall blocksd, run blocksd uninstall to remove the agent.

If python-rtmidi builds from source, install Xcode Command Line Tools (xcode-select --install). CoreMIDI is the native backend; ALSA/JACK packages are not needed.

Quick Install and Upgrade ​

The release installer supports Linux and macOS starting with v0.6.0. Earlier installers target Linux only.

Download the release installer, inspect it, and run it as your normal user:

bash
curl -fsSL https://github.com/hyperb1iss/blocksd/releases/latest/download/install.sh -o install-blocksd.sh
less install-blocksd.sh
bash install-blocksd.sh

The installer installs or upgrades the latest PyPI release in an isolated uv tool environment. On Linux it installs udev rules (using sudo) and enables and restarts the systemd user service. On macOS it installs and starts a per-user LaunchAgent without sudo. Re-running the same command upgrades an existing installation.

To select a release or skip parts of setup:

bash
bash install-blocksd.sh --version 0.6.0
bash install-blocksd.sh --no-udev
bash install-blocksd.sh --no-service
bash install-blocksd.sh --no-enable

The --no-enable option writes and reloads the service file without enabling, starting, or restarting the service. Existing systemd drop-ins are preserved. Run bash install-blocksd.sh --help for the complete options.

From PyPI ​

With uv already installed:

bash
uv tool install --python 3.13 blocksd
blocksd install

Upgrade the package and restart the service to load the new code:

bash
uv tool upgrade blocksd
blocksd install
systemctl --user status blocksd

A package upgrade alone does not replace the running process. If blocksd is not on your PATH, run uv tool update-shell and open a new terminal.

Arch Linux Packaging ​

The repository contains stable and git PKGBUILDs under packaging/aur/. AUR publication is separate from GitHub and PyPI releases; check the package's availability and version before using an AUR helper. Package-managed installations should be upgraded through their package manager.

From Source ​

Install the development tools listed in CONTRIBUTING.md, then build the dashboard before installing the service:

bash
git clone https://github.com/hyperb1iss/blocksd.git
cd blocksd
just install
just web-build
uv run --locked blocksd install

Keep the checkout and its virtual environment at that path while the service uses it. After updating the checkout, sync dependencies, rebuild the dashboard, and rerun uv run --locked blocksd install to restart the service.

Linux Service Setup ​

The udev file at /etc/udev/rules.d/99-roli-blocks.rules grants all local users read/write access to matching ROLI devices (MODE="0666") and adds the uaccess tag. Installation requires sudo. Reconnect your devices after installing the rules.

The user service at ~/.config/systemd/user/blocksd.service starts on login and uses systemd readiness and watchdog notifications. Its sandbox includes ProtectSystem=strict, NoNewPrivileges, and PrivateTmp.

bash
blocksd install                  # udev + service + enable and restart
blocksd install --no-udev        # skip udev rules
blocksd install --no-enable      # write/reload service without restarting
blocksd install --no-service     # skip the service

Verify ​

bash
systemctl --user status blocksd
journalctl --user -u blocksd --no-pager -n 30
blocksd status

Run blocksd ui to open the running daemon's dashboard at its configured address.

The status --probe, led, and config commands use the running daemon. Leave the service running while using them.

Linux Native Dependencies ​

ALSA runtime support is required. If python-rtmidi needs to compile from source, install a C/C++ toolchain, pkg-config, and ALSA/JACK development headers. For Debian or Ubuntu:

bash
sudo apt-get install build-essential pkg-config libasound2-dev libjack-jackd2-dev

Use the equivalent development packages for your distribution. The installer does not install distribution packages.

Uninstall ​

bash
blocksd uninstall               # native service (plus udev rules on Linux)
uv tool uninstall blocksd       # Python package (uv installations)

User configuration is retained. For a distribution package, remove the package through its package manager.

Next Steps ​

Released under the ISC License.