Commit 2645e0aa authored by Adam Jackson's avatar Adam Jackson 🦃

Refuse to run on UEFI machines

No possible good can come of this.

v2: Check for .../efi-framebuffer.0 ("is there an EFI framebuffer")
instead of /sys/firmware/efi ("is this an EFI machine"). Suggested by
Peter Jones.
Reviewed-by: Peter Jones's avatarPeter Jones <>
Signed-off-by: Adam Jackson's avatarAdam Jackson <>
parent 36662233
......@@ -43,7 +43,7 @@
#include <string.h>
#include <unistd.h>
#include "vesa.h"
/* All drivers initialising the SW cursor need this */
......@@ -450,7 +450,14 @@ VESAPciProbe(DriverPtr drv, int entity_num, struct pci_device *dev,
intptr_t match_data)
ScrnInfoPtr pScrn;
#ifdef __linux__
if (access("/sys/devices/platform/efi-framebuffer.0", F_OK) == 0) {
ErrorF("vesa: Refusing to run on UEFI\n");
return FALSE;
pScrn = xf86ConfigPciEntity(NULL, 0, entity_num, NULL,
if (pScrn != NULL) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment