Win7: "Sleep" mode doesn't really sleep. (power still on)

GoodEnough

Golden Member
Apr 24, 2011
1,546
19
81
In the past, sleep mode meant the PC is totally powered off. The state is saved and the PC is 100% dormant. Now, on Win7, I put the PC to sleep, and I can still hear the HD whirring. I think it still does scheduled jobs in the background. Sometimes, it even awakes and the screen is on by the morning. I have started to just do a hard shut down, since sleep isn't really a true powered off sleep.

What is the deal here?
Do I need to change a setting somewhere?
 

Evander

Golden Member
Jun 18, 2001
1,159
0
76
I don't remember the steps but you need to enable hibernation (probably through control panel > power) and hibernate instead of sleep (sleep is just low power standby).

You can still use sleep though - again go into the power settings and tell it to shut down the hard drive while in sleep mode. For the things that wake up the system, there's a way to find out but I don't remember how (I think some system log file). In my case, it was Windows Media Player waking up to do updates - I fixed it by doing this:
http://www.sevenforums.com/tutorial...r-updates-enable-disable-waking-computer.html
 

paul878

Senior member
Jul 31, 2010
874
1
0
In the past, sleep mode meant the PC is totally powered off. The state is saved and the PC is 100% dormant. Now, on Win7, I put the PC to sleep, and I can still hear the HD whirring. I think it still does scheduled jobs in the background. Sometimes, it even awakes and the screen is on by the morning. I have started to just do a hard shut down, since sleep isn't really a true powered off sleep.

What is the deal here?
Do I need to change a setting somewhere?


That should not happen when the PC is at sleep state, something is wrong with your computer. Most likely some software is prevent the computer from going to sleep. Disable all startup items and try.
 

Matt1970

Lifer
Mar 19, 2007
12,320
3
0
Actually sleep mode is just a low power state where all your work and windows files are still loaded in memory. It's like a big pause button where everything but memory is turned off. Hibernation is a totally powered off state where instead of keeping everything in memory it puts it on the hard drive and powers everything off. Either way you should not be hearing the hard drive.

How to Enable or Disable Hibernate in Windows 7 and Windows 8
Enable: Open a elevated command prompt and type powercfg -h on and press Enter.
Disable: Open a elevated command prompt and type powercfg -h off and press Enter.
 

code65536

Golden Member
Mar 7, 2006
1,006
0
76
Sounds like you're dealing with a variety of issues.

First up, sleep can mean different things. I suggest you read up on the ACPI power states. Generally, what we think of sleep is the S3 state, where everything is turned off except for the RAM, where the current machine state is maintained. The system will appear to be totally powered off (except maybe for a blinking light on some systems), but if you remove the power source (uplug the computer and remove the battery if it's a laptop), it will lose its state and you'll have the restart the system from scratch.

The people in this thread are mostly discussing hibernation, which is the S4 state, in which the state is saved to disk instead of to RAM and the RAM can thus be powered off. Unlike S3, S4 can survive the complete loss of power, but in most cases, S4 looks a lot like S3, which is to say it looks like the system is off.

But sleep does not necessarily mean S3. Some systems, like an old server that I have, do not support S3 and instead use S1 or S2, where basically the CPU is paused, but the rest of the system does not necessarily stop. So fans and hard drives keep on spinning, power usage still remains pretty high (given how little modern CPUs consume when idle, S1 is not very different from just leaving the computer idle, and resuming from S1 is virtually instantaneous). So it sounds like you are either not entering sleep at all, or more likely, you're just entering S1 sleep. Windows does not control which sleep state you enter--that's controlled by the BIOS. Modern BIOSes default to S3 (aka STR) for sleep, but it is possible to pick S1 or S2 as the sleep mode. Make sure your sleep mode is configured for S3 in BIOS.

As for the system waking up, there are two likely sources. First, there are scheduled tasks that can wake the computer. For example, if you told Media Center to record a TV show at a certain time, Windows will wake the computer for that task. You can disable all forms of task-scheduled wakeups by editing your current power profile, going into the advanced settings, and turning off wake timers under the sleep section (by default, wake timers are disabled for laptops, and enabled for desktops). You could also revoke wakeup permissions on a per-task basis, but that requires tediously combing through the task scheduler.

The other likely culprit is Ethernet. Wake-on-LAN is supposed to wake the computer only upon the reception of a rather specific "magic packet", but many NICs today (I'm looking at you, Realtek) are configured by default to also wake on "pattern match", which appears to wake the computer if something on the network tries to contact it, which, IMO, is really stupid--if I want to wake up a computer on the network, I'd like to do it explicitly with a traditional WOL magic packet. So if there's an option for pattern match wakeup in your NIC's advanced settings, turn that off, and also be sure to check the box under power management to wake up only upon the reception of a magic packet (or disable wakeup entirely). Disabling pattern match wakeup does not adversely affect traditional magic packet Wake-On-Lan (I'm a very heavy user of WOL, and I have pattern match turned off on every system).
 
Last edited:

Steltek

Diamond Member
Mar 29, 2001
3,053
759
136
One other thing to check is whether you have the Intel Smart Connect technology driver installed as it will wake the system to download updates. My experience was that it was a lot better at waking the system than it was at putting it back to sleep afterwards. I eventually uninstalled it and was much happier.
 

GoodEnough

Golden Member
Apr 24, 2011
1,546
19
81
I have no idea where to find these settings on Win7.
Can someone tell me exactly what the menu/Start bar path is?
 

GoodEnough

Golden Member
Apr 24, 2011
1,546
19
81
Ok, I did these 2:

http://support.microsoft.com/kb/920730
powercfg.exe /hibernate on

A. Type Power Options in Start menu and hit enter.
B. In the left pane, open the link labeled “Change when the computer sleeps” and then open the link “Change advanced power settings”.
C. Under the Advanced Sleep option, expand the Sleep tree and turn off Hybrid Sleep.
http://answers.microsoft.com/en-us/...ibernate/2761b1ad-3623-4808-b6a9-a23999ddddb8

Start->Control Panel->Power Options->Choose what the power buttons do
Now you will find When I press the sleep button, Select Hibernate from the list.
http://answers.microsoft.com/en-us/...-windows/2a5140fe-8241-4c87-a5ed-2b7166e176db

http://www.howtogeek.com/howto/7564/
 

GoodEnough

Golden Member
Apr 24, 2011
1,546
19
81
After adding "hibernate" mode, and using that....
The PC refuses to stay in "hibernate" mode.
It wakes up within a minute or two.

What is keeping it from hibernating?
What service do I need to turn off?
 

ralfy

Senior member
Jul 22, 2013
485
53
91
In my case, what happened was that the option "Allow the device to wake the computer" was enabled for the keyboard and mouse devices in the device manager. After I disabled them, the machine no longer woke up after entering hibernate mode.
 

nickbits

Diamond Member
Mar 10, 2008
4,122
1
81
I've always had to disable mouse and keyboard wake in device manager or the pc would randomly wake itself after a short period.
 

GoodEnough

Golden Member
Apr 24, 2011
1,546
19
81
Ok, I deselected "Allow the device to wake the computer"
Let's see....
 
Last edited:

GoodEnough

Golden Member
Apr 24, 2011
1,546
19
81
I don't have a "System and Security" option in my Control Panel. Just System.
Anyone know how to find these settings in Win7?



To prevent programs from waking your computer

Open Power Options by clicking the Start button Picture of the Start button, clicking Control Panel, clicking System and Security, and then clicking Power Options.

On the Select a power plan page, click Change plan settings for the plan that you want to change.

On the Change settings for the plan page, click Change advanced power settings.

On the Advanced settings tab, expand Sleep, expand Allow wake timers, choose Disable for both when your computer is running on battery and when it's plugged in, and then click OK.
 

ralfy

Senior member
Jul 22, 2013
485
53
91
System and Security should show up if you view by category. Otherwise, all settings, including Power Options, will appear if you view by small or large icons.
 

Steltek

Diamond Member
Mar 29, 2001
3,053
759
136
From an elevated command prompt, run the following command:

powercfg –lastwake

This will tell you the system device that last woke the system from sleep. If you want to see a list of all devices which are enabled to wake the system, the following command (again run from an elevated command prompt) will give you a list:

powercfg -devicequery wake_armed
 

GoodEnough

Golden Member
Apr 24, 2011
1,546
19
81
What is an "elevated" cmd prompt?
I am just using "cmd" DOS prompt.
Same thing?

When I typed the first command, I get:
Wake History Count - 1
Wake History [0]
Wake Source Count - 0


When I typed the 2nd command, I get:
Broadcom NetLink (TM) Gigabit Ethernet

What does this tell me?
 

GoodEnough

Golden Member
Apr 24, 2011
1,546
19
81
Turned off the Ethernet ability to wake.

Went to device manager again.
Start/Control Panel/Device Manager
Network Adapters/Properties/Power Management
Deselected "Allow the device to wake the computer"

Let's see....
 

Steltek

Diamond Member
Mar 29, 2001
3,053
759
136
Turned off the Ethernet ability to wake.

Went to device manager again.
Start/Control Panel/Device Manager
Network Adapters/Properties/Power Management
Deselected "Allow the device to wake the computer"

Let's see....


An elevated command prompt is a command prompt executed with Administrator rights (i.e. right-click on the CMD command and select 'Run as Administrator'). However, if it worked without elevation, that is fine.

You always need to run the powercfg -lastwake command after your system wakes up from sleep and before you shut down and restart. Otherwise, the history is reset once you shut down/restart the machine after it has been woken from sleep.

The second command was telling you, like you surmised in your follow-up post, that the Ethernet port has the capability to wake the system from sleep. Do note that because your mouse and keyboard were not listed as devices with ability to wake system under powercfg -devicequery wake_armed command output, you won't be able to wake your system from sleep by pressing a key on the keyboard or by moving the mouse. You'll have to do it using the power button.

Turned off the Ethernet ability to wake.

Went to device manager again.
Start/Control Panel/Device Manager
Network Adapters/Properties/Power Management
Deselected "Allow the device to wake the computer"

Let's see....

Another thing you need to check is to look in the system BIOS to see if "Wake on LAN" (or something similar) is enabled in the BIOS power settings.

If the system wakes again after disabling the Ethernet port's ability to wake the computer, I can't help but feel you might have a defective case switch or defective motherboard as there shouldn't be any other devices with the authority to wake the system.
 
Last edited:

GoodEnough

Golden Member
Apr 24, 2011
1,546
19
81
Hibernate now works uninterrupted.
I re-enabled keyboard and mouse to wake, but they don't seem to wake.
Power button does the wake.
Maybe after reboot, the keyboard and mouse will be able to wake.

LAN works find after waking.

But, problem solved, the PC now stays in hibernate. THANKS!
 

ralfy

Senior member
Jul 22, 2013
485
53
91
Sorry, I forgot to add that other devices have a power management tab in the properties, and may have options to wake up the machine.
 

GoodEnough

Golden Member
Apr 24, 2011
1,546
19
81
My keyboard and mouse no longer are able to wake the PC
And yes, their wake checkbox is selected. Any ideas?
 

ralfy

Senior member
Jul 22, 2013
485
53
91
It might have to do with something in the BIOS settings, but I'm not sure.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |