DarkoSan
Posts: 4
Joined: Fri Mar 03, 2017 1:25 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Mon Apr 03, 2017 12:45 pm

fq1888 I’ve tired the solution in https://github.com/goodtft/LCD-show

What makes it all running is the following step:
sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb

I’ve tested in on my current setup:
Raspberry Pi 3 Model B
KeDei 3.5" HDMI 3.5”
Raspbian 2017-03-02

Currently and hitting another problem: Kodi 15.2 touch displacement:
Graphically it is represented here:
Image

I’ve tried configuring such file without success:
http://kodi.wiki/view/Advancedsettings.xml#touchscreen

Some ideas? Did someone have Kodi working with this touchscreen?

lukusis
Posts: 2
Joined: Thu Apr 06, 2017 4:46 am

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Thu Apr 06, 2017 4:49 am

Hi,

I followed the steps in the O.P. However there is no touch functionality (i have the Sainsmart 5" touch model with XPT2046 on a RPi3 running Kali).

Any ideas?

Much appreciated.


sugarcoded
Posts: 2
Joined: Thu May 11, 2017 2:54 am

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Thu May 11, 2017 3:06 am

if using the latest version of raspbian (after march 2017) with raspberry pi 3:
- hold shift at recovery screen
- press e on keyboard to access config
- tab to cmdline.txt
- change root=/dev/mmcblk0p2 to root=/dev/mmcblk0p7
- reboot

Roadie-z
Posts: 1
Joined: Thu May 11, 2017 4:32 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Thu May 11, 2017 5:11 pm

I've purchased a 3.5" 480x320 touch screen display (a waveshare clone). Installed using both the waveshare image and installing drivers on a clean Jessie (2017-04-10). In both cases, the display works perfectly, but the touch screen has the same problem.

The display senses the touch, but it is stuck to the edge of the screen. The cursor can sense and follow x-axis (horizontal) movement, but the y-axis is always on one side (bottom, if rotation = 0) of the screen.

Does it look like a hardware or software issue?

TOKN59
Posts: 3
Joined: Thu Nov 06, 2014 4:00 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Mon May 15, 2017 8:16 pm

Hello, I just installed everything according to the instructions. The display I am using is a Geekcrit 3.5 inch Touch screen. When I reboot the LCD stays white. The display type is :

3.5inch RPi Display
480 X 320 pixel
XPT2046 Touch Controller

No version is mentioned. When I run the Calibrator it is shown on my HDMI screen, not on the LCD.

Any hints ?

Thanks for your help !

Tony

marsArtis
Posts: 4
Joined: Sun May 21, 2017 2:18 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Mon May 22, 2017 5:36 am

I tried your tip over a simple OCTOPI 0.1.3 distibution, but it's not working.

Maybe because it's not a complete distro.
What do you think?

Raspy Pi3 + Kumantech 3.5 XPT2046 480x320 TFT touch display

strike07
Posts: 1
Joined: Mon Jun 26, 2017 4:15 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Mon Jun 26, 2017 4:24 pm

!Warning!
To calibrate screen you also need xserver-xorg-input-evdev, else, the calibration is not apply!
for me maybe xserver-xorg-input-evdev was not installed by default (release 2017-06-21-raspbian-jessie.img)
So if your calibration not work, try to install this package :

Code: Select all

sudo apt-get install -y  xserver-xorg-input-evdev
and retry calibration ;)

pichardo
Posts: 2
Joined: Sun Jul 09, 2017 6:44 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Sun Jul 09, 2017 9:25 pm

I have a raspberry pi 3 B with a 32 GB SD card, therefore I am using NOOBS to install Raspbian and I am trying to configure a XPT2046 display, but I have tried a lot of things with no success so far, I always get a white screen in the LCD. I tried new and old instructions, tried Lite and Desktop, I tried installing the driver from waveshare and the OS becomes corrupted. I tried to install the image from waveshare in a 8GB partition in SD card, but it doesn't even boot. Any clue?

pichardo
Posts: 2
Joined: Sun Jul 09, 2017 6:44 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Sat Jul 15, 2017 1:22 am

pichardo wrote:I have a raspberry pi 3 B with a 32 GB SD card, therefore I am using NOOBS to install Raspbian and I am trying to configure a XPT2046 display, but I have tried a lot of things with no success so far, I always get a white screen in the LCD. I tried new and old instructions, tried Lite and Desktop, I tried installing the driver from waveshare and the OS becomes corrupted. I tried to install the image from waveshare in a 8GB partition in SD card, but it doesn't even boot. Any clue?
I finally was able to make it to work. I had to install a raspbian image from the vendor, it was a little outdated but anyway, I prefer that to nothing. Anything else failed. One more thing, I could not make dd to work to install the image, so I used Etcher. And if I upgrade raspbian, the screen stops working. I hope this helps others.

fundix
Posts: 3
Joined: Tue Aug 22, 2017 12:46 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Tue Aug 22, 2017 12:48 pm

roguejedi_x wrote:
Sat Feb 04, 2017 3:52 am
I can guarantee 100% that this works with Pi Zero. I am using it and it is performing flawlessly.
Hi have you some wiring diagram? I have display connected by cables, and I can't find working solution for touchpanel - display works cool, but touch panel not working.

fundix
Posts: 3
Joined: Tue Aug 22, 2017 12:46 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Tue Aug 22, 2017 1:00 pm

pavul wrote:
Thu Feb 02, 2017 3:42 pm
somebody knows if this lcd screens works with RPI ZERO?
display working but touch screen I can't came to work.

Jacks800
Posts: 1
Joined: Thu Aug 24, 2017 12:21 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Tue Aug 29, 2017 1:53 pm

Okey gus I just about had it.

I bought a Raspberry Pi 3 B two weeks ago and bought with a 5 inch LCD HDMI Touch screen. I did the steps as indicated with the CD I got and afterwards nothing happend. The screen displays perfectly but there is no touch functionality.

I tried all the options here on the Forum and non of them worked. I moved on and found a few other websites like these below:

https://github.com/CytronTechnologies/x ... spberry-Pi
https://www.jeffgeerling.com/blog/2016/ ... controller
https://www.root42.de/blog/?p=6

https://www.hackster.io/dotMorten/windo ... uch-44af19 - Here I actually got a response from the screen but only the left bottom corner. One time I actually had full controll on the touchscreen but then it disappeared again.

I then decided to move on to the evtest and tb-lib ect. There was a change and I could for a brief moment use the touch screen.

I made sure I bought the authentic versions of the touchscreen and the raspberry pi.

Does anyone of you guys have a clue to what can be the problem?

lucasgsantos
Posts: 2
Joined: Fri Nov 17, 2017 10:00 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Fri Nov 17, 2017 10:07 pm

I tried everything and keep getting the white screen. Who have more details about this touch controller?Image

lucasgsantos
Posts: 2
Joined: Fri Nov 17, 2017 10:00 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Sat Nov 18, 2017 3:52 am

I fixed my problem.
Did everything this article said, but used
dtoverlay=piscreen,speed=16000000,rotate=90
in /boot/config.txt
and changed #Option “fbdev” “/dev/fb0” to #Option “fbdev” “/dev/fb1” in /usr/share/X11/xorg.conf.d/99-fbturbo.conf
And to invert the axes
Option "TransformationMatrix" "1 0 0 0 -1 1 0 0 1" in etc/X11/xorg.conf.d/99-calibration.conf

vincentlou
Posts: 1
Joined: Mon Jan 08, 2018 10:21 am

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Mon Jan 08, 2018 11:14 am

Hello,
Same config for me XPT2046 480x320 on Jessie
and display works :) Thanks lucasgsantos !

Still some little issues

- the left-right axe is inverted. (I have try lot of calibration config found in this thread)
- I don't know how can I have the xvkb at startup , I can't login graphically

My config :
/boot/config.txt

Code: Select all

dtoverlay=ads7846,penirq=25,speed=10000,penirq_pull=2,xohms=150
/etc/X11/xorg.conf.d/99-calibration.conf

Code: Select all

Section "InputClass"
        Identifier      "calibration"
        MatchProduct    "ADS7846 Touchscreen"
        Option  "Calibration"   "3936 227 268 3880"
        Option  "SwapAxes"      "0"
EndSection

manmaha
Posts: 2
Joined: Tue Jan 09, 2018 6:03 am

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Tue Jan 09, 2018 6:18 am

Hi,
Thanks for the extremely clear post on the topic - i followed your instructions but only got a white screen.
This is my LCD screen http://spotpear.com/index.php/spotpear- ... 4-inch-lcd
Is there a way that I could check if the screen is connecting to the Pi?
Also, could it be a a NOOBS issue? I have installed Raspbian Stretch from NOOBS
Many thanks

Baldman
Posts: 1
Joined: Mon Jan 29, 2018 1:40 am

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Mon Jan 29, 2018 1:44 am

Hi all,
I had the same issue but this worked straight away for me, touch screen and all.

https://github.com/Elecrow-keen/Elecrow ... t-Keyboard

Hope this helps.

Return to “Interfacing (DSI, CSI, I2C, etc.)”

Who is online

Users browsing this forum: Arjan and 14 guests