lvgl / lv_drivers

TFT and touch pad drivers for LVGL embedded GUI library
https://docs.lvgl.io/master/porting/index.html
MIT License
290 stars 309 forks source link

drm mode fails to draw on H616 processor #271

Open danielwalton opened 1 year ago

danielwalton commented 1 year ago

I can't get drm mode to work within lvgl on my SBC (Orange Pi Zero 2).

This example works fine: https://github.com/dvdhrm/docs/blob/master/drm-howto/modeset-atomic.c

However only fbdev seems to work with lvgl.

Here is how I'm initializing it. The screen flashes, then I'm back in the console.

` drm_init(); lv_disp_draw_buf_init(&disp_buf, buf, buf2, DISP_BUF_SIZE);

/*Initialize and register a display driver*/
disp_drv.draw_buf = &disp_buf;
disp_drv.flush_cb = drm_flush;
disp_drv.hor_res = 800;
disp_drv.ver_res = 480;
disp_drv.full_refresh = true;
lv_disp_drv_register(&disp_drv);`
kisvegabor commented 1 year ago

I cc @superna9999 and @leiflm who contributed the DRM driver. Could you take lake look at this issue?

leiflm commented 1 year ago

I am sorry. I am currently not using lvgl.

Maybe using DRM environment variables to debug will help you to find precisely what goes wrong.

@danielwalton In case you are addressing the wrong device, you can use the environment variable DRM_CARD to specify a different one.

Good luck!

stale[bot] commented 1 year ago

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.