Unable to enable WoWLAN

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 10
    Windows 10 Home
    Thread Starter
       #11

    dalchina said:
    Sorry, scheduled task... whose action is..?

    Or do you mean WOL is only effective when sleeping rather than in hibernation?
    Sorry, should have explained better.

    I want to access my laptop remotely, but WOL and WoWLAN are off the table for me.

    So I've set up a scheduled task to do something innocuous (execute a batch script that writes Hello world to a file) and ticked the 'Wake PC to run this task'. However it neither wakes the PC nor runs the task when in sleep/hibernate. As soon as I wake the laptop though, the task executes. I've been searching online and found people having the same issues with Windows 10.
      My Computer


  2. Posts : 44,916
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #12

    Hmm, same problem- and I've set wake timers to enable, set scheduled task up appropriately, consulted HowtoGeek, uttered appropriate incantations... no luck. So, when all else fails, go 3rd party!

    See:
    Power Saver & Scheduler. WakeupOnStandBy - Energy Saver. Wakes Computers From Sleep or Hibernation
    Worked 1st time.

    If you have a login prompt on resume (optional- tutorial), you can configure this to have the screen on- you then have to log in of course.
      My Computers


  3. Posts : 10
    Windows 10 Home
    Thread Starter
       #13

    To offer full disclosure of my end goal here, what I'm doing is creating a task for my laptop to wake on a particular event in the Windows Event Logs.

    I've built a nodejs app that contacts my remote database every 20 seconds and if it finds a flag (set by me, remotely) it logs an application event that sets off the task. So far I've tested the app runs in the background and continues to read from the database and make decisions and log events while the laptop is asleep.

    The last part was the task, but it neither works with the app or on a normal timer. So as an engineer, I might just write my own small app that behaves like task scheduler but just for this one case.
      My Computer


  4. Posts : 44,916
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #14

    I have got the task scheduler to wake the PC, but cannot manage to activate the screen, which stays blank until I press a key or move the mouse. I've tried several ways from the small script I've used.
      My Computers


  5. Posts : 10
    Windows 10 Home
    Thread Starter
       #15

    I have accomplished what I set out to do, using a powershell script from inside my node application.

    The powershell command sends a spacebar keystroke to the system when the condition to wake is met (in this case, it's me updating my server to say I need my laptop awake). I've disabled my lock screen so it returns immediately to whatever was going on on the desktop. I'm happy to share the solution in more detail if anyone wants it, but I guess this might not be the place for it.

    Thank you all for the help, without it I would have wasted a lot more time thinking I could get WoWLAN to work.

    - - - Updated - - -

    dalchina said:
    I have got the task scheduler to wake the PC, but cannot manage to activate the screen, which stays blank until I press a key or move the mouse. I've tried several ways from the small script I've used.
    My solution may work for you in a more simple manner. Add the key-press script to the task scheduler so it wakes and presses a key.
      My Computer


  6. Posts : 44,916
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #16

    Good news.

    Screen:
    Tried simulating a key, clicking the mouse, moving the mouse: the PC is definitely awake after simulating a mouse click, just the screen remains blank until I hit a real key.. Tried nircmd monitor on too.
      My Computers


  7. Posts : 17,086
    Windows 10 Home x64 Version 22H2 Build 19045.4894
       #17

    dalchina said:
    Screen:
    Tried simulating a key, clicking the mouse, moving the mouse: the PC is definitely awake after simulating a mouse click, just the screen remains blank until I hit a real key.. Tried nircmd monitor on too.
    I do not know what TS problems you had getting TS to wake the computer . The only limitation I know of is that TS cannot wake from hibernate unless mains power is connected [despite whatever settings have been put in].
    - This does not affect its ability to wake from S3 sleep.
    - This undocumented limitation has existed since WinXP if not earlier.
    - The only exception I have found is with a computer that uses S0. TS can wake it from hibernate even in the absence of mains power.

    I add this batch file subroutine to anything that I want to turn the monitor on. It might be the same as what you have tried ["Tried simulating a key"] but it always works for me.
    - This script toggles the NumLock key to wake up the monitor just as if you had pressed the key yourself.
    - The reason that this script toggles the NumLock key twice is so it ends up in its original state.
    Code:
    :: Wake the monitor
    :WakeIt
    Set VBSScript="%TEMP%\%RANDOM%-WakeMonitor.vbs"
    Echo Set WshShell = WScript.CreateObject("WScript.Shell") > %VBSScript%
    Echo WshShell.SendKeys "{NUMLOCK}">> %VBSScript%
    Echo WshShell.SendKeys "{NUMLOCK}">> %VBSScript%
    Call %VBSScript%
    del %VBSScript%
    I only ever use this at the end of a script to wake the monitor when the job is done. If you're using it straight after a wakeup you might need to add a TimeOut command at the start.

    All the best,
    Denis
    Last edited by Try3; 12 Mar 2021 at 11:21.
      My Computer


  8. Posts : 17,086
    Windows 10 Home x64 Version 22H2 Build 19045.4894
       #18

    Rob,

    Welcome to TenForums.
    TenForumsTutorials

    robmeister2021 said:
    ... but I guess this might not be the place for it.
    As a general rule, this is always the place for it.
    - By posting your solution, you will at the very least give others a comparison solution that might help them debug their own.
    - You will also help others who land on this thread in the future without any notion of a solution to work on.

    All the best,
    Denis
      My Computer


  9. Posts : 10
    Windows 10 Home
    Thread Starter
       #19

    Try3 said:
    Rob,

    Welcome to TenForums.
    TenForumsTutorials


    As a general rule, this is always the place for it.
    - By posting your solution, you will at the very least give others a comparison solution that might help them debug their own.
    - You will also help others who land on this thread in the future without any notion of a solution to work on.

    All the best,
    Denis
    Well in that case, here's a small snippet of my code (the part that does the waking).

    My app uses a single import for powershell called node-powershell.

    So inside my background running node app, I have the following code:

    Code:
    var ps = new Shell({
        executionPolicy: 'Bypass',
        noProfile: true
    });
    
    ps.addCommand(`$wshell = New-Object -ComObject wscript.shell;
    $wshell.AppActivate('title of some application')
    Sleep 1
    $wshell.SendKeys('~')`);
    	ps.invoke()
            .then(response => {
    			
            })
            .catch(err => {
    			ps.dispose().then(code => {}).catch(error => {});
            });
    I removed the name of my application above, but it's useful if you also want to activate a window or application after waking.

    My settings are very loose for this to work. My laptop has no screen lock anymore, so pressing the power button by hand will also fully wake it to the desktop. I imagine that's the problem that some users are having (machine wakes, but no screen wake).

    - - - Updated - - -

    The purpose of all of this is that I will be away from home a lot over the next while, but my job involves testing code on various handheld devices. So my plan is to leave my laptop here, with the devices all connected via the usb hub. Using the android app I'm making to accompany this, I will be able to wake my home laptop via my phone and the remote desktop in when required.

    The structure is a secure connection to my server, where PHP facilitates database access. Every 60 seconds, my desktop app here reads the DB table and performs tasks based on it. Meanwhile, my phone app allows me to update that table.

    So for example, to wake the laptop I insert a 1 under CurrentRequiredWakeState from my phone, this is picked up by the desktop app on the next circle round and the action to wake the laptop is taken.
      My Computer


  10. Posts : 1,207
    11 Home
       #20

    robmeister2021 said:
    thinking I could get WoWLAN to work
    I'm not sure why you can't get WoWLAN to work, but I've been using it for years─albeit only on a small bunch of laptops each one of which came with an Intel WiFi card installed. Only trouble, you want to use Intel WoWLAN through a separate SSID because, each time when the wireless router performs its scheduled GTK Rekeying, it causes the laptop to be woken up, therefore the easiest way out would be to simply disable GTK Rekeying in the router, if we can assume that the router in question does provide that option. So, if the SSID will only be used for WoWLAN and nothing else, this effectively will bypass the added security risk that would otherwise result from disabling the GTK Rekeying in the router. With a bit of added ingeniousness, you can make the laptop's WiFi adapter switch to another SSID each time after it wakes up, and make it switch back again each time before it enters sleep.

    This of course is not without limitations, as the WiFi connection will be required to remain stable for the entire duration of the sleep session for this to work, and the simultaneous use of two separate SSIDs does introduce some other drawbacks of its own. On the flip side of the coin, my old Asus RT-N66U "Dark Knight" is stable like a rock, and, in 2.4GHz mode the signal range is just literally nothing short of fabulous. Right now I'm in the process of trying to troubleshoot Modern Standby on my new laptop that uses the same Intel WiFi AX201 card as yours, but, so far, it's proven to be on a level of difficulty not wholly dissimilar to that of trying to develop a new vaccine.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:28.
Find Us




Windows 10 Forums