The settings I adapted are:
add to /etc/modprobe.d/nvidia-graphics-drivers.conf
:
options nvidia_drm modeset=1
ensure #WaylandEnable=false
is commented in /etc/gdm3/custom.conf
comment all lines with #
in /usr/lib/udev/rules.d/61-gdm.rules
reboot and select "Gnome" (not "Gnome on Xorg") with cogwheel in login screen
check (output should be wayland
):
echo $XDG_SESSION_TYPE
My experience with Wayland:
Matlab and VMWare Workstation Player complain about missing OpenGL hardware acceleration. But overall I am very happy with Wayland. No special tricks needed for many applications like Spotify and Matlab which previously did not scale in Xorg. With Wayland Matlab scales perfectly out of the box. Also resume from suspend to RAM now works for the first time on this laptop. Though it takes 1 minute 45 seconds from power button to lock screen. VLC full screen also works great, previously not possible in Xorg.
Waiting for NVIDIA 470 series to have OpenGL hardware acceleration.
Up to now I only have one issue: connecting an external monitor to the HDMI connector freezes Ubuntu completely. Nothing is shown on the external monitor and power button hard reset is the only option.
I made a post on the nVIDIA linux forum:
https://forums.developer.nvidia.com/t/465-24-02-ubuntu-21-04-wayland-no-external-monitor/176747
[EDIT] I found out that the Intel GPU is driving the display and that is what most probably causes a successful resume from suspend to RAM. But nVIDIA can be used for CUDA calculations via Matlab and Mathematica and also via Jupyter Notebook and libcudnn8. So nVIDIA GPU is available but does not drive the screen and that is most probably why connecting an external monitor leads to Ubuntu freeze. Even though:
prime-select query
nvidia
Does anybody know how to let Ubuntu Gnome on Wayland choose the nVIDIA GPU to drive the laptop display?
nvidia_drm modeset
). Currently I'm using X11 :( – Beto Neto Oct 17 '21 at 11:22