Power Options

Discussion in 'Windows Vista Performance' started by The Learner, Mar 5, 2010.

  1. The Learner

    The Learner Guest

    I have an HP laptop using Vista SP-2. Until recently, the power settings
    worked the way I set them (especially shutting off the display after 15
    minutes of idle time). Now, this particular setting doesn't work (the
    display stays on all the time). I haven't checked the other settings
    yet. Tried Google but couldn't find anything that applied. Suggestions
    for a solution?
     
    The Learner, Mar 5, 2010
    #1
    1. Advertisements

  2. The Learner

    GSalisbury Guest

    Control Panel / Power Options
     
    GSalisbury, Mar 5, 2010
    #2
    1. Advertisements

  3. Did you notice that he has already set the power options, but that they
    recently stopped working?

    I would be glad to offer a suggestion to the OP, but I often have the same
    problem (not consistently, unfortunately) and haven't solved it.

    I have a thought that the Windows Search Indexer is implicated, but I'm not
    sure. And previously I had a wireless mouse & keyboard that added a
    reproducible 5 minute delay to the Screen Saver and Screen Dark
    timeouts...The new KB & mouse don't have that problem. Weird...

    BTW, I'm running 7, not Vista.
     
    Gene E. Bloch, Mar 5, 2010
    #3
  4. The Learner

    GSalisbury Guest

    Yes I did.
    He also said "I haven't checked the other ...".
    I was [trying to] encourage him to go back and check/set/toggle etc. the
    options to verify the effect.
     
    GSalisbury, Mar 5, 2010
    #4
  5. The Learner

    The Learner Guest

    Please read my post. I know how to use the Control Panel. Thanks for
    the feedback anyway ;)
     
    The Learner, Mar 5, 2010
    #5
  6. The Learner

    The Learner Guest

    Thanks, Gene. I might have found another way to solve the problem. After
    I check it out, I'll let you know.
     
    The Learner, Mar 5, 2010
    #6
  7. OK. I have to agree with you, then - we all need encouragement sometimes.
    Sorry for being snappish...

    Now I have to read the rest of the new posts to see if I can learn anything
    new about the problem :)
     
    Gene E. Bloch, Mar 5, 2010
    #7
  8. The Learner

    witan Guest


    I have been having the same problem, on and off. It seems to have something
    to do with applications that are running. If all applications are minimized,
    the screensaver does kick in after the set time.
     
    witan, Mar 8, 2010
    #8
  9. The Learner

    Guest Guest

    Applications can mark their threads as not idle. This is how Media Player
    disables the screensaver while playing video.
     
    Guest, Mar 8, 2010
    #9
  10. The Learner

    Joe Morris Guest

    Can you point me to some Microsoft documentation on the ability of a program
    to defeat the screensaver timeout? I've been chasing a problem for which
    that sounds like the explanation for some time (involving unattended systems
    not going into screenlock), and getting nothing useful from Microsoft.

    Is it possible to have a (privileged, of course) program scan the active
    user-context threads and turn off the "force not-idle" setting?

    Joe Morris
     
    Joe Morris, Mar 8, 2010
    #10
  11. However, both in 7 and earlier versions of Windows, I got to see my bubbles
    moving in front of open app windows. It's only recently that the screen
    saver has been rejecting me (sob!).

    I should look into other apps, though. For example, I recently installed a
    system tray app to show when CapsLock, etc, are on -- I got tired of not
    realizing my wireless keyboard, which lacks indicator lights, had CapsLock
    on...Maybe it's too talkative :)

    Earlier this afternoon I just turned off the Indexer Service. That's my
    current experiment. I'll look into the CapsLock app if that fails.

    Re another suggestion: I have Windows set only to notify when updates are
    available; my downloading and installing are both manual. Others here might
    want to look into that setting, though.
     
    Gene E. Bloch, Mar 8, 2010
    #11
  12. The Learner

    Guest Guest

    SetThreadExecutionState

    Enables applications to inform the system that it is in use, thereby
    preventing the system from entering the sleeping power state or turning off
    the display while the application is running.


    EXECUTION_STATE SetThreadExecutionState(
    EXECUTION_STATE esFlags
    );

    Parameters
    esFlags
    [in] The thread's execution requirements. This parameter can be one or more
    of the following values. Value Meaning
    ES_CONTINUOUS
    0x80000000 Informs the system that the state being set should remain in
    effect until the next call that uses ES_CONTINUOUS and one of the other
    state flags is cleared.
    ES_DISPLAY_REQUIRED
    0x00000002 Forces the display to be on by resetting the display idle timer.
    ES_SYSTEM_REQUIRED
    0x00000001 Forces the system to be in the working state by resetting the
    system idle timer.

    Return Value
    If the function succeeds, the return value is the previous thread execution
    state.

    If the function fails, the return value is NULL.

    Remarks
    Activities that are automatically detected include local keyboard or mouse
    input, server activity, and changing window focus. Activities that are not
    automatically detected include disk or CPU activity and video display.

    Calling SetThreadExecutionState without ES_CONTINUOUS simply resets the idle
    timer; to keep the display or system in the working state, the thread must
    call SetThreadExecutionState periodically.

    To run properly on a power-managed computer, applications such as fax
    servers, answering machines, backup agents, and network management
    applications must use ES_SYSTEM_REQUIRED | ES_CONTINUOUS when they process
    events. Multimedia applications, such as video players and presentation
    applications, must use ES_DISPLAY_REQUIRED when they display video for long
    periods of time without user input. Applications such as word processors,
    spreadsheets, browsers, and games do not need to call
    SetThreadExecutionState.

    The SetThreadExecutionState function cannot be used to prevent the user from
    putting the computer in standby mode. Applications should respect that the
    user expects a certain behavior when they close the lid on their laptop or
    press the power button.

    This function does not stop the screen saver from executing either.
     
    Guest, Mar 9, 2010
    #12
  13. The Learner

    Joe Morris Guest

    SetThreadExecutionState controls the request for uninterrupted service for
    the thread in which the call occurs. My problem is that I want to be able
    to be able to override the use of ES_SYSTEM_REQUIRED by any application in
    the machine.

    The problem is occurring with computers that are located in meeting rooms.
    We're using the WINEXIT screensaver to provide a deadman timer; killing the
    user's session after a relatively short idle time reduces the security
    exposure created if someone logs on to use the computer, then leaves the
    room without logging off. The sticking point is that some applications that
    are frequently used in meetings (PowerPoint is the poster child) disable the
    system idle timer. What I would like to find is an API through which I can
    do <something> to prevent any application from defeating the screensaver
    timer. I would prefer to do it using a published API but might consider
    (reluctantly, and only if necessary) front-ending the API and quietly
    ignoring the call.

    Yes, I know this isn't a programming NG but I was hoping that someone had a
    magic answer for me. Thanks anyway for taking time to respond!

    Joe

     
    Joe Morris, Mar 9, 2010
    #13
  14. The Learner

    Guest Guest

    Not that I know of.

    --
    ..
    --
     
    Guest, Mar 9, 2010
    #14
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.