I'm using Arch Linux on my desktop and at seemingly random intervals my computer freezes. This machine is new, having only built it a few months ago. Ill break down my specs, the things ive already done, and potential theories.
SPECS:
The freezes occur at inconsistent points, but became more common after installing my GPU. The vast majority of freezes occur when my computer goes into sleep for a long period of time. Crashes, however, do occur while using the machine normally. Oddly, I don't believe I've had it freeze while playing games.
What Ive looked into:
Overheating: I rarely push my computer, but it is MicroATX and a cheap case. There isn't much room, so I figured overheating could be a likely contender. Unfortunately, while monitoring and logging temperatures - the freezes occurred with everything sitting around 30-40C.
RAM or CPU usage: Again, same as last time - when freezes occur both are no where near 100% use.
Current Theories:
Hibernation Issues: My Windows drive also freezes when it goes into sleep for long periods of time. Ive disabled hibernation and sleep on windows to test this, but still had freezes.
SWAP issue: Perhaps I set up SWAP wrong?
HDD Issue: So as i mentioned, im using a rather old and cheap HDD to run windows from. The experience is awful in every way - but I'm wondering if this drive is the problem. Whenever the computer goes to sleep for a long duration, it puts the drive to sleep. When it attempts to wake it up something goes wrong and the system doesnt know how to respond (or i failed to set up the adequate safety precautions lol).
Any general advice on how to further deduce the actual causes would be great! If I can have a more specific scope then hopefully I can sole the underlying cause without disrupting anything else. In all likelihood, i think there are two causes: one freezing the computer when awaking from sleep, and one that passively occurs when the computer is in use.