- Open /etc/gdm/custom.conf and uncomment the line: WaylandEnabled=false
- Add the following line to the [daemon] section: DefaultSession=gnome-xorg.desktop
- Save the custom.conf file
- Reboot the system
On Ubuntu 22.04, the custom.conf is located at /etc/gdm3/custom.conf
Some other distributions may not have a custom.conf and instead will have a daemon.conf. You may make the same changes as above in this file with the same affect.
On Debian 11, edit the /etc/gdm3/deaemon.conf instead