NVIDIA 940MX in Fedora 40

Hi, i have a laptop with a NVIDIA 940MX card and i used to Linux Mint before Fedora and the NVIDIA card worked very well there

Now that I have Fedora Sway Spin using of course Wayland, I tried installing the the NVIDIA drivers from RPM Fusion following the steps listed and i have secure boot disabled, i waited 10 mins as it says and everything but when i boot i get a black screen with _ and the laptop is non responsive and i have to force shutdown

I’m only able to boot and enter sddm and then to sway when i remove the nouveau block from grub options

I also followed this part and still got the black sreen

How can i solve this problem please?