After doing much searching of the internet I have come up with this solution. This solution will enable Wayland even if you have proprietary NVIDIA drivers on Ubuntu 20.04.
- Execute
sudo apt install gnome-session-wayland
.
- Open
/etc/gdm3/custom.conf
and ensure WaylandEnable=false
is commented.
- Open
/usr/lib/udev/rules.d/61-gdm.rules
and comment all lines.
- Execute
sudo systemctl restart gdm3
.
- Click on the cogwheel and select GNOME or Ubuntu on Wayland.
- Execute
echo $XDG_SESSION_TYPE
in order to confirm you are running Wayland (output should be "wayland").
This solution can be a bit buggy, for example the Ubuntu environment took a long time to fully load in my case. In my case I am running a GTX 1050 Ti on proprietary drivers.
EDIT: Performance in games is terrible if running this solution. Would not recommend for gaming.
#
))?gdm
), also check for packages saygnome-session-wayland
is installed. This question talks about a/usr/share/wayland-sessions/ubuntu.desktop
which sounds similar to the also used/usr/share/xsessions
folder, might be worth a look at the contents.