Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drm mode fails to draw on H616 processor #271

Open
danielwalton opened this issue Feb 16, 2023 · 3 comments
Open

drm mode fails to draw on H616 processor #271

danielwalton opened this issue Feb 16, 2023 · 3 comments
Labels

Comments

@danielwalton
Copy link

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
Copy link
Member

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

@leiflm
Copy link
Contributor

leiflm commented Feb 17, 2023

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
Copy link

stale bot commented Apr 20, 2023

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.

@stale stale bot added the stale label Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants