<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div></div><div><br></div><div>.hc</div><br><div><div><div>On Nov 26, 2012, at 1:12 PM, Epic Jefferson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Pierre/Cyrille:<div>it worked. since i have pd-extended installed, i added this line to /etc/rc.local:</div><div><br></div><div>pd-extended&nbsp;<span style="font-family:arial,sans-serif;font-size:13px">nogui -audiobuf 100 -noadc /home/pi/Desktop/mypatch.pd</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Hans:</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">i copied the script to /etc/init.d/pd-extended. it still didn't work for me.&nbsp;</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">i crosschecked the file you attached with the one i already had and they look</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">exactly the same to me. Perhaps you accidentally attached the old version?&nbsp;</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Nov 25, 2012 at 3:55 PM, Pierre Massat <span dir="ltr">&lt;<a href="mailto:pimassat@gmail.com" target="_blank">pimassat@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Epic,<br><br>I got Pd running at startup on the RPi without modifying /etc/init.d/pd-extended.<br>All I did is add a line in /etc/rc.local, something like 'pd -nogui -audiobuf 100 -noadc /home/pi/mypatch.pd'<br>

<br>This will start Pd, without GUI, with a buffer big enough for the RPi, without audio in (there's no capture on the RPi), and open the patch called 'mypatch.pd' in the home folder.<br><br>This should work a fresh Raspbian install. Pd will start without the user having to login, nor start X.<br>

<br>There's also an alternate solution involving the cration of a bash script. I described it here on my blog : <a href="http://guitarextended.wordpress.com/2012/08/28/running-pd-on-a-headless-raspberry-pi/" target="_blank">http://guitarextended.wordpress.com/2012/08/28/running-pd-on-a-headless-raspberry-pi/</a><br>

<br>Cheers,<br><br>Pierre.<br><br>PS : this is for Pd-vanilla, i've never tried pd-extended on the Pi.<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">2012/11/25 Epic Jefferson <span dir="ltr">&lt;<a href="mailto:jeffreyconcepcion@gmail.com" target="_blank">jeffreyconcepcion@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hans:<div><br></div><div>to make sure i had everything correct i started from scratch,&nbsp;</div><div>i did everything you indicated including the exact patch location, still nothing.</div>

<div>i added the auto login as suggested by Cyrille, nada.</div>
<div><br></div><div>Cyrille:</div><div>could you be more specific as to what i would replace the startx with?&nbsp;</div><div>should i indicate the exact path as well?</div><div><br></div><div>like so:&nbsp;<span style="line-height:1.1em;font-size:13px;background-color:rgb(249,249,249);font-family:monospace,Courier">su pi -c /home/pi/Desktop/whatever.pd</span></div>


<div><br></div><div>i tested it with startx and it did not work anyway.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Nov 25, 2012 at 4:14 AM, Cyrille Henry <span dir="ltr">&lt;<a href="mailto:ch@chnry.net" target="_blank">ch@chnry.net</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hello,<br>
<br>
to start a patch on a RPi, you can also follow this instruction :<br>
<a href="http://elinux.org/RPi_Debian_Auto_Login" target="_blank">http://elinux.org/RPi_Debian_<u></u>Auto_Login</a><br>
<br>
once autologin work, you can replace the startX by pd.<br>
<br>
works for me.<br>
cheers<br>
c<br>
<br>
<br>
Le 25/11/2012 06:10, Epic Jefferson a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
Charles:<br>
<br>
i found /etc/init.d/pd-extended and added<br>
<br>
su -c "pd whetever.pd" pi<br>
<br>
(am i supposed to specify the exact location of the patch?<br>
&nbsp; /home/pi/Desktop/pd/whatever.<u></u>pd)<br>
<br>
then<br>
$ chmod a+x /etc/init.d/pd-extended<br>
$ update-rc.d pd-extended defaults 99<br>
<br>
i rebooted but no pd patch on startup<br>
<br>
Hans:<br>
i also tried editing /etc/default/pd-extended by un-commenting<br>
RUNPDDAEMON=yes<br>
DAEMON=/usr/bin/pd-extended<br>
and i set the patch location<br>
and the user: USER=pi<br>
<br>
still nothing on start up. perhaps there is a conflict between Charles' and Hans' instructions?<br>
<br>
<br></div><div>
On Sat, Nov 24, 2012 at 9:37 PM, Hans-Christoph Steiner &lt;<a href="mailto:hans@at.or.at" target="_blank">hans@at.or.at</a> &lt;mailto:<a href="mailto:hans@at.or.at" target="_blank">hans@at.or.at</a>&gt;&gt; wrote:<br>
<br>
<br>
&nbsp; &nbsp; On Nov 24, 2012, at 6:49 PM, Charles Goyard wrote:<br>
<br>
&nbsp; &nbsp; &nbsp;&gt; Epic Jefferson wrote:<br>
&nbsp; &nbsp; &nbsp;&gt;&gt; i'd like to start a patch automatically upon booting. is there a file i can<br>
&nbsp; &nbsp; &nbsp;&gt;&gt; edit to load a whatever.pd patch by the end of the start up sequence? GUI<br>
&nbsp; &nbsp; &nbsp;&gt;&gt; is not required.<br>
&nbsp; &nbsp; &nbsp;&gt;<br>
&nbsp; &nbsp; &nbsp;&gt; Create a script named /etc/init.d/pdauto containing :<br>
&nbsp; &nbsp; &nbsp;&gt;<br>
&nbsp; &nbsp; &nbsp;&gt; #!/bin/sh<br>
&nbsp; &nbsp; &nbsp;&gt; su -c "pd mypatch.pd" your_username<br>
&nbsp; &nbsp; &nbsp;&gt;<br>
&nbsp; &nbsp; &nbsp;&gt; Make it executable : chmod a+x /etc/init.d/pdauto<br>
&nbsp; &nbsp; &nbsp;&gt;<br>
&nbsp; &nbsp; &nbsp;&gt; Then run :<br>
&nbsp; &nbsp; &nbsp;&gt; update-rc.d pdauto defaults 99<br>
&nbsp; &nbsp; &nbsp;&gt; to make it run at startup<br>
&nbsp; &nbsp; &nbsp;&gt;<br>
&nbsp; &nbsp; &nbsp;&gt; See 11.6 in<br>
&nbsp; &nbsp; &nbsp;&gt; <a href="http://www.debian.org/doc/manuals/debian-faq/ch-customizing.en.html" target="_blank">http://www.debian.org/doc/<u></u>manuals/debian-faq/ch-<u></u>customizing.en.html</a><br>
&nbsp; &nbsp; &nbsp;&gt; for more details.<br>
<br>
&nbsp; &nbsp; Pd-extended Debian packages should install /etc/init.d/pd, otherwise you can get it from pure-data SVN: trunk/scripts/debian.<br>
<br>
&nbsp; &nbsp; Edit /etc/default/pd to change the startup options.<br>
<br>
&nbsp; &nbsp; .hc<br>
<br>
<br>
<br>
&nbsp; &nbsp; ______________________________<u></u>_________________<br></div>
&nbsp; &nbsp; <a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> &lt;mailto:<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a>&gt; mailing list<div><br>
&nbsp; &nbsp; UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a><br>
<br>
<br>
<br><span><font color="#888888">
<br>
--<br>
</font></span></div><span><font color="#888888"><a href="http://www.epicjefferson.com/" target="_blank">www.epicjefferson.com</a> &lt;<a href="http://www.epicjefferson.com/" target="_blank">http://www.epicjefferson.com</a>&gt;<br>


<a href="http://www.avmachinists.org/" target="_blank">www.avmachinists.org</a> &lt;<a href="http://www.avmachinists.org/" target="_blank">http://www.avmachinists.org</a>&gt; Puerto Rico based Art Collective/ Non-Profit Org<div>


<br>
<br>
<br>
______________________________<u></u>_________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a><br>
<br>
</div></font></span></blockquote><span><font color="#888888">
</font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><a href="http://www.epicjefferson.com/" target="_blank">www.epicjefferson.com</a><br><a href="http://www.avmachinists.org/" target="_blank">www.avmachinists.org</a> Puerto Rico based Art Collective/ Non-Profit Org<br>



</font></span></div>
<br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><a href="http://www.epicjefferson.com/" target="_blank">www.epicjefferson.com</a><br><a href="http://www.avmachinists.org/" target="_blank">www.avmachinists.org</a> Puerto Rico based Art Collective/ Non-Profit Org<br>

</div>
_______________________________________________<br><a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br></blockquote></div><br></div></body></html>