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.
#
))? – Wilf May 18 '20 at 03:48gdm
), 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. – Wilf May 18 '20 at 18:50Edit: It seems I can only choose the sessions from share/xsessions, not really sure what to do about those desktop files
– Thilo May 18 '20 at 21:16for anyone wondering this https://askubuntu.com/a/1240633/39261 was the solution
– Thilo Jun 07 '20 at 16:07