From 05aa4057d9369165f4f49b5dcc9064b4bfdfe9e5 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Thu, 10 Mar 2022 08:22:21 +0100 Subject: [PATCH] Refuse to run on machines with simpledrmfb, too References: bsc#1193539 simpledrm framebuffer takes over EFI and manages the graphics. Running vesa driver on those would confuse the system and result in a bad interaction. Just bail out like efifb and other cases. Signed-off-by: Takashi Iwai --- src/vesa.c | 1 + 1 file changed, 1 insertion(+) Index: xf86-video-vesa-2.6.0/src/vesa.c =================================================================== --- xf86-video-vesa-2.6.0.orig/src/vesa.c +++ xf86-video-vesa-2.6.0/src/vesa.c @@ -479,7 +479,8 @@ VESAPciProbe(DriverPtr drv, int entity_n ScrnInfoPtr pScrn; #ifdef __linux__ - if (VESAFileExistsPrefix("/dev", "fb") || + if (VESAFileExistsPrefix("/dev", "fb") || + access("/sys/devices/platform/simple-framebuffer.0", F_OK) == 0 || VESAFileExistsPrefix("/dev/dri", "card")) { ErrorF("vesa: Refusing to run, Framebuffer or dri device present\n"); return FALSE;