Allow this device to wake the computer
1.在windows下,我们会看到一些device具备唤醒系统的功能,如下:
如上如果是网络设备,微软有提供相应的注册表键值可以修改这个功能的capability:
键值:PnPcapabilities DWORD 类型
You have 3 options for the power management properties of the Network Card:
- Option 1: Allow the computer to turn off this device to save power
- Option 2: Allow this device to wake the computer
- Option 3: Only allow a magic packet to wake the computer
The different possible combinations which exist along with their DWORD values (in decimal and hex) are:
- Option 1 and option 2 are checked, Option 3 is un-checked: This is default and hence its value is 0
- Option 1, option 2 and option 3 are all checked: The value becomes 0x100 (256)
- Only option 1 is checked: The value becomes 0x110 (272)
- Option 1 is un-checked (Note that option 2 and option 3 will be greyed out as a result): The value becomes 0x118 (280)
2. 如果不是网络设备,运用上面的注册表键值看起来不会起作用。
这样可以通过windows 自带的系统工具 powercfg来实现自动关闭这个wake的功能。例如NVIDIA显卡里面会有一个PPC的device,这个device 驱动默认是有enable 这个wake的功能,但是我们如果想要把它disable,但是目前驱动没法disable,这样我们可以尝试用这个工具去快速disable。
(1)首先可以查看一下系统哪些device支持wake功能,如下
(2)通过命令disablewake功能
(3)查看相应的device是否已经disable了
3. 通过BIOS从底层宣告相应的ACPI method 去disable WAKE的功能,涉及的method 为_PRW/DSW/S0W...