7" Touchscreen is sometimes detected and sometimes it is not

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

7" Touchscreen is sometimes detected and sometimes it is not

Post by /RaspberryPi »

I have this 7" touchscreen from AdaFruit (https://www.adafruit.com/product/2718) connected to a Raspberry PI 4. The problem I am having is sometimes the screen is detected and sometimes it is not. When it is detected all works well.
If it isn't detected I have to do sudo shutdown -r now until it is detected (tedious to say the least). I would say it is detected about 1/3 of the time. Usually a few reboots is enough to get it back.
Looking at the X Windows logs (/var/log/Xorg.0.log) doesn't reveal much information regarding why it isn't detected. Just indicates "no screens found".
Here is the log for when the screen isn't detected:
https://pastebin.com/WyH2gxwz
Here is the log for when it is detected:
https://pastebin.com/RZ0SQHTD
Since the screen is detected fine sometimes, and not other times there is almost certainly a race condition occurring. Maybe X Windows needs to start after some other process and right now sometimes it does and sometimes it doesn't? Does anyone have any insight into this issue and what I could do make screen detection more reliable?
EDIT: Here is the contents of my /etc/X11/xorg.conf file:
Section "Device" Identifier "Allwinner A10/A13 FBDEV" Driver "fbturbo" Option "fbdev" "/dev/fb0" Option "SwapbuffersWait" "true" EndSection
submitted by /u/wildjokers
[link] [comments]

More...
Post Reply

Return to “Raspberry Pi Forum”