Solved Turn on the display when resuming from sleep


I think you are saying that the task's task history tab shows the run was successful.
The vbs is still in place in its folder?
There's nothing about it in Windows security [WD], Virus … protection, Protection history?

Make a copy of the vbs then change the original's content to just
msgbox "It runs this alright"


Denis
 

My Computer My Computer

At a glance

Windows 11 Home x64 Version 25H2 Build 26200....
OS
Windows 11 Home x64 Version 25H2 Build 26200.8037
I think you are saying that the task's task history tab shows the run was successful.
The vbs is still in place in its folder?
There's nothing about it in Windows security [WD], Virus … protection, Protection history?

Make a copy of the vbs then change the original's content to just
msgbox "It runs this alright"


Denis

Yes, the task's history says the run is successful.

I have tried changing the vbs as you suggested and manually executed it, the message box works. However when making the task do its job nothing happens, not even by manually running the task from task scheduler. Everything should be in its place so I really don't understand, I've tried moving the file and editing the task to the new location but nothing.

I will further investigate when I have time, will update you if I find anything
 

My Computer My Computer

At a glance

Windows 11intel 9th gen8GB LOLnvidia
OS
Windows 11
Computer type
Laptop
Manufacturer/Model
Dell g5 5590
CPU
intel 9th gen
Memory
8GB LOL
Graphics Card(s)
nvidia
Hard Drives
C: nVME kioxia SSD
D: SATA toshiba HDD
Browser
Firefox
Antivirus
Defender (if it hasn't been disabled yet)
Oh dear.

I was thinking about putting together a tutorial but could not think where I'd find the time. Perhaps I need to think again.

Which part of this is of interest?
1 Creating an EventViewer, Custom view?
2 Attaching a TS task to an EventViewer, Custom view?
3 Editing that task in TS?
4 Editing that task in its exported xml form?
5 Waking up the display with a vbs script?

Denis

Please do, it would definitely be helpful. It was not over my head, as I've done this before, but it is a rather long, and complicated, process, and I think many people would benefit from such a tut.
 

My Computers My Computers

  • At a glance

    Windows 11 23H2 Current buildAMD Ryzen 9 3950X4 * 32 GB - Corsair Vengeance 3600 MHzEVGA GeForce RTX 3080 Ti XC3 ULTRA GAMING (12...
    OS
    Windows 11 23H2 Current build
    Computer type
    PC/Desktop
    Manufacturer/Model
    HomeBrew
    CPU
    AMD Ryzen 9 3950X
    Motherboard
    MSI MEG X570 GODLIKE
    Memory
    4 * 32 GB - Corsair Vengeance 3600 MHz
    Graphics Card(s)
    EVGA GeForce RTX 3080 Ti XC3 ULTRA GAMING (12G-P5-3955-KR)
    Sound Card
    Realtek® ALC1220 Codec
    Monitor(s) Displays
    2x Eve Spectrum ES07D03 4K Gaming Monitor (Matte) | Eve Spectrum ES07DC9 4K Gaming Monitor (Glossy)
    Screen Resolution
    3x 3840 x 2160
    Hard Drives
    3x Samsung 980 Pro NVMe PCIe 4 M.2 2 TB SSD (MZ-V8P2T0B/AM) } 3x Sabrent Rocket NVMe 4.0 1 TB SSD (USB)
    PSU
    PC Power & Cooling’s Silencer Series 1050 Watt, 80 Plus Platinum
    Case
    Fractal Design Define 7 XL Dark ATX Full Tower Case
    Cooling
    Arctic Liquid Freezer III 420 RGB + Air 3x 140mm case fans (pull front) + 1x 120 mm (push back) and 1 x 120 mm (pull bottom)
    Keyboard
    SteelSeries Apex Pro Wired Gaming Keyboard
    Mouse
    Logitech MX Master 3S | MX Master 3 for Business
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
    Browser
    Nightly (default) + Firefox (stable), Chrome, Edge , Arc
    Antivirus
    Defender + MB 5 Beta
  • At a glance

    ChromeOS Flex Dev Channel (current)Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 250...16 GBIntel(R) HD Graphics 520
    Operating System
    ChromeOS Flex Dev Channel (current)
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude E5470
    CPU
    Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
    Motherboard
    Dell
    Memory
    16 GB
    Graphics card(s)
    Intel(R) HD Graphics 520
    Sound Card
    Intel(R) HD Graphics 520 + RealTek Audio
    Monitor(s) Displays
    Dell laptop display 15"
    Screen Resolution
    1920 * 1080
    Hard Drives
    Toshiba 128GB M.2 22300 drive
    INTEL Cherryville 520 Series SSDSC2CW180A 180 GB SATA III SSD
    PSU
    Dell
    Case
    Dell
    Cooling
    Dell
    Keyboard
    Dell
    Mouse
    Logitech MX Master 3S (shared w. Sys 1) | Dell TouchPad
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
Yes, the task's history says the run is successful.

I have tried changing the vbs as you suggested and manually executed it, the message box works. However when making the task do its job nothing happens, not even by manually running the task from task scheduler. Everything should be in its place so I really don't understand, I've tried moving the file and editing the task to the new location but nothing.

I will further investigate when I have time, will update you if I find anything

Alright, turns out it was just me messing around with stuff, sorry. I had chose the option to run the task independently from user connection (+ do not store password) instead of "run only when the user is logged on" because I thought it would prevent the task to run when I locked my PC. After testing, I found out that logging off from windows and locking the PC are two different things, so the task works also if I lock the device before putting it to sleep.

Technet page that helped

Anyway, out of curiosity I have tried attaching the task to a single event ID (wakeup from sleep) rather than attaching it to the custom view in Event Viewer and it works fine too. In this specific case I think it gives results similar to editing the task's .xml as @Try3 suggested before
 
Last edited:

My Computer My Computer

At a glance

Windows 11intel 9th gen8GB LOLnvidia
OS
Windows 11
Computer type
Laptop
Manufacturer/Model
Dell g5 5590
CPU
intel 9th gen
Memory
8GB LOL
Graphics Card(s)
nvidia
Hard Drives
C: nVME kioxia SSD
D: SATA toshiba HDD
Browser
Firefox
Antivirus
Defender (if it hasn't been disabled yet)
Funnily enough, when I was thinking about a tutorial I was wondering how to most succinctly tell people always to use Run only when user is logged on. I'd be tempted to add para after para of explanation.
- Whilst it's sometimes possible to use [or to trick TS into using] the Run whether user is logged on or not setting, generally-speaking anything that uses any kind of interface cannot be run that way.
- When you lock your computer, you remain logged on. Any requirement for a password that you have set up for unlocking is an additional security check not a login as such.

I considered attaching the task to a single event but I had to get you to check that Custom view anyway and I tested the whole lot to make sure it would cause no problems so it was just easier to stick with that all the way through.

All the best,
Denis
 

My Computer My Computer

At a glance

Windows 11 Home x64 Version 25H2 Build 26200....
OS
Windows 11 Home x64 Version 25H2 Build 26200.8037
Well, I learned it the hard way 😇 anyway thanks again for the clarification :)

It's fine for attaching the task to the custom view, just wanted to point that out, could have also been that I was missing something :)
 

My Computer My Computer

At a glance

Windows 11intel 9th gen8GB LOLnvidia
OS
Windows 11
Computer type
Laptop
Manufacturer/Model
Dell g5 5590
CPU
intel 9th gen
Memory
8GB LOL
Graphics Card(s)
nvidia
Hard Drives
C: nVME kioxia SSD
D: SATA toshiba HDD
Browser
Firefox
Antivirus
Defender (if it hasn't been disabled yet)
before I did my complete reset of win 11 yesterday I had a 'sleep'period move in. I didnt even think it had been set, I didnt, I hate it. The trouble I had trying to get the damn monitor on - AGH! Thats another for my list disable sleep. Now switched off...........
 

My Computers My Computers

  • At a glance

    Win 11 x 64 HomeAMD Ryzen 5 7600 6-Core ProcessorDDR 5. 32GB (2 x16GB)GeForce RTX 5060i
    OS
    Win 11 x 64 Home
    Computer type
    PC/Desktop
    Manufacturer/Model
    pc specialists build (updated various times)
    CPU
    AMD Ryzen 5 7600 6-Core Processor
    Motherboard
    Gigabyte Technology Co., Ltd. Product:B650M K
    Memory
    DDR 5. 32GB (2 x16GB)
    Graphics Card(s)
    GeForce RTX 5060i
    Sound Card
    2 channel HD Audio + Mic/Hphone jack
    Monitor(s) Displays
    coolermaster 27 inch
    Screen Resolution
    1920 x 1080
    Hard Drives
    three external 3TBs, 4 TBs and 5tb. (Storage) Samsung SSD 970 (C).
    Case
    Coolermaster
    Cooling
    internal fans
    Keyboard
    Logi K270 & Logitech gamer G213
    Mouse
    M310 and Logi Gamer G203
    Internet Speed
    530.85mbps download. 52.70 upload
    Browser
    Opera, Vivaldi, Chrome & Firefox
    Antivirus
    Kaspersky Premium
    Other Info
    win 11 home 64 Build: 26100.ge_release 240331-1435
  • At a glance

    Android
    Operating System
    Android
    Computer type
    Tablet
    Manufacturer/Model
    Samsung
    Keyboard
    logi K270, when in use.
    Mouse
    Logi M220
    Internet Speed
    500
    Browser
    Opera.Edge. Chrome.Vivaldi
    Antivirus
    Kaspersky Premium
Back
Top Bottom