Little handy script lines

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.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s