Need help with powercfg -requestsoverride

Page 1 of 2 12 LastLast

  1. Posts : 13
    w7 64
       #1

    Need help with powercfg -requestsoverride


    I would like to be able to put the display to sleep even though media player classic (mpc-hc) is running.

    I open an admin command prompt and type

    powercfg -requests



    As you can see, mpc-hc.exe is preventing me from putting the display to sleep.

    So I enter an override command:



    Unfortunately, when I execute -requests again, "mpc-hc" still will prevent display sleeping. Even after reboot the -request still shows mpc-hc.exe preventing display sleep and it does indeed prevent display sleep.

    What am I doing wrong?
      My Computer


  2. Posts : 5,656
    Windows 7 Ultimate x64 SP1
       #2

    Maybe this can help? Turn Off Display - Add to Desktop Context Menu in Windows
    Works in W7 by the way

    Or there is a similar one which also locks the PC (not sure if it is in line with what you want) Lock Computer and Turn Off Monitor - Add to Desktop Context Menu
      My Computer


  3. Posts : 13
    w7 64
    Thread Starter
       #3

    Thanks for your reply although you're not getting at the problem.

    I know how to put the monitor to sleep. I do it.

    Unfortunately, the monitor pops back awake again 1n a couple seconds.

    The reason the monitor wakes up again is because MPC is running and mpc has a powercfg request that prevents the monitor from sleeping while mpc is running (see picture 1)

    The way to overcome this request is to command a -requessoverride for this particular program so that mpc will no longer demand that the monitor wakes-up/stay awake.

    To the best of my knowledge, the syntax I've executed for this command is correct. MPC should no appear under "Display" for -requests.

    My problem is that that is not happening. Either I'm not using the correct syntax or there is something else I don't understand/haven't checked.
      My Computer


  4. Posts : 5,656
    Windows 7 Ultimate x64 SP1
       #4

    Well, I just downloaded MPC portable (zip) and listened to a 4 minute song while both my screens turned off. Either installed version is different or something else is waking your screens? It would take a couple of minutes to actually test the first tutorial. Up to you of course.
      My Computer


  5. Posts : 13
    w7 64
    Thread Starter
       #5

    No offense GokAy, but you seem to be missing the entire point of this thread.

    This thread is not about commands to put the display to sleep or about mpc or any version of it.

    This thread is about a program (in my case, this is mpc, but it could be any program) that prevents the display from going to sleep. The way you can see which programs are set to prevent sleep, you open an admin command prompt and type "powercfg -requests". What this command returns are, at the current moment, which processes and/or drivers are either preventing the pc or the monitor from going to sleep.

    In the first post, picture #1 you can see that mpc-hc.exe is preventing the monitor from going to sleep. Once again, it could be any program, at any time, this is simply my situation.

    The way to remove this program (once again any program) from the list of things preventing the monitor from going to sleep is to type (in my specific case):
    powercfg -requestsoverride PROCESS mpc-hc.exe Display settings

    As a result of that command, mpc-hc (or any program) should be removed from the requests listed under "Display". In my specific case, under "Display" should be "None" since mpc-hc.exe was the only thing listed there.

    This thread is about my command (powercfh -requestsoverride PROCESS mpc-hc.exe Display settings) does not remove mpc-hc.exe from the display category.

    Is my syntax wrong or am I not understanding something?

    Once again, GokAy, don't waste your time on:
    1) Determine what commands are available to put the monitor to sleep, or,
    2) How to remove the offending program and use a different program.
      My Computer


  6. Posts : 5,656
    Windows 7 Ultimate x64 SP1
       #6

    No offense taken mate. I am running the same program as you do, just the portable one because I didn't want to install it.

    Just did this:
    - I started MPC and ran that command, it reported None for display (for all actually but display is what matters, right?).
    - Then I started playing the MP3 and ran the command again, it showed the same as yours under System, but Display was None again.

    Need help with powercfg -requestsoverride-powercfg.jpg

    Are you playing a video file or have some visualization (I am not familiar, does MPC has such features)?

    One thing I noticed is (may be relevant or not) your MPC is 32 bit, but there is a 64bit version. Would you care to install the 64bit and try that one?
      My Computer


  7. Posts : 5,656
    Windows 7 Ultimate x64 SP1
       #7

    Update: I started a movie, and can't get the monitors to sleep.
    Ran the command: powercfg -requestsoverride process mpc-hc64.exe display (don't need system as far as I understand)
    then verified: powercfg -requestsoverride
    still no go

    will try some more

    Edit: I gave up as I am out of ideas, tried running cmd as admin too. From what I searched in Google, this feature was added sometime in the past and there are a few requests to have an option to sleep the monitors during a playback (people trying to listen only while going to sleep etc)
      My Computer


  8. Posts : 13
    w7 64
    Thread Starter
       #8

    GokAy,

    Now we're on the same page.

    The command you entered should have removed that process/program from under the "Display" section. As you verified, it does not. But it should.

    What I'm looking for is some specific guidance on why it isn't removed.
      My Computer


  9. Posts : 6,330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
       #9

    In the requestsoverride command try putting the entire string you have in the request, and wrap it in double quotes.
    Instead of mpc-hc.exe the override will have "\Device\ ..... mpc-hc.exe" (exactly as you see it in the request).

    You may also need to do this for the driver.

    An EXAMPLE of a command using the entire string:

    powercfg -requestsoverride DRIVER "High Definition Audio Device (HDAUDIO\FUNC_01&VEN_10EC&DEV_0883&SUBSYS_147B8E01&REV_1000\4&39ab38b6&0&0001)" SYSTEM
      My Computer


  10. Posts : 13
    w7 64
    Thread Starter
       #10

    Dave,

    I'm going to try that approach. Before I do just a quick question. The driver seems like it's just preventing the system from sleeping, not the monitor from sleeping. Since, in my case, I only care about the monitor and not the whole PC, do you think I need to address the driver issue?
      My Computer


 
Page 1 of 2 12 LastLast

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

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