Ad Space — Top Banner

Xorg Crash

Linux Linux

Severity: Critical

What Does This Error Mean?

Xorg (or X.Org) is the traditional display server that draws your Linux desktop and graphical apps. When Xorg crashes, the entire graphical interface disappears — you are left at a blank screen, a flashing cursor, or dropped back to a text-based login prompt. Common causes include a bad graphics driver, a misconfigured Xorg configuration file, or a problem with the display server switching to Wayland.

Affected Models

  • Ubuntu
  • Debian
  • Fedora
  • Arch Linux
  • Linux Mint
  • openSUSE
  • CentOS

Common Causes

  • A graphics driver (NVIDIA, AMD, or Intel) update broke compatibility with the current Xorg version
  • A corrupted or outdated Xorg configuration file (/etc/X11/xorg.conf) is specifying invalid settings
  • The desktop environment (GNOME, KDE, XFCE) crashed and took Xorg down with it
  • Not enough free disk space for Xorg to write its log and temporary files
  • A faulty display cable, monitor, or second monitor configuration is causing Xorg to fail to initialize

How to Fix It

  1. Switch to a text console to investigate. Press Ctrl + Alt + F2 (or F3, F4) to open a text terminal. Log in with your username and password. This gives you command-line access even when the GUI is broken.

    Linux always provides text console access as a fallback. You can fix most graphical problems from the text console.

  2. Check the Xorg log for the error. Type: cat /var/log/Xorg.0.log | grep '(EE)' — lines starting with (EE) are errors. The last few errors before the crash identify the cause.

    The Xorg log is the most important diagnostic tool for graphical crashes. The error message directly tells you what failed.

  3. Remove a problematic Xorg configuration file. If a custom xorg.conf exists and you recently added it, rename it: sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bak — then restart the display manager: sudo systemctl restart gdm (or sddm, or lightdm).

    Xorg runs fine without a configuration file on most modern systems. Removing a bad xorg.conf often immediately restores the desktop.

  4. Reinstall or switch graphics drivers. For NVIDIA: sudo apt purge nvidia-* && sudo ubuntu-drivers autoinstall (Ubuntu) — for the open-source driver: sudo apt install xserver-xorg-video-nouveau

    Graphics driver problems are the most common cause of Xorg crashes. Switching to the open-source driver is a reliable temporary fix while you sort out the proprietary driver.

  5. Reinstall the desktop environment. Type: sudo apt install --reinstall ubuntu-desktop (Ubuntu) or sudo dnf reinstall @gnome-desktop (Fedora). Then restart with: sudo reboot

    If the desktop environment itself is corrupted, reinstalling it is faster and cleaner than trying to repair individual packages.

When to Call a Professional

If you cannot boot into a graphical desktop after trying these fixes and you are not comfortable with command-line tools, a technician can access the system remotely or in-person to restore the desktop environment.

Frequently Asked Questions

What is the difference between Xorg and Wayland?

Xorg (X11) is the traditional Linux display server that has been used for decades. Wayland is a newer, more secure replacement that many modern distributions now use by default. Fedora and newer Ubuntu versions use Wayland by default. If Xorg crashes and you are on a system that supports Wayland, you can try selecting a Wayland session at the login screen as an alternative.

Xorg crashes only when I plug in a second monitor. Why?

Multi-monitor configurations are a common source of Xorg crashes, especially with mismatched refresh rates or resolutions. The graphics driver may not handle the second monitor's EDID data correctly. Try connecting the second monitor before booting and check the Xorg log for errors related to the display. Updating the graphics driver or switching to Wayland often resolves multi-monitor Xorg crashes.

How do I know if the problem is Xorg or the desktop environment?

Check the logs. If /var/log/Xorg.0.log shows (EE) errors, Xorg itself crashed. If the Xorg log looks clean but the desktop does not appear, the desktop environment (GNOME, KDE, etc.) failed to start. For the desktop environment, check: journalctl -b -u gdm (replace gdm with your display manager: sddm, lightdm, etc.).