danco;214162 Wrote: > The ShutdownServer plugin is designed to run a suitable script. The > sample script for Windows is for shutting down, but if you can write a > script yourself for putting the computer to sleep then the plugin will > run it. In fact, as far as I can see, it could run any script you > wanted. >
Got it!... I didn't realize that the "ShutdownServer" plugin could run a script. As you said, is lot neater to use to put the server to sleep as the plugin has options to execute the script after a specified time. This allows me to navigate to the SqueezeNetwork before the server cuts out. I had to implement a wait in the script I was using via the Execute Script plugin. This is what I was looking for. Flipze;214477 Wrote: > 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 :-) No need to write a program. I use WinOff or Sleeper.exe to put the computer to sleep. Both programs have GUI and command prompt interfaces that accept a whole bunch of parameters. I run my SlimServer in a laptop with external storage, so when there is a power outage the laptop battery takes over. I then set ACPI to hibernate after the battery reaches a specific threshold. -- tamanaco ------------------------------------------------------------------------ tamanaco's Profile: http://forums.slimdevices.com/member.php?userid=4620 View this thread: http://forums.slimdevices.com/showthread.php?t=31035 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/plugins
