Searching \ for '[EE:] Automatically enter Hybernate with Windows 2' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=automatically+enter
Search entire site for: 'Automatically enter Hybernate with Windows 2'.

Exact match. Not showing close matches.
PICList Thread
'[EE:] Automatically enter Hybernate with Windows 2'
2004\05\03@051445 by tin=22?=

picon face
I have a PC, which is used as backup server, running Windows 2000.
This PC is usually in hibernate, starting once a week to write its data to a scsi tape.

I configured the pc (windows energy options) to automatically enter hibernate after 1 hour, as there is no need that this machine is always up.

now there's no problem for the PC to start on a wake-up event from the scheduler, and it starts writing data to tape.

PROBLEM:

unfortunately, even if the pc is still writing data to tape, it enters hibernate after 1 hour, if I don't press any key or move the mouse.

obviously, writing data from disk to scsi is no recognized activity for windows to keep the PC alive.

does windows 2000 only register keyboard touches or mouse movements as activity?

how can I configure windows that is stays up, until no further data is copied from disk to scsi tape?

is there a workaround to get this job done?

thanx a lot!!
tino

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2004\05\03@063728 by Jake Anderson

flavicon
face
dont know how well it would work but
schedule your backup
then schedule another task to run after the computer has been idle for X
minutes that puts it into hibernate.

{Original Message removed}

2004\05\03@070917 by tin=22?=

picon face
could eventually be a good idea!

...but it results in 2 new questions:

1: what's the definition of idle, i.e. below what cpu usage does windows decide that the computer is idle?
 - on one hand, a computer running windows always does something, even if it does 'nothing'.
 - on the other hand, copying data from disk to tape does not require a lot of cpu as the tape is slow.

2: how can I enforce the computer to go into hibernate by a task. what's the command to do this?

thanx a lot!

******************************************************************************************************

>{Original Message removed}

2004\05\03@072409 by Ake Hedman

flavicon
face
1.) I guess the definition of "idle2 in Windows is the lack of messages
in the main message que. Don't know the official definition though.

2.)
Try the ExitWindowsEx(...) system call

/Ake

-----Ursprungligt meddelande-----
Från: pic microcontroller discussion list
[spam_OUTPICLISTTakeThisOuTspamMITVMA.MIT.EDU]För Bühler, Martin
Skickat: den 3 maj 2004 13:08
Till: .....PICLISTKILLspamspam@spam@MITVMA.MIT.EDU
Ämne: Re: [EE:] Automatically enter Hybernate with Windows 2000


could eventually be a good idea!

...but it results in 2 new questions:

1:
what's the definition of idle, i.e. below what cpu usage does windows
decide that the computer is idle?
 - on one hand, a computer running windows always does something, even
if it does 'nothing'.
 - on the other hand, copying data from disk to tape does not require a
lot of cpu as the tape is slow.

2:
how can I enforce the computer to go into hibernate by a task. what's
the command to do this?

thanx a lot!

************************************************************************
******************************

>{Original Message removed}

2004\05\03@094810 by Herbert Graf
flavicon
face
> dont know how well it would work but
> schedule your backup
> then schedule another task to run after the computer has been idle for X
> minutes that puts it into hibernate.

       I believe that there is the problem, the computer doesn't recognize the
writing to tape as "not idle" and therefore enters hibernate while still
writing to the tape.

       I'd say the easiest way is if the tape backup always takes a certain amount
of time then simply set the idle to be longer then that time. TTYL

----------------------------------
Herbert's PIC Stuff:
http://repatch.dyndns.org:8383/pic_stuff/

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2004\05\03@103200 by tin=22?=

picon face
when writing to tape, every few seconds, there is a peak that goes up to
2-5%.
the time until going to hibernate is set to 1 hour. so this shouldn't be the problem.
when running unattended, the computer goes to hibernate after about 1 hour and 5 minutes, although writing to tape would take about 6 hours.
so I think that the hibernate setting of windows 2000 does not check for cpu usage, but only checks for keyboard and mouse.
am I wrong?


******************************************************************************************************

>{Original Message removed}

2004\05\03@103818 by tin=22?=

picon face
i tried this:
i scheduled a task to run after 5 minutes of idle, but although i didnt do anything at the computer (but with a few applications open, not doing anything), the task is never executed.
btw. the cpu usage is always on 0%.
what's wrong?

there is something curious: the icon of the scheduled task has a red point with a white 'x'. looks like a windows 'stop' button. but the task is activated.

******************************************************************************************************

>{Original Message removed}

2004\05\03@111803 by M. Adam Davis

flavicon
face
Two pieces of information which may solve your problem:

In the good old 'we pay you to watch ads' days you could find programs
on the internet that would move the mouse so you could be away from the
computer and still accrue ad time.  If you can't find anything
prepackaged, try http://www.planetsourcecode.com/ for code which moves
the mouse for you.  Its fairly easy to do.  This may solve you automatic
hibernate problem.

Then go to http://grc.com/wizmo/wizmo.htm for wizmo.  It's a program
utility that, in addition to being a fairly nifty screensaver, also
allows command line access to system shutdown/powersaving options.
"Wizmo hibernate" puts the computer into hibernate mode.

Good luck!

-Adam

B|hler, Martin wrote:

{Quote hidden}

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

More... (looser matching)
- Last day of these posts
- In 2004 , 2005 only
- Today
- New search...