
藍牙 喚醒計算機

Putting your PC to sleep is a great way to save energy while still making sure you can resume work quickly. But what can you do if your PC keeps waking up on its own? Here’s how to figure out what’s waking it up, and how to prevent it.
使PC進入睡眠狀態是節省能源的絕佳方法,同時仍可確保您可以快速恢復工作。 但是,如果您的PC不斷自行喚醒,該怎么辦? 這是找出問題的起因以及如何預防的方法。
When you put your PC to sleep, it enters a power-saving state where it shuts down power to most of the PC’s components, keeping just enough power trickling to keep the memory refreshed. This lets you quickly wake the computer back up to the same state it was in when it went to sleep—including any documents and folders you had open. One of the differences between sleep and hibernation is that when a PC is alseep, activity from certain devices can wake it up. Scheduled tasks can also be configured to wake the PC up so that they can run.
當您將PC置于睡眠狀態時,它會進入省電狀態,在該狀態下,它將關閉大多數PC組件的電源,僅保留足夠的電源滴流以保持內存刷新。 這使您可以快速將計算機恢復到睡眠狀態,包括您打開的所有文檔和文件夾。 睡眠和Hibernate之間的區別之一是,當PC處于偵聽狀態時,某些設備的活動可以將其喚醒。 計劃任務也可以配置為喚醒PC,以便它們可以運行。
如何找出什么正在喚醒您的PC (How to Find Out What’s Waking Your PC Up)
Before you can fix the problem, you need to determine the problem. There are a few different steps you’ll probably need to take here, as no one solution fits everyone.
在解決問題之前,您需要確定問題。 您可能需要在這里采取一些不同的步驟,因為沒有一種解決方案適合所有人。
查看喚醒電腦的最后一件事 (See the?Last Thing That Woke Your?PC)
The first step in figuring out why your PC is waking up before you want it to is determining what’s doing the waking. You can usually figure out what event caused your computer to wake up most recently with a simple Command Prompt command. Start the Command Prompt by?hitting Start, typing “command,” and then selecting the “Command Prompt” app.
弄清楚PC為何要醒來之前的第一步是確定正在做什么。 通常,您可以使用簡單的命令提示符命令來找出是什么原因導致計算機最近一次喚醒。 通過單擊“開始”,鍵入“ command”,然后選擇“ Command Prompt”應用程序來啟動命令提示符。

In the Command Prompt window, type the following command and press Enter:
在“命令提示符”窗口中,鍵入以下命令,然后按Enter:
powercfg -lastwake

I can tell from the output of the command above, for example,?that I used the power button to wake my PC. You may also see listed devices—like your mouse, keyboard, or network adapter—or events like wake timers or automatic?maintenance.
例如,從上面命令的輸出中可以看出,我使用電源按鈕喚醒了PC。 您可能還會看到列出的設備(例如鼠標,鍵盤或網絡適配器)或事件(例如喚醒計時器或自動維護)。
This won’t always give you the information you need, but often it will.
這不會總是為您提供所需的信息,但是通常會。
使用事件查看器探索其他喚醒事件 (Explore Other Wake Up Events with Event Viewer)
While the Command Prompt command we just talked about is great for showing you what last woke your PC, sometimes you need to go a bit further back in history to see what’s woken it up before. For that, we’ll turn to Event Viewer, a handy logging tool that will help us see when your computer turned off (be that because it was shut down, put to sleep, or hibernated) and when it woke up.
雖然我們剛才討論的命令提示符命令非常適合向您顯示上一次喚醒您的PC的內容,但有時您需要回顧一下歷史,以了解之前的操作。 為此,我們將使用Event Viewer ,這是一個方便的日志記錄工具,它將幫助我們查看您的計算機何時關閉(因為它已關閉,進入睡眠或Hibernate狀態)以及何時醒來。
To open Event Viewer, hit Start, type “event,” and then select “Event Viewer.”
要打開事件查看器,請單擊開始,鍵入“事件”,然后選擇“事件查看器”。

In the left-hand pane, drill down to Event Viewer (Local) > Windows Logs > System. You’ll see?a lot of information here, but don’t worry. You don’t need to read through or attempt to understand everything?going on in the log. We’re going to filter it to just the stuff we need to look at. Right-click the “System” log and choose “Filter Current Log.”
在左側窗格中,深入到“事件查看器(本地)”>“ Windows日志”>“系統”。 您會在這里看到很多信息,但是請放心。 您無需通讀或嘗試了解日志中發生的所有事情。 我們將其過濾為僅需要查看的內容。 右鍵單擊“系統”日志,然后選擇“過濾當前日志”。

In the Filter Current Log window, on the?“Event sources” drop-down menu, select the “Power-Troubleshooter” option and then click “OK.”
在“篩選當前日志”窗口的“事件源”下拉菜單上,選擇“電源疑難解答”選項,然后單擊“確定”。

Back in the main Event Viewer window, you’ll see that we’ve filtered out the hundreds of messages that aren’t relevant to our problem and honed right in on the thing we care about: when the computer is waking up from a low-power state.?In the new filtered view, you can scroll through every instance where your computer has woken over the duration of the log (which should be hundreds of entries).
返回“事件查看器”主窗口,您會看到我們過濾掉了數百條與問題無關的消息,并仔細研究了我們關心的事情:當計算機從低位喚醒時-電源狀態。 在新的篩選視圖中,您可以滾動瀏覽日志持續時間內計算機喚醒的每個實例(應該是數百個條目)。

What you should focus on is the time the event was logged (did it wake at a time you were at the computer or was it a random middle-of-the-night wake up call) and what Wake Source is indicated.
您應該關注的是事件被記錄的時間(是您在計算機上一次喚醒,還是一個隨機的午夜喚醒呼叫)以及指示的喚醒源。
- If the Wake Source says “Power Button,” that indicates that the power button on the PC was pressed to wake it up—an action you most likely took yourself. 如果“喚醒源”顯示為“電源按鈕”,則表示已按下PC上的電源按鈕將其喚醒,您很可能已采取了這種行動。
- If the Wake Source says something like “Device–HID-Compliant Mouse (or Keyboard),” that indicates the PC is configured for?key presses and mouse movements to wake it. 如果喚醒源顯示類似“設備-HID兼容的鼠標(或鍵盤)”的字樣,則表明PC已配置為可以通過按鍵和鼠標移動來喚醒它。
If the Wake Source lists your network adapter, that indicates your PC is configured so that incoming network activity can wake it up—something that’s useful if you like having your PC go to sleep but still need it available to other network devices at times.
如果“喚醒源”列出了您的網絡適配器,則表明您的PC已配置為可以使傳入的網絡活動將其喚醒-如果您希望讓PC進入睡眠狀態,但有時仍需要其他網絡設備可用,則這很有用。
- If the Wake Source says “Timer,” it means that a scheduled task woke the computer. The source information usually includes some indication about the task that woke the PC. For example, in the previous screenshot, I can tell that my PC was woken up in order to do a scheduled restart after an update. 如果喚醒源顯示“計時器”,則意味著計劃的任務喚醒了計算機。 源信息通常包括一些有關喚醒PC的任務的指示。 例如,在上一個屏幕截圖中,我可以說我的PC已被喚醒,以便在更新后進行預定的重啟。
- You may also see something like “Wake Source: Unknown,” which is a bit more cryptic but at least it tells when the PC was awoken. 您可能還會看到類似“喚醒源:未知”之類的信息,它有點神秘,但至少可以告訴您何時喚醒了PC。
Once you’ve established that there is in fact a pattern of odd computer wake up calls and you’ve identified the source, it’s time to do something about it.
一旦確定了實際上有一種奇怪的計算機喚醒呼叫模式,并且已經確定了來源,就該采取措施了。
如何阻止您的PC隨機喚醒 (How to Stop Your PC From Waking Up Randomly)
Hopefully, one of the above tricks helped you figure out what’s waking your PC. Now, it’s time to solve the problem. Skip down to the section that applies to your situation.
希望上述技巧之一可以幫助您弄清PC的喚醒方式。 現在,該解決問題了。 跳至適用于您情況的部分。
限制可以喚醒PC的硬件設備 (Limit Hardware Devices That Can Wake Your PC)
As you probably noticed from looking through Event Viewer logs, there are four primary hardware devices that can wake your PC: mice, keyboards, network adapters, and power buttons (or laptop lids if that’s what you’re using).?You can easily view a complete list of the hardware devices allowed to wake your PC with a Command Prompt command. Open up a Command Prompt window and run the following command:
從事件查看器日志中可能會發現,有四種可以喚醒PC的主要硬件設備:鼠標,鍵盤,網絡適配器和電源按鈕(如果您使用的是筆記本電腦蓋)。 您可以使用命令提示符命令輕松查看允許喚醒PC的硬件設備的完整列表。 打開命令提示符窗口,然后運行以下命令:
powercfg -devicequery wake_armed

In this example, I’ve got several devices that are allowed to wake my PC, including an Intel Ethernet adapter, two keyboards (I switch between regular and gaming keyboards), and a mouse. Whatever your setup, now that you know what devices can wake your PC, you can head over to Device Manager to tell them not to.
在此示例中,我有幾種允許喚醒PC的設備,包括Intel以太網適配器,兩個鍵盤(我在常規鍵盤和游戲鍵盤之間切換)和一個鼠標。 無論您進行什么設置,現在您都知道可以喚醒PC的設備,因此可以轉到Device Manager告訴他們不要。
We’ve covered in detail?how to prevent your mouse from waking your PC?and?how to prevent network activity from waking your PC. So, in our example here, we’ll be preventing the keyboard from waking the PC. Why would you want to do this? One word: cats.
我們已經詳細介紹了如何防止鼠標喚醒計算機以及如何防止網絡活動喚醒計算機。 因此,在這里的示例中,我們將防止鍵盤喚醒PC。 你為什么想做這個? 一句話:貓。
(This should, however, work for other devices that may be waking your computer—not just keyboards.)
(但是,這應該適用于可能喚醒計算機的其他設備,而不僅僅是鍵盤。)
Open Device manager by pressing the Windows key, typing “Device Manager,” and then pressing Enter.
通過按Windows鍵,鍵入“設備管理器”,然后按Enter打開設備管理器。

In the Device Manager window, locate the device you want to prevent from waking your computer. It will have the same name as it does in the output of the powercfg
command you just ran. Right-click the device and select “Properties” from the context menu.
在“設備管理器”窗口中,找到要防止喚醒計算機的設備。 它的名稱與您剛運行的powercfg
命令的輸出名稱相同。 右鍵單擊設備,然后從上下文菜單中選擇“屬性”。

On the “Power Management” tab of the device’s properties window, disable the “Allow this device to wake the computer” option and then click “OK.”
在設備屬性窗口的“電源管理”選項卡上,禁用“允許此設備喚醒計算機”選項,然后單擊“確定”。

While you’ve got Device Manager open, go ahead and disallow any other devices you don’t want waking up your computer. When you’re done, you can exit Device Manager.
打開“設備管理器”后,繼續進行操作,并禁止任何您不想喚醒計算機的其他設備。 完成后,您可以退出設備管理器。
禁用喚醒計時器和計劃任務 (Disable Wake Timers and Scheduled Tasks)
The other thing that can wake your PC is a scheduled task. Some scheduled tasks—for example, an antivirus app that schedules a scan—can set a wake timer to wake your PC at specific time to run an app or command.?To see a list of wake timers set on your computer, you can use a Command Prompt command. You’ll have to run Command Prompt with administrative privileges for this one. To do so, hit Start, type “command,” and when you see the Command Prompt app, right-click it and choose “Run as administrator.”
可以喚醒您的PC的另一件事是計劃任務。 某些計劃的任務(例如,防病毒應用程序可以安排掃描時間)可以設置喚醒計時器,以在特定時間喚醒PC來運行應用程序或命令。 要查看計算機上設置的喚醒計時器列表,可以使用命令提示符命令。 您必須使用此命令的管理特權運行命令提示符。 為此,請單擊開始,鍵入“命令”,然后在看到命令提示符應用程序時,右鍵單擊它,然后選擇“以管理員身份運行”。

In the Command Prompt window, type the following command and then press Enter:
在“命令提示符”窗口中,鍵入以下命令,然后按Enter:
powercfg -waketimers

In this example, you can see I have one wake timer—a scheduled task set to check whether I have any large files queued for downloading so that I can have the downloading happen when I’m not using the PC.
在此示例中,您可以看到我有一個喚醒計時器,這是一個計劃任務,用于檢查是否有大文件排隊等待下載,以便在不使用PC時可以進行下載。
You have to choices for stopping this: you can disable that specific wake timer, or disable all wake timers.
您必須選擇停止它:您可以禁用該特定的喚醒計時器,或禁用所有喚醒計時器。
If you just want to stop one task from waking your computer, you can uninstall the app that created the task or adjust the scheduled task settings. You can read the full instructions for working with scheduled tasks in our article on automatically running programs with the Windows Task Scheduler, but here’s the short version.
如果您只想停止一項任務喚醒計算機,則可以卸載創建任務的應用程序或調整計劃的任務設置。 您可以閱讀有關使用Windows Task Scheduler自動運行程序的文章中的有關計劃任務的完整說明,但這是簡短版本。
Find the task in Task Scheduler, right-click it, and then choose “Properties”. In the Properties window, on the “Conditions” tab, turn off the “Wake the computer to run this task” option.
在任務計劃程序中找到任務,右鍵單擊它,然后選擇“屬性”。 在“屬性”窗口中的“條件”選項卡上,關閉“喚醒計算機以運行此任務”選項。

This leaves the scheduled task in place and, if your PC is awake, Windows will run the task. It just won’t wake the PC in order to do it.
這樣可以將計劃的任務保留在原位,并且如果您的PC處于喚醒狀態,Windows將運行該任務。 它只是不會喚醒PC來執行此操作。
If you don’t want any programs waking your computer up automatically, you can disable wake timers entirely. To do so open the Power Options Control Panel app it by hitting Start, typing “power options,” and then pressing Enter.
如果您不希望任何程序自動喚醒計算機,則可以完全禁用喚醒計時器。 為此,通過單擊開始,鍵入“電源選項”,然后按Enter,打開Power Options Control Panel應用程序。

In the Power Options window, click the “Change plan settings” link next to the plan you use.
在“電源選項”窗口中,單擊所使用計劃旁邊的“更改計劃設置”鏈接。

In the next window, click the “Change advanced power settings” link.
在下一個窗口中,單擊“更改高級電源設置”鏈接。

Expand the “Sleep” entry, expand the “Allow wake timers” entry below it, and then set the entries below it to “Disabled.” If you’re on a laptop, you’ll see two entries—“On battery” and “Plugged in”—and you can configure these for different settings if you want. If you’re using a desktop PC, you’ll only see one setting under the “Allow wake timers” entry, as in this example.
展開“睡眠”條目,展開其下方的“允許喚醒計時器”條目,然后將其下方的條目設置為“禁用”。 如果您使用的是筆記本電腦,則會看到兩個條目-“電池供電”和“插入電源”,并且可以根據需要為不同的設置進行配置。 如果您使用的是臺式機,則在“允許喚醒計時器”條目下只能看到一個設置,如本例所示。

Note that if you’re using Windows 10, you’ll also have a third option other than just enabling or disabling the wake timer. This option is called “Important Wake Timers Only” and wakes your PC only for major Windows system events like a scheduled restart of your PC outside active hours following a Windows update. You can try setting your wake timers to “Important Wake Timers Only” and see if it solves your problems. If your PC is still waking up more often than you’d like, you can always come back and set wake timers to “Disabled” instead.
請注意,如果您使用的是Windows 10,則除了啟用或禁用喚醒計時器外,還有第三種選擇。 此選項稱為“僅重要的喚醒計時器”,僅在Windows更新之后的活動時間以外按計劃重啟PC時,才針對主要Windows系統事件喚醒PC。 您可以嘗試將喚醒計時器設置為“僅重要的喚醒計時器”,看看它是否可以解決您的問題。 如果您的PC仍然比所需的喚醒時間更多,則可以隨時返回并將喚醒計時器設置為“ Disabled”。
防止自動維護喚醒您的PC (Prevent Automatic Maintenance From Waking Your PC)
By default, Windows runs automatic maintenance tasks at 2:00 am every night if you’re not using your computer. It’s also set to wake your PC from sleep to run those tasks. These tasks include things like checking to see if your hard drive needs defragmenting, running system diagnostics, checking for disk volume errors, and more. They are important tasks to have run periodically, but if ?you’d prefer that Windows not wake your PC to do it, you can turn that setting off. We’re using Windows 10 as our example here, but you’ll find the settings in the same place in Windows 8 and 7.
默認情況下,如果您不使用計算機,則Windows每天晚上2:00運行自動維護任務。 還可以將PC從睡眠狀態喚醒以運行這些任務。 這些任務包括諸如檢查硬盤驅動器是否需要進行碎片整理,運行系統診斷程序,檢查磁盤卷錯誤等內容。 它們是定期運行的重要任務,但是如果您不希望Windows喚醒計算機來執行此操作,則可以關閉該設置。 我們在這里以Windows 10為例,但是您會在Windows 8和7的同一位置找到這些設置。
In Control Panel, switch to icon view and then open the Security and Maintenance app.
在控制面板中,切換到圖標視圖,然后打開“安全和維護”應用程序。

On the Security and Maintenance page, expand the “Maintenance” section and then click “Change maintenance settings.”
在“安全和維護”頁面上,展開“維護”部分,然后單擊“更改維護設置”。

On the Automatic Maintenance page, turn off the “Allow scheduled maintenance to wake up my computer at the scheduled time” option. Of course, you can also set the schedule time to something you like better if you want.
在“自動維護”頁面上,關閉“允許計劃的維護以在計劃的時間喚醒計算機”選項。 當然,您也可以根據需要將時間表時間設置為更好的時間。

If you do turn off Windows’ ability to wake your PC to run maintenance tasks, you should still let it run those maintenance tasks occasionally. You can do that by setting the scheduled time to when you’re more likely to have your PC turned on or you can do it manually by clicking “Start maintenance” back on the main Security and Maintenance page.
如果確實關閉Windows喚醒計算機以運行維護任務的功能,則仍應讓它偶爾運行這些維護任務。 您可以通過將計劃時間設置為更有可能打開計算機的時間來做到這一點,也可以通過單擊“安全和維護”主頁面上的“開始維護”來手動進行設置。

Sleep is a valuable tool for preserving energy while still keeping your PC immediately available when you need it. While you’ll likely want some devices (like your keyboard) and some scheduled tasks to be able to wake up your PC, it’s good to know that you have some tools for investigating why it’s waking up and options for stopping it from happening when you don’t want it to.
睡眠是節省能源的寶貴工具,同時在需要時仍可讓您的PC保持立即可用。 雖然您可能希望某些設備(例如鍵盤)和某些計劃的任務能夠喚醒PC,但很高興知道您有一些調查原因,以及可以選擇阻止喚醒的工具。不想。
翻譯自: https://www.howtogeek.com/122954/how-to-prevent-your-computer-from-waking-up-accidentally/
藍牙 喚醒計算機