Solved

Computer Won't Sleep

Posted on 2013-06-11
14
605 Views
Last Modified: 2013-06-11
Hi,

I've got a Windows 7 PC and trying to get it to sleep for longer than a few minutes.

The computer can go to sleep properly using the power options to tell it to go to sleep after being idle.

However, for some reason, it doesn't stay asleep. It wakes up after a minute or two for no reason.

I'd prefer to keep 'Wake Up on Lan' enabled so that I can wake up the computer via Logmein if required. Apart from that, I want it to stay asleep.

Any idea what could be causing it to keep waking up? Is there any way to find out?

Many thanks
Dan
0
Comment
Question by:DanJourno
  • 5
  • 4
  • 3
  • +1
14 Comments
 
LVL 30

Expert Comment

by:ded9
ID: 39238545
Run this command from admin command prompt mode...this will tell you why sleep feature is not working.

powercfg -requests



Ded9
0
 
LVL 50

Accepted Solution

by:
jcimarron earned 500 total points
ID: 39238546
DanJourno--
Something running in the background may be the problem.  
Here is a possibly helpful reference
http://www.tomshardware.com/forum/282379-30-computer-wakes-itself-everything

Ded9 beat me by two hundredths of a second.  :(
0
 
LVL 30

Expert Comment

by:ded9
ID: 39238563
@jcimarron :-)


Ded9
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 5

Author Comment

by:DanJourno
ID: 39238593
C:\Users\DanJourno>powercfg -requests
DISPLAY:
None.

SYSTEM:
[DRIVER] \FileSystem\srvnet
An active remote client has recently sent requests to this machine.

AWAYMODE:
None.


C:\Users\DanJourno>
0
 
LVL 26

Expert Comment

by:skullnobrains
ID: 39238611
do you trigger wake-on-lan through some manual operation ?

if the wakeup is triggered by an incoming connection to your router, it is likely that any port-scanning robot might trigger it accidentally

btw, if you use regular sleep, you should be able to use the network nevertheless if you configure the network card properly

---

many devices may or may not be aloud to awaken your computer as well

---

sheduled tasks including some antivirus updates may awaken your computer

---

whatever the culprit is, you can determine why your computer last awoke by typing the following command as administrator

powercfg -lastwake
0
 
LVL 50

Expert Comment

by:jcimarron
ID: 39238615
0
 
LVL 5

Author Comment

by:DanJourno
ID: 39238616
Here is the results from lastwake.

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

Expert Comment

by:jcimarron
ID: 39238621
0
 
LVL 30

Expert Comment

by:ded9
ID: 39238623
Follow the steps mentioned in this article and make sure your install updated network drivers.


http://mingersoft.com/blog/2011/12/why-wont-windows-automatically-sleep/





Ded9
0
 
LVL 26

Expert Comment

by:skullnobrains
ID: 39238653
meaning the USB stack is reponsible for waking up the computer

normally the device name should be displayed. since you have the id of the usb controller, you probably can use the device manager to determine what is plugged into this specific USB port

if i assume that windows does no do a mess of things and properly displays the device when feasible, a good guess could be that the device powers off automagically after some time, or ditches the USB connection when it receives no electricity from it for a while, the usb controller picks the state changed, and wakes windows up

if i assume that windows does a sh...y job as usual, it may just display the device name some times and not others. in that case, it can be any usb device including your mouse moving by 1/10 mm (ie not at all because optic mice cannot be trusted to be still... ever)

i probably did not cover everything, but i believe that you have a fair chance to find the device that is responsible for this mess in the device manager. you can also do the same by unplugging devices before you send the computer to sleep if you do not have tons of them, or waking the computer up voluntarily with the mouse, keyboard, by unplugging and replugging your digita cam or whatever other devices you use and comparing the output of the previous command

solutions range from device-specific stuff to set one or all usb ports to be unable to wake up the computer. in the device manager, you'll find options relative to keeping them powered up and allow them or not to awaken the computer.
0
 
LVL 5

Author Comment

by:DanJourno
ID: 39238866
I just retested to ensure I got the correct information.

Heres the results:-

C:\Users\DanJourno>powercfg -lastwake
Wake History Count - 1
Wake History [0]
  Wake Source Count - 0

Doesnt really help me.
0
 
LVL 50

Expert Comment

by:jcimarron
ID: 39238973
0
 
LVL 5

Author Closing Comment

by:DanJourno
ID: 39239172
Disabling wake up timers seems to have done the trick.

Thanks
0
 
LVL 50

Expert Comment

by:jcimarron
ID: 39239218
DanJourno--
Glad all is well.  You are welcome.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question