<div dir="ltr"><div>Now added nvidia_drm.modeset=1 as a kernel parameter and doing cat /sys/module/nvidia_drm/parameters/modeset gives me: Y</div><div>Still need to have the `<span>ln -s /dev/null /etc/udev/rules.d/61-gdm.rules` hack in order to have Wayland properly. I do have the kms-modifiers activated too.</span></div><div><span>Versions of libxcb, egl-wayland are 1.15 and 1.1.10 respectively.</span></div><div><span><br></span></div><div><span>Issue starts by not having wayland options in gdm and in turn, my gnome session later.</span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El lun, 19 sept 2022 a las 14:27, Alban Browaeys (<<a href="mailto:alban.browaeys@gmail.com">alban.browaeys@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">About modeset, ie Kernel Mode Setting being required or not I found<br>
this about <a href="https://wiki.archlinux.org/title/Wayland#Requirements" rel="noreferrer" target="_blank">https://wiki.archlinux.org/title/Wayland#Requirements</a> 5.1<br>
that "Enabling DRM KMS is required.". THe next link points to<br>
<a href="https://download.nvidia.com/XFree86/Linux-x86_64/515.48.07/README/xwayland.html" rel="noreferrer" target="_blank">https://download.nvidia.com/XFree86/Linux-x86_64/515.48.07/README/xwayland.html</a><br>
which tells that:<br>
"<br>
Requirements<br>
<br>
The following are necessary to enable accelerated rendering on Xwayland<br>
with the NVIDIA driver:<br>
<br>
- DRM KMS must be enabled. See Chapter 36, Direct Rendering Manager<br>
Kernel Modesetting (DRM KMS) for details.<br>
<br>
- The installed copy of Xwayland should be a build from the master<br>
branch of <a href="https://gitlab.freedesktop.org/xorg/xserver" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/xorg/xserver</a> at least as<br>
recent as commit c468d34c. Note that if this requirement is not<br>
satisfied, the NVIDIA GPU can still be used for rendering, however it<br>
will fall back to a suboptimal path for presentation resulting in<br>
degraded performance.<br>
<br>
- libxcb version 1.13 or later must be present.<br>
<br>
- egl-wayland version 1.1.7 or later must be present (if installed<br>
separately from the the NVIDIA driver).<br>
<br>
- If using the GNOME desktop environment, kms-modifiers must be<br>
enabled through gsettings. This can be done with the following command<br>
gsettings set org.gnome.mutter experimental-features [\"kms-<br>
modifiers\"]<br>
<br>
"<br>
<br>
So currently, once logged in gnome wayland without modeset enabled, you<br>
should not have Xwayland application (most games) running hardware<br>
accelerated.<br>
To not end up on software acceleration you have to enable KMS (by the<br>
settings I sent you previously) and also setting an experimental<br>
feature in the gnome session:<br>
gsettings set org.gnome.mutter experimental-features [\"kms-modifiers\"]<br>
<br>
maybe you can check if you are on software acceleration on Xwayland<br>
with glxgears/glxinfo . Maybe you can send your glxinfo output without<br>
nvidia modeset set and logged in a wayland session?<br>
<br>
<br>
Kind regards,<br>
<br>
Alban<br>
</blockquote></div>