X.Org Server

Also known as: Xorg

On this page 7

X.Org Server is the reference implementation of the X Window System display server, the program that owns the screen, keyboard and mouse and lets client applications draw windows through the X11 protocol. For roughly two decades it was the default graphics layer of the Linux desktop and of most BSD and other Unix-like systems, and its binary, commonly called Xorg, still runs underneath many desktop environments today.

The project is maintained by the X.Org Foundation and hosted within the freedesktop.org infrastructure. It began in 2004 as a fork of XFree86, after a license change in that project pushed distributions to switch. Today the server is in maintenance mode: new feature development has largely moved to Wayland, while X.Org Server receives security fixes, and its code lives on in XWayland, which runs X11 applications inside Wayland sessions.

How X.Org Server works in the display stack

X.Org Server follows a client-server model in which the server runs on the machine with the display and applications act as clients. Clients connect over a Unix domain socket or, historically, over TCP, and send requests such as creating a window or drawing a rectangle. The server returns events such as key presses, pointer motion and exposure notifications.

A key design choice of X11 is that the server does not decide window placement or decoration. That job belongs to a separate client called the window manager, and on modern desktops a compositing manager that renders windows into off-screen buffers and combines them into the final image. This separation made X very flexible but also added round trips and latency.

The table below lists the main components that cooperate with X.Org Server in a typical Linux session.

ComponentRoleTypical examples
Xorg binaryOwns input and output, serves X11 clientsXorg started by a display manager
DDX driversDevice-dependent code for graphics hardwaremodesetting, amdgpu, nvidia
Input driversTranslate kernel input eventslibinput, evdev, synaptics
Window managerPlaces and decorates windowsi3, dwm, Openbox, KWin
CompositorCombines window buffers into one imagepicom, Mutter, KWin
Client librariesEncode requests in the X11 protocolXlib, XCB, GTK, Qt
Components around X.Org Server

Drivers, extensions and configuration

Modern X.Org Server delegates most hardware work to the kernel. Kernel mode setting (KMS) and the Direct Rendering Manager (DRM) handle display modes and GPU memory, while the generic modesetting driver with Glamor acceleration works on most current Intel, AMD and many other GPUs. Vendor DDX drivers remain mainly for proprietary stacks such as the NVIDIA driver.

Functionality beyond the core protocol comes from X extensions negotiated at connection time. The most important ones for a contemporary desktop are listed below.

ExtensionPurposePractical effect
RandRResize, rotate and configure outputsMulti-monitor setup with xrandr
CompositeRedirect windows to off-screen buffersTransparency, shadows, tear-free effects
XInput 2Multi-device and touch inputTouchscreens, smooth scrolling
GLX and DRI3Direct GPU rendering for clientsHardware-accelerated OpenGL and Vulkan
PresentSynchronized buffer presentationReduced tearing and better frame pacing
XKBKeyboard layouts and optionsPer-layout mapping and key behavior
Important X11 extensions supported by X.Org Server

Configuration is mostly automatic thanks to udev hotplug and built-in defaults. When manual settings are needed, administrators place small snippets in /etc/X11/xorg.conf.d/ rather than writing a full xorg.conf. Errors and detected hardware are recorded in the Xorg log, usually /var/log/Xorg.0.log or ~/.local/share/xorg/Xorg.0.log for rootless sessions.

X.Org Server compared with Wayland and XWayland

The central difference between X.Org Server and Wayland is where compositing and input routing happen. Under X11, the server, window manager and compositor are separate processes; under Wayland, a single Wayland compositor such as Mutter, KWin or Sway is the display server. The comparison below summarizes the practical consequences.

AspectX.Org ServerWayland compositorXWayland
ArchitectureServer plus separate window managerCompositor is the display serverX server running as a Wayland client
Client isolationAny client can read input and screenClients isolated by defaultIsolation only between X clients and native apps
Screen sharingDirect access by any clientThrough portals and PipeWireLimited to X windows
Mixed DPIGlobal scaling, workarounds neededPer-output fractional scalingDepends on compositor support
Network transparencyBuilt into the protocolNot built inInherits X11 forwarding
Development statusMaintenance, security fixesActive developmentActively maintained
X.Org Server, Wayland and XWayland compared

The security model is the most cited reason for the transition. In X11, any connected client can log keystrokes, read other windows and inject input, which makes sandboxing practically impossible. Wayland removes those global capabilities and exposes them only through controlled interfaces.

When X.Org Server is still the right choice

Despite its maintenance status, X.Org Server remains the practical choice in several situations. Many classic window managers such as i3, bspwm and dwm exist only for X11, and some workflows depend on tools that require global access to windows and input.

SituationRecommended sessionReason
Older or exotic GPUXorgMature drivers and fallback paths
X11-only window managerXorgNo Wayland version of the tool exists
Automation with xdotoolXorgRelies on global input injection
Mixed-DPI laptop setupWaylandPer-monitor scaling works natively
Security-sensitive desktopWaylandClients cannot snoop on each other
Remote apps over SSHXorg or XWaylandX11 forwarding with ssh -X
Deciding between an Xorg session and a Wayland session

Several major distributions and desktop environments have begun removing the Xorg session from default installations, while XWayland keeps legacy applications working. Administrators who need a full X session should check the support plans of their distribution before standardizing on it.

Limitations and common problems

Most problems with X.Org Server stem from its age and layered design. The list below covers frequent issues and their typical remedies.

  • Screen tearing during video or scrolling, usually fixed by enabling a compositor or the TearFree option of the driver.
  • Inconsistent scaling on monitors with different pixel densities, because X11 has a single global DPI value.
  • Running as root in older setups, which widens the attack surface; current distributions start Xorg rootless through systemd-logind.
  • Security vulnerabilities in the large legacy codebase, regularly patched through advisories that also affect XWayland.
  • Black screen at startup, often caused by a stale xorg.conf or a mismatched driver, diagnosed through the Xorg log.

The idea in brief

X.Org Server is the part of a Linux computer that puts windows on the screen and passes your typing and mouse clicks to the right program. Programs do not draw on the monitor directly. They ask the server to draw for them, a bit like guests ordering through a waiter instead of walking into the kitchen.

It has done this job for many years and still works well, but its design comes from an era when security mattered less. Newer systems use Wayland, which does the same job in a safer and simpler way, while still running older X programs through a compatibility layer.

A practical scenario

A university laboratory runs 40 Linux workstations for signal processing courses. The lab software includes an older measurement application that only supports X11 and is controlled through xdotool scripts that click buttons automatically during exercises. Under a Wayland session, the scripts fail because clients can no longer inject input into other windows.

The administrator configures the display manager to start an Xorg session with the i3 window manager by default, places a short snippet in /etc/X11/xorg.conf.d/ to fix the keyboard layout and verifies the modesetting driver in the Xorg log. The automation works again, and students who need fractional scaling on their laptops keep using Wayland. The lab plans to migrate to a native Wayland tool when the vendor releases one, keeping X.Org Server as a controlled, documented exception.