Gdm slow after login with nvidia and wyland

Hi,
I just installed EndeavourOS on brand new pc with a nvidia 4060 graphic card. I’m using gnome with wayland and I have a problem: after typing the password it takes about 15/20 second for the desktop to appear. If I exit the session and re-login the desktop reappears after 1 second.
Can anybody help me in troubleshooting the issue?
the output of the command
sudo journalctl -u gdm -b
is

Blockquote
feb 22 16:38:15 gio-pc systemd[1]: Starting GNOME Display Manager…
feb 22 16:38:15 gio-pc systemd[1]: Started GNOME Display Manager.
feb 22 16:38:25 gio-pc gdm-password][1178]: gkr-pam: unable to locate daemon control file
feb 22 16:38:25 gio-pc gdm-password][1178]: gkr-pam: stashed password to try later in open session
feb 22 16:38:25 gio-pc gdm-password][1178]: pam_unix(gdm-password:session): session opened for user gio(uid=1000) by gio(uid=0)
feb 22 16:38:25 gio-pc gdm-password][1178]: gkr-pam: unlocked login keyring
feb 22 16:38:42 gio-pc gdm[698]: Gdm: Child process -747 was already dead.

I read that the line Gdm: Child process -747 was already dead may indicate the problem, but I’m not sure about it and how to proceed.
Thanks in advance

edit /etc/pam.d/system-login in order to put a comment mark at the line:

session optional pam_motd.so

so that it looks like this:

# session optional pam_motd.so

let me know if that changes the login delay.

After the modification (and a reboot) the problem still persists.