[Rock 5B] MIPI DSI rotate panel

I am testing the 10.1-inch display panel on my Rock 5B, and everything is fine.
Due to the CSI camera and Panel layout (i want the camera on top of the panel) i need to rotate the panel 270º (no Desktop).

  • Rotating the panel with:

    echo 2 | sudo tee /sys/class/graphics/fbcon/rotate_all

    works only for FB, drm still has the same layout.

Reading here and there, i found a possible fix, passing a kernel command line like this:

   video=card0-DSI-1,rotate=270 or  video=DSI-1,rotate=270

should work, but it does nothing to kernel 5.10.110. I can see there is support for rotation but i haven’t found a solution yet. Then there is the Touchscreen to rotate.

Does anyone know how to rotate drm at boot (or after boot)?

Was not 270º but 180º, aka upside down.:grinning:

Here is the solution for the FB and DRM upside down (180º) and also the touchscreen (180º):

video=DSI-1:800x1280,panel_orientation=upside_down

Happy New Year!!!

PS; Weston & TS works upside down but KMS/DRM does not! so not a real solution for my case.

1 Like