[SOLVED] PC restarts itself when locked

sc0rpi0n

Honorable
Dec 30, 2018
5
1
10,525
Subject: PC restarts itself when locked

Hi, since I upgraded my PC I have noticed that PC restarts by itself when I lock the session. My operating system is Windows 10 Pro 21H1, but the problem also occurred with the 20H2 version.
When I lock the PC (by pressing Windows+L), it restarts by itself, I understand that it happens after about 1 minute after locking it. In the system logs I can't figure out what it could be. I have all the updated drivers.



PC Specs:

CPU: AMD Ryzen 7 5800X
Motherboard: ASRock X570 Steel Legend
GPU: AMD Radeon RX 580
RAM: Patriot 32 GB DDR4-3600


How can I solve?
Thanks in advance.
 
Solution
I solved!
I noticed that PC restarts after the monitor is turned off. You know that by default, when you lock the session, a background image appears with date and time, and after 1 minute Windows turns off the monitor (if I remember correctly, this feature appeared with Windows 8). Then just move the mouse or press a key and the screen comes back on asking for the account password.
I tried to turn off all power saving, but when it goes to turn off the monitor restarts. It only does this when session is locked. If you set from power saving to turn off the monitor, for example after 1 minute of inactivity, the screen turns off and the PC does not restart.
Then I remembered that I had turned off hibernation with the "powercfg -h off"...
Does your keyboard have a key with padlock icon on it? If so, does pressing that key also cause a restart?

Do you play any games or use any apps with macros? Could be a buggy or mis-congfigured app.

Look in Personalization and Ease of Access to check the configuration settings therein.

Also check Reliability History and Event Viewer for any entries that you can associate with the restart problem. Something that occurs about a minute after locking the computer.

Any power or screen savers? If so, turn them off or otherwise disable them - if the restarts end then enable power savers, etc, again but only one at a time and wait awhile before enabling another one.

You should also look in Task Scheduler: There may be some app or utility being triggered by the use of WIN+L
 
Does your keyboard have a key with padlock icon on it? If so, does pressing that key also cause a restart?

Do you play any games or use any apps with macros? Could be a buggy or mis-congfigured app.

Look in Personalization and Ease of Access to check the configuration settings therein.

Also check Reliability History and Event Viewer for any entries that you can associate with the restart problem. Something that occurs about a minute after locking the computer.

Any power or screen savers? If so, turn them off or otherwise disable them - if the restarts end then enable power savers, etc, again but only one at a time and wait awhile before enabling another one.

You should also look in Task Scheduler: There may be some app or utility being triggered by the use of WIN+L

No padlock on my keyboard. I don't press any key, I sit and wait about 1 minute then PC restart itself!
No games or apps with macros.
I have no screen saver, only active feature is turn off screen after 10 minutes. In my Task Scheduler there are lots of Windows tasks, how can I find if some of them use WIN+L?
Unfortunately, Event Viewer is not helpful. Do you now a software that can extend Windows Event Viewer features?

Thanks.
 
Subject: PC restarts itself when locked

Hi, since I upgraded my PC I have noticed that PC restarts by itself when I lock the session. My operating system is Windows 10 Pro 21H1, but the problem also occurred with the 20H2 version.
When I lock the PC (by pressing Windows+L), it restarts by itself, I understand that it happens after about 1 minute after locking it. In the system logs I can't figure out what it could be. I have all the updated drivers.



PC Specs:

CPU: AMD Ryzen 7 5800X
Motherboard: ASRock X570 Steel Legend
GPU: AMD Radeon RX 580
RAM: Patriot 32 GB DDR4-3600


How can I solve?
Thanks in advance.
Run clean boot through google.
See if clean boot gives a clue.
 
I solved!
I noticed that PC restarts after the monitor is turned off. You know that by default, when you lock the session, a background image appears with date and time, and after 1 minute Windows turns off the monitor (if I remember correctly, this feature appeared with Windows 8). Then just move the mouse or press a key and the screen comes back on asking for the account password.
I tried to turn off all power saving, but when it goes to turn off the monitor restarts. It only does this when session is locked. If you set from power saving to turn off the monitor, for example after 1 minute of inactivity, the screen turns off and the PC does not restart.
Then I remembered that I had turned off hibernation with the "powercfg -h off" command. So I figured that somehow it's like the hibernation is active and malfunctioning.
I reactivated it with the command "powercfg -h on" and now, after 1 minute that the session is blocked, the monitor is turned off but the pc does not restart. Of course the hiberfil.sys file takes up more than 13 GB of my SSD. Patience. I thought, at least I solved the problem. But no!
Doing other tests, if the "Turn off the display" setting is set to any value other than never, even with "powercfg -h on" the PC will restart after the monitor is turned off.
Unfortunately, I cannot take advantage of the convenience that after 1 minute of a locked session the screen is turned off, in order to prevent it from being damaged by leaving the same image for too long. Unfortunately I'll have to manually turn off the monitor after I have locked the session. Needless to say that with Linux I have no problem and I have set that after 1 minute of session lock on KDE Plasma the screen will turn off.
 
  • Like
Reactions: revodo
Solution
I solved!
I noticed that PC restarts after the monitor is turned off. You know that by default, when you lock the session, a background image appears with date and time, and after 1 minute Windows turns off the monitor (if I remember correctly, this feature appeared with Windows 8). Then just move the mouse or press a key and the screen comes back on asking for the account password.
I tried to turn off all power saving, but when it goes to turn off the monitor restarts. It only does this when session is locked. If you set from power saving to turn off the monitor, for example after 1 minute of inactivity, the screen turns off and the PC does not restart.
Then I remembered that I had turned off hibernation with the "powercfg -h off" command. So I figured that somehow it's like the hibernation is active and malfunctioning.
I reactivated it with the command "powercfg -h on" and now, after 1 minute that the session is blocked, the monitor is turned off but the pc does not restart. Of course the hiberfil.sys file takes up more than 13 GB of my SSD. Patience. I thought, at least I solved the problem. But no!
Doing other tests, if the "Turn off the display" setting is set to any value other than never, even with "powercfg -h on" the PC will restart after the monitor is turned off.
Unfortunately, I cannot take advantage of the convenience that after 1 minute of a locked session the screen is turned off, in order to prevent it from being damaged by leaving the same image for too long. Unfortunately I'll have to manually turn off the monitor after I have locked the session. Needless to say that with Linux I have no problem and I have set that after 1 minute of session lock on KDE Plasma the screen will turn off.

I like when people come back to describe how they solved an issue.