How to get FYSETC HDMI5 HDMI Touch Screen 5INCH DSI Screen MIPI LCD V1.1 work on Raspberry PI
Vendor suggests to use vc4-kms-dsi-5inch
overlay, but this provides a text-only mode as DRI isn't working.
# Disable legacy
#dtoverlay=vc4-kms-v3d
#max_framebuffers=2
dtoverlay=vc4-kms-dsi-5inch
Use vc4-fkms-v3d
instead:
dtoverlay=vc4-fkms-v3d
To rotate a screen in text-only mode /boot/firmware/cmdline.txt
add param:
fbcon=rotate:2
rotate:0
= normalrotate:1
= 90 degreesrotate:2
= 180 degreesrotate:3
= 270 degrees
Write a value from 0
till 255
to /sys/class/backlight/rpi_backlight/brightness
# Turn off
sudo echo 0 >> /sys/class/backlight/rpi_backlight/brightness