I just started with patchbox a few days ago and so far it’s been great! I’ve gotten pd talking with an arduino over usb serial and outputting multichannel audio on a cheapo 5.1 usb sound card on a RPI4 (w/o a PiSound) in console mode. I just have a couple of questions about about headless operation, and unfortunately, I don’t have access to the installation I’m working on at the moment, so I figured I’d ask here in the hopes that it will save me some time tomorrow…
My goal is totally independent headless operation. At the moment I have to run
pd /home/patch/Pd/MAIN_PATCH_01.pd *to launch my patch (although I’m not sure that the * is really necessary, as it doesn’t unblock the terminal as I thought it would… EDIT: it looks as though I was confusing * with &, so I’ll give that a try tomorrow). It seems as though I should enable the pure data module and edit something in the puredata/launch.sh script but, I’m not sure exactly what - do I have to replace the
$PATCHin quotes on line 26?
I’ve read that it’s not great to just yank the power from a RPI (although I have done that for a previous installation using CCRMA’s satellite build without any problems). Given that I want this to work as simply as possible, I figured that perhaps I should attach a button to the arduino, and after a long press send a signal over to pd and tell it to shutdown the Pi by passing
sudo shutdown -h nowto the [shell] (assuming that’s available in the vanilla version). Does that sound reasonable, or is there perhaps some more graceful builtin way of managing this?
Thanks in advance for you help!