Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4871

Troubleshooting • Re: 5-Inch Touch Screen Display

$
0
0
I had some time tonight and have the following advice.

Start off using a keyboard and mouse ...

As suggested by aBUGSworstnightmare:
Edit /boot/firmware/cmdline.txt and the following to the line. Make sure that it remains one single line of text.

Code:

video=HDMI-A-1:800x480M@60D
This assumes that you are plugging the display into the HDMI port closest to the power input on the Raspberry Pi 4.

Reboot and then login to the desktop. If you can get it, run Preferences -> Screen Configuration
I couldn't get to that menu at first and so ran raindrop from a terminal.

From Screen -> HDMI-A-1 set the resolution to 800x480 and set the Orientation to the rotation that you require.

For the touch screen. Edit /boot/firmware/config.txt and add one of the following lines to the end of the file, depending on which rotation you require.

Normal orientation:

Code:

dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
90 degree rotation:

Code:

dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
180 degree rotation:

Code:

dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
270 degree rotation:

Code:

dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
What is missing? Calibration of the touch screen. I don't use a touch screen myself and form my quick search of the internet I couldn't work out how to calibrate a touch screen using Wayland.You could always switch to X11 using sudo raspi-config and navigating to Advance Options -> Wayland and choosing X11.

Then install xinput-calibrator

Code:

sudo apt install xinput-calibrator
And run xinput_calibrator

I tried this myself, but it didn't work so well. I hope this helps, it is about as far as I can go.

Statistics: Posted by AndyD — Wed Nov 27, 2024 10:25 am



Viewing all articles
Browse latest Browse all 4871

Trending Articles