KMS (Kernel Mode Setting) mode lets RetroArch use the OpenGL or Vulkan driver outside Xorg/Wayland, running straight in the virtual terminal. The official documentation describes it as a fairly obscure feature that is very powerful in a console scenario.

Documented Requirements

  • MESA version 9.0+ (including dev package)
  • Use of Vulkan requires the KHR_Display extension, present from Mesa 21 onwards
  • libgbm 9.0+, libdrm (including dev package)
  • An open source driver which supports KMS
  • Configuration with the flags "--enable-kms" and "--enable-egl"

Build Configuration Flags

The documented requirements list configuring with the flags "--enable-kms" and "--enable-egl". The source documentation presents these as the flags to pass during configuration before compiling RetroArch.

TEXT
./configure --enable-kms --enable-egl

Checking That KMS Support Was Built In

After compiling RetroArch, the documentation states that running the feature list command should show KMS/EGL context support reported as enabled. The expected output is shown below.

TEXT
retroarch --features

KMS:
	KMS/EGL context support: yes

Expected Startup Behavior

According to the documentation, if KMS mode is working correctly, RetroArch should start up without any desktop environment, straight from the terminal.

Scope and Limitations

The documentation lists these prerequisites and checks but does not describe troubleshooting outcomes, version-specific behavior beyond the stated Mesa and extension requirements, or results on specific hardware combinations. No independent hands-on verification has been performed for this summary.

Reference table · Scroll horizontally to see all columns.

AspectDocumented detail
Mode purposeUse the OpenGL or Vulkan driver outside Xorg/Wayland, running straight in the virtual terminal
MESAVersion 9.0+ including dev package
Vulkan requirementKHR_Display extension, present from Mesa 21 onwards
Librarieslibgbm 9.0+, libdrm including dev package
DriverOpen source driver which supports KMS
Build flags--enable-kms and --enable-egl
Feature checkretroarch --features reports KMS/EGL context support: yes
Expected startupRetroArch should start without any desktop environment, straight from the terminal
AI-generated editorial illustration: RetroArch KMS Mode: Source Guide to Running Outside Xorg and WaylandView full image
AI illustration — not a game screenshot
AI-generated editorial illustration; not a game screenshot.
AI-generated illustration
Evidence and publication details

Sources & references

Published .

RetroArch: kms mode — official gaming software documentation https://raw.githubusercontent.com/libretro/docs/master/docs/guides/kms-mode.mdRetrieved Oct 8, 2026

Something doesn’t match your setup?

Suggest a correction