-
I have a simple arduino-based MIDI instrument connected to a Raspberry PI, running 64-bit Raspberry Pi OS based on Debian 12. I can launch two /usr/bin/jackd --timeout 2000 --realtime --realtime-priority 95 -d alsa --device hw:sndrpihifiberry --period 64 --nperiods 2 --rate 44100 followed by
in the second shell. This way I can get very low latency when playing the midi instrument. However I don't seem to be able to figure out how to automatically start any of the two ( I first managed to get the low latency working on Patchbox OS by running Qsynth, but I would like to get it working on barebone minimal Debian running in headless mode, without any UI. I saw that Patchbox has something similar to the following contents in
If I don't start
I tried starting
Debian comes with a ready-made systemd file for
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Fluidsynth doesn't actively starts up jack. Merely Jack starts itself (I think there's an option to disable that, but fluidsynth hasn't set it). I don't know about the underlying magic and related Jack commandline logs you're seeing, sry. Regarding fluidsynth, pls. verify that your The line that starts with Usually, a system-wide and user-local EnvironmentFile exists. The exact location is also written in the .service file. It's up to you which to choose. When done configuring, you should always start fluidsynth as a user-service:
I would expect a similar setup procedure for the Jack Daemon (i.e. user service, EnvironmentFiles, etc.). But I have no idea how to configure jack + systemd properly. |
Beta Was this translation helpful? Give feedback.
Fluidsynth doesn't actively starts up jack. Merely Jack starts itself (I think there's an option to disable that, but fluidsynth hasn't set it). I don't know about the underlying magic and related Jack commandline logs you're seeing, sry.
Regarding fluidsynth, pls. verify that your
/usr/lib/systemd/user/fluidsynth.service
file is same (or similar) to ours:https://github.com/FluidSynth/fluidsynth/blob/bd04f3f6c81a114f3ad52c8e29be3b44dccd010f/fluidsynth.service.in
The line that starts with
ExecStart
is crucial. You'll notice a few environment variables in that line, that you can populate via EnvironmentFiles with our favorite fluidsynth options, like so:https://github.com/FluidSynth/fluid…