NVIDIA GPU Fails to power off (PRIME) Razer Blade 14 2022

I have the same laptop and the same problem on Fedora 38. On 37 it worked fine following this guide but now it goes from being in D0 for a while to D3hot to D3cold and then immediately back to D0 on battery (works as expected when charging though, as you mentioned). Maybe you’ll have more luck following that guide, I’ll try to debug more and report back!

Edit: Also I think with nouveau D3cold works as expected but that’s not really helpful if you need nvidia drivers.