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