Error: 2.8" TFT and raspberry pi zero W

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
methos1976
 
Posts: 8
Joined: Sat Nov 10, 2018 10:19 pm

Error: 2.8" TFT and raspberry pi zero W

Post by methos1976 »

Hi I am trying to set up the 2.8” capacitive screen with my raspberry pi zero.

I am following the easy install guide on your website: https://learn.adafruit.com/adafruit-2-8 ... -install-2

I have downloaded the 2018-03-14 version of raspbian and tried the installer script below as per the instructions but I get an error when I type it in as shown below. What do I do?


Cd ~
wget https://raw.githubusercontent.com/adafr ... t-pitft.sh
chmod +x adafruit-pitft.sh

but when I enter the next line:
sudo ./adafruit-pitft.sh

I get the below error
Sudo: ./adafruit-pitft.sh: command not found

User avatar
methos1976
 
Posts: 8
Joined: Sat Nov 10, 2018 10:19 pm

Re: Error: 2.8" TFT and raspberry pi zero W

Post by methos1976 »

Actually i just solved this by typing:

Code: Select all

chmod +X adafruit-pitft.sh 
with a lowercase 'x' like this

Code: Select all

chmod +x adafruit-pitft.sh 
Which got the easy install setup running. However I have a new problem. Even when using the firmware recommended in this easy install procedure, option 2 to have the UI and mirrored HDMI does not work. If i go through the setup again and select option 1 for the terminal only it works just fine.

I have also tried this with the latest Raspbian with the same results.

Has something broken in the easy install setup?

User avatar
adafruit_support_carter
 
Posts: 29154
Joined: Tue Nov 29, 2016 2:45 pm

Re: Error: 2.8" TFT and raspberry pi zero W

Post by adafruit_support_carter »

Can you run through the script again and capture the session output and post it here. Like I did in this post:
viewtopic.php?f=47&t=139845#p700117

That will help us see if anything odd is happening when the script runs.

User avatar
methos1976
 
Posts: 8
Joined: Sat Nov 10, 2018 10:19 pm

Re: Error: 2.8" TFT and raspberry pi zero W

Post by methos1976 »

Hi,

I am new so i am not sure how to capture the session. I was SSH'ing into the Pi to follow the easy install.

User avatar
methos1976
 
Posts: 8
Joined: Sat Nov 10, 2018 10:19 pm

Re: Error: 2.8" TFT and raspberry pi zero W

Post by methos1976 »

Okay so i reformatted the SD card and put a fresh install of the recommended raspbian-2018-03-14 (which by the way unzipped is actually 2018-03-13)

when i went to SSH into the Raspberry Pi Zero W i got this message:

Code: Select all

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The ECDSA host key for raspberrypi.local has changed,
and the key for the corresponding IP address < I removed IP>
is unknown. This could either mean that
DNS SPOOFING is happening or the IP address for the host
and its host key have changed at the same time.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
i don't know what this means or if its of concern? I have a few Raspberry Pi's all with the same SSH login because they are all new i dont know if this is why this message has come up? I managed to log in to my pi.

So the steps for the working Console Display are as follows

Code: Select all

pi@raspberrypi:~ $ cd ~
pi@raspberrypi:~ $ wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/adafruit-pitft.sh
--2018-11-13 06:44:59--  https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/adafruit-pitft.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.104.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.104.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19319 (19K) [text/plain]
Saving to: ‘adafruit-pitft.sh.1’

adafruit-pitft.sh.1       100%[==================================>]  18.87K  --.-KB/s    in 0.03s   

2018-11-13 06:45:00 (737 KB/s) - ‘adafruit-pitft.sh.1’ saved [19319/19319]

pi@raspberrypi:~ $ chmod +x adafruit-pitft.sh
pi@raspberrypi:~ $ sudo ./adafruit-pitft.sh

This script downloads and installs
PiTFT Support using userspace touch
controls and a DTO for display drawing.
one of several configuration files.
Run time of up to 5 minutes. Reboot required!

Select configuration:
1. PiTFT 2.4", 2.8" or 3.2" resistive (240x320)
2. PiTFT 2.2" no touch (240x320)
3. PiTFT 2.8" capacitive touch (240x320)
4. PiTFT 3.5" resistive touch (320x480)
5. Quit without installing

SELECT 1-5: 3
Select rotation:
1. 90 degrees (landscape)
2. 180 degrees (portait)
3. 270 degrees (landscape)
4. 0 degrees (portait)

SELECT 1-4: 1
[PITFT] Checking init system...
Found systemd
/boot is mounted
[PITFT] System update
Updating apt indexes...
.........
Reading package lists...
.........
[PITFT] Installing Python libraries & Software...
Installing Pre-requisite Software...This may take a few minutes!
[PITFT] Updating /boot/config.txt...
[PITFT] Updating SysFS rules for Touchscreen...
[PITFT] Updating TSLib default calibration...
Would you like the console to appear on the PiTFT display? [y/n] y
[PITFT] Updating console to PiTFT...
Remove fbcp from /etc/rc.local, if it's there...
Configuring boot/config.txt for default HDMI
Set up main console turn on
Updating /boot/cmdline.txt
Turning off console blanking
Setting raspi-config to boot to console w/o login...
Created symlink /etc/systemd/system/default.target → /lib/systemd/system/multi-user.target.
[PITFT] Success!

Settings take effect on next boot.

REBOOT NOW? [y/N]  y
Reboot started...
Connection to raspberrypi.local closed by remote host.
Connection to raspberrypi.local closed.
now as i said this works great. Only i really want the mirror HDMI option with the GUI. That install went as follows:

Code: Select all

pi@raspberrypi:~ $ chmod +x adafruit-pitft.sh
pi@raspberrypi:~ $ sudo ./adafruit-pitft.sh

This script downloads and installs
PiTFT Support using userspace touch
controls and a DTO for display drawing.
one of several configuration files.
Run time of up to 5 minutes. Reboot required!

Select configuration:
1. PiTFT 2.4", 2.8" or 3.2" resistive (240x320)
2. PiTFT 2.2" no touch (240x320)
3. PiTFT 2.8" capacitive touch (240x320)
4. PiTFT 3.5" resistive touch (320x480)
5. Quit without installing

SELECT 1-5: 3
Select rotation:
1. 90 degrees (landscape)
2. 180 degrees (portait)
3. 270 degrees (landscape)
4. 0 degrees (portait)

SELECT 1-4: 1
[PITFT] Checking init system...
Found systemd
/boot is mounted
[PITFT] System update
Updating apt indexes...
.........
Reading package lists...
.........
[PITFT] Installing Python libraries & Software...
Installing Pre-requisite Software...This may take a few minutes!
[PITFT] Updating /boot/config.txt...
Already have an adafruit-pitft-helper section in /boot/config.txt.
Removing old section...
[PITFT] Updating SysFS rules for Touchscreen...
[PITFT] Updating TSLib default calibration...
Would you like the console to appear on the PiTFT display? [y/n] n
[PITFT] Making sure console doesn't use PiTFT
Removing console fbcon map from /boot/cmdline.txt
Screen blanking time reset to 10 minutes
Would you like the HDMI display to mirror to the PiTFT display? [y/n] y
[PITFT] Adding FBCP support...
Installing cmake...
W: --force-yes is deprecated, use one of the options starting with --allow instead.
Downloading rpi-fbcp...
Uncompressing rpi-fbcp...
Building rpi-fbcp...
Installing rpi-fbcp...
Remove fbcp from /etc/rc.local, if it's there...
We have systemd, so install fbcp systemd unit...
Created symlink /etc/systemd/system/multi-user.target.wants/fbcp.service → /etc/systemd/system/fbcp.service.
Setting raspi-config to boot to desktop w/o login...
Removed /etc/systemd/system/default.target.
Created symlink /etc/systemd/system/default.target → /lib/systemd/system/graphical.target.
Configuring boot/config.txt for forced HDMI
Using x2 resolution
[PITFT] Updating X11 default calibration...
[PITFT] Success!

Settings take effect on next boot.

REBOOT NOW? [y/N] y

Now after reboot all i get is a black backlit screen.

Any ideas?

User avatar
adafruit_support_carter
 
Posts: 29154
Joined: Tue Nov 29, 2016 2:45 pm

Re: Error: 2.8" TFT and raspberry pi zero W

Post by adafruit_support_carter »

You can generally ignore that warning you are seeing when ssh'ing. It's essentially saying that the machine is different than it was last time you ssh'd in. That would be a concern if the remote machine were something like your bank. But in this case, the remote machine is just your RPi.

The script looks like it's running OK and you are making the correct choices. Try again with the 2018-10-09 Raspbian:
https://www.raspberrypi.org/downloads/raspbian/
This was looked into recently and that seemed to work for the Zero.

User avatar
methos1976
 
Posts: 8
Joined: Sat Nov 10, 2018 10:19 pm

Re: Error: 2.8" TFT and raspberry pi zero W

Post by methos1976 »

okay i got it working thanks to some other posts i read on this forum.

I have a new problem. I have been configuring my 2.8"capacitive screen which is working nicely now. I was trying this tutorial on simulating a right click here https://learn.adafruit.com/adafruit-2-8 ... uch/extras

only i cant edit /etc/X11/xorg.conf.d/99-calibration.conf as this file does not exist in my pi.

What am i doing wrong?

User avatar
adafruit_support_carter
 
Posts: 29154
Joined: Tue Nov 29, 2016 2:45 pm

Re: Error: 2.8" TFT and raspberry pi zero W

Post by adafruit_support_carter »

okay i got it working thanks to some other posts i read on this forum.
Can you link to what got it working.

I'll ask about that right click thing. Things might have changed.

User avatar
adafruit_support_carter
 
Posts: 29154
Joined: Tue Nov 29, 2016 2:45 pm

Re: Error: 2.8" TFT and raspberry pi zero W

Post by adafruit_support_carter »

Ugh. OK, this might be continuing issues with keeping up with the moving target that is the Raspbian releases. Please try with the version linked here:
https://learn.adafruit.com/adafruit-2-8 ... d-card-3-4

User avatar
methos1976
 
Posts: 8
Joined: Sat Nov 10, 2018 10:19 pm

Re: Error: 2.8" TFT and raspberry pi zero W

Post by methos1976 »

The solution was posted by kfeger here viewtopic.php?f=47&t=132424&p=657670&hi ... 11#p657670

What i did was:

Code: Select all

sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf
changed ' Option "fbdev" "/dev/fb0"' to ' Option "fbdev" "/dev/fb1"'

User avatar
adafruit_support_carter
 
Posts: 29154
Joined: Tue Nov 29, 2016 2:45 pm

Re: Error: 2.8" TFT and raspberry pi zero W

Post by adafruit_support_carter »

That fixed both problems? The display and the right click touch?

User avatar
methos1976
 
Posts: 8
Joined: Sat Nov 10, 2018 10:19 pm

Re: Error: 2.8" TFT and raspberry pi zero W

Post by methos1976 »

No that was just for the display. I am still hoping for a solution for right touch.

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: Error: 2.8" TFT and raspberry pi zero W

Post by adafruit2 »

we just checked with 2018-10 raspbian and touch should be working, what happens if you run

dmesg | grep EP0110M09

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”