Hello all.
I have been continuing my experiments with MODEP on my Pi 4B. I’m running my UMC202HD at 48kHz, 128 samples and 2 periods. I am using the realtime kernel and the boot mode is set to “console autologin
”.
I have pretty heavy patch that has two parallel paths . The first path has a single instance of NAM running a standard model going to an IR loader. The second path has a Guitarix amp model going into various time-based effects. The CPU usage used to hover right around 60-65%.
Earlier, everything worked fine and I was not getting any xruns. However now I have started getting a lot of xruns as soon as the Pi boots up and the CPU usage varies wildly. But the weird thing is that when I restart the modep-mod-ui, modep-mod-host and jack services, the problem goes away and I get no xruns at all! The CPU usage is stable at 60-65%. I’m running the following commands:
sudo systemctl stop modep-mod-ui modep-mod-host jack
sudo systemctl start jack modep-mod-host modep-mod-ui
After running the above commands, the CPU usage goes back around 60-65% and there are no xruns. I have made it into a script that runs at startup by calling the script in the .bashrc file. However, this does raise the time before I can start playing considerably. Also after the UI reloads, it takes an additional ~15s for it to actually make sound. The plugins do show up but NAM and the IR loaders seem to have wrong IRs loaded initially. After the delay, they load the correct files and then the sound output starts.
What could be the reason behind this? Is there any way I can avoid running this script at startup?