Results 1 to 5 of 5

Thread: Stopping Windows 7 from sleeping while certain processes are running?

  1. #1
    Registered+
    Join Date
    Feb 2009
    Location
    Lancaster
    Posts
    35
    Thanks
    0
    Thanked
    0 times in 0 posts

    Stopping Windows 7 from sleeping while certain processes are running?

    OK, so I know that in Windows some processes can prevent the system from entering sleep or shutting off the monitor. My system is configured to shut off the monitor after 5 minutes of inactivity and sleep the machine after 30, but when i'm watching a video in VLC, fullscreen or otherwise, neither occurs even if I don't touch the mouse or keyboard for 45 mins.

    A friend told me about powercfg /requests (run it in an Admin cmd prompt), which supposedly shows all requests that are currently affecting the display or machine sleep functionality, broken into 3 components - DISPLAY, SYSTEM and AWAYMODE. When watching a video in VLC (over the network, but I don't think that matters) I see the file i'm watching under SYSTEM, and I also see that my audio driver is in use under there. Under DISPLAY I see the VLC process. The system still sleeps if i'm playing MP3s over the network in iTunes, so I assume it's the DISPLAY element that's the important one in this case. I know that if i'm running certain games (World of Warcraft being the example I remember) the machine won't sleep either, but with some others it will (even if they're fullscreen with focus the entire time).

    Thing is, i'm in the middle of encoding all my DVDs to mkv and putting them on the file server, so I can watch them over the network from any PC in the house (and on the TV using XBMC). I'm using Handbrake for this, and it *doesn't* stop my computer from sleeping. So if i'm running a stack of encodes overnight I have to remember to go to Control Panel->Power Options and tell the machine not to sleep, then tell Handbrake to Suspend once the encode is done. Then if I forget to change these settings *back* when i'm encoding in the background while doing something else the machine suddenly suspends on me.

    I was hoping I could find a little app that I could run or a configuration option to powercfg that would allow me to say "While this program is running do not sleep the computer", but I can't find anything. Has anyone else out there found anything that will do that?

    Ta

  2. #2
    DILLIGAF GoNz0's Avatar
    Join Date
    Jun 2006
    Location
    Derby
    Posts
    10,872
    Thanks
    632
    Thanked
    1,192 times in 945 posts
    • GoNz0's system
      • Motherboard:
      • Asus Rampage V Extreme
      • CPU:
      • i7 something X99 based
      • Memory:
      • 16gb GSkill
      • Storage:
      • 4 SSD's + WD Red
      • Graphics card(s):
      • GTX980 Strix WC
      • PSU:
      • Enermax Galaxy 1250 (9 years and counting)
      • Case:
      • Corsair 900D
      • Operating System:
      • win10 64bit
      • Monitor(s):
      • Dell 24"
      • Internet:
      • 220mb Cable

    Re: Stopping Windows 7 from sleeping while certain processes are running?


    Capitalization is the difference between helping your Uncle Jack
    off a horse and helping your uncle jack off a horse.

  3. #3
    Registered+
    Join Date
    Feb 2009
    Location
    Lancaster
    Posts
    35
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: Stopping Windows 7 from sleeping while certain processes are running?

    That's cool, but is basically just a slightly quicker way of doing what I already am. I'd still have to remember to start the app or alter whether I wanted it to stop sleep or not each time.

    What I was hoping for is something I could configure individual programs in, so that once i've got it configured for the programs that I want to prevent sleep I can just run it in the background and not have to remember to change any settings each time. It'd just be a case of when I load Handbrake the app prevents sleep until Handbrake is closed.

    Ta for the link though I'd found a couple of small programs that did similar things.

  4. #4
    DILLIGAF GoNz0's Avatar
    Join Date
    Jun 2006
    Location
    Derby
    Posts
    10,872
    Thanks
    632
    Thanked
    1,192 times in 945 posts
    • GoNz0's system
      • Motherboard:
      • Asus Rampage V Extreme
      • CPU:
      • i7 something X99 based
      • Memory:
      • 16gb GSkill
      • Storage:
      • 4 SSD's + WD Red
      • Graphics card(s):
      • GTX980 Strix WC
      • PSU:
      • Enermax Galaxy 1250 (9 years and counting)
      • Case:
      • Corsair 900D
      • Operating System:
      • win10 64bit
      • Monitor(s):
      • Dell 24"
      • Internet:
      • 220mb Cable

    Re: Stopping Windows 7 from sleeping while certain processes are running?

    you could always write a very simple batch file to launch both, not really hard to go "oh now i closed handbrake theres the no sleep app hiding under it"

    Capitalization is the difference between helping your Uncle Jack
    off a horse and helping your uncle jack off a horse.

  5. #5
    Registered User
    Join Date
    Feb 2013
    Posts
    1
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: Stopping Windows 7 from sleeping while certain processes are running?

    POWERCFG -REQUESTSOVERRIDE PROCESS `name_of_the_process` Display System

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •