I'm also running everything on NixOS, so assume there's a fair bit of fairy dust blessing the config. Besides enabling modeset and cudatoolkit manually though, I don't think there's much special about my software setup.
If it wasn't for AI, I'd upgrade to AMD right now. But ROCm and the CUDA translation layer don't quite seem to be there yet.
I tried to get my 3090 working in Wayland/KDE/Arch for about a month (after repeatedly running into the same issues on my 2060 laptop) and gave up.
AMD IGP output it is... and I just game on Windows instead. But even then, neutering the leftover bits of the Nvidia driver (which I need for CUDA) that keep breaking electron/chromium is making me pull my hair out. I still hold my breath opening VSCode, wondering if its going to freeze or not.
Try using a dedicated rail or another PSU if you have one.
I have literally all the exact same issues on my RTX 2060 Asus G14 laptop, like:
- GPU rendering broken in Wayland Chromium/Electron, and sometimes Firefox
- Occasional black screen on boot, from some kind of race condition.
- Unpredictable artifacting on the KDE desktop and some apps.
And I still get some of that when Nvidia DRM is disabled and I'm just using the 4900HS/7800X3D for display out. Completely disabling the Nvidia GPU fixes all of it, every single thing, but then I can't use CUDA.