5.0" 40-pin TFT screen with Touch issue Pi 2 | SOLVED

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
vitafortis
 
Posts: 7
Joined: Wed Feb 11, 2015 8:10 pm

5.0" 40-pin TFT screen with Touch issue Pi 2 | SOLVED

Post by vitafortis »

I recently purchased the 40 pin TFT touch screen with the HDMI + touch adapter. I attempted to get it working with my new Rasp Pi 2. I've noticed that it's forcing 640x480 resolution. When I attempt to force to 800x480, as stated as compatible in the FAQ for the two products, it down scales and has over scaling, even when overscaling is off. I'm not sure if this is just an issue with the rasp pi 2 or not, but it's frustrating. I'm attempting to make a custom interface for a project of mine and was hoping to have this work with relative ease. I've tried many different tutorials, but none of the "resolution fixes" have worked.

Does anyone have any ideas on how to get it to work, or is it just not compatible with the Pi 2 yet ( which seems odd as it's just HDMI. )

For the record, I'm using a Raspbian image without NOOBS.
Last edited by vitafortis on Thu Feb 12, 2015 5:01 pm, edited 1 time in total.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: 5.0" 40-pin TFT screen with Touch issue Pi 2

Post by adafruit_support_rick »

You have this adapter?
https://www.adafruit.com/products/2219

We're just coming up to speed on the Pi 2 ourselves. You're right, though, it seems like it should just work. Do you have an older Pi you can test it with? What about trying the display with a different HDMI source?

User avatar
vitafortis
 
Posts: 7
Joined: Wed Feb 11, 2015 8:10 pm

Re: 5.0" 40-pin TFT screen with Touch issue Pi 2

Post by vitafortis »

I'm currently at work. Yes, I do have that adapter, as well as an older Raspberry Pi B+ I can try it with when I get home. Assuming it does not work, do you have any ideas what may be the cause? I'm asking in advance to help determine what the issue might be.

Thanks for the reply, I'll update this in a few hours when I get home and can test with my other Pi.

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

Re: 5.0" 40-pin TFT screen with Touch issue Pi 2

Post by adafruit2 »

please take a photo of exactly what it looks like when its 'scaling' - the TFP401 does not have a scaler - you do need to tell config.txt to force the resolution but it should come up in 800x480 - we used it with a Pi 2 yesterday!

User avatar
vitafortis
 
Posts: 7
Joined: Wed Feb 11, 2015 8:10 pm

Re: 5.0" 40-pin TFT screen with Touch issue Pi 2

Post by vitafortis »

I'll take a picture when I get home. When I was checking the config.txt yesterday, it was doing auto-scaling. I'm not sure if my raspbian image is different than yours or not, but it could only use 640x480. It recognized that it has a theoretical resolution of 800x480, but was unable to use that mode. In terms of scaling, if I don't force resolution, the right 20% of the screen is black. If I do force 800x480, it shrinks down ( over scaling is off ), and there's a black top/bottom border, with the right part of the screen still black.

Not sure what the issue is, but I had tried many different fixes. Going to try a different pi model and see what happens.

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

Re: 5.0" 40-pin TFT screen with Touch issue Pi 2

Post by adafruit2 »

wiiiierd. yah please post a pic. could be some HDMI mode thingy.

User avatar
vitafortis
 
Posts: 7
Joined: Wed Feb 11, 2015 8:10 pm

Re: 5.0" 40-pin TFT screen with Touch issue Pi 2

Post by vitafortis »

Below is an image of the screen when connected to my rasp pi 2. I did check it with the Rasp Pi B+, and while it was over scaled, it still did not use the full width, it used 590px I believe. I'm not sure what the issue is. I did verify that the cable is completely plugged in.

Image

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

Re: 5.0" 40-pin TFT screen with Touch issue Pi 2

Post by adafruit2 »

for that picture, looks like it's still set up for 640x480 so possibly you haven't set up the config.txt completely, you can post up the config.txt and we'll take a look, also the text when booting should be using the full amount

User avatar
vitafortis
 
Posts: 7
Joined: Wed Feb 11, 2015 8:10 pm

Re: 5.0" 40-pin TFT screen with Touch issue Pi 2

Post by vitafortis »

Code: Select all

# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=0
#overscan_right=0
#overscan_top=0
#overscan_bottom=0

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=800
#framebuffer_height=480

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

start_x=1
gpu_mem=128

That's the current config. I have tried changing the buffer to 800 width and 480 height, and the total screen size shrinks. Also, during boot, it looks just like it does above.

Edit: I just ran the tvservice -d & edidparser commands. It does recognize that 800x480 is possible. Here's what it says about it:

Code: Select all

pi@Eir ~ $ edidparser edid
Enabling fuzzy format match...
Parsing edid...
HDMI:EDID version 1.3, 0 extensions, screen size 15x10 cm
HDMI:EDID features - videodef 0x80 !standby !suspend !active off; colour encoding:RGB444|YCbCr422; sRGB is not default colourspace; preferred format is native; does not support GTF
HDMI:EDID ignored unknown descriptor tag 0x10
HDMI:EDID ignored unknown descriptor tag 0x10
HDMI:EDID ignored unknown descriptor tag 0x10
HDMI:EDID does not yet know monitor vertical range, setting to default 24 to 120Hz
HDMI:EDID failed to find a matching detail format for 800x480p hfp:40 hs:48 hbp:40 vfp:13 vs:3 vbp:29 pixel clock:32 MHz
HDMI:EDID calculated refresh rate is 66 Hz
HDMI:EDID guessing the format to be 800x480p @70 Hz
HDMI:EDID found unknown detail timing format: 800x480p hfp:40 hs:48 hbp:40 vfp:13 vs:3 vbp:29 pixel clock:32 MHz
HDMI:EDID established timing I/II bytes are 00 00 00
HDMI:EDID standard timings block x 8: 0x0101 0101 0101 0101 0101 0101 0101 0101
HDMI:EDID adding mandatory support for DMT (4) 640x480p @ 60Hz
HDMI:EDID filtering formats with pixel clock > 162 MHz or h. blanking > 1023
HDMI:EDID no known preferred format has been set
HDMI:EDID filtering preferred group has been changed from Invalid to DMT
HDMI:EDID best score mode initialised to DMT (4) 640x480p @ 60 Hz with pixel clock 25 MHz (score 0)
HDMI:EDID best score mode is now DMT (4) 640x480p @ 60 Hz with pixel clock 25 MHz (score 36864)
HDMI:EDID preferred mode is updated to DMT (4) 640x480p @ 60 Hz with pixel clock 25200000 Hz
HDMI:EDID has only DVI support and no audio support
edid_parser exited with code 0

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

Re: 5.0" 40-pin TFT screen with Touch issue Pi 2

Post by adafruit2 »

you should use the config.txt in the tutorial, thats the only way we know to force the raspberry pi to 800x480

User avatar
vitafortis
 
Posts: 7
Joined: Wed Feb 11, 2015 8:10 pm

Re: 5.0" 40-pin TFT screen with Touch issue Pi 2

Post by vitafortis »

adafruit2 wrote:you should use the config.txt in the tutorial, thats the only way we know to force the raspberry pi to 800x480
Do you have a link to the tutorial that worked for you? I'm looking and I'm not having any luck finding it.


User avatar
vitafortis
 
Posts: 7
Joined: Wed Feb 11, 2015 8:10 pm

Re: 5.0" 40-pin TFT screen with Touch issue Pi 2

Post by vitafortis »

Thanks. As a note, I hooked up my satellite TV to the screen, and it worked no problem.

Hopefully this config.txt works.

Thanks again for everything guys.

The tutorial linked did not work, and actually made it worse. I did solve it, however, using the below.

Using this thread here: http://www.raspberrypi.org/forums/viewt ... 28&t=97417 I was lead to go to:
http://www.raspberrypi.org/forums/viewt ... 01#p227301

By using the below config.txt, I was able to use the full resolution.

Code: Select all

# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=0
#overscan_right=0
#overscan_top=0
#overscan_bottom=0

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=800
#framebuffer_height=480

# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
#hdmi_mode=1

hdmi_cvt=800 480 60 1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

start_x=1
gpu_mem=128

max_usb_current=1


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

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