View Single Post
  #18  
Old October 16th 18, 05:38 AM posted to alt.comp.os.windows-10
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default Can't disable mouse wake from sleep.

123456789 wrote:
On 10/15/2018 7:31 PM, Paul wrote:
123456789 wrote:
On 10/15/2018 5:46 PM, Mike wrote:


That didn't work for me either, but using powercfg did.
https://www.tenforums.com/tutorials/...dows-10-a.html


Thanks for the info but this didn't work for me either. I tried powercfg
in both the Powershell(Admin) (and redid it in the Administrator
Command Prompt - just in case) and both gave me the same: "You do not
have permission to enable or disable device wake". Apparently I need
more than just administrator authority.

Overnight, my machine woke up twice by the lan. No idea why, but
disabling lan wake from sleep seems to have fixed that too.

It appears my machine is going to win this one...


Use the SYSTEM account ?

Grab a copy of pstools from here.

https://docs.microsoft.com/en-us/sys...nloads/pstools


Got it.

Unpack with ZIP or 7ZIP.


Did it.

In an administrator Command Prompt window,

cd /d %userprofile%\Downloads # add foldername where you
stored it...
# mine is in Downloads when
unpacked


For some reason I couldn't get it to work from Downloads, so I moved the
folder to C:, did a CD\C:PSTools, and ran it from there.

psexec64.exe -hsi cmd


When the new Command Prompt window pops open


whoami


And it should have the word "System" in the returned
account name result.


It said: nt authority\system

Then, try your Powercfg command, whatever it was,
in the new system-flavored Command Prompt.

powercfg ...


Command: powercfg -devicedisablewake "HID-compliant mouse"

Same result: "You do not have permission to enable or disable device wake".

But thanks for the suggestion...


http://www.tomsguide.com/answers/id-...vice-wake.html

"What I discovered was that by running the command:

powercfg -restoredefaultschemes

I was now capable of running the command:

powercfg -deviceenablewake "a device name capable of waking for sleep"
"

Give that a try.

You might even have used a third-party tool to modify
power schema. Like an overclocking tool or something.

If you're concerned about side effects, you can turn on
and set a System Restore point, which will save a copy
of the Registry for you. Alternately, make a backup of C: .
It all depends on whether you know for sure the Power
schema have never been set by anything else, as to whether
you should be modifying it (to the defaults).

The toms guide post also mentions restoring your hibernation
setting, as appropriate. powercfg /h off . powercfg /h on.
And os on.

Paul
Ads