LCD-show icon indicating copy to clipboard operation
LCD-show copied to clipboard

Touch screen is backwards

Open nickm324 opened this issue 5 years ago • 17 comments

Installed on Raspbian Stretch and display works but touch screen is backwards and flipped. If I touch and move up and down the cursor moves left and right, if I move left and right it moves up and down.

And the cursor location when touching the screen is opposite where you touch. If I touch screen in upper left corner the cursor jumps to bottom left hand corner.

nickm324 avatar Aug 25 '18 02:08 nickm324

Having the same problem here.

MrEdinLaw avatar Sep 07 '18 12:09 MrEdinLaw

I did come up with a solution to this issue but I would have to look at my Pi to see what I did exactly if you are still having the issue let me know and we can compare our configs. When I get time I will post my solution here anyway in case someone else has the same problem.

nickm324 avatar Sep 07 '18 18:09 nickm324

same issue here. Pls let me know what you have done to resolve Thanks!!

mtbsteve avatar Sep 08 '18 12:09 mtbsteve

OK I finally found the solution. Since Rasperian “Jessi” version the kernel / img uses libinput as it's mouse drivers instead of the old evdev, which ignores 99-calibration.conf swapaxis options. The LCD touchscreen drivers as provided on this git still relies on evdev. See here how to resolve it: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=179477#p1163460

@goodtft can you please fix this in the code. Thanks!

mtbsteve avatar Sep 09 '18 15:09 mtbsteve

On a raspberry pi make sure the hostname is exactly raspberrypi. Eg your prompt is pi@raspberrypi If not, correct it in raspi-config under network options.

After this, run sudo ./LCDxx-show again

At least this worked for me with a raspberry pi 3b and a Velleman VMP400 screen.

andriesruiter avatar Sep 11 '18 17:09 andriesruiter

Unfortunately this has nothing to do with the hostname.

nickm324 avatar Sep 12 '18 02:09 nickm324

Hi all, please help to check if this problem still happened in the latest driver on github. Thanks!

goodtft avatar Sep 28 '18 02:09 goodtft

Installed on Raspbian Stretch and display works but touch screen is backwards and flipped. If I touch and move up and down the cursor moves left and right, if I move left and right it moves up and down.

And the cursor location when touching the screen is opposite where you touch. If I touch screen in upper left corner the cursor jumps to bottom left hand corner.

lcd_rotate=2 is the solution. sudo nano /boot/config.txt Add one of the following lines to the bottom of the file :

display_rotate=0 display_rotate=1 display_rotate=2 display_rotate=3 0 is the normal configuration. 1 is 90 degrees. 2 is 180 degress. 3 is 270 degrees. If you are using the Official Raspberry Pi touch screen you can use “lcd_rotate” rather than “display_rotate”. Save the file by using CTRL-X, Y then ENTER. http://osoyoo.com/2016/05/26/osoyoo-lcd-touch-screen-for-raspberry-pi-installation-guide/

and lastly you will need this part http://www.circuitbasics.com/raspberry-pi-touchscreen-calibration-screen-rotation/ its all reading and maybe a 10 min vid to watch you will have it done in 30 min :)

netty2018 avatar Oct 06 '18 19:10 netty2018

Hi all, please help to check if this problem still happened in the latest driver on github. Thanks!

I just got my mpi3508 display and downloaded the driver today, and I'm getting this issue

etherialice avatar Oct 09 '18 21:10 etherialice

Hi all, please help to check if this problem still happened in the latest driver on github. Thanks!

I just got my mpi3508 display and downloaded the driver today, and I'm getting this issue

which OS are you using(UBUNTU,KALI,RASBIAN....)? we can not reproduce this issue.

goodtft avatar Oct 17 '18 09:10 goodtft

Hi all, please help to check if this problem still happened in the latest driver on github. Thanks!

I just got my mpi3508 display and downloaded the driver today, and I'm getting this issue

etherialice avatar Oct 18 '18 14:10 etherialice

http://www.lcdwiki.com/3.5inch_HDMI_Display-B

2018-10-20

goodtft

发件人:etherialice [email protected] 发送时间:2018-10-18 22:28 主题:Re: [goodtft/LCD-show] Touch screen is backwards (#96) 收件人:"goodtft/LCD-show"[email protected] 抄送:"goodtft"[email protected],"Mention"[email protected]

Hi all, please help to check if this problem still happened in the latest driver on github. Thanks! I just got my mpi3508 display and downloaded the driver today, and I'm getting this issue — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

goodtft avatar Oct 20 '18 02:10 goodtft

To solve the Problem:

sudo apt-get install xserver-xorg-input-evdev sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf

Dtrieb avatar Dec 26 '18 18:12 Dtrieb

To solve the Problem:

sudo apt-get install xserver-xorg-input-evdev sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf

Confirmed this is the solution. I just installed Stretch and the latest drivers from this repo and all is good. I did have to make sure to include dependencies however, so add the "-f" if you need it.

ramiroestrada avatar Jan 27 '19 04:01 ramiroestrada

All I had to do to fix this for me was edit the file /etc/X11/xorg.conf.d/99-calibration.conf and change the line that said invert axis to 0 (false/off)

Ricardo-Osorio avatar Jul 02 '20 13:07 Ricardo-Osorio

As of 6 November 2021, I can confirm @Ricardo-Osorio 's comment. All I required was playing with "SwapAxes" and "rotate.sh" command in this repo

80avin avatar Nov 06 '21 08:11 80avin

I can confirm @Ricardo-Osorio 's comment that as of 6 Nov 2021, all I needed was changing "SwapAxes" in /etc/X11/xorg.conf.d/99-calibration.conf to 1 and sudo ./rotate.sh 180

80avin avatar Nov 06 '21 08:11 80avin