Any way to make computer sleep on login screen when inactive?

Page 1 of 2 12 LastLast
  1. GuyInDogSuit's Avatar
    Posts : 306
    Windows 10 Pro x64
       #1

    Any way to make computer sleep on login screen when inactive?


    The owner of the transitional house I live in keeps unplugging my power strip because the computer somehow wakes up when I'm asleep or at work. I don't know if someone is purposely touching the mouse or keyboard, or if it's somehow accidental, but he unplugs it if I'm not using it and it's on. If it's asleep, he doesn't touch it.

    I always put it asleep when I leave the desk for more than 20-30 minutes. It should NOT be on at random times during the day or night. I've gotten up for work at 5:30 am and the PC is on. I've come home on lunch break or after work, and it's unplugged. I'm aware that it updates and such, but doesn't it go back to sleep afterwards? It usually doesn't update on it's own, oddly enough, I have to manually check. ANYWAY....

    Is there some way to make it go to sleep if it's inactive, on the login screen for, say, ten minutes?
      My Computer

  2. Caledon Ken's Avatar
    Posts : 21,000
    Windows 10 Pro x64 Version 1909
       #2

    Hi GuyInDogSuit

    The next time you find your machine awake could you please open a command prompt(admin) and type the following command

    powercfg -lastwake

    This will tell you what issued the wake up call. Hopefully you can then deal with cause.

    Ken
      My Computer

  3. GuyInDogSuit's Avatar
    Posts : 306
    Windows 10 Pro x64
    Thread Starter
       #3

    But that doesn't answer my question. Is there a way to make it sleep on the login screen only?
      My Computer

  4. AddRAM's Avatar
    Posts : 2,999
    Windows 10 Pro x64
       #4

    If the power button is down in the bottom right hand corner then yes, if not, no.

    It`s there on my Sign in screen.

    I`ll have to test and see if it will go to sleep on it`s own while on the Sign in screen.

    Came back about 20 minutes later and the PC was asleep :)
    Last edited by AddRAM; 03 May 2017 at 18:37.
      My Computers

  5. GuyInDogSuit's Avatar
    Posts : 306
    Windows 10 Pro x64
    Thread Starter
       #5

    AddRAM said:
    If the power button is down in the bottom right hand corner then yes, if not, no.

    It`s there on my Sign in screen.

    I`ll have to test and see if it will go to sleep on it`s own while on the Sign in screen.

    Came back about 20 minutes later and the PC was asleep :)
    Is there any way to shorten that time, to say, five minutes?
      My Computer

  6. sygnus21's Avatar
    Posts : 4,302
    Win 10 Pro (x64) 1909 18363.836
       #6

    GuyInDogSuit said:
    Is there any way to shorten that time, to say, five minutes?
    Adjust Sleep times in Power Management - How to Change Power Plan Settings in Windows 10
      My Computers

  7. GuyInDogSuit's Avatar
    Posts : 306
    Windows 10 Pro x64
    Thread Starter
       #7

    I don't want it to go to sleep unless I'm logged out.
      My Computer

  8. GuyInDogSuit's Avatar
    Posts : 306
    Windows 10 Pro x64
    Thread Starter
       #8

    Bump.
      My Computer

  9. AndreTen's Avatar
    Posts : 20,893
    Windows 10 (Pro and Insider Pro)
       #9

    There is only one power plan for all users on PC. So if you want Windows to behave differently when User is logged on and logged off, power plan must be changed...

    There could be some other possibility, one simple solution comes to mind...
    Instead of logging off with clicking on power button or with keyboard, you could set a batch file (or powershell) consisting of setting power plan and command for log of

    switching power plan:

    powercfg /s [GUID of the power plan]
    You can get GUID with command
    powercfg /l
    for logging off

    shutdown /l
    Of course, when you log on, another command would have to be run to change power plan for never go to sleep...
      My Computers

  10. GuyInDogSuit's Avatar
    Posts : 306
    Windows 10 Pro x64
    Thread Starter
       #10

    Could you explain the "GUID" bit a little more?
      My Computer


 

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

Designer Media Ltd
All times are GMT -5. The time now is 15:35.
Find Us




Windows 10 Forums