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 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.
3.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_TYPE
# echo $XDG_SESSION_TYPECopy to Clipboard Copied! Toggle word wrap Toggle overflow The output is
x11for Xorg sessions.Open the GDM configuration file:
gedit /etc/gdm/custom.conf
# gedit /etc/gdm/custom.confCopy to Clipboard Copied! Toggle word wrap Toggle overflow Ensure the following line is absent or commented:
WaylandEnable=false
WaylandEnable=falseCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Save the file.
Reboot the system:
systemctl reboot
# systemctl rebootCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Verify that the session is running on Wayland:
echo $XDG_SESSION_TYPE
$ echo $XDG_SESSION_TYPECopy to Clipboard Copied! Toggle word wrap Toggle overflow wayland
waylandCopy to Clipboard Copied! Toggle word wrap Toggle overflow
3.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_TYPE
# echo $XDG_SESSION_TYPECopy to Clipboard Copied! Toggle word wrap Toggle overflow The output is
waylandfor Wayland sessions.Open the GDM configuration file:
gedit /etc/gdm/custom.conf
# gedit /etc/gdm/custom.confCopy to Clipboard Copied! Toggle word wrap Toggle overflow Uncomment or add the following line:
WaylandEnable=false
WaylandEnable=falseCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Save the file.
Reboot the system:
systemctl reboot
# systemctl rebootCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Verify that the session is running on Xorg:
echo $XDG_SESSION_TYPE
$ echo $XDG_SESSION_TYPECopy to Clipboard Copied! Toggle word wrap Toggle overflow x11
x11Copy to Clipboard Copied! Toggle word wrap Toggle overflow