Skip to content

Commit 07fea81

Browse files
committed
feat(drm): automatically find drm device path if env var is not set
1 parent 589c9f2 commit 07fea81

File tree

1 file changed

+1
-1
lines changed
  • src/lib/display_backends

1 file changed

+1
-1
lines changed

src/lib/display_backends/drm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ int backend_init_drm(backend_t *backend)
8686
*/
8787
static lv_display_t *init_drm(void)
8888
{
89-
const char *device = getenv_default("LV_LINUX_DRM_CARD", "/dev/dri/card0");
89+
const char *device = getenv_default("LV_LINUX_DRM_CARD", lv_linux_drm_find_device_path());
9090
lv_display_t * disp = lv_linux_drm_create();
9191

9292
if (disp == NULL) {

0 commit comments

Comments
 (0)