Waveshare 5 inch LCD touchscreen - apichlinski - 01-11-2022
Hi,
Today I bought OpenAuto Pro and write to SD card. First run and unfortunetly touch of my screen dosen't work.
After I pluged keyboard and mouse and installed official drivers from waveshare's github i had boot loop - I saw only colorfull rectangle on the screen.
My hardware:
Raspberry Pi 4B 2GB Ram
Waveshare 5 inch LCD touchscreen (B) rev 2.1
RE: Waveshare 5 inch LCD touchscreen - Daniel_BlueWave - 01-11-2022
It means that you messed up with the configuration of the screen. Re-flash the image and follow official instruction of the screen manufacturer.
Note that you are missing required equipment for proper work of the OAP (see product description, system requirements)
RE: Waveshare 5 inch LCD touchscreen - apichlinski - 01-12-2022
Thank you for your note, I added missing required equpiment.
What about my problem - touch still doesn't work.
I prepared my SD card, added following settings to config.txt:
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
hdmi_drive=1
# Custom power settings
max_usb_current=1
After this I cloned Waveshare LCD Drivers repository to /home/pi directory, and:
chmod +x ./LCD-show/LCD5-show
When i run RPi, and successfully connected to wifi i ran LCD5-show script.
Th is output of LCD5-show script:
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
alsa-base gstreamer0.10-alsa gstreamer0.10-plugins-base libdrm-dev
libdrm-etnaviv1 libdrm-exynos1 libdrm-freedreno1 libdrm-omap1 libdrm-tegra0
libglvnd-core-dev libglvnd-dev libgstreamer-plugins-base0.10-0
libgstreamer0.10-0 libllvm8 libmicrodns0 libopengl0 libxcb-dri2-0-dev
libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev
libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev
libxdamage-dev libxfce4util-bin libxfce4util-common libxfce4util7
libxfconf-0-2 libxfixes-dev libxshmfence-dev libxxf86vm-dev lxplug-volume
mesa-common-dev pimixer point-rpi python-colorzero python3-pyperclip
rpi-eeprom-images x11proto-damage-dev x11proto-fixes-dev
x11proto-xf86vidmode-dev xfconf
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
xserver-xorg-input-evdev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 117 kB of archives.
After this operation, 170 kB of additional disk space will be used.
Get:1 http://ftp.icm.edu.pl/pub/Linux/distributions/raspbian/raspbian buster/main armhf xserver-xorg-input-evdev armhf 1:2.10.6-1+b1 [117 kB]
Fetched 117 kB in 1s (174 kB/s)
Selecting previously unselected package xserver-xorg-input-evdev.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 138113 files and directories currently installed.)
Preparing to unpack .../xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb ...
Unpacking xserver-xorg-input-evdev (1:2.10.6-1+b1) ...
Setting up xserver-xorg-input-evdev (1:2.10.6-1+b1) ...
Processing triggers for man-db (2.8.5-2) ...
Selecting previously unselected package xinput-calibrator.
(Reading database ... 138123 files and directories currently installed.)
Preparing to unpack .../xinput-calibrator_0.7.5-1_armhf.deb ...
Unpacking xinput-calibrator (0.7.5-1) ...
Setting up xinput-calibrator (0.7.5-1) ...
Processing triggers for gnome-menus (3.31.4-3) ...
Processing triggers for desktop-file-utils (0.23-4) ...
Processing triggers for mime-support (3.62) ...
Processing triggers for man-db (2.8.5-2) ...
Reading package lists...
Building dependency tree...
Reading state information...
cmake is already the newest version (3.16.3-3~bpo10+1).
The following packages were automatically installed and are no longer required:
alsa-base gstreamer0.10-alsa gstreamer0.10-plugins-base libdrm-dev
libdrm-etnaviv1 libdrm-exynos1 libdrm-freedreno1 libdrm-omap1 libdrm-tegra0
libglvnd-core-dev libglvnd-dev libgstreamer-plugins-base0.10-0
libgstreamer0.10-0 libllvm8 libmicrodns0 libopengl0 libxcb-dri2-0-dev
libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev
libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev
libxdamage-dev libxfce4util-bin libxfce4util-common libxfce4util7
libxfconf-0-2 libxfixes-dev libxshmfence-dev libxxf86vm-dev lxplug-volume
mesa-common-dev pimixer point-rpi python-colorzero python3-pyperclip
rpi-eeprom-images x11proto-damage-dev x11proto-fixes-dev
x11proto-xf86vidmode-dev xfconf
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/LCD-show/rpi-fbcp/build
Scanning dependencies of target fbcp
[ 50%] Building C object CMakeFiles/fbcp.dir/main.c.o
[100%] Linking C executable fbcp
[100%] Built target fbcp
LCD configure 0
reboot now It looks like the installation was flawless.
But after reboot touch still doesn't work.
in /usr/share/X11/xorg.conf.d/ i have following files:
10-evdev.conf
10-quirks.conf
40-libinput.conf
45-evdev.conf
Can someone told me what should I check now?
RE: Waveshare 5 inch LCD touchscreen - Daniel_BlueWave - 01-13-2022
The OpenAuto Pro is based on regular Raspberry PI OS. It mean that there is no change in the configuration procedure of your screen given my manufacturer.
Procedure for your screen looks quite standard: https://www.waveshare.com/wiki/5inch_HDMI_LCD_(B)_(Firmware_Rev_2.1)_User_Manual
Try to contact Waveshare support in case you have issue with their product.
RE: Waveshare 5 inch LCD touchscreen - apichlinski - 01-13-2022
Everything works great. I had to use dsi / i2c instead of the usb cable
RE: Waveshare 5 inch LCD touchscreen - Daniel_BlueWave - 01-13-2022
Great to hear that. Thanks for the feedback.
|