Thanks for the reply, and thanks Paul too. No specific replies to you,
Paul, except to say that I just clicked on the link you gave, but
seeral replies to Vanguard.
A setting in BIOS can cause the computer to wake, like "Wake on LAN"
(power up when a network packet addresses your computer).
Last I looked, a year or two ago, I didn't have anything like that in
the BIOS
Yep. That's just another sleep (low power) mode.
Ah, good.
Check the BIOS for "wake on" events.
Last I looked, a year or two ago, I didn't have anything like that in
the BIOS. I certainly have not modified the BIOS directly, Or
ntentionally modified it indirectly, if that is possible. . Can it be
changed by doing something while in Windows? (Answered by you, below.)
Programs don't run in hibernation mode. The computer powers down to a
low-power state (the mobo can still powered up the power supply) and
system memory has been copied into a file. On wake up, that file is
read back into memory so it was just like it was before. Nothing runs
unless it is loaded into memory.
Okay.
Something else is causing the "wake on" event. It could be in the BIOS
as a "wake on <something" event or it could be a timer the OS schedules
in the BIOS to wake the computer at that time.
The second half of your sentence answers my question above.
Not all scheduled events are visible in the Task Scheduler application.
Events added, say, by using the 'at' command won't appear in Task
Scheduler. Open a shell (cmd.exe aka command prompt with admin
privileges) and run "at" (sans quotes and with no parameters) to list
what jobs were scheduled using it.
Okay. It says: There are no entries in the list.
I was hoping that the following commands ran in shell might work:
mkdir C:\Temp
schtasks /query /v > c:\temp\scheds.txt
notepad c:\temp\scheds.txt
Alas, I found out that schtasks.exe display most of the attributes of a
scheduled task but not all of them, and one of them not included was the
"wake" attribute. Doh!
;-)
Then I found out about the powercfg parameter of -lastwake. Running
"powercfg -lastwake" in a shell shows what event last woke the computer.
http://technet.microsoft.com/en-us/library/cc748940(v=WS.10).aspx
describes the parameters you can use for the powercfg.exe utility. It
describes the option as:
-lastwake: Reports information about the event that woke the computer
from the last sleep transition.
See if that works.
It says: Invalid parameters. Try /? for help.
And when I do that, I get a nice list, part of which I copied at the
end, but nothing that resembles -lastwake except for what you describe
next.
I should have sadi that this is a Dell, pretty old, Dimension 4600 or
4700, but you've given me plenty of pathways to pursue this, so lack of
this and -waketimers below won't be a problem.
If you configured the USB mouse to wake the
computer,
I never did that intentionally, and the mouse won't wake the computer
from Hibernate. Only the on/off button will. The mouse will wake it
from Sleep, after a few movements. I don't use Sleep much but I usually
use a mouse key to awaken.
the -lastwake output (stdout) in the shell will look something
like:
Wake history count - 1
Wake history [0]
Wake source count - 1
Wake source [0]
Type: Device
Instance path: USB/Root_Hubxx\<someID>
Friendly name:
Description: USB Root Hub
Manufacturer: (Standard USB Host Controller)
To view which devices are configured to wake the computer, run:
powercfg -devicequery wake_armed
I can't expect that to give the mystery answer right now, because the
last computer startup was by me, and not by the computer. But I will
do it the next time the computer starts on its own.
For me, it lists the PS/2 keyboard and HID-compliant (USB) mouse.
For me, it says HID-compliant (USB) mouse <001>
It doesn't mention the keyboard, which is USB.
You said the computer always wakes at the same time. It's doubtful that
It always wakes after 1AM and before I get up, let's say before 7:30,
but I don't know exactly what time or times it does so.
the mouse click or a keypress occurs at the same time every day. To see
what scheduled tasks have wake timers, run:
powercfg -waketimers
Also says: Invalid parameters.
You need to run a shell (cmd.exe) or log into a Windows account with
admin privileges; else, powercfg will bitch that you need to be an
admin. For me, only 1 event is listed for the Acronis True Image
scheduler so it load backup jobs defined in that scheduler, I'd prefer
they reuse Task Scheduler in Windows since nothing they define for an
event in their scheduler couldn't be handled by the Windows scheduler.
I understand.
It's also possible you missed an event in the GUI Task Scheduler program
as there may be pre-configured scheduled events even in a fresh install
of the OS. Task Scheduler was much easier to view back in Windows XP
than it is in Windows 7 that I'm using now.
I think I came across Win7 when searching the web for stuff about this.
The page didn't even bother to say it was win7 or whatever, but Taxk
Scheduler had 3 panes and was much different.
The -waketimers parameter
to powercfg might show you a scheduled event that you missed when using
the GUI tools for Task Scheduler.
Here are the /Devicequery options. I plan to try them all tomorrow.
There are other parms that come earlier in the list that don't seem
related. I'll look at them again tomorrow.
Thanks again.
/DEVICEQUERY <queryflags> will return a list of devices that meet
the criteria specified in <queryflags>. Possible values for
<queryflags> are:
wake_from_S1_supported - return all devices that support
waking the system from a light sleep state.
wake_from_S2_supported - return all devices that support
waking the system from a deeper sleep state.
wake_from_S3_supported - return all devices that support
waking from the deepest sleep state.
wake_from_any - return all devices that support waking
from any sleep state.
S1_supported - list devices supporting light sleep states.
S2_supported - list devices supporting deeper sleep.
S3_supported - list devices supporting deepest sleep.
S4_supported - list devices supporting system hibernation.
wake_programmable - list devices that are
user-configurable to wake the system from a sleep sate.
wake_armed - list devices that are currently configured to
wake the system from any sleep state.
all_devices - return all devices present in the system.
all_devices_verbose - return verbose list of devices.
/DEVICEENABLEWAKE <devicename> enable the device to wake the system
from a sleep state. <devicename> is a device retrieved using the
'/DEVICEQUERY wake_programmable' parameter.
/DEVICEDISABLEWAKE <devicename> disable the device from waking the
system from a sleep state. <devicename> is a device retrieved using the
'/DEVICEQUERY wake_armed' parameter.
/HELP, /? Displays information on command-line parameters.
Examples:
POWERCFG /LIST
POWERCFG /QUERY scheme
POWERCFG /QUERY
POWERCFG /CREATE scheme
POWERCFG /DELETE scheme
POWERCFG /SETACTIVE scheme
POWERCFG /CHANGE scheme /monitor-timeout-dc 15
POWERCFG /CHANGE scheme /monitor-timeout-dc 0
POWERCFG /HIBERNATE on
POWERCFG /EXPORT scheme /file file
POWERCFG /QUERY number /NUMERICAL
POWERCFG /GLOBALPOWERFLAG on /OPTION BATTERYICON
POWERCFG /AVAILABLESLEEPSTATES
POWERCFG /BATTERYALARM low
POWERCFG /BATTERYALARM critical /ACTIVATE on /LEVEL 6 /ACTION
hibernate
POWERCFG /DEVICEQUERY wake_armed
POWERCFG /DEVICEENABLEWAKE "Microsoft USB IntelliMouse Explorer"