为什么您的台式电脑不断自行唤醒(以及如何让它停止)
Why your desktop PC keeps waking up by itself (and how to make it stop)
如果您的电脑无法整夜睡眠,您可以帮助它得到更好的休息。
Windows PC 充满了奇怪的行为和奇怪的设计决策。例如,微软认为 Windows 11 锁屏是插入 Daily Wonder 等随机小部件的好地方,尽管我们大多数人都用密码或面部识别快速浏览它。
我时常遇到的一个奇怪问题是我的电脑随机唤醒。您可能会认为,当您让计算机进入睡眠状态时,它会一直保持这种状态,直到您有意将其唤醒。实际上,可以唤醒 PC 的条件有很多种,而且它们绝非随机的。
有时,设置可以允许第三方应用程序和外围设备进行控制。在其他情况下,Windows 可能正在唤醒自己以执行重要任务。值得庆幸的是,有一些简单的修复方法以及可以深入挖掘的诊断工具。
在我自己的机器上,导致此问题的最常见原因之一是鼠标。作为一款游戏鼠标,它足够灵敏,轻轻推挤我的桌子就足以让 Windows 认为我正在坐下来玩游戏。
要控制哪些 USB 设备可以打开您的电脑,您可以在不使用时拔下一些 USB 设备,但这并不实用。相反,请从 Windows + X 菜单打开设备管理器。在列表中找到相关硬件,右键单击它,然后选择属性。在“电源管理”选项卡下,取消选中“允许此设备唤醒计算机”,然后单击“确定”。您可以对键盘重复此操作,但最好至少有一个输入设备可用于有意唤醒 Windows(电源按钮始终有效)。其他设备可能有正当理由恢复您电脑的会话。
说到这里,一种称为 LAN 唤醒 (WoL) 的功能允许家庭网络上的设备在必要时让您的 PC 移动 — 例如,如果您的智能电视需要访问 PC 媒体服务器上的电影。如果您不需要这样做,请展开设备管理器中的网络适配器部分,然后选择您的 Wi-Fi 和/或以太网适配器。如果您愿意,可以关闭“允许此设备唤醒计算机”,但将其保留为打开状态并选中“仅允许魔术数据包唤醒计算机”可能就可以消除不需要的唤醒。通常,设备仅在实际需要 WoL 功能时才会发送魔术数据包。
不太可能涉及称为“自动维护”的功能(从“开始”菜单中搜索它)。它会在下班时间运行软件更新和安全扫描等功能。您可以通过取消选中“允许定期维护在计划时间唤醒我的计算机”来阻止它唤醒您的电脑。不过,只要您选择一个方便的时间,并且您的电脑设置为在不活动后返回睡眠状态,这应该不是问题。要更改睡眠计时器,请前往“设置”>“系统”>“电源和电池”>“屏幕、睡眠和休眠超时”。调整 让我的设备根据需要进入睡眠状态。
如果您仍然不知道什么会唤醒您的电脑,请在“开始”菜单中键入“终端”,然后右键单击其条目并选择“以管理员身份运行”。在其窗口中,一一运行这些命令:
如果您之前错过了,这些可以指导您在设备管理器中调整哪些内容。某些第三方应用程序也可能会触发自己的唤醒计时器,例如云备份服务。仔细检查这些提示出现的任何应用程序的设置。您可能还想检查 Windows 任务计划程序中计划定期运行的进程。
核心选项是完全禁用唤醒计时器。通过“开始”菜单搜索打开“编辑电源计划”,然后单击“更改高级电源设置”。深入至“睡眠”>“允许唤醒计时器”,您可以在其中选择“禁用”或“仅重要唤醒计时器”。后者尚未得到完美定义;它不允许因防病毒扫描等事件而唤醒,但可以在 Windows 更新安装后自动重新启动。
一般来说,最好还是慷慨一点——不仅使用唤醒定时器,还使用 USB 和网络唤醒。只要您采取了适当的安全措施和睡眠计时器,偶尔的奇怪唤醒可能是一个公平的交易,因为您知道您的软件和硬件可以在需要时执行其需要执行的操作。
原文(English)
If your PC can't sleep through the night, you can help it get a better rest.
Windows PCs are full of odd behaviors and strange design decisions. For example, Microsoft thinks the Windows 11 lock screen is a great place to insert random widgets like Daily Wonder, even though most of us blitz through it with our passcode or facial recognition.
An odd problem I've had from time to time is my PC waking up at random. You'd assume that when you put a computer to sleep, it would stay that way until you intentionally woke it up. In reality, there are a variety of conditions that can wake up a PC, and they're far from random.
Sometimes, settings can allow third-party apps and peripherals to take control. In other cases, it could be that Windows is waking itself up for important tasks. Thankfully, there are easy fixes available, as well as diagnostic tools to dig deeper.
On my own machine, one of the most common causes of this issue is the mouse. Being a gaming mouse, it's sensitive enough that lightly jostling my desk can be enough to make Windows think I'm sitting down to play.
To control which USB devices can turn on your PC, you can unplug some when you aren't using them, but that's not practical. Instead, open Device Manager from the Windows + X menu. Find the relevant hardware in the list, right-click on it, then select Properties. Under the Power Management tab, uncheck Allow this device to wake the computer, then click OK. You can repeat this for the keyboard, but it's a good idea to have at least one input device available to wake Windows intentionally (the power button will always work). It's possible that other devices have a valid reason to resume your PC's session.
Speaking of which, a feature known as Wake-on-LAN (WoL) allows devices on your home network to get your PC moving when necessary — say, if your smart TV needs to access the movies on your PC's media server. If you don't have any need for this, expand the Network adapters section in Device Manager, then select your Wi-Fi and/or Ethernet adapters. You can turn off Allow this device to wake the computer if you like, but leaving that on and checking Only allow a magic packet to wake the computer may be all you need to eliminate unwanted wakeups. Typically, devices will only send magic packets when they actually require WoL functions.
Less likely is that a feature called Automatic Maintenance (search for it from the Start menu) is involved. This runs functions like software updates and security scans during off hours. You can prevent it from waking your PC by unchecking Allow scheduled maintenance to wake up my computer at the scheduled time. It shouldn't be a problem, however, as long as you pick a convenient time and your PC is set to go back to sleep after inactivity. To change sleep timers, head to Settings > System > Power & battery > Screen, sleep, & hibernate timeouts. Adjust Make my device sleep after as desired.
If you still have no idea what could be waking up your PC, type "terminal" into the Start menu, then right-click its entry and choose Run as administrator. In its window, run these commands one-by-one:
These can point you toward what to adjust in Device Manager if you missed it earlier. It's also possible that some third-party apps may be triggering their own wake timers, such as a cloud backup service. Double-check the settings of any apps these prompts turn up. You might also want to check the Windows Task Scheduler for processes scheduled to run at regular intervals.
The nuclear option is to disable wake timers entirely. Open Edit power plan via a Start menu search, then click Change advanced power settings. Drill down to Sleep > Allow wake timers, where you can select Disable or Important Wake Timers Only. The latter isn't perfectly defined; it won't allow wakeups for events like antivirus scans, but it will for automatic reboots after Windows updates install.
Generally, it's better to err on the side of generosity — not just with wake timers, but with USB and network wakeups as well. As long as you've got security measures and sleep timers in place, the occasional strange wakeup is likely a fair trade for knowing your software and hardware can do what it needs to do, when it needs to.
本文为自动翻译,可能存在偏差,请以原文为准。发布于 2026-11-30 01:15
阅读原文 ↗https://www.engadget.com/2326115/desktop-pc-keeps-waking-up-