Share via


Windows 10 Pro goes to sleep randomly, Event ID 42 Sleep reason: Battery

Question

Wednesday, August 2, 2017 2:29 AM

Hi guys,

We have multiple machines with Windows 10 Pro and a UPS. For some reason the machines will go to sleep while in use. It goes to a black screen, fans and hard drive power down, and then pressing a key or moving the mouse will wake it back up. Internal UPS logs say no power events. Event Viewer says:

Event ID 42 Sleep reason: Battery

The UPS should take care of all this so I don't need Windows 10 doing it. How can I tell Windows 10 not to go to sleep at all? Power settings are on Performance and Sleep settings are on Never, but I can't turn off the settings for the "Battery" sub-section.

Critical battery action: Hibernate

Low battery level: 10%

Critical battery level: 5%

Low battery action: Do nothing

Reserve battery level: 7%

There are three options for "Critical battery action": Sleep, Hibernate and Shut Down. Basically, I want a fourth option: Do nothing.

There is a command to turn off Hibernation:

powercfg /hibernate off

I will try this and see if it helps, but is there a way to turn off battery induced Sleep mode inside of Windows as well?

All replies (4)

Wednesday, August 2, 2017 2:54 AM

Turning off Hibernation has given me the option of "Do Nothing" if it isn't solely on battery (i.e. not plugged in). I have also changed "On critical battery while on battery" to Sleep. I will see if this stops the machine sleeping randomly.


Wednesday, August 2, 2017 5:20 AM

wouldn't the settings your are now using completely void the UPS?
f.e. a power outage, your UPS kicks in and sends a signal to the OS give it time to react safely,
but your setting will only Sleep the system. Then when the battery in the UPS is empty too, the system will shut down without saving any data.


Wednesday, August 2, 2017 5:30 AM

Good point, will change the setting to Shut Down.


Friday, August 4, 2017 12:13 AM

Hi, 

It seems that it's the UPS issue, seems it get into Power save mode. 

If you turn off UPS and there is no such issue, reinstall the UPS driver on your PC, and see if there is any additional settings in Power option for UPS. 

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].