basildane / WakeOnLAN

Wake On LAN, WakeOnLAN, shutdown software for Windows. A powerful WOL, ping, shutdown, GUI application.
http://wol.aquilatech.com
Other
1.02k stars 147 forks source link

WakeOnLAN wakes Laptop, but it keeps waking every few minutes despite checking "Only allow magic packet to wake.." #194

Open drb01 opened 2 years ago

drb01 commented 2 years ago

WakeOnLAN works well for remotely waking my Win 10 64bit laptop. However for it to work I have to check "Allow this device to wake the computer" on the WiFi adapter. I also check "Only allow magic packets...". The problem is that the laptop just wakes up every few minutes anyway (which it doesn't do if these are unchecked).

I have tried Tools->Listener which shows the packets e.g. if I send a WOL from my phone. But it shows nothing when the laptop is woken, or if I just leave it on monitoring the network.

Another ethernet wired PC on the same network works perfectly. WOL wakes it, and it stays asleep in the meantime.

powercfg -lastwake shows that it is the laptop's WiFi card waking it.

Any idea what is waking the laptop every few minutes?

basildane commented 2 years ago

I have never encountered this. I will do some research, but I don't have any quick answer.

drb01 commented 2 years ago

I've tried a few things to no avail:

The only thing that worked, unsurprisingly, is disabling the WiFi card in Device Manger. If I use a USB Ethernet connection then it sleeps & WOL as expected.

Any help very much appreciated!

basildane commented 2 years ago

What is the model of the wifi adapter? Is it made by Intel?

drb01 commented 2 years ago

Sure is - "Intel(R) Dual Band Wireless-AC 8260"

It's in an Asus Zenpad UX530 which is about 4.5 years old and works very well.

basildane commented 2 years ago

Good choice. Have you checked Advanced properties, specifically make sure that Wake on Pattern Match and other things like that are disabled.

basildane commented 2 years ago

Also, do you have the Proset drivers installed?

drb01 commented 2 years ago

I have looked in ADvanced Properties but not much of it makes sense. I have both Wake on Pattern Match and Wake on Magic Packet enabled, otherwise WOL doesn't work.

I have tried Intel's driver (Currently 20.70.13.2) and I tried a Microsoft driver too. And an old Win 7 driver from 2017 - they were all the same.

I have not tried a Proset driver (never heard of it before). Just found it online so I'll give it a go.

basildane commented 2 years ago

I would disable pattern match

drb01 commented 2 years ago

I installed the v22.120.1 Proset drivers although in Device Manager it says v20.70.30.1 is installed, dated 13 Jan 2022. I tried installing several times. The previous driver was dated 2019 so it's a step in the right direction.

In Advanced, Wake on Pattern is disabled, Wake on Magic is enabled. In the Power Management Tab, Allow this device to wake the computer is enabled, and Only allow a Magic Packet is also enabled.

Still getting the same problem :(

drb01 commented 2 years ago

Does anyone have any other ideas on this?

basildane commented 2 years ago

Does the laptop wake up, even if the WOL application is not running at all?

drb01 commented 2 years ago

It wakes up without any WOL application running when the WiFi card's "Allow this device to wake the computer" and "Only allow a magic packet" are both checked.

If "Allow this device to wake the computer" is not checked then the laptop sleeps as you'd expect, but of course then the WOL doesn't work either.

So the problem is if I set it up so that WOL works, then the laptop wakes up randomly all the time. WOL also causes it to wake.

BWolfer54 commented 2 years ago

If there's a property 'wake on link', please try disabling it, too.

basildane commented 2 years ago

If there's a property 'wake on link', please try disabling it, too.

Yes, Wake on Magic Packet should be the only option enabled. Link change, pattern match, and others could cause this. Do you have those other options? Are they disabled?

drb01 commented 2 years ago

Unfortunately I can't find a Wake on Link option. I have always been sure to keep Wake on Magic Packet enabled...

WOL WOL1

NB In Power Management I have to have "Allow this device .." checked for a WOL to work at all. I then also check "Only allow a magic packet". WOL still works, but it keeps waking up randomly after a few minutes. My wired desktop on the same network works as expected with WOL and the same settings.

Moopere commented 2 years ago

I've never seen wifi based WOL work reliably and mostly it doesn't seem to work at all ime. I think you've done really well to even get this far.

I suspect the problem you are seeing is the wifi card triggering the laptop to wake up to check if it should be getting woken up :) Most likely the WOL feature for this laptop, such as it is, was only designed to work from standby rather than G3 shutdown.

What I generally do for laptops is use a docking station with wired ethernet. Still plenty of compatibility problems with USB style docks - many laptops just don't have the firmware to properly respond to USB events when the laptop is G3/Turned off.