Trying to setup latest mod software on a raspberry pi 4 on raspberry OS 64 bit. And really need some help
If I keep the jack.service mod-host.service in this way all is ok , can use mod and enjoy the wonderful plugins built with plugin builder for modduox.
[Unit]
Description=JACK2 Audio Server
#After=sound.target
[Service]
Environment=LV2_PATH=/home/sound/.lv2
Environment=JACK_NO_AUDIO_RESERVATION=1
Environment=JACK_PROMISCUOUS_SERVER=jack
LimitRTPRIO=99
LimitMEMLOCK=infinity
ExecStart=/usr/bin/jackd -t 2000 -R -P 99 -d alsa -d hw:pisound -r 48000 -p 128 -n default -X seq -s -S
Restart=always
RestartSec=1
[Install]
WantedBy=multi-user.target
The problem comes when I want to run this services as my regular user, in order to add other software to the equation . Puredata , Carla and patchage for instance , to route audio/midi here and there to and from mod etc.
When I do add this modifications to the .service’s files
User=sound
Group=audio
mod-ui fails , complaining about jack
jack server is not running or cannot be started JackShmReadWritePtr
then I tried to remove the user and group from mod-ui and it works , but I get mod without inputs and outputs , and the jack servers tells me there it was an error adding clients.
If I run the services as root it works well , but I cant use other software at the same time and every software I run cant seem to access the jack server , even with Environment=JACK_PROMISCUOUS_SERVER=jack
I’m quite sure I had this working in the past and would love to play with mod routing audio/midi from other apps for sequencing etc .
Its very clear that I don’t know what I’m doing, but I would suspect that jack and mod services should run as a separated user and not as root maybe ?
other modifications Ive made include adding JACK_PROMISCUOUS_SERVER=jack to /etc/environment. Adding my current USER to an audio group in /etc/security/limits.d/audio.conf following guides on jack realtime setup and so on
@audio - rtprio 99
@audio - memlock unlimited
thanks for any hints, Im aware that this is not officially supported but Im sure someone here was in a similar situation or knows where the problem could be .
Its so much fun to run mod along other apps like Giada or pd