Graphics glitches on wakeup with apps using dGPU

Hey all,

I had originally made a post on reddit about this issue and while I did get an answer that put me closer to solving this issue I haven’t been able to fully fix. Did have a search on the forums but couldn’t find anything that matched the issue I was having

A quick summary condensing what I understand the problem to be. When I wake up my laptop from sleep, any program that was using the dedicated nvidia GPU will have broken/glitched graphics. I was able to confirm this by using switcherooctl to launch apps that normally don’t use the dGPU and putting the laptop to sleep mode. (and the opposite, launching binding of isaac with Lutris and using the integrated GPU, no glitches)

The only program that runs on the dGPU that doesn’t have any kind of graphical glitch on wakeup is Umamusume. not entirely sure why this is the case unfortunately.

I have tried following the steps about memory preservation ( NVIDIA/Tips and tricks - ArchWiki ) and some other solutions that were recommended in the reddit thread but with no success. If anyone knows a more permanent fix for me to try that would be amazing.

My laptop is a Razer blade 2021 14", specs below and bug report as requested in the pinned thread.

Laptop specs

OS: CachyOS x86_64
Host: Blade 14 - RZ09-0370 (1.04)
Kernel: Linux 7.0.11-1-cachyos
Uptime: 18 mins
Packages: 1390 (pacman)
Shell: fish 4.7.1
Display (TMX1400): 2560x1440 @ 1.4x in 14", 165 Hz [Built-in]
DE: KDE Plasma 6.6.5
WM: KWin (Wayland)
WM Theme: Breeze
Theme: Breeze (Dark) [Qt], Breeze-Dark [GTK2], Breeze [GTK3]
Icons: breeze-dark [Qt], breeze-dark [GTK2/3/4]
Font: Noto Sans (10pt) [Qt], Noto Sans (10pt) [GTK2/3/4]
Cursor: breeze (24px)
Terminal: alacritty 0.17.0
Terminal Font: monospace (12pt, Regular)
CPU: AMD Ryzen 9 5900HX (16) @ 3.30 GHz
GPU 1: NVIDIA GeForce RTX 3070 Mobile / Max-Q [Discrete]
GPU 2: AMD Radeon Vega Series / Radeon Vega Mobile Series [Integrated]
Memory: 6.96 GiB / 15.02 GiB (46%)
Swap: 4.28 MiB / 15.02 GiB (0%)
Disk (/): 106.61 GiB / 472.94 GiB (23%) - btrfs

Screenshot of system settings ran on dGPU with switcherooctl - in separate reply as I was only allowed to upload 1 image and have 2 links in the first post