📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Laptop switching off when in sleep mode

13

Comments

  • neilmcl
    neilmcl Posts: 19,460 Forumite
    Part of the Furniture 10,000 Posts Name Dropper
    SurferDan said:
    neilmcl said:
    SurferDan said:
    Why are you putting the laptop in sleep mode instead of switching it off, especially overnight?
     
    Why shouldn't he?
    Because it is good practise to shut down and restart any computer regularly because it lets the operating system clean up and empty the cache and RAM, save files etc and perform "self tests" on start up. This helps prevent "crap" building up and slowing the system down. 
    Any PC left on continuously or in sleep mode, hibernation or hybrid sleep will become sluggish over time.
    How many times when there's a problem with a computer has it been cured simply by turning it off and back on again?
    And that's completely fair enough but that doesn't mean using sleep mode is a bad idea in itself, which your question would seem to suggest.
  • pbartlett
    pbartlett Posts: 1,397 Forumite
    1,000 Posts Name Dropper
    The only time I shut down / restart my laptop is when windows updates arrive and it requires a reboot. Otherwise it always sleeps, and has done for many years. But of course each person has their own preferences. 
  • pbartlett
    pbartlett Posts: 1,397 Forumite
    1,000 Posts Name Dropper
    From an advanced command prompt, have a look at powercfg /?

    try powercfg /systemsleepdiagnostics

    Maybe in the morning
    powercfg /lastwake
  • neilmcl:-
    No suggestion that sleep mode is a bad thing, it has its uses, as does hibernation.
    I was more thinking that if the OP's laptop was taking a long time to start up they put it in sleep mode to avoid a lengthy boot up time. Which would suggest some other problem that might be cured simply by rebooting the laptop
  • JohnB47
    JohnB47 Posts: 2,665 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    pbartlett said:
    From an advanced command prompt, have a look at powercfg /?

    try powercfg /systemsleepdiagnostics

    Maybe in the morning
    powercfg /lastwake
    Sorry, could you expand on how to use those commands?
  • pbartlett
    pbartlett Posts: 1,397 Forumite
    1,000 Posts Name Dropper
    win + x then open an elevated command prompt then run commamds
  • JohnB47
    JohnB47 Posts: 2,665 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    pbartlett said:
    win + x then open an elevated command prompt then run commamds
    Thanks - got that. However, entering powercfg /lastwake doesn't seem to give me much. Here's what I got - how is that helpful?
    C:\WINDOWS\system32>powercfg /lastwakeWake History Count - 1Wake History [0]  Wake Source Count - 1  Wake Source [0]    Type: Device    Instance Path: PCI\VEN_8086&DEV_9CB1&SUBSYS_F8401179&REV_03\3&11583659&1&A0    Friendly Name: Intel(R) USB 3.0 eXtensible Host Controller - 1.0 (Microsoft)    Description: USB xHCI Compliant Host Controller    Manufacturer: Generic USB xHCI Host Controller
    C:\WINDOWS\system32>
  • JohnB47
    JohnB47 Posts: 2,665 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    Right, this is getting wierd now. Took a note of when I last put the pc in sleep mode - 17/02/2021 21:42 last night. Definitely in sleep mode - power lamp slowly pulsing on and off, disk stopped whirring. Looked again around 22:30 and saw pc in same state. This morning, found pc had powered off. (Had to reconnect to wifi but that's another story - on another thread). Just had time to look at Event Viewer/Windows Logs/System and I can see a list of entries running up to 17/02/2021 21:42 with the next group of entries starting 18/02/2021 00:42 exactly three hours later. Now here's the odd thing. The last entry last night, when I pressed the power button to put it in sleep, says the system has resumed from sleep! Not only is this odd, but the code below also says something about a programmed wake time - exactly three hours later. Sure enough, further up there is another group of entries, with one at 18/02/2021 42:11 saying the system has returned from a low power state.
    Can anyone make sense of this? Apparently I can copy the whole table (presumably of events), so if anyone wants a bit of bed time reading let me know.
    If I copy the last line, at 17/02/2021 21:42 , last night, here is what it pastes as (the highlights are mine): remember, this is when I put the pc to sleep.

    Log Name:      System
    Source:        Microsoft-Windows-Kernel-Power
    Date:          17/02/2021 21:42:08
    Event ID:      107
    Task Category: (102)
    Level:         Information
    Keywords:      (1024),(64),(4)
    User:          N/A
    Computer:      LAPTOP-L7UTCSDN
    Description:
    The system has resumed from sleep.
    Event Xml:
      <System>
        <Provider Name="Microsoft-Windows-Kernel-Power" Guid="{331c3b3a-2005-44c2-ac5e-77220c37d6b4}" />
        <EventID>107</EventID>
        <Version>1</Version>
        <Level>4</Level>
        <Task>102</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000444</Keywords>
        <TimeCreated SystemTime="2021-02-17T21:42:08.7210896Z" />
        <EventRecordID>9831</EventRecordID>
        <Correlation />
        <Execution ProcessID="4" ThreadID="472" />
        <Channel>System</Channel>
        <Computer>LAPTOP-L7UTCSDN</Computer>
        <Security />
      </System>
      <EventData>
        <Data Name="TargetState">4</Data>
        <Data Name="EffectiveState">4</Data>
        <Data Name="WakeFromState">4</Data>
        <Data Name="ProgrammedWakeTimeAc">2021-02-18T00:42:07.1733443Z</Data>
        <Data Name="ProgrammedWakeTimeDc">2021-02-18T00:42:07.1733443Z</Data>
        <Data Name="WakeRequesterTypeAc">4</Data>
        <Data Name="WakeRequesterTypeDc">4</Data>
      </EventData>
    </Event>
  • pbartlett
    pbartlett Posts: 1,397 Forumite
    1,000 Posts Name Dropper
    edited 18 February 2021 at 11:22AM
    As previously mentioned, it may be that something is waking your laptop up. Did you run

    powercfg /systemsleepdiagnostics

    using an elevated command prompt and look at the report (esp. sleep interval box)

    Also, try powercfg /waketimers to see what wake timers are set. This may give you an indication what timer is waking your laptop.

    Also, under power / advanced power settings /  sleep you can disable wake timers so they cannot wake the laptop up from sleep - this may cure your problem!

    This may help analyse your even 107 wake from sleep

    Troubleshooting unplanned Windows automatic wake-ups | Event Log Explorer blog (eventlogxp.com)

    One suspect may be windows update -  check what time it checks for updates. Or it may be something completely different eg another app or hardware
  • JohnB47
    JohnB47 Posts: 2,665 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    pbartlett said:
    As previously mentioned, it may be that something is waking your laptop up. Did you run

    powercfg /systemsleepdiagnostics

    using an elevated command prompt and look at the report (esp. sleep interval box)

    Also, try powercfg /waketimers to see what wake timers are set. This may give you an indication what timer is waking your laptop.

    Also, under power / advanced power settings /  sleep you can disable wake timers so they cannot wake the laptop up from sleep - this may cure your problem!

    This may help analyse your even 107 wake from sleep

    Troubleshooting unplanned Windows automatic wake-ups | Event Log Explorer blog (eventlogxp.com)

    One suspect may be windows update -  check what time it checks for updates. Or it may be something completely different eg another app or hardware
    Thanks. Yes, I need to check these things. No time earlier. Lots for me to do later and over the next few days.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 350.4K Banking & Borrowing
  • 252.9K Reduce Debt & Boost Income
  • 453.3K Spending & Discounts
  • 243.4K Work, Benefits & Business
  • 597.9K Mortgages, Homes & Bills
  • 176.6K Life & Family
  • 256.4K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.