Windows immediately comes out of sleep mode

Out of nowhere I started having problems with my machine staying in Sleep Mode. I would select the Sleep button, the machine would power down, then immediately start right back up even though I hadn’t touched the keyboard or clicked the mouse.

It hasn’t had this sort of problem before, so what the devil is wrong?

I started searching and found all sorts of wild ideas to try such as turning off the Power Management for the keyboard, mouse and network card. Those, sound like reasonable ideas, but the likelihood of that being the real culprit is slim to none.

One thing I did learn was a neat command called: powercfg -lastwake

Once the machine goes to sleep and then wakes again, you run that command to note what device caused the machine to wake up. Alright, now we’re getting somewhere. Some solid troubleshooting not just randomly clicking power management buttons.

Here’s the output of what I got:

C:\Users\>powercfg -lastwake
Wake History Count – 1
Wake History [0]
  Wake Source Count – 1
  Wake Source [0]
    Type: Device
    Instance Path: USB\ROOT_HUB\4&20ea87f5&0
    Friendly Name:
    Description: USB Root Hub
    Manufacturer: (Standard USB Host Controller)

C:\Users\>

So looky there, my USB Hub is causing the machine to wake up. An odd thing, since I have a drive at the end of that chain, but it’s not currently powered on. Anyway, I pulled the USB plug from the back of the computer and what do you know, the machine went to sleep as normal.

I have no idea what’s keeping the machine awake, but that’s the cause. I have the same hub connected to another machine and don’t have any issues, however, all the drives hooked into that USB hub are always turned on. Maybe the USB hub can’t get the state of the drive so it feels compelled to stay on.

Anyway, if you’re getting stuck with a machine that won’t stay in the sleep state, run powercfg -lastwake and see what’s causing the problem. If you’re lucky it’ll give you the actual name of the device and you should have it solved in just a minute or two.

Other articles of interest:

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Comments
  • How To Disable the Quicken Registration Prompt (10)
    • Jack Woltz: Worked great but now I get update nag which is worse
  • How To Download Movies From Hulu Using Freemake Video Downloader (1)
    • Doomups: I often use allavsoft to download Videos from Hulu on Mac and Windows. And it also can batch and Direclty Download Hulu Videos to MP4, WMV, MOV, AVI, FLV, etc.
  • Why is Daemon Tools Lite triggering Norton Internet Security Anti-Virus? (1)
    • Jaguar: What’s an alternative to using daemon tools? That would be useful to know.
  • Loot Drops for the last few hours of Season Surprise Event – Crime City (1)
  • Topping out with a Trillion Dollars in Crime City (13)
    • Don Pedro: So, just to show how ridiculous things have become, a few weeks ago, I crossed over the 3 Trillion mark in cash. My income has moved to 525.7M IPH. I have both Luggage Lugger buildings upgrading and am working to upgrade the...
    • Tom Offski: Thank you
    • Don Pedro: My income is all from buildings. I have just about every LTB they’ve introduced. I skipped one or two based on their enormous size and terrible income/upgrade costs. Almost all of those buildings are now level 10s. The...
    • Tom Offski: Hey, I’ve been playing sonce 2013, but stopped for a year and a half mid-way. My IPH is 1.05m, and my main source of income is a certain job which gives you 2-7mil for 178 energy… how do you make so much money? Is...
    • Don Pedro: I am very familiar with the time of which you speak. That is when I first came on board as well. There were some good prizes back then such as the decrease in deposit fee. Some of those old buildings are somewhat laughable...
    • Duane Stovall: Yeah 3 of the 5 building upgrades are working on the older regular buildings now. I’ve got all the LTB’s up to level 10. Started playing when FUNZIO owned CC…so was able to purchase every LTB that came...
    • Don Pedro: Upgrading 5 buildings at a time? Damn son! And your IPH is a lot higher than mine. I’ve only got 485 with 3 upgrades at a time, of which I’ve only been using 2. I’ve thought about getting another upgrade...
    • Duane Stovall: I’m up to 517mil iph…just hit my first trillion in the bank. Would have hit a while back…but started a baby syn for my two smaller accounts and maxed out most of the bonuses with the help of one other...
    • Up!: Wow, and here I come with 2m iPH trying to build up a syn.. How long have you been playing? I do think that for normal accounts (without the reduction) its cheaper to leave the money out, being robbed 10% .. would mean in my case 5m...
  • Put another trillion on the fire – Crime City (1)
    • Paul: Im right behind u Scabby at 425 mil iph!! Wish there were better 12 hour buildings coming out
  • New version of Freemake Video Downloader brings back YouTube Playlist downloads (1)
    • ALI: Hi there, I have been trying to download a playlist contains more than 300 episodes but when I copy and paste the link into freemake video downloader app, I can only download max of 100 videos only. Is there anyway to download all...