Wednesday, April 22, 2015

Adafruit 2097 (and other) TFT displays


There are a bunch of issues with the Adafruit 2097 TFT preconfigured image and getting it fully up and running with X.

This applies specifically to the patched raspian image for this product.  Others may or may not be patched correctly.  This appears to be a raspian from about 12/2014, FWIW

http://www.adafruit.com/products/2097

Notes for configuring it to run completely on the TFT:

See starting X on the TFT display below

Notes for configuring wifi (since the USB on the pi boards suck completely

This should be done with an exported X environment, or with the HDMI display attached.  These are fixed mode dialogs and don't scale or scroll like they should.

run the wifi gui.  select scan on the main gui.
on the next dialog, select scan, and when the desired device shows up, double click it, and add it to the configuration.  This should bring up a large dialog, and if the thing is configured right, one can enter the wifi password in that dialog.


Notes for starting X on the TFT display

The problem is that the tutorial expects you to use startx, rather than letting lightdm start the X server (as it does when you select boot to desktop). When you select boot to desktop the greeter is started to allow you to log in. The solution is to follow this tutorial (X11 on your Display). Boils down to:-

Install xserver-xorg-video-fbdev
CODE: 
sudo apt-get install xserver-xorg-video-fbdev
sudo apt-get install xserver-xorg-video-fbdev

Create a config file with following contents in /usr/share/X11/xorg.conf.d/99-fbdev.conf containing the following:
CODE: 
Section "Device"
  Identifier "myfb"
  Driver "fbdev"
  Option "fbdev" "/dev/fb1"
EndSection
Section "Device"  
  Identifier "myfb"
  Driver "fbdev"
  Option "fbdev" "/dev/fb1"
EndSection

Adafruit note page on point (not in tutorial)

https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi/extras#boot-to-x-windows-on-pitft


No comments:

Post a Comment