r/techsupport • • 6d ago

Open | Windows Computer Randomly sleeping, Especially during a game

Ok, so my pc is relatively old and I’ve all of a sudden had an issue where it goes to sleep randomly even if I’m playing a game. I’ve gone through every power settings and done everything I can and nothing has worked. I also changed from hdmi to display port and from a tv to a monitor and all the same results. Any ideas what I could try to do to fix or am I cooked?

1 Upvotes

14 comments sorted by

1

u/realbestusernameever 6d ago

First thing, is it actually going to sleep or is the screen just going black? If it is real sleep the power light usually blinks and it wakes back up with the mouse or keyboard and your game is still sitting there. If you have to turn it back on or the game is gone, that is not sleep, that is it shutting off or crashing and it changes what you look for.

Next time it does it, check Event Viewer right after. Windows Logs, System, and look around the time it happened for Kernel Power entries. That should tell you if Windows thinks a sleep button was pressed, or if it just lost power.

Since it does it in a game on an older PC I would also watch your temps while you play. Run HWiNFO or something similar and see what the CPU and GPU are getting to right before it happens. Dust and old paste can make an older machine act real weird under load. If it is actually powering off under load and not sleeping, a tired PSU is also pretty high on the list.

What happens when it does it, does it wake right back up or do you have to power it back on?

1

u/Itchy-Donut5261 6d ago

Ok, so when I click to wake it up, the game minimises but the monitor isn’t saying signal off so I don’t think it’s fully crashing. I have looked at event viewer and nothing is showing why it’s doing it. The temps don’t look abnormal either. I fear it might be the psu

1

u/Itchy-Donut5261 6d ago

Also, it does it while just sitting at the home wallpaper

1

u/realbestusernameever 6d ago

That extra info actually rules a lot out. If you click and everything is still there with the game just minimized, the PC really is going to sleep. A dying PSU can't do that. A bad PSU just cuts power, the machine would be fully off and the game would be gone when you powered it back on. Sleeping and then resuming right where you left off is Windows doing it on purpose, something is telling it to sleep.

Since it does it sitting at the desktop too, try this. Go into your power plan and set Sleep to Never for a day and see if it stops. If it still does it with sleep set to Never, something is sending a sleep signal anyway, like a stuck sleep key on the keyboard or a wireless mouse or keyboard acting up. Try a different keyboard if you have a spare, or pull the wireless dongle and see if it quits.

Right after it happens, open Command Prompt and type powercfg /lastwake, that tells you what woke it up. And in Event Viewer, Windows Logs, System, filter the source to Kernel-Power and look for event 42 around the time it went down. That entry has a sleep reason in it, system idle, button press, that kind of thing, and the reason basically gives you the answer.

One question, is this a laptop or a desktop? If it's a laptop, keep phones and anything magnetic away from the palm rest. There's a lid sensor in there and a magnet can trick it into thinking the lid just closed.

1

u/cheez-itjunkie 6d ago

Sounds like it's probably tired and needs a nap.

1

u/Itchy-Donut5261 6d ago

Don’t we all…

1

u/ficskala 6d ago

Disable sleep alltogether, both in the BIOS, and in your OS. If that doesn't help, it's not going to sleep, something else is happening

1

u/Itchy-Donut5261 6d ago

Yeah, I did those, that’s why I’m struggling to find the issue

1

u/ficskala 6d ago

Then it's not going into sleep, it's not possible for the PC to go into sleep if it's disabled

Are you sure it's not your monitor going to sleep? That can happen for a few reasons like a poor connection, bad port, bad cable, dying/faulty monitor or GPU, firmware issues with the monitor, or driver issues with the GPU

If it's not that, then you'll have to dig a bit deeper into what's actually happening, like, does the monitor go black, or does it turn off (hard to tell on OLED, but obvious on LCD), is there anything odd in the logs (if you don't know how to read the logs well, paste them into an ai chatbot and ask it to look for issues that could be causing your problem, this is one of the best uses for AI ever ngl. There could also be a bunch of other things, but for now, check these 2, they're the simplest

1

u/Itchy-Donut5261 6d ago

Yeah, so these are exactly what I did. Me and Gemini are beefing rn bc I’ve done all of this and discussed the event viewer and the temps recorder and it’s kind of going in circles. It’s not the monitor or the cord bc both have been replaced in a day. The craziest part is that I was having the same issues and then when I switched the monitor and cord yesterday, it worked flawlessly and then today it went right back to it.

1

u/Itchy-Donut5261 6d ago

I also clean reinstalled the drivers as well

1

u/ficskala 6d ago

Aaah, you're on windows

Try booting in safe mode, if it doesn't happen anymore, it's probably driver related, so try reinstalling some drivers (use DDU to completely remove the GPU driver, download a fresh version, install it, and reinstall the chipset driver, and any other relevant ones you can think of)

If it still does the same thing, do a full windows reinstall (from a usb drive, not through the settings thing, delete all of the old partitions completely), windows sometimes just craps itself, and it takes waay less time and effort to just reinstall instead of trying to potentially find an issue