Raspberry Pi Official Display does not work properly by default, so how can I make this fix stick with updates?

  • Hiya! So I was having a problem with the Pi's official display not working with a pi4 with LibreELEC. When you boot the system, the screen flashes to the splash screen for a second then goes blank and does not work. I have connected the pi up to a hdmi display and it was working flawlessly. After a lot of digging around I found some old threads like this one with the same problem and its been around for a few years.


    I have found a fix but it can be temporary as it involves editing the distroconfig.txt file on the boot partition.


    The line dtoverlay=vc4-kms-v3d,cma-512 has to be changed to dtoverlay=vc4-fkms-v3d,cma-512


    for the rpi's official display to work correctly but as mentioned at the top of the file to not change it as it will be overwritten with updates. So my question is, how can I make a change to the distroconfig file that WILL stick with updates?

  • Keep distroconfig.txt as it is, just add dtoverlay=vc4-kms-dsi-7inch to the end of config.txt.


    so long,


    Hias

  • Keep distroconfig.txt as it is, just add dtoverlay=vc4-kms-dsi-7inch to the end of config.txt.


    so long,


    Hias

    Thanks for the reply!


    What you said to do works, the screen turns on and works fine, however, is there a way to flip the screen upside down? (I have an enclosure) I have looked into lcd_rotate but it doesn't work. The screen goes blank like before.

  • Flipping the screen upside down should work by setting the "panel_orientation=upside_down" video option in cmdline.txt but IIRC kodi still ignores it. Read more about it here:


    so long,


    Hias