Issues with nvidia optimus

I’m trying to rum CachyOS in my dual GPU laptop but looks like after 1 minute of booting up the nvidia gpu shuts down and never comes back up
It’s a Dell G15 with amd igpu and a RTX 3060
I already did a clean install at least 10 times trying different settings and boot loaders and this happens everytime. With Nobara it works just fine.
Right after botting up, i can run vulkaninfo --summary and it will return the two GPU’s, after sometime, vulkaninfo --summary will hang and thake more than 5 minutes to return, and then it will not show the nvidia GPU anymore.
prime-run also does not work, it just hangs
i have no clue what to do now, i could’nt find anything in the foruns or google
if i disable Optimus in the bios it looks to work just fine, but i would like to keep the igpu for normal tasks

Start by checking for driver errors in dmesg output. Also, you might want to try switching between nvidia-open and regular nvidia driver versions to see if that makes any difference.

I think i fixed the issue.
I discovered that if i disable nvidia-suspend, nvidia-hibernate and nvidia-resume, it was working fine. But then, obviously suspending was completely broken.
Then i found this in the arch wiki.
Adding acpi_osi=! "acpi_osi=Windows 2017.2" to the kernel params seems to fix the issue. I’ll do one more clean install and only add this to make sure that this is what fixes.