GDM udev rules disabling wayland on a valid nvidia config
I am using Arch Linux (GDM v41.0+r15+g23ebe617) and nvidia driver v495.46 with modesetting enabled on a optimus laptop. There is no wayland session option in gdm. Wayland session is visible again and works fine if I delete the 61-gdm.rules
file.
I did some troubleshooting of my own and it seems that the only line in the file causing the issue is line 22:
RUN+="/usr/lib/gdm-runtime-config set daemon PreferredDisplayServer xorg"
Just commenting this out makes wayland work again. As far as I understand this option should just make xorg the default option on nvidia devices, not make wayland option disappear. Is this the expected behavior?