When I normally developed on the Pi the pieces were standalone and I used an .xsession file to execute my scripts for my piece. A lot of it was sound and I would just pull out the SD card and disable the .xsession file once it wasn’t exhibited. But now I have a video piece I need to close X windows and then disable the script once the piece is taken down. So to help I add to my scripts a few lines that help the Pi be a little more user friendly. As below:
xset s off # don't activate screensaver xset -dpms # disable DPMS (Energy Star) features. xset s noblank # don't blank the video device setxkbmap -option terminate:ctrl_alt_bksp # disable X windows
On a standard Debian system I normally can close X through key combo but it is better to set it in Pi in your script. Because the Pi is in a screen enclosure I can’t just take out the micro SD any old time.