Ce contenu n'est pas disponible dans la langue sélectionnée.

Chapter 3. Transitioning from Xorg to Wayland in RHEL


Understand the differences between the Xorg and Wayland display protocols. This chapter describes how to enable or disable Wayland in Red Hat Enterprise Linux.

3.1. Understanding Xorg versus Wayland

Wayland is a modern display protocol that replaces Xorg for improved security, latency, and rendering efficiency. Many Xorg applications continue to work on Wayland by using XWayland.

XWayland is an X server that runs on top of Wayland to make X11 applications compatible with Wayland environments. It acts as a compatibility layer for X11 applications to access Xorg libraries so they can run under Wayland compositors.

Key differences between Xorg and Wayland
  • Security: Wayland improves security by isolating each application. In Xorg, one application can read data or capture input from other applications.
  • Performance: Wayland is smoother and reduces screen flickering compared to Xorg.
  • Modern Design: Wayland is newer and simpler. Xorg is a complex, older technology.
  • Screen Scaling: Wayland handles high-resolution screens (HiDPI) better, especially when using multiple monitors.
Note

You can also select Wayland or Xorg session at login.

3.2. Enabling Wayland on RHEL

To enable Wayland, use GNOME Display Manager (GDM) configuration file.

Prerequisites

  • You must have root privileges on your system.

Procedure

  1. Check current session type:

    # echo $XDG_SESSION_TYPE
    Copy to Clipboard Toggle word wrap

    The output is x11 for Xorg sessions.

  2. Open the GDM configuration file:

    # gedit /etc/gdm/custom.conf
    Copy to Clipboard Toggle word wrap
  3. Ensure the following line is absent or commented:

    WaylandEnable=false
    Copy to Clipboard Toggle word wrap
  4. Save the file.
  5. Reboot the system:

    # systemctl reboot
    Copy to Clipboard Toggle word wrap

Verification

  • Verify that the session is running on Wayland:

    $ echo $XDG_SESSION_TYPE
    Copy to Clipboard Toggle word wrap
    wayland
    Copy to Clipboard Toggle word wrap

3.3. Disabling Wayland on RHEL

To disable Wayland, configure the GNOME Display Manager (GDM) to use the Xorg display server.

Prerequisites

  • You must have root privileges on your system.

Procedure

  1. Check current session type:

    # echo $XDG_SESSION_TYPE
    Copy to Clipboard Toggle word wrap

    The output is wayland for Wayland sessions.

  2. Open the GDM configuration file:

    # gedit /etc/gdm/custom.conf
    Copy to Clipboard Toggle word wrap
  3. Uncomment or add the following line:

    WaylandEnable=false
    Copy to Clipboard Toggle word wrap
  4. Save the file.
  5. Reboot the system:

    # systemctl reboot
    Copy to Clipboard Toggle word wrap

Verification

  • Verify that the session is running on Xorg:

    $ echo $XDG_SESSION_TYPE
    Copy to Clipboard Toggle word wrap
    x11
    Copy to Clipboard Toggle word wrap
Red Hat logoGithubredditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance. Découvrez nos récentes mises à jour.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez le Blog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

Theme

© 2026 Red Hat
Retour au début