# NixOS hard locks driving my crazy!

**URL:** https://discourse.nixos.org/t/nixos-hard-locks-driving-my-crazy/72210
**Category:** Help
**Created:** [November 17, 2025, 1:32am UTC](https://discourse.nixos.org/t/nixos-hard-locks-driving-my-crazy/72210 "2025-11-17T01:32:15Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![Raikiri](https://discourse.nixos.org/user_avatar/discourse.nixos.org/raikiri/32/6271_2.png) [@Raikiri](https://discourse.nixos.org/u/Raikiri)
#### Post date: [November 17, 2025, 2:56am UTC](https://discourse.nixos.org/t/nixos-hard-locks-driving-my-crazy/72210/7 "2025-11-17T02:56:22Z")

</div>

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](https://github.com/NixOS/nixpkgs/issues/348769)) 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?

---

_[View the full topic](https://discourse.nixos.org/t/nixos-hard-locks-driving-my-crazy/72210)._
