This is an old revision of the document!
Table of Contents
Autostart with the Desktop
Sometimes one needs the X Windows system to run a Pure Data patch on a Raspberry Pi. This is the workaround for an autostart of a PD patch after booting in the desktop.
Make a Autostart File
Make the folder and the file for the autostart:
$ mkdir /home/pi/.config/autostart $ nano /home/pi/.config/autostart/my_pd_autostart.desktop
Type in the following lines:
[Desktop Entry] Type=Application Comment=start a PD-patch Name=PD patch Exec=pd /home/pi/PD-sketchbook/my_pd_file.pd
Save it with ctrl+o, then hit return and then ctrl+x.
Run the Raspberry Pi Headless
To start the desktop even no monitor is connected one has to do some changes.
In…
$ sudo nano /boot/config.txt
Uncomment the following line:
# uncomment if hdmi display is not detected and composite is being output hdmi_force_hotplug=1
Save it with ctrl+o, then hit return and then ctrl+x.
That's it, your PD patch should run after rebooting the Raspberry Pi.