https://linuxconfig.org/how-to-enable-disable-wayland-on-ubuntu-22-04-desktop


  1. The default display manager for the GNOME desktop environment is GDM3. Therefore, we will edit the /etc/gdm3/custom.conf file to either disable or enable Wayland. Open a command line terminal and use nano or your favorite text editor to open this file with root permissions.
    $ sudo nano /etc/gdm3/custom.conf
  2. Within this file, look for the line that says #WaylandEnable=false. You can uncomment this line and either set it to true or false, depending on whether you want Wayland enabled or not.Enable Wayland:
    WaylandEnable=true

    Or disable Wayland:

    WaylandEnable=false

    • Editing the Wayland settings inside the GDM3 configuration file
      Editing the Wayland settings inside the GDM3 configuration file
    • After you have made the desired changes, save this file and exit it. You will need to restart GDM3 or reboot your Ubuntu desktop for the changes to take effect.
      $ sudo systemctl restart gdm3
    • To login to Ubuntu Desktop using the Wayland click on the gear button and select Ubuntu option before you login. If you have disabled the Wayland display server, you will only see the Xorg option appear, or the gear button doesn’t show up at all.
  3. To save your work in Nano on Ubuntu, you can use the following keyboard shortcuts:
    • Save: Press Ctrl + O to save your changes. If you're saving the current file, you can press Enter to accept the file name.
    • Save As: Press Ctrl + O, type the new file name, and press Enter.
    • Save and Exit: Press Ctrl + X to save and exit at the same time. When prompted, press Y to save and then Enter to confirm the file name.
    • Cancel: Press Ctrl + X, then press N when asked to save the changes