....Other times I get a BSOD and the system reboots. ...
What are the BSODs? Also turn off the automatic reboot after error which should be off by default post-XP.
Lord, I hate sleep problems.
<template . .. unfortunately strips HTML code so some links and formatting missing. Got to run so I don't have time to edit>
Sleep mode (or Standby) problems are common. Either it won't go to sleep or it won't wake up.
If it is not waking up, presumably you have pressed the power button, or pressed one of the keyboard keys or moved or clicked the mouse with no wake-up response.
Sleep mode involves the OS, the BIOS (and ACPI, now v.5.0) or UEFI, the SMBus or PMBus (a rudimentary but important motherboard chip), your RAM (Sleep mode is also known by STR = suspend to RAM) and the PSU. It is possible an app or driver can interfere. Additionally, AC or battery power in a laptop effects the sleep mode response.
Additionally power manager, screen savers, network monitoring manager are potentially involved. As well as USB port monitoring and keyboard and mouse. And 3rd Party apps can be involved.
I update the BIOS to the latest version. Dropping BIOS values to optimal default values may fix a sleep problem. Note: Overclocking can screw up sleep mode--in fact overclockers/gamers may deliberately disable it [h/t TheSlakey].
In BIOS you should turn off any sleep mode settings. It is better to allow Windows to handle it.
I turn off any BIOS setting that may interfere: Wake on LAN (unless the client uses it), Wake on any other feature unless the client uses it (Usually Wake on Keyboard or Mouse if present is OK to be left on, but can be temporarily disabled for diagnostic purposes.). But you should test with a known working keyboard and mouse and make sure sensitivity is not set so high that the mouse is waking on vibrations.
Reset the BIOS/CMOS via the procedures outlined in the MB manual.
Unfortunately short of replacing it, a PSU really can't be evaluated except in a lab. PSU ATX12V revisions 1.3, 2.01 and 2.3 added updates (generally to the +5VSB) that effect standby/sleep waking modes so the newer the standard complied with by the PSU is potentially for the better. If you use a known good spare PSU to test make sure it is a modern PSU that meets the +5VSB (stand-by) power standard of 2.5A or more. [h/t Scott Mueller]
I make sure the OS is up to date.
Video card may not support sleep: update driver.
Update the mouse and/ or touchpad driver(s) and check their optional settings. Check any keyboard settings (if any) as well.
I update the network and wifi drivers. And then check their settings with respect to power saving modes and wake modes. Disabling where possible. Wifi and networking apps--especially those that come with wifi routers--have been known to cause sleep/hibernate issues and steal serious CPU cycles.
I generally try to ascertain the status of all apps above with respect to sleep state management. Obviously power manager is what controls waking and sleeping. I usually disable hard drive shutdown. They will shut down without Windows' order and in my experience they often will not turn back on (without a reboot) if Windows orders them to turn off. Assuming this is a Windows OS, you can boot from a Ubuntu (or other flavor) LiveCD or a HDD with a clean install of your Windows OS version to rule out any apps and some drivers (all drivers and apps with a LiveCD). You can update all of your drivers.
You should not use screen savers. Blanking the screen in power manager actually lowers power use and is preferable to a screen saver. If you absolutely must show a rotating collage of your kids or pets, then disable your screen saver temporarily. If it is causing the problems consider updating the screen saver or choosing a new one.
Check that hibernate (S4) is not a problem. If the drive gets too full it can interfere with hibernate because the file is so big. And coming out of hibernate is a lot slower than standby (S3), and S3 may work better in some implementations. Low energy, wake (S5) modes (aka G2) [not supported by XP] where no RAM storage but PC can wake from input from the keyboard, clock, modem, LAN, or external device.
You can boot up and run memtest86 memory diagnostic app to test your RAM. It is also possible running non-standard RAM at non-standard voltages or speeds may account for sleep mode problems.
If that passes, try a single RAM stick. Then try another. Try it in different slots.
Though I don't think it would cause a failure to come out of hibernate, a fragmented hibernation file (which is huge) can delay coming out of hibernation. Set up a defrag with MS' page defrag on the next boot. But this is for XP, not sure if it works on Vista/Win 7 or if it is even needed on these OS'. Usually, unless a drive is fairly full, hibernation defragmentation is not a problem as there is plenty of space to write the file.
Any app that does periodic polling may be responsible for waking a system up, or an app that is loaded (startup?) that is set to wake the system up at a set time.
Finally when troubleshooting disconnect ANY external devices to determine if they are responsible, especially if they are powered by the port. If it turns out to be an external device try updating its device driver and failing that report the problem to the device manufacturer's tech support. XP may have trouble either entering a programmed sleep mode (S3) or resuming from it with USB (or other) devices plugged in. This has been greatly corrected in Vista/Win7.
There is, however, a way to modify the reset behavior of a host controller in order to resolve this issue for those non-USB2-spec-compliant devices: changing the ForceHCResetOnResume registry key for each controller in the system as described in KB article 928631. Unfortunately, this will screw up any USB2 devices that are compliant so its usefulness is a trial and error.
Turn off hard drive shutoff after time period to "never." Let the hard drives shut themselves off without Windows control.
In the end, a bad motherboard may be to blame after ruling out all the above.
Sleep Mode MS FAQs for Win7
Sleep mode and USB devices
PassMark Sleeper testing app to test Standby/Sleep modehttp://technet.microsoft.com/en-us/libr ... 10%29.aspxhttp://support.microsoft.com/kb/841858http://msdn.microsoft.com/en-us/library ... 85%29.aspxhttp://msdn.microsoft.com/en-us/library/ff564571.aspxhttp://technet.microsoft.com/en-us/libr ... 10%29.aspxhttp://h10025.www1.hp.com/ewfrf/wc/docu ... =c01853693http://lifehacker.com/5260396/hidden-wi ... e-problems
definitely a developer tool
Quick Guide for last wake-up (Does not show Time or Date)
1. http://www.sevenforums.com/tutorials/12 ... mmand.html
Full Guide wake-up source showing (Date and Time) in event viewer
2.http://www.sevenforums.com/tutorials/17 ... r-log.html
[could a faulty HDD cause sleep mode failures...I think so]
Three things to try.
1) Open a command Prompt by right clicking and select 'Run as Administrator'
and then at the command prompt type: chkdsk /f /r then press the enter key.
If prompted to schedule the volume to be checked the next time the system restarts,
Also if you know the manufacture of your hard drive you can download their diagnostic software.
Another utility: SpeedFan has an online health analysis feature
(SMART tab) for hard drives. It will show how your drives
compares with other drives of the same make and model.http://www.almico.com/speedfan.php
2) Run the SFC /SCANNOW command. This will check and repair if necessary any critical Windows system files.
Click on Start/All programs/Accessories then
Right click on Command Prompt option and select 'Run as administrator'.
(or "Safe Mode" open a Command prompt)
At the command prompt enter: SFC /SCANNOW
Windows 7 - SFC SCANNOW Command - System File Checkerhttp://www.sevenforums.com/tutorials/15 ... ecker.html
How to use the System File Checker tool to troubleshoot missing or corrupted system files on Windows Vista or on Windows 7http://support.microsoft.com/kb/929833
How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program generates in Windows Vista:http://support.microsoft.com/kb/928228
3) Leave the laptop connected to AC power and then try sleep mode. Does it have the same problem?
---------------------------http://social.technet.microsoft.com/For ... 748623c34/http://www.sevenforums.com/performance- ... e-fix.htmlhttp://technet.microsoft.com/en-us/libr ... 10%29.aspx
Wake problems:http://www.techsupportalert.com/content ... waking.htm