Windows 10: CallNtPowerInformation -> SystemPowerInformation -> TimeRemaining to put system to sleep is...

Discus and support CallNtPowerInformation -> SystemPowerInformation -> TimeRemaining to put system to sleep is... in Windows 10 Performance & Maintenance to solve the problem; Hi, Am using CallNtPowerInformation from powrprof.h in my application. I use it to get SystemPowerInformation, which tells when to put system to low... Discussion in 'Windows 10 Performance & Maintenance' started by NehaHeights, Jan 6, 2020.

  1. CallNtPowerInformation -> SystemPowerInformation -> TimeRemaining to put system to sleep is...


    Hi,


    Am using CallNtPowerInformation from powrprof.h in my application.

    I use it to get SystemPowerInformation, which tells when to put system to low power state as per power plan settings.

    This returns a value TimeRemaining which is kind of a counter which starts when there is no user activity idle system and resets on user activity. I put machine to low power state sleep mode when TimeRemaining is zero.


    My problem is for some new devices, 'Dell 2-in-1 model with a detachable keyboard' this value TimeRemaining is decreasing even on user input when system is not idle. Coz of this behavior i put machine to low power state even when its in use.

    Has something changed with this API. Should i use something else for the info i need.


    CallNtPowerInformation - https://docs.microsoft.com/en-us/windows/win32/api/powerbase/nf-powerbase-callntpowerinformation

    System Power Information - https://docs.microsoft.com/en-us/windows/win32/power/system-power-information-str


    Thanks

    Neha

    :)
     
    NehaHeights, Jan 6, 2020
    #1

  2. Display will not sleep.

    Hi,

    Thank you for posting your query in Microsoft Community. I understand the inconvenience caused to you and will help you solve the issue.

    I suggest you to follow the steps provided below and check if it helps.

    • Click on Start>Settings>System.
    • In the left navigation pane, click on Power & sleep.
    • In the right pane, select the time limit for the system to go to sleep from the drop down list.

    Hope the information is helpful. Keep us posted on the status for further assistance.
     
    Eeshwar Kumar, Jan 6, 2020
    #2
  3. Sleep

    Hi,

    This may happen due to its power plan. A power plan is a collection of hardware and system settings that manages how computers use and conserve power. For this, we suggest that you reset and restore power plans to its default. kindly follow these steps:

    • Open the Command Prompt (Admin).
    • Copy and paste the command below into the command prompt, and press
      Enter
      :
      • powercfg -restoredefaultschemes
    • Close the Command Prompt window, and then restart your PC to apply the changes.

    After that, go to Power & sleep settings
    by typing it into the Windows Search. Check the When plugged in, PC goes to sleep after
    settings is set to Never.

    Let us know if the steps above helped you to resolve the issue.
     
    Janeane Cru, Jan 6, 2020
    #3
  4. CallNtPowerInformation -> SystemPowerInformation -> TimeRemaining to put system to sleep is...

    Win 10 - constantly shutting down into sleep mode every 64 minutes even when in active use!

    Hi Steve,

    • Did you check by setting sleep mode option to never?

    If not, I suggest you to follow the steps provided below and check if it helps.

    • Navigate to Start>Settings>System>Power & sleep.
    • In the right pane, select Never from the drop down list for
      Screen
      and Sleep.
    • Close the dialog box and check for status.

    Hope the information is helpful. Keep us posted on the status for further assistance.
     
    ThofikhAhamad, Jan 6, 2020
    #4
Thema:

CallNtPowerInformation -> SystemPowerInformation -> TimeRemaining to put system to sleep is...

Loading...
  1. CallNtPowerInformation -> SystemPowerInformation -> TimeRemaining to put system to sleep is... - Similar Threads - CallNtPowerInformation SystemPowerInformation TimeRemaining

  2. if i put the laptop in sleep mode, it is not sleeping

    in Windows 10 Gaming
    if i put the laptop in sleep mode, it is not sleeping: if i put the laptop in sleep mode, lock screen is not appearingi tried many times, it has been many months the laptop is not locking only and if i close the lid, lock screen does not appear, only the screen blacks out and when i open the lid back on i come where i left off...
  3. if i put the laptop in sleep mode, it is not sleeping

    in Windows 10 Software and Apps
    if i put the laptop in sleep mode, it is not sleeping: if i put the laptop in sleep mode, lock screen is not appearingi tried many times, it has been many months the laptop is not locking only and if i close the lid, lock screen does not appear, only the screen blacks out and when i open the lid back on i come where i left off...
  4. Putting computer to sleep

    in Windows 10 Performance & Maintenance
    Putting computer to sleep: Can anyone help me with this one. No matter what I do in the power settings the computer will not go to sleep after the 5 minutes that I have set. I have done the bit in the advance, but no matter what I do the computer will not go into sleep mode unless I put in there...
  5. Sleep Mode on Timer Different Than Manually Putting System to Sleep?

    in Windows 10 Performance & Maintenance
    Sleep Mode on Timer Different Than Manually Putting System to Sleep?: Bottom line up front, my computer produces differentresults in sleep mode, depending on if I initiate putting the system to sleepversus following the configured power plan. 1 When I manually put the computer to sleep Start >Power > Sleep, I can observe that my display shuts...
  6. How to put HD to sleep?

    in Windows 10 Performance & Maintenance
    How to put HD to sleep?: Hi, I bought by accident a NAS HD for my desktop internal and it will not go idle sleeping no matter the settings in Windows. Is there a trick to make that happen? option 1: Preferably like after f.e. 15 minutes it goes to sleep and when it is asked for through windows...
  7. unable to put system to sleep.

    in Windows 10 Performance & Maintenance
    unable to put system to sleep.: I noticed the other day that my PC is no longer able to sleep. If i tell my PC to sleep even from the login screen after turning on the system, the screen will turn black, but the system never enters sleep. if i tell the system to sleep, the screen will blank for a minute or...
  8. putting laptop to sleep

    in Windows 10 Customization
    putting laptop to sleep: steps to put my Dell Laptop to sleep when I am finished for the dat https://answers.microsoft.com/en-us/windows/forum/all/putting-laptop-to-sleep/34898161-305a-4188-99a0-a59f33c640f5
  9. Putting the screen to sleep manually?

    in Windows 10 Performance & Maintenance
    Putting the screen to sleep manually?: Years ago I use to have an app that would let me put the screen to sleep simply by moving the cursor to any corner of the screen (for privacy). Recently someone (here?) gave me a command (it may have been a sortcut, or seperate app) that would tell Windows to do this. I had...
  10. putting laptop to sleep

    in Windows 10 Support
    putting laptop to sleep: I was told by an IT Pro to put the laptop to sleep when I was done using it. Why then overnight at times i turn it on the next day and it is completely shut down, I must hit the power button to get it back on, who or why does this happen? 105593