diff --git a/modules/video_output/kms.c b/modules/video_output/kms.c index 136ca5e45436a15125dba70b6b5ca29c5d306e46..7de9033772f5a728c15cd014ca8b4db6ed33523e 100644 --- a/modules/video_output/kms.c +++ b/modules/video_output/kms.c @@ -53,7 +53,7 @@ #define DEVICE_TEXT "Framebuffer device" #define DEVICE_LONGTEXT \ - "Framebuffer device to use for rendering (usually /dev/dri/card0)." + "Framebuffer device to use for rendering (usually /dev/dri/card0 or /dev/drm0)." #define KMS_CONNECTOR_TEXT "DRM Connector" #define KMS_CONNECTOR_LONGTEXT \ @@ -437,7 +437,8 @@ vlc_module_begin () set_subcategory(SUBCAT_VIDEO_VOUT) add_obsolete_string("kms") /* Since 4.0.0 */ - add_loadfile(KMS_DEVICE_VAR, "/dev/dri/card0", DEVICE_TEXT, DEVICE_LONGTEXT) + add_loadfile(KMS_DEVICE_VAR, DRM_DIR_NAME "/" DRM_PRIMARY_MINOR_NAME "0", + DEVICE_TEXT, DEVICE_LONGTEXT) add_string("kms-connector", "", KMS_CONNECTOR_TEXT, KMS_CONNECTOR_LONGTEXT) set_description("Linux kernel mode setting window provider")