所以我一直在为我们的系统解决睡眠计时器问题,并且遇到了一个有趣的问题。 我需要一种方式来报告一个系统在多个不同的input之后被唤醒的时间。 现在,我发现系统日志跟踪唤醒和睡眠事件,甚至告诉你所有事情发生的时间。 事情是不告诉你是什么触发了唤醒事件。 它确实给你一个数字代码,但是。 这里有一些我发现的例子。
Index : 2901 EntryType : Information InstanceId : 1 Message : The system has resumed from sleep. Sleep Time: 2010-10-01T23:20:06.097488100Z Wake Time: 2010-10-03T17:41:12.796400500Z Wake Source: 0 Category : (0) CategoryNumber : 0 Source : Microsoft-Windows-Power-Troubleshooter
–
Index : 2841 EntryType : Information InstanceId : 1 Message : The system has resumed from sleep. Sleep Time: 2010-10-01T19:19:37.239789600Z Wake Time: 2010-10-01T21:28:48.921200800Z Wake Source: 4HID Keyboard Device Category : (0) CategoryNumber : 0 Source : Microsoft-Windows-Power-Troubleshooter
所以这是我的问题:有谁知道“唤醒源”的不同数字代码是什么意思? 我认为“0”是一个魔术包,“4”是一个USB设备。
有没有人有任何想法,如果有任何有关Windows 7的文件?
提前致谢
我不知道唤醒源代码的确切来源,但下次看到0时,请尝试在提示符处运行以下命令:
powercfg -lastwake
它应该希望给你更多的信息,而不仅仅是一个0。