「Windows」- 电源管理,杂记

  CREATED BY JENKINSBOT

禁止鼠标唤醒休眠

Windows 10 — Cannot disable the mouse from waking computer from sleep

在笔记本休眠之后,如果触碰鼠标,此时笔记本将被从休眠中唤醒。

但是,我们不希望鼠标唤醒笔记本。例如,当无线鼠标放在包里时,如果鼠标没有关闭,那就会唤醒设备,然后笔记本就会闷在包里运转。

在 Windows 10 Pro 21H1 中:
1)Device Manager ⇒ Keyboards ⇒ HID Keyboard Device;
2)Properties ⇒ Power Managerment ⇒ Allow this device to wake the computer,取消勾选;
3)注意,禁用 Mice and other pointing devices ⇒ HID-compliant mouse 并未解决我们的问题;

无法成功进入休眠

An audio stream is currently in use? Here’s How to Fix – Appuals.com
Fix Windows 10 Sleep Mode Not Working [Solved]
High Definition Audio Device — Audio Stream is currently in use preventing Sleep

查看是否存在设备被占用,而导致无法休眠:

# powercfg -requests
DISPLAY:
None.

SYSTEM:
[DRIVER] Realtek High Definition Audio(SST) (INTELAUDIO\FUNC_01&VEN_10EC&DEV_0257&SUBSYS_17AA22A4&REV_1000\5&2a7b71b7&0&0001)
An audio stream is currently in use.
[DRIVER] 英特尔(R) 显示器音频 (INTELAUDIO\FUNC_01&VEN_8086&DEV_280B&SUBSYS_80860101&REV_1000\5&2a7b71b7&0&0201)
An audio stream is currently in use.

AWAYMODE:
None.

EXECUTION:
None.

PERFBOOST:
None.

ACTIVELOCKSCREEN:
None.

针对如上输出,表示系统资源被占用,无法进入休眠。

通过命令能够忽略这些设备,以保证休眠正常进行:

# powercfg -REQUESTSOVERRIDE DRIVER "Realtek High Definition Audio(SST)" SYSTEM.