The last month or two, I’ve been getting a ton of hard locks. It’s usually when my computer is idle. It’s the typical hard lock, mouse cursor doesn’t move, caps lock doesn’t respond, etc. NixOS was quite stable on my computer (as were several other Linux distros) and I haven’t changed any hardware recently.
I was running 24.11, but I recently upgraded to 25.05 in hopes to getting a more stable system. Here’s what I know so far:
I’ve added the following configuration:
services.journald.extraConfig = ''
Storage=persistent
'';
In hopes of getting some logs. After the hard lock, I’ve tried running journalctl -b -1 to see if there’s any logs, but it appears the kernel locks before any logs can be written.
I’ve added some kernel parameters to see if anything helps:
boot.kernelParams = [
"amdgpu.aspm=0"
"amdgpu.runpm=0"
"amdgpu.dcdebugmask=0x10"
];
I’ve also been playing around with a few different kernel versions. Mostly I’m trying 6.12.57 since it’s LTS, but I’ve tried the latest 6.17 as well. Both have the same problem, which is several hard locks per day (it’s almost always locked when I wake up in the morning).
A bit about the hardware courtesy of Fastfetch:
🖥️ PC: Z690 AORUS ELITE AX DDR4
├: 12th Gen Intel(R) Core(TM) i9-12900K (24) @ 5.20 GHz
├: AMD Radeon RX 6600 [Discrete]
├: Intel AlderLake-S GT1 @ 1.55 GHz [Integrated]
├: 5.27 GiB / 62.57 GiB (8%)
└: 93.42 GiB / 915.34 GiB (10%) - ext4
🐧 OS: NixOS 25.05 (Warbler) x86_64
├: Linux 6.12.57
├: F6 (5.24)
└: 1295 (nix-system), 7 (nix-user)
⌨️ DE: Hyprland 0.49.0 (Wayland)
├: ghostty 1.1.3
└: zsh 5.9
On occasion when it hard locks, I get a ton of loud static from the speakers. One thing to note is I’m running audio over HDMI to my monitor, I’m wondering if there’s some sort of audio driver issue. I haven’t tried disabling audio over HDMI. ChatGPT really seems to think it’s an HDMI audio issue but it seems ChatGPT goes down some crazy rabbit hole about half the time. I’ve messed with a bunch of Pipewire settings just to see if anything makes a difference.
I’ve run a few basic tests like disk checks and memory tests, nothing stands out.
I’m somewhat at a loss now as for what to try next. It just seems like any recent version of the Linux kernel just isn’t very stable, at least on my hardware. I probably haven’t provided enough information here for anyone to actually solve the problem, but I’m looking for some help on how to narrow down the issue and get some more clues.
I’m happy to post the output of any command, just let me know. Thanks!
Mike