Check the System Event Log
PC won't wake up with keyboard or mouse. It will if I had press the sleep mode from the
keyboard, but won't if the sleep mode is created by the PC
What does the power button do? Wake it up, Resume Windows, or cold boot? I'm wondering if it is
actually going into hibernation. It might be worth double checking your power plan, which
probably includes HP's extensions. Is this a desktop? (That's what the model number brings up.)
Yesterday, I removed all Energy option and let the PC running the whole night. When I came
back, the screen was still the same as when I left, but no control from the mouse and keyboard.
My only solution is to press the power button 4 sec and restart the machine
This sounds like a freeze up, not a response to a power state transition. Check the Windows
System Event Log. You may see something like this:
------------------------
Log Name: System
Source: Microsoft-Windows-Kernel-Power
Date: 10/28/2011 4:53:48 PM
Event ID: 41
Task Category: (63)
Level: Critical
Keywords: (2)
User: SYSTEM
Computer: Abe-Lappy2 Event Id: 41
Description:
The system has rebooted without cleanly shutting down first. This error could be caused if the
system stopped responding, crashed, or lost power unexpectedly.
-------------------------
You will probably also see this event, logged by eventlog:
--------------------------------------------------
Source: EventLog
Date: 11/6/2011 1:19:24 AM
The previous system shutdown at 1:26:20 AM on ?11/?6/?2011 was unexpected.
---------------------------------------------------
The system keeps a registry value that gets updated every minute,
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Reliability:LastAliveStamp
that it uses to generate this message on bootup. And by the way the apparent inconsitency in
the log time and unexpected shutdown time results from the fact that all eventlog timestamps
are in UTC, and when we go off DST, they change. The log entry really should be 2:26:20 AM.
Now as for sleep, you will see entries like these:
--------------------------------------------------
Log Name: System
Source: Microsoft-Windows-Kernel-Power
Date: 10/28/2011 2:18:29 PM
Event ID: 42
Task Category: (64)
Level: Information
Keywords: (4)
User: N/A
Computer: Abe-Lappy2
Description:
The system is entering sleep.
Sleep Reason: Button or Lid
--------------------------------------------------
Log Name: System
Source: Microsoft-Windows-Power-Troubleshooter
Date: 11/6/2011 12:58:39 AM
Event ID: 1
Task Category: None
Level: Information
Keywords:
User: LOCAL SERVICE
Computer: Abe-Lappy2
Description:
The system has resumed from sleep.
Sleep Time: 2011-11-06T02:42:02.606143400Z
Wake Time: 2011-11-06T05:58:37.171076000Z
Wake Source: Power Button
---------------------------------------------------------
By the way if you look in the upper right hand corner of the right hand panel of the event viewer you'll see "Create Custom View..." and you can set it up to only see Kernel-Power and Kernel-Power-Troubleshooter events which will make it much easier to read the log.
If you need more help with the event log, or discover something interesting, post back.