Running SDL driver with drm


I’m using the SDL2 driver, and I want to use drm directly

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

NXP IMX8 Dual X plus

What LVGL version are you using?


What do you want to achieve?

Run the lvgl application with SDL2 driver using drm

What have you tried so far?

SDL2 with wayland and weston running, I can see the application running and interact with it. However for some reason it seems I don’t have 32bit colors.
But when I try to run the lvgl app with SDL driver using SDL_VIDEODRIVER="drm" ./my_app the application starts and is running, however nothing is shown on the screen.
If I do: SDL_VIDEODRIVER="wayland" ./my_app I can see the application running however with few colors.

Is there something missing?
Thank you.