Laptop wakes up with lid closed - powercfg is no help

Page 1 of 3 123 LastLast

  1. Posts : 121
    Windows 10 Pro
       #1

    Laptop wakes up with lid closed - powercfg is no help


    Hi all

    My laptop is running Windows 21H2. The laptop keeps waking up with the lid closed and I'm running out of options.

    If I run powercfg -lastwake I get this:

    C:\Windows\system32>powercfg -lastwake
    Wake History Count - 1
    Wake History [0]
    Wake Source Count - 0

    can someone please point me to the right direction?

    Thank you!
      My Computer


  2. Posts : 43,195
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    Hi, from the huge searchable Tutorial section (do have a look) I found:
    See Wake Source in Windows 10
    View Wake Timers in Windows 10
    See Devices able to Wake Computer in Windows 10

    These may help you...

    Is your PC networked when it wakes, or completely isolated?

    Could it be waking for maintenance or an update? (Check your Update History)
    What does it do when it wakes?

    To consider:
    Laptop wakes from sleep - help!
    Laptop wakes from sleep - help!

    History: (so often omitted by posters):
    When was the last time you knew this didn't happen?
      My Computers


  3. Posts : 17,012
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #3

    Tony,

    From which state is it waking?
    Do you have mains power connected at the time?

    To make sure your potential power states are understood, run this command and post the results
    Code:
    PowerCfg -a
    The results of interest are
    - - whether you have S3 Sleep or S0 Modern standby [aka S0 Low power idle], and
    - - if you have Hibernate enabled.


    Event logs can reveal more info than -lastwake can.
    - You can import an Event viewer, Custom definition that shows you the transitions between power states.
    - I can explain how to import such a Custom view.
    - You can then find examples of resuming and see what the General tab of the event says was the cause.


    Here is the [zipped] definition for that Event viewer, Custom view.
    Power - Sleep-Hibernate-S0 transitions.zip
    Before importing it, you can read its unzipped xml files in Notepad or, for a better presentation of its contents, by right-clicking and opening in a browser.
    I use this combined Custom view for all my computers. If you have S0 then its transitions are presented & if you have S3 Sleep then its transitions are presented.


    To import it:
    1 Unzip the file
    2 Open Event viewer, click on Import Custom view [on the right-hand side],
    3 Browse to and select the xml, Open,
    4 Change the name if you want to then OK,
    5 You can see the records, on the left-hand side, within the group Custom views.

    You can then select this Custom view in Event viewer's left-hand pane.

    When reviewing power state transitions, note that S3 Sleep & Hibernation events can only be distinguished, in a computer that has both, by looking at the Details tab of the resume EventID 1 for Hiber* entries that are greater than 0; resuming from S3 Sleep would show Hiber* entries that have the value 0
    Resume from Hibernate, Details tab

    Resume from S3 Sleep, Details tab



    On a similarly confusing note, S0 Modern standby event records are misleadingly labelled as relating to S0 Connected standby whichever state is in force - Connected/Disconnected standby.



    Best of luck,
    Denis
      My Computer


  4. Posts : 121
    Windows 10 Pro
    Thread Starter
       #4

    Thank you!

    I am noticing something weird. The red "Lenovo" light was flashing as to indicate "I am in standby" but the laptop's fans were spinning. When I opened the lid the picture was there already, no delay. And the unit is warm.

    Thanks for all the links. Tutorial 1 shows the powercfg I mentioned and it does not show a wake event.

    The timer is a bit weird. This is the output

    C:\Windows\system32>powercfg -waketimers
    Timer set by [PROCESS] \Device\HarddiskVolume3\Windows\SystemApps\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\S tartMenuExperienceHost.exe expires at 04:00:00 on 쀀ᳪ@.

    I've removed permission from Thunderbolt to wake up the laptop.

    Computer is on WiFi even though I'd assume WiFi is disabled when sleeping. Are you thinking on WOL? I've now disabled it to be on the safe side.

    I see some updates today but the history doesn't mention the time.

    I usually find the laptop running - or it wakes up in my backpack.

    I've recently reinstalled this machine so not sure what was happening before.

    The two links you suggest mention the timers - I NEVER want my laptop to turn on without my permission so timers are now disabled! :)

    Let me also take a look at the BIOS as I am concerned about the Lenovo light flashing but the fans not stopping.

    Thanks so far!

    Tony
      My Computer


  5. Posts : 17,012
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #5

    Tony,

    You were probably already writing your post when I posted.

    Please don't miss my post. Understanding these factors is essential:-
    Try3 said:
    From which state is it waking?
    Do you have mains power connected at the time?

    To make sure your potential power states are understood, run this command and post the results
    Code:
    PowerCfg -a
    The results of interest are
    - - whether you have S3 Sleep or S0 Modern standby [aka S0 Low power idle], and
    - - if you have Hibernate enabled.
    Some of your observations make me think that you have S0 Modern standby in which case your computer does not sleep in the sense that the term has come to be used.
    - S0 is just a glorified idle condition.
    - S3 Sleep is what people generally mean when they use the term sleep.


    All the best,
    Denis
      My Computer


  6. Posts : 43,195
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #6

    It would be worth disabling wake timers at least as an experiment...
      My Computers


  7. Posts : 121
    Windows 10 Pro
    Thread Starter
       #7

    Try3

    Thanks a lot for that, I appreciate your time! indeed I was writing when you posted.

    First, one weird thing.
    I browsed the BIOS a bit, disabled some power related stuff then re-loaded windows. I then selected SLEEP on the shutdown menu.

    The laptop goes to sleep (that is: screen goes black and red Lenovo LED blinks) but fans don't stop?? I noticed that before and assumed it was some kind of advanced cooling system where fans continue spinning for a bit to make sure the system is reaching the correct temperature before stopping. It doesn't make much sense and my fans are still spinning :)

    BUT: I unplugged the USB-C power cable and fans stopped after a few seconds.

    I have S0 and Hybernate available.

    C:\Windows\system32>powercfg -a
    The following sleep states are available on this system:
    Standby (S0 Low Power Idle) Network Connected
    Hibernate

    I see what you mean. I am expecting the laptop to "power off" but instead it goes to a very deep sleeping mode? The issue is that it was very warm today and it drained the battery over several hours.

    In the end what I am looking for is to NOT find the laptop drained when I need it. What is your recommendation? I don't mind new things (S0 vs S3) but in the end if the system is not clever enough to understand when it's time to go to sleep, is it better to disable S0 - assuming it's even possible?

    Thanks!
      My Computer


  8. Posts : 17,012
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #8

    Your computer does not sleep. You have S0 instead and it is not the same as sleep.
    Your computer is merely idling and that's why the fan can come on.

    There are, in effect, four Power/Computer states for an S0 Modern standby [aka S0 Low power idle] computer
    - Computer on, Monitor on {Work can be done on the computer}
    - Computer on, Monitor off = S0 {The monitor turning off initiates S0 Modern standby i.e. idle}. S0 progressively inhibits user-initiated processes. No user-desired activities start, only MS-desired ones such as WU & their built-in email app.
    - Hibernate
    - Off

    I went through several different stages in my approach to S0:-
    - I adapted to S0 by using hibernation when I had been used to using S3 Sleep.
    - When I got even more fed up with S0, I set my monitor to always stay on [it's the monitor turning off, as set in Power options, that starts S0] and I set a very dark screensaver to come on after a desired time so the screen wouldn't be staring at me all day.
    - Eventually, I just used the tutorial to disable S0. And I would never even think about re-enabling it.
    Disable Modern Standby in Windows 10 and Windows 11 - ElevenForumTutorials
    - - Many people have found that disabling S0 automatically enabled S3 Sleep.
    - - In my case, S3 Sleep remained disabled so I carried on having to use hibernation as a second-best choice.
    - - In my case, Task scheduler would not wake the computer from hibernation but others have reported that theirs worked OK.
    - - In my case, my WiFi adapter often sometimes fails to restart properly [no networks detected] when it comes out of hibernation so I run a little script to disable it then re-enable it after which it works again.


    All the best,
    Denis
      My Computer


  9. Posts : 121
    Windows 10 Pro
    Thread Starter
       #9

    Found the tutorial and indeed I think I'm ok with S3.

    S0 seems a bit stupid - as I said, I don't mind new things but if I open my laptop after a full charge and it's drained, then it doesn't work for me!

    Thank you A LOT! :) This forum is amazing, it's helped me so much over the years and you only find good info and excellent contributors on it. Kudos.
      My Computer


  10. Posts : 17,012
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #10

    tony359 said:
    Found the tutorial and indeed I think I'm ok with S3.
    I think you are saying that you've now disabled S0 and that S3 is enabled as a result.
    You won't regret it.
    You can confirm your new power states by re-running that PowerCfg -a command.

    tony359 said:
    S0 seems a bit stupid
    That is a very polite comment.
    Other polite comments include, "It's a curse".
    But it does suit some people.


    All the best,
    And thanks for the rep,
    Denis
      My Computer


 

  Related Discussions
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 17:11.
Find Us




Windows 10 Forums