Boot to X Windows on PiTFT

Use the Pi installer script, select N on having the console appear on the Pi, and say Y to mirroring HDMI. Then enable PIXEL using sudo raspi-config (boot to desktop)

Tactile switch as power button

This is currently not available!

Its a good idea to safely turn off your Pi with a good sudo shutdown -h now but that often means pulling out a keyboard or connecting to the console. With our kernel we added a cool module that will let you turn any GPIO into a power button. Since there's a couple of tactile switches right there on the front, lets turn one into a power button. Press once to properly turn off the pi, press again to start it up. Isn't that nice?

We'll be using GPIO #23, the third button. You can use any of them or other GPIO but #23's our favorite number anyways.

Add rpi_power_switch to /etc/modules and save

Now create a new conf file or edit our existing one with

sudo nano /etc/modprobe.d/adafruit.conf

and enter in the line

options rpi_power_switch gpio_pin=23 mode=0

Of course, change the gpio_pin setting to some other # if you wish. mode=0 means its a pushbutton not a switch. If you happen to install an on/off switch, use mode=1

To make it active immediately run sudo modprobe rpi_power_switch

Last updated on 2018-02-11 at 10.26.38 PM Published on 2014-12-19 at 04.05.04 PM