How to investigate random freezes

Since about a week I have randomly had my amd laptop totally lock up and even be unreachable from the network. My screen would then be frozen in time and this would also apply to an external monitor. I could even unplug and replug the monitor and it would show the same image. Any sound which was playing would also loop the last second.
However I can’t switch to any different tty, nor do SysRq keys work(i tested them after enabling the option). I have been running this config stable for months now and only changing user space programs.

What is confusing me the most is that i dont even see any error in the kernel logs.
Its is nearly always wpa_supplicant, though this might be just a coincidence.
Just now I was evaluating a NixOs new generation while in the process the system froze. But i could still hear the fans spinning and later winding down so that task still completed.

I already tested the memory and hard drive and they are not faulty.

So my question is where I can look to pin down the error.

Likely none of this is specific to NixOS; this is just general Linux troubleshooting. I would start with the system journal.

1 Like