Ce contenu n'est pas disponible dans la langue sélectionnée.
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 Copier lienLien copié sur presse-papiers!
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.
You can also select Wayland or Xorg session at login.
1.2. Enabling Wayland on RHEL Copier lienLien copié sur presse-papiers!
To enable Wayland, use GNOME Display Manager (GDM) configuration file.
Prerequisites
- You must have root privileges on your system.
Procedure
Check current session type:
# echo $XDG_SESSION_TYPEThe output is
x11for Xorg sessions.Open the GDM configuration file:
# gedit /etc/gdm/custom.confEnsure the following line is absent or commented:
WaylandEnable=false- Save the file.
Reboot the system:
# systemctl reboot
Verification
Verify that the session is running on Wayland:
$ echo $XDG_SESSION_TYPEwayland
1.3. Disabling Wayland on RHEL Copier lienLien copié sur presse-papiers!
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
Check current session type:
# echo $XDG_SESSION_TYPEThe output is
waylandfor Wayland sessions.Open the GDM configuration file:
# gedit /etc/gdm/custom.confUncomment or add the following line:
WaylandEnable=false- Save the file.
Reboot the system:
# systemctl reboot
Verification
Verify that the session is running on Xorg:
$ echo $XDG_SESSION_TYPEx11