hi @Giedrius
Im working on getting orac working on patchbox OS… (console only)
a few things are confusing me slightly…
A) how can I stop the mec-app you have running , as I need my own, with its own config
it doesn’t appear to be started with a systemd service?
(Ive a much newer build, so I cannot just use what you have there with a different config )
B) Im running PD from a serviced service
Mar 27 17:49:49 patchbox systemd[1]: Started Run Orac at boot.
Mar 27 17:49:51 patchbox pulseaudio[602]: [pulseaudio] module-jackdbus-detect.c: Unable to contact D-Bus session bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Mar 27 17:49:51 patchbox pulseaudio[602]: [pulseaudio] module.c: Failed to load module “module-jackdbus-detect” (argument: “channels=2”): initialization failed.
Mar 27 17:49:51 patchbox pulseaudio[602]: [pulseaudio] main.c: Module load failed.
Mar 27 17:49:51 patchbox pulseaudio[602]: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Mar 27 17:49:51 patchbox pulseaudio[602]: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Mar 27 17:49:51 patchbox pd[573]: opened alsa client 132 in:1 out:1
Mar 27 17:49:51 patchbox pd[573]: Cannot connect to server socket err = No such file or directory
Mar 27 17:49:51 patchbox pd[573]: Cannot connect to server request channel
Mar 27 17:49:51 patchbox pd[573]: jack server is not running or cannot be started
Mar 27 17:49:51 patchbox pd[573]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Mar 27 17:49:51 patchbox pd[573]: error: JACK: Failure. Is JACK running?
my config is
[Unit]
Description=Run Orac at boot
DefaultDependencies=no
Wants=network-online.target
After=network-online.target
Conflicts=shutdown.target
Before=shutdown.target
[Service]
Type=simple
#User=pi
#Group=pi
#Environment=HOME=/home/pi
User=patch
Group=patch
Environment=HOME=/home/patch
KillMode=process
Restart=always
LimitRTPRIO=infinity
LimitMEMLOCK=infinity
WorkingDirectory=/usr/local/orac
ExecStart=/usr/bin/pd -rt -alsamidi -nogui -audiobuf 4 mother.pd main.pd
[Install]
WantedBy=default.target
if I run pd as the patch user and run the ‘test audio midi’ in pd, it works ok - though I do see Audio I/O error, but still sound comes thru
this also works, when run as patch users
cd /usr/local/orac
/usr/bin/pd -rt -alsamidi -nogui -audiobuf 4 mother.pd main.pd
so it appears its to do with the service?!
which seems odd, as its running as the patch user!?