Skip to content

Instantly share code, notes, and snippets.

@x1unix
Created April 6, 2025 04:44
Show Gist options
  • Save x1unix/fe81ec0028efbaea2fa53efae3cf902c to your computer and use it in GitHub Desktop.
Save x1unix/fe81ec0028efbaea2fa53efae3cf902c to your computer and use it in GitHub Desktop.
How to get "FYSETC HDMI5 HDMI Touch Screen 5INCH DSI Screen MIPI LCD V1.1" display working

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

Solution

Use vc4-fkms-v3d instead:

dtoverlay=vc4-fkms-v3d

Misc

Screen Rotation

To rotate a screen in text-only mode /boot/firmware/cmdline.txt add param:

fbcon=rotate:2
  • rotate:0 = normal
  • rotate:1 = 90 degrees
  • rotate:2 = 180 degrees
  • rotate:3 = 270 degrees

Backlight

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment