I’m experience what a lot of 12th-gen Intel users see on a number of distros: Semi-Periodic or complete freezes of NixOS. Mine occur about every minute for 2-4 seconds. It’s a known problem with the kernel drivers (maintened by intel) for their 12th-gen iGPU laptop CPUs.
The tell-tale sign is something like this in the output of sudo dmesg -w right after a hang occurs:
I don’t see anything about alder lake, neither in the CPU nor GPU definitions, so I’m guessing that if this is known nobody has a fix yet.
I’d also guess that this is a case of “wait for newer kernels that resolve it”. You can try setting boot.kernelPackages to pkgs.linuxPackages_latest and see if that resolves the issue.
If it does, you can go sleuthing into which kernel specifically fixed it, and then create a setting for it in nixos-hardware, so that people with alder lake hardware have easy access to it.
Thanks, I’ll try it. It’s not framework-specific, though. E.g. the newer Lenovo Carbon X1 have, too. Same goes for a couple of other alder lake laptops.
In case anyone is like me and arrived here through Google/forum search, I managed to get things working by setting the video driver to modesetting and flipping enable_psr to 1:
Without that kernel parameter, Xorg would load but would freeze and stutter for a few seconds periodically - it was basically unusable.
Unfortunately it doesn’t seem like the modesetting driver supports TearFree like the old Intel one. Given that most of Qt applications I tried were broken on the Intel driver I think this is currently the only choice for the 12th Gen Framework.