craigm71
Posts: 6
Joined: Sat Jul 08, 2017 12:11 pm

Raspberry Pi 7 inch screen set to portat mode / Calabration issues

Wed Jul 26, 2017 12:28 am

Hello everyone! I have recently dived into the Raspberry world and really enjoying messing with the board and software.

I have a problem I have tried to fix for over a week and I have finally decided to see if anyone can help me here.

I have a Raspberry Pi 3 (Model 3) with the seven inch touch screen

https://www.amazon.com/gp/product/B0153 ... UTF8&psc=1

So what I need to do is have the screen in portrait mode (so the USB ports are facing down)

Once I turn the screen to portrait mode (Physically), I add the code:

Install xinput:

sudo apt-get install xinput

Rotate the display by editing config.txt:

sudo nano /boot/config.txt

 .. add this to the buttom of the file: # Touchscreen Portrait Mode

display_rotate=1

Use Ctrl X, Yes to Save

Create a script to rotate the touchscreen:

nano /home/pi/touch_rotate.sh

xinput --set-prop 'FT5406 memory based driver' 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1

chmod +x touch_rotate.sh

sudo nano ~/.config/lxsession/LXDE-pi/autostart

@/home/pi/touch_rotate.sh

I reboot the system and the OS now displays in Portrait mode!

I calibrate by going to:

sudo apt-get -y install xinput-calibrator

I get the calibration icon in the menu and I get the screen with four points to press on and get this:

Section "InputClass"

Identifier "calibration"

MatchProduct "FT5406 memory based driver"

Option "MinX" "54658"

Option "MaxX" "54294"

Option "MinY" "19947"

Option "MaxY" "19947"

Option "SwapXY" "1" # unless it was already set to 1

Option "InvertX" "0" # unless it was already set

Option "InvertY" "0" # unless it was already set

EndSection

I make a file then called /usr/share/X11/xorg.conf.d/01-input.conf and add the above items in there and save.

I reboot and get the same issue with the mouse pointer going to opposite direction...

So basically :

If I drag my finger Up, the pointer goes Right
If I drag my finger Down, the pointer goes left
If I drag my finger Left, the pointer goes Up
If I drag my finger Right, the pointer goes Down

I have been to several sites trying to figure this out but I it never fixes itself!

Below are links I have already went to for help:

1. viewtopic.php?f=44&t=143581&p=1179658&h ... n#p1179658

2. https://www.jeffgeerling.com/blog/2016/ ... controller

3. https://humanizing.tech/diy-raspberry-p ... 7165942bb0

4. viewtopic.php?f=91&t=78805

5. https://www.youtube.com/watch?v=kc4xil3uqDQ

6. http://www.circuitbasics.com/raspberry- ... -rotation/

I hope there is an easy fix and I am just not quick enough to figure it out, any help would be appreciated!!!

Return to “Troubleshooting”