How to rotate screen with DRM Backend?


What MCU/Processor/Board and compiler are you using?

Linux with DRM backend.

What LVGL version are you using?


What do you want to achieve?

Rotate the whole screen.

What have you tried so far?

lv_display_set_rotation(disp, LV_DISPLAY_ROTATION_270) has been called after lv_linux_drm_set_file(), but not working!

Code to reproduce

lv_display_t* disp = lv_linux_drm_create();
lv_linux_drm_set_file(disp, '/dev/dri/card0', -1);
lv_display_set_rotation(disp, LV_DISPLAY_ROTATION_270);