已禁用全部睡眠设置但Windows 10台式机仍自动休眠的故障求助
各位大佬好,我遇到了一个特别棘手的问题,急需大家的帮助:
我的台式机配置很简单:技嘉主板、两块NVME硬盘、DVD刻录机、64GB内存,运行Windows 10系统,外接了TrippLite UPS。
平时我都是每晚关机,但最近需要运行一些长时间的任务,得让机器连续几天保持开机状态。可我发现,只要我不操作机器,它就会在白天突然进入休眠状态——所有睡眠相关选项都已经禁用了,包括那个需要修改注册表才能看到的隐藏选项。
查看系统事件日志,明确显示机器进入了睡眠状态。今天早上我查日志的时候还发现,休眠前有一连串6条“电源来源变更”的消息,前后持续大概7分钟。
我也检查了UPS的日志,里面也记录了机器进入休眠的过程,相关日志如下:
2023-09-28T17:52:40Z tradingPC - -1: [info] CommandInfo [ name='Get Discharging'; id=103; variation=5; protocolId=0x3016; className='Command_getdischarging_3016_com_hid_103'; priority='MEDIUM'; executionGroup='DATA'; commandType='GET'; communicationType='HID'; isIdle=false; isLiteral=false; isNullCommand=false; isCommandDataFormula=false; commandData=' 00 84 00 02 00 85 00 45 '; data=' '; inboundDataLength=1; outboundDataLength=8; line=0; dependsOnVariable=''; updatedVariables=('Battery Discharging','Battery Charge'); isAvailable=true; tag=;) ] 2023-09-28T17:52:40Z tradingPC - -1: [info] Sending 8 bytes to device: 00 84 00 02 00 85 00 45 2023-09-28T17:52:40Z tradingPC - -1: [info] Port '\\?\hid#vid_09ae&pid_3016#6&12b3d71&1&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}' Outbound to device: combined=0x84000200850045 2023-09-28T17:52:40Z tradingPC - -5: [debug] Received message <<14>Sep 28 10:52:40 tradingPC CommandInfo [ name='Get Discharging'; id=103; variation=5; protocolId=0x3016; className='Command_getdischarging_3016_com_hid_103'; priority='MEDIUM'; executionGroup='DATA'; commandType='GET'; communicationType='HID'; isIdle=false; isLiteral=false; isNullCommand=false; isCommandDataFormula=false; commandData=' 00 84 00 02 00 85 00 45 '; data=' '; inboundDataLength=1; outboundDataLength=8; line=0; dependsOnVariable=''; updatedVariables=('Battery Discharging','Battery Charge'); isAvailable=true; tag=;) ]> 2023-09-28T17:52:40Z tradingPC - -5: [debug] Received message <<14>Sep 28 10:52:40 tradingPC Sending 8 bytes to device: 00 84 00 02 00 85 00 45 > 2023-09-28T17:52:40Z tradingPC - -5: [debug] Received message <<14>Sep 28 10:52:40 tradingPC Port '\\?\hid#vid_09ae&pid_3016#6&12b3d71&1&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}' Outbound to device: combined=0x84000200850045> 2023-09-28T17:52:40Z tradingPC - -1: [info] Port '\\?\hid#vid_09ae&pid_3016#6&12b3d71&1&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}' Inbound (four byte) from device: 00 00 00 00 2023-09-28T17:52:40Z tradingPC - -5: [debug] Received message <<14>Sep 28 10:52:40 tradingPC Port '\\?\hid#vid_09ae&pid_3016#6&12b3d71&1&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}' Inbound (four byte) from device: 00 00 00 00 > 2023-09-28T17:52:40Z tradingPC - -1: [info] Handling entry to hibernation... 2023-09-28T17:52:40Z tradingPC - -1: [info] Iterate over device 1 2023-09-28T17:52:40Z tradingPC - -5: [debug] Received message <<14>Sep 28 10:52:40 tradingPC Handling entry to hibernation...> 2023-09-28T17:52:40Z tradingPC - -5: [debug] Received message <<14>Sep 28 10:52:40 tradingPC Iterate over device 1> 2023-09-28T17:52:40Z tradingPC - -1: [info] CommandInfo [ name='Stop Watchdog Timer'; id=239; variation=14; protocolId=0x3016; className='Command_stopwatchdogtimer_3016_com_hid_239'; priority='MEDIUM'; executionGroup='EXIT'; commandType='SET'; communicationType='HID'; isIdle=false; isLiteral=false; isNullCommand=false; isCommandDataFormula=false; commandData=' 00 84 00 20 ff ff 00 92 '; data=' 00 '; inboundDataLength=1; outboundDataLength=8; line=0; dependsOnVariable='Cmd Stop Watchdog Timer Data'; updatedVariables=(); isAvailable=true; tag=;) ] 2023-09-28T17:52:40Z tradingPC - -1: [info] Sending 8 bytes to device: 00 84 00 20 ff ff 00 92 2023-09-28T17:52:40Z tradingPC - -1: [info] Port '\\?\hid#vid_09ae&pid_3016#6&12b3d71&1&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}' Outbound to device: combined=0x00840020ffff0092; data=00 2023-09-28T17:52:40Z tradingPC - -5: [debug] Received message <<14>Sep 28 10:52:40 tradingPC CommandInfo [ name='Stop Watchdog Timer'; id=239; variation=14; protocolId=0x3016; className='Command_stopwatchdogtimer_3016_com_hid_239'; priority='MEDIUM'; executionGroup='EXIT'; commandType='SET'; communicationType='HID'; isIdle=false; isLiteral=false; isNullCommand=false; isCommandDataFormula=false; commandData=' 00 84 00 20 ff ff 00 92 '; data=' 00 '; inboundDataLength=1; outboundDataLength=8; line=0; dependsOnVariable='Cmd Stop Watchdog Timer Data'; updatedVariables=(); isAvailable=true; tag=;) ]> 2023-09-28T17:52:40Z tradingPC - -5: [debug] Received message <<14>Sep 28 10:52:40 tradingPC Sending 8 bytes to device: 00 84 00 20 ff ff 00 92 > 2023-09-28T17:52:40Z tradingPC - -5: [debug] Received message <<14>Sep 28 10:52:40 tradingPC Port '\\?\hid#vid_09ae&pid_3016#6&12b3d71&1&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}' Outbound to device: combined=0x00840020ffff0092; data=00 > 2023-09-28T17:52:40Z tradingPC - -1: [info] Handled entry to hibernation 2023-09-28T17:52:40Z tradingPC - -5: [debug] Received message <<14>Sep 28 10:52:40 tradingPC Handled entry to hibernation> 2023-09-28T17:52:59Z tradingPC - -1: [info] Handling exit from hibernation... 2023-09-28T17:52:59Z tradingPC - -1: [info] Handled exit from hibernation 2023-09-28T17:52:59Z tradingPC - -1: [debug] set 'memoized_setups' on path 'CachingEntityRegistry((<Mapper at 0x197d3106550; SysLogServerModel>,))' to '{}' 2023-09-28T17:52:59Z tradingPC - -1: [debug] Returning 1 devices 2023-09-28T17:52:59Z tradingPC - -1: [info] updating active state for device 1. Updating active to false and initialized to false 2023-09-28T17:52:59Z tradingPC - -1: [info] Device ID 1 is going inactive; clear Communication Lost Event = false 2023-09-28T17:52:59Z tradingPC - -1: [debug] Clearing event active state and alarms only for device 1 2023-09-28T17:52:59Z tradingPC - -1: [debug] successfully got the list of alarms. Received 0 alarms 2023-09-28T17:52:59Z tradingPC - -1: [debug] gRPC OK, in: (, <grpc._server._Context object at 0x00000197D3C) 2023-09-28T17:52:59Z tradingPC - -5: [debug] Received message <<14>Sep 28 10:52:59 tradingPC Handling exit from hibernation...> 2023-09-28T17:52:59Z tradingPC - -5: [debug] Received message <<14>Sep 28 10:52:59 tradingPC Handled exit from hibernation>
(注:日志里和休眠直接相关的核心行是:2023-09-28T17:52:40Z tradingPC - -1: [info] Handling entry to hibernation...2023-09-28T17:52:40Z tradingPC - -1: [info] Handled entry to hibernation2023-09-28T17:52:59Z tradingPC - -1: [info] Handling exit from hibernation...2023-09-28T17:52:59Z tradingPC - -1: [info] Handled exit from hibernation)
我已经尝试了以下方法,但都没能解决问题:
- 关闭了所有后台应用
- 安装了PowerToys并启用了“始终保持唤醒”功能
现在只有我手动移动鼠标,才能阻止机器休眠。我真的快被逼疯了,因为必须让机器能无人值守运行很长时间,有没有大佬能帮我找出问题所在?
备注:内容来源于stack exchange,提问作者JVC




