I have a brand-new gaming laptop with an RTX 4060, which I installed Ubuntu 22.04 on yesterday. Upon logging in and changing the graphics driver from Nouveau to Nvidia proprietary, I encountered consistent graphical glitches after a few minutes of usage. They look like this:
Large region of what looks like static obscuring the screen
Similar to above, but different region
The glitchy regions flicker and change when moving my mouse, alt-tabbing, etc. Eventually they get more visually drastic (click for image), making the computer unusable. Sometimes it even hangs.
I tried reinstalling - no luck. Changing the display manager from Xorg to Wayland seemed to help, but the glitches still occurred after about 30 minutes of usage.
Interestingly, I attempted to screenshot the glitchy portions while on Xorg, and they showed up as all white in the image (despite looking very different on the screen itself).
This problem does not seem to occur in Windows, which by default uses the integrated graphics to render the desktop. This points to it being an Nvidia-related issue. I have verified that the issue occurs on Nvidia driver versions 525 and 530.
Note that I have not tested whether this issue occurs with Nouveau.
I did not encounter this issue when using 22.04 on my previous laptop, which had a GeForce MX250.
Any and all help is appreciated.