sudo nano /etc/gdm3/custom.conf
# 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 = false
#after you have made the desired changes, save this file and exit it.
#You will need to restart GDM3 or reboot your Ubuntu 22.04 desktop for
#the changes to take effect.
sudo systemctl restart gdm3
#To login to Ubuntu 22.04 using the Wayland or Xorg click on the gear
#button at the botton left and select Ubuntu which protocol want to use
#for your server display.