Disabling Wake From Sleep: Power Button Override

how to diable wake from sleep throgh power button

Many Windows users have reported issues with their computers waking from sleep through the power button or other devices. This issue has been persistent for years and has affected various Windows OS versions, including Windows 10. While some users have found temporary solutions, such as disabling wake on pattern match for the network adapter in Device Manager, others have had to resort to more complex methods like creating permanently enabled tasks on the Task Scheduler that trigger when Windows powers off. Microsoft has yet to provide an official solution, and the problem continues to bother a large number of people.

How to Disable Wake from Sleep through Power Button

Characteristics Values
Operating System Windows 10
Fix Disabling "wake on pattern"
Checking the box in Network Adapter Properties for "Only Allow a Magic Packet to Wake the Computer"
Disabling "wake on pattern match" for the network adapter in device manager
Disabling the computer's ACPI (Advanced Configuration and Power Interface) feature in CMOS setup
Creating a permanently enabled task on the Task Scheduler that gets triggered when windows powers off
Disabling any wake-up task scheduled before power off

shunsleep

Disabling wake timers and powercfg commands

Disabling wake timers can be done in a few different ways. One way is to open the advanced power settings of a power plan and disable the wake timers for that specific plan. Here is a step-by-step guide:

  • Open Windows Settings.
  • Type "Power & sleep" into the search bar and click Open.
  • Scroll down and click "Additional power settings".
  • Select "Balanced" and click "Change plan settings".
  • Click "Change advanced power settings".
  • Expand the "Sleep" section and then expand "Allow wake timers".
  • Finally, select "Disable" and click "Apply".

Another way to disable wake timers is to use the powercfg command in the Command Prompt. Here is an example of the command:

Powercfg /SETACVALUEINDEX SCHEME_CURRENT 238c9fa8-0aad-41ed-83f4-97be242c8f20 bd3b718a-0680-4d9d-8ab2-e1d2b4ac806d 0

This command disables wake timers when the device is plugged in. You can also enable wake timers or set it to only allow important wake timers by changing the last number in the command.

It is important to note that some Windows settings and configurations may not respect the disable wake timers setting. For example, the UpdateOrchestrator scheduled task folder contains a task called "reboot" that will wake up your computer to install updates, regardless of whether any updates are available. To work around this, you can open the Command Prompt as an administrator and disable the Reboot task. You can also use a PowerShell command to weed out all tasks that can potentially wake up your PC.

shunsleep

Disabling mouse movement wake-up

One way to prevent mouse movement from waking up your device is to unplug the mouse or switch its input to a different device before putting your computer to sleep. This can be inconvenient, but it is a sure way to prevent accidental wake-ups. Another option is to disable "Allow this device to wake the computer" in the Device Manager. To do this, go to Computer Management > Device Manager > Mice > HID-compliant mouse > Properties > Power Management and uncheck the box that says "Allow this device to wake the computer". However, this method may not always work, and the mouse may still wake up the device.

Additionally, you can check your power management settings in BIOS to see if there are any wake options related to USB devices that can be disabled. Disabling these options can prevent the mouse from waking up the system, but it may also prevent other USB devices, like your keyboard, from waking it up as well.

For older systems that support S3 sleep, you may be able to force S3 sleep instead of S0 sleep. You can search online for methods to disable "Modern standby" on your particular device.

It is worth noting that there seems to be a bug in Windows where, even if you unarm the mouse, it will still wake up the PC from any movement. This issue has been reported by many users, and it is hoped that Microsoft will provide a fix in the future.

Parsec's Sleep Mode: Can It Be Awakened?

You may want to see also

shunsleep

Disabling Bluetooth devices from waking PC

Disabling Bluetooth devices from waking up your PC can be done through the Device Manager. This method works for Windows 8.1, Windows 10, and Windows 11.

Windows 8.1

First, open the Device Manager. If the Power Management tab is available, you can simply uncheck the "Allow this device to wake the computer" option. If the Power Management tab is not available, you can try disabling all power management options by clearing the "Allow the computer to turn off this device to save power" checkbox. Alternatively, if your Bluetooth adapter is attached via USB, you can simply disconnect it when it is not in use.

Windows 10

Open the Device Manager and find your device in the list. Then, disable the "Allow this device to wake the computer" option in the Device Properties. You can also use the command prompt by typing in the following command:

> powercfg -devicedisablewake "device name"

Make sure to replace "device name" with the actual name of your device. For example, if you want to disable a Bluetooth keyboard from waking your device, the command would be:

> powercfg -devicedisablewake "HID Keyboard Device (002)"

Windows 11

Open the Device Manager and select the Bluetooth driver. Right-click on it and select Properties. In the Properties window, select the Power Management tab and uncheck the "Allow the computer to turn off this device to save power" option. Then, check the "Allow this device to wake the computer" option.

Hybrid Sleep: Can Windows 7 Wake Up?

You may want to see also

shunsleep

Disabling automatic wake-up

To change the power button's action, open the Control Panel, click on Power Options, and then click on the "Choose what the power buttons do" link in the left navigation pane. From there, you can select the action to be performed when the power button is pressed.

Another method is to disable "wake on pattern match" for the network adapter in the device manager. This can be done by opening the Device Manager, double-clicking on the network adapter, choosing the advanced tab, and then disabling the "wake on pattern match" option.

Additionally, you can try checking the box in Network Adapter Properties for "Only Allow a Magic Packet to Wake the Computer". This ensures that the computer remains asleep until it is manually awakened or a scheduled event occurs.

It is worth noting that some users have reported challenges in completely disabling automatic wake-up, as Windows periodically injects Wake Up tasks. These tasks may reappear even after manual removal. To address this, create a permanently enabled task on the Task Scheduler that is triggered specifically when Windows powers off.

shunsleep

Disabling any wake-up tasks before power off

Disabling wake-up tasks before powering off a Windows computer can be a challenging task, especially since Windows tends to inject Wake Up tasks periodically. However, it is possible to regain control over unexpected power-ons and achieve a good night's sleep without interruptions. Here is a comprehensive guide to help you disable any wake-up tasks before powering off your device:

Identify the Cause of Unexpected Wake-Ups

Before disabling any wake-up tasks, it's essential to identify what triggers your computer to wake up from sleep mode. This can be done by checking the event logs in the Event Viewer. Go to Power-Troubleshooter in the Event Sources drop-down menu and click OK to see all the recent wake-up events and their causes. This information will guide you in taking the appropriate steps to prevent unwanted wake-ups.

Disable Automatic Wake-Up

The first step is to disable the Automatic Wake-Up feature. This can be done by navigating to the Power Options in the Control Panel, selecting your current power plan, and then choosing "Change advanced power settings." From there, you can locate and disable the "Allow wake timers" setting. Repeat this process for all power plans in the drop-down menu. While this method is straightforward, it may not always be effective, and it affects all wake timers, including the ones you might want to keep enabled.

Disable Specific Devices from Waking the Computer

If you have multiple devices connected to your computer, one of them could be the culprit behind the unexpected wake-ups. To identify the problematic device, start by removing all USB devices and putting your computer to sleep. If it stays asleep, reconnect the devices one by one, observing if the computer wakes up after each addition. Once you've identified the offending device, open the Start menu, search for "Device Manager," locate the device, and right-click on it. Select "Properties," then the "Power Management" tab, and uncheck the "Allow this device to wake the computer" option.

Disable Wake-Up Tasks in Task Scheduler

Windows often injects Wake Up tasks into the system, and these can be challenging to manage. To address this, open the Task Scheduler and create a permanently enabled task that is triggered by the event ID 42 of the "Kernel-Power" source in the System log. You can use the following command:

> "&{Get-ScheduledTask |? {$.Settings.WakeToRun -eq $true -and $.State -ne '"Disabled"'} | % {$.Settings.WakeToRun = $false; Set-ScheduledTask $} }"

This command will disable any wake-up tasks scheduled before the power-off, ensuring that your computer remains asleep until you intentionally wake it up using the power button.

Additional Tips

  • Windows Update: Windows Update can sometimes cause unwanted wake-ups. To prevent this, meticulously schedule updates and reboots using Windows Update's built-in tools. Set your Active Hours, and defer updates until you're ready to install them.
  • PowerShell: You can also open PowerShell by right-clicking on the Start menu and selecting the appropriate option for your Windows version. Running specific commands in PowerShell may help you identify scheduled tasks designed to wake up your PC, which you can then disable using the Task Scheduler.

By following these steps and tips, you should be able to disable any wake-up tasks before powering off your Windows computer, ensuring uninterrupted sleep mode.

Frequently asked questions

You can disable the computer's ACPI (Advanced Configuration and Power Interface) feature in CMOS setup. The location of this option is different between all BIOS (Basic Input/Output System) manufacturers and versions, but is often under the power category.

Check the box in Network Adapter Properties for "Only Allow a Magic Packet to Wake the Computer". This should stop your PC from waking up randomly.

Disabling "wake on pattern match" for the network adapter in device manager should stop your PC from waking up through the power button.

Written by
Reviewed by
Share this post
Print
Did this article help you?

Leave a comment