Skip to content

Instantly share code, notes, and snippets.

@gulsoy83
Created October 16, 2023 19:44
Show Gist options
  • Save gulsoy83/64270a5bcf5445d25bfdafdf4d3b2101 to your computer and use it in GitHub Desktop.
Save gulsoy83/64270a5bcf5445d25bfdafdf4d3b2101 to your computer and use it in GitHub Desktop.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power]
"EnableInputSuppression"=dword:00000001
"IgnoreLidStateForInputSuppression"=dword:00000001
"DisableDisplayBurstOnPowerSourceChange"=dword:00000001
;Apply only if your PC supports modern standby, S0-Idle Mode (and not S3-Suspend To Ram).
;If the slightest movement of your mouse causes your new laptop to wake and you couldn't solve it by unchecking "allow this device to wake the computer", proceed.
;1a. Scenario: Default Windows behaviour: If lid is closed and laptop runs on battery, then mouse won't wake the PC. (If EnableInputSuppression is set to 1)
;1b. Scenario: Default Windows behaviour: If lid is closed and laptop runs on battery, then mouse will wake the PC. (If EnableInputSuppression is set to 0)
;1c. Scenario: Default Windows behaviour: If lid is open and laptop runs on battery, then mouse will wake the PC. (Unless IgnoreLidStateForInputSuppression is set to 1)
; 2. Scenario: Default Windows behaviour: If you connect the charger while laptop is in sleep, the PC will wake up from sleep, screen will be on, even if it's just for a few seconds, then the screen will go off again. (If DisableDisplayBurstOnPowerSourceChange is set to 0)
;Which is not ideal. Those (especially 1b), will cause your battery to drain.
;What this .reg file does is, if your pc runs on battery, regardless of the lid state, mouse will not wake the PC.
;Your pc will not wake with mouse movement or pressing keys when running on battery.
;NOTE: Touchpad input, brightness increase/decrease buttons and power button can still wake the PC.
;Plus, the display will not turn on when you plug your charger.
;--------------------------------------------------------->
;Regardless of this .reg patch, if your laptop is plugged-in, the PC will always be woken by Windows when you move your mouse, touch keyboard/fingerprint sensor or click a key.
;This .reg file won't fix that. It is Microsoft's job to fix this mess.
;EnableInputSuppression and IgnoreLidStateForInputSuppression keys does not effect system behaviour when plugged-in.
;--------------------------------------------------------->
;For further discussion, you can watch Linus Tech Tips' video: https://www.youtube.com/watch?v=OHKKcd3sx2c
;I strongly recommend disabling network connectivity in standby, both on battery and AC.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\F15576E8-98B7-4186-B944-EAFA664402D9]
"Attributes"=dword:00000002
;This only reveals NetworkConnectivityInStandby option in power settings. You should choose "disable" in advanced power options.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment