There’s another kind lockup that happens when waking from sleep if there’s CUDA running in background. I’m not sure about the details, but there’s a known issue with CUDA and sleep (Occasionally cuda stops working · Issue #348769 · NixOS/nixpkgs · GitHub) that results in the GPU becoming unrecognized after waking. I’m not quite sure what’s exactly happening, but when I’m struggling with that issue, I’m also struggling with occasional freezes during sleep/wake cycle. Turning off LLM’s running in the background seems to solve both the GPU issue as well as freezing during sleep/wake. So, make sure you don’t have any pytorch running in the background if you put your PC to sleep?