doesn't work by default because the Pi operating system is not expecting a PiTFT so it boots to the HDMI output.
See below for how to set up your Pi to boot to X on the PiTFT
To 'fix' this, you can either connect an HDMI monitor, then in a terminal window run sudo raspi-config and configure
the Pi to boot to the command line not X! If you do not have an HDMI monitor, you can also try a console cable
How can I force the Pi to bring up X on the HDMI/TV monitor?
There's two ways to do it. In older Pi installs, use the fb0 framebuffer when you want to display stuff on the HDMI/TV
display, for example:
FRAMEBUFFER=/dev/fb0 startx
will use the HDMI/TV framebuffer for X windows instead of the PiTFT
On Jessie Pi installs, run
sudo nano /usr/share/X11/xorg.conf.d/99-fbdev.conf
to edit the configuration file and make sure it contains:
change the Option "fbdev" "/dev/fb0" line to Option "fbdev" "/dev/fb1" if you want the xdisplay on the PiTFT
I'm tring to run startx and I get FATAL: Module g2d_23 not found.
don't forget you have to remove the turbo file!
sudo mv /usr/share/X11/xorg.conf.d/99-fbturbo.conf ~
How come OMX-Player and Minecraft and other programs don't appear on the PiTFT display?
Some programs are graphics-optimized, particularly the video playback tools and some other programs like
Minecraft. They write 'directly' to the HDMI output, and cannot write to the PiTFT so there is no way to directly make
them work. However, you
can
have the output go to HDMI and then mirror the HDMI onto the PiTFT with fbcp. See
this tutorial for more details
Why doesn't the tactile button on GPIO #21 work?
On some older PiTFTs we had one of the buttons labeled #21 - that's the original RasPi name for that pin. If you're
using a V2 (chance is, you are!) that is now called #27.
All the PiTFT's we ship now have the button labeled #21 and #27
I want better performance and faster updates!
You can change the SPI frequency (overclock the display) by editing /boot/config.txt and changing the dtoverlay
options line to:
dtoverlay=pitft28r,rotate=90,speed=62000000,fps=25
Or whatever you like for speed, rotation, and frames-per-second. BUT, here's the thing, the Pi only supports a
fixed
number
of SPI frequencies. So tweaking the number a little won't do anything. The kernel will round the number to
the closest value. You will always get frequencies that are 250MHz divided by an even number. Here's the only SPI
frequencies this kernel supports