Chapter 1. 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.

1.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.

1.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

    The output is x11 for Xorg sessions.

  2. Open the GDM configuration file:

    # gedit /etc/gdm/custom.conf
  3. Ensure the following line is absent or commented:

    WaylandEnable=false
  4. Save the file.
  5. Reboot the system:

    # systemctl reboot

Verification

  • Verify that the session is running on Wayland:

    $ echo $XDG_SESSION_TYPE
    wayland

1.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

    The output is wayland for Wayland sessions.

  2. Open the GDM configuration file:

    # gedit /etc/gdm/custom.conf
  3. Uncomment or add the following line:

    WaylandEnable=false
  4. Save the file.
  5. Reboot the system:

    # systemctl reboot

Verification

  • Verify that the session is running on Xorg:

    $ echo $XDG_SESSION_TYPE
    x11
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat Documentation

Legal Notice

Theme

© 2026 Red Hat
Back to top