How to make my computer sleep after 1 hour idle only at night, every night?


Stoggr

New member
Local time
1:33 AM
Posts
1
OS
Windows 11
Hello there!

I want to make my computer sleep after 1 hour idle only from 23:00 - 08:00 every night.
The closest that I got is using the Task Scheduler and running a sleep command from there. But the settings confuse me and I don't know exactly how it works.

If someone can help me and tell me how I should configure the task it would be greatly appreciated.

Or if there is an easier way to do this/some software, that would be great also, thanks!
 
Windows Build/Version
Version 23H2 (OS build 22631.4317)

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Acer
You could change the sleep setting for the current power scheme with the powercfg command.

Code:
powercfg /change /standby-timeout-ac 60
powercfg /change /standby-timeout-dc 60

Create a scheduled task to run starting at 11:00 PM, repeating, for example, every hour, for 9 hours. That will take care of the sleeping at night.

Then to undo it, create a separate scheduled task that runs from 8:00 AM, repeating fourteen hours (to stop before 11 PM). Use the powercfg commands above, just changing the values to what you want during the daytime.

You can also run these scheduled tasks based on other events, but I'm trying to keep it simple here.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Intel Core i7-1260P, 2100 MHz
    Motherboard
    NUC12WSBi7
    Memory
    64 GB
    Graphics Card(s)
    Intel Iris Xe
    Sound Card
    built-in Realtek HD audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840x2160 @ 60Hz
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Keyboard
    CODE 104-Key Mechanical with Cherry MX Clears
    Antivirus
    Microsoft Defender
  • Operating System
    Linux Mint 21.2 (Cinnamon)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC8i5BEH
    CPU
    Intel Core i5-8259U CPU @ 2.30GHz
    Memory
    32 GB
    Graphics card(s)
    Iris Plus 655
    Keyboard
    CODE 104-Key Mechanical with Cherry MX Clears
Back
Top Bottom