How to enable/disable wayland on Ubuntu 22.04

Wayland is a display server protocol that is used as an alternative to the X Window System on some Linux distributions, including Ubuntu. If you want to enable or disable Wayland on Ubuntu, you can do so by modifying the /etc/gdm3/custom.conf file.

Enable wayland

To enable Wayland, open the /etc/gdm3/custom.conf file in a text editor as root, and add the following line:

# vi /etc/gdm3/custom.conf
WaylandEnable=true

After making the change, save the file and either restart GDM3 or reboot your system for the changes to take effect.

# systemctl restart gdm3

Disable wayland

To disable Wayland, add the following line in the file /etc/gdm3/custom.conf instead:

# vi /etc/gdm3/custom.conf
WaylandEnable=false

After making the change, save the file and either restart GDM3 or reboot your system for the changes to take effect.

# systemctl restart gdm3
Note: Keep in mind that some applications may not work properly with Wayland, and enabling or disabling Wayland may have unexpected consequences. It is important to carefully consider the implications of enabling or disabling Wayland before making the change.
Related Post