tamanaco;214160 Wrote: 
> I also looked at around for a plugin to put a PC running Windows to
> sleep and all I found were plugins to shutdown or hibernate. 
> 
> kdf, maybe I missed it, but if you know of a plugin to put a Windows PC
> to sleep (stand-by), let us know.

This is trickier than you'd expect.  If you look around the web you'll
find articles/threads like this one:

http://pressf1.pcworld.co.nz/archive/index.php/t-52859.html

that state that the following command will put a PC into standby:

rundll32.exe powrprof.dll,SetSuspendState 0,1,0

However, when I try it on my PC it hibernates rather than going into
standby.  There is an article on Microsoft's site that seems to explain
this:

http://support.microsoft.com/kb/555569

This says that the behaviour of this command depends on whether or not
hibernation is enabled on your PC ie if hibernate is enabled then the
command will hibernate your PC else it will put it into standby.

I've have confirmed that my Windows Shutdown plugin behaves
consistently with this ie if you disable hibernation then if you choose
the Suspend PC option my PC goes into Standby.  This is why I called the
command 'Suspend'.  I prefer hibernation (as it saves more power and
isn't vulnerable to power outages) and the startup time is only a few
seconds.

I think the confusion arises because if you call SetSuspendState from
within a program written in C++ etc then there are parameters available
that let you choose between hibernation and standby etc.  See here for
details:

http://msdn2.microsoft.com/en-us/library/aa373201.aspx

I'm afraid that I don't want to be able to put my PC into Standby badly
enough to write a C++ program to do the job.  Nothing stopping you
though :-)


-- 
Flipze
------------------------------------------------------------------------
Flipze's Profile: http://forums.slimdevices.com/member.php?userid=11838
View this thread: http://forums.slimdevices.com/showthread.php?t=31035

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to