• Need recomendation

    From MajorLanGod@21:1/5 to All on Sun Jan 29 05:12:51 2023
    A while back someone posted a command I can use to see what is keeping my
    Win11 system from turning my screen off after it has been idle for a while.
    I can't find my notes, could someone tell me again please?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to MajorLanGod on Sun Jan 29 17:23:58 2023
    On 1/29/2023 12:12 AM, MajorLanGod wrote:
    A while back someone posted a command I can use to see what is keeping my Win11 system from turning my screen off after it has been idle for a while.
    I can't find my notes, could someone tell me again please?


    Administrator terminal

    powercfg /energy

    Output 60 seconds later = C:\users\myname\energy-report.html

    Open that file in your web browser. Here, I use VLC as an example. VLC would make requests.

    System Availability Requests:System Required Request
    The program has made a request to prevent the system from automatically entering sleep.

    Requesting Process \Device\HarddiskVolume3\Program Files\VideoLAN\VLC\vlc.exe

    System Availability Requests:Display Required Request
    The program has made a request to prevent the display from automatically entering a low-power mode.

    Requesting Process \Device\HarddiskVolume3\Program Files\VideoLAN\VLC\vlc.exe

    These correspond to a call to the kernel, which requests
    special properties for a media player. They want VLC to remain alive
    from a compute point of view, and remain alive with respect to the display. Note that an audio application, can also want to keep the display open,
    if for example the sounds play through the HDMI LCD monitor speakers.

    SetThreadExecutionState (kernel32) <=== what a program uses, to keep machine awake...

    [FlagsAttribute]
    public enum EXECUTION_STATE :uint
    {
    ES_AWAYMODE_REQUIRED = 0x00000040,
    ES_CONTINUOUS = 0x80000000, <=== computer cannot sleep, while 2 hour movie plays
    ES_DISPLAY_REQUIRED = 0x00000002, <=== display cannot go black while movie plays
    ES_SYSTEM_REQUIRED = 0x00000001
    // Legacy flag, should not be used.
    // ES_USER_PRESENT = 0x00000004
    }

    This feature eliminates the need for "mouse jiggling".

    Simply review the energy report for examples like the above for VLC.

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)