[PD] is /etc/rc.local the script that runs on boot?

Simon Wise simonzwise at gmail.com
Fri Feb 6 12:46:53 CET 2015


On 06/02/15 22:20, Alexandros Drymonitis wrote:
> I want to launch Pd when my raspberry pi boots, so in /etc/rc.local I wrote
> the following, just before 'exit 0'
>
> usr/local/bin/pd -nogui -open ~/pd_patches/load_test.pd
>
> The patch that's supposed to open turns the DSP on on load and outputs a
> sine tone at 440 Hz. But when I power up the pi, I hear nothing out of the
> headphones (I tested the patch and it works if I launch Pd from the
> terminal).
>
> If I type 'top' in the terminal, I see that there's pd taking some small
> CPU, but after I exit top, if I type 'killall pd', I get this:
> pd(2097): Operation not permitted
> pd: no process found
>
> Is this 2097 Pd's pid?
>
> What am I doing wrong?

rc.local runs as root ... to launch pd use:

sudo -u pi -i pd -nogui -noaudio -nomidi /share/master.pd &

or similar, here pi is the user, the & means pd runs in the background.

I usually keep a script at /share/initialise then call it as user pi, it makes 
it a lot easier to keep different projects ans swap between them.


Simon




More information about the Pd-list mailing list