Page 1 of 2 12>
Topic Options
#138563 - 2005-04-23 07:01 AM System suspend
OSD Offline
Fresh Scripter

Registered: 2005-04-21
Posts: 9
I'm a rookie when it comes to scripting and/or programming, so I haven't been able to figure this out myself.

I want to close down all components on a system that cause noise. This means turning off the monitor, stopping the hard disks and slowing down the computer fan to minimum speed. Then I want to wake the system up and run an external batch file after a set amount of time.

Now I wonder if anyone has done anything similar before. Any tips or pointers? I tried searching the forum but found nothing of use(I do suck at searching forums, people always seem to think in different words than I[is the previous sentence even English?])

ANY help appreciated.

Top
#138564 - 2005-04-23 08:13 AM Re: System suspend
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
Hello OSD and welcome to the board.

Well not sure how much can really be done from a script level but perhaps you can start here and see how far you can go.

Windows Management Instrumentation - CIM_Controller

Top
#138565 - 2005-04-23 01:23 PM Re: System suspend
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
what you will be wanting is called s3 sleep mode. this willl turn off all all fans, and hardrives, but keep the ram ready for a quick boot.

I have never thought about using kix to enter this mode... but now that you mention it, it could be a handy thing.

Top
#138566 - 2005-04-23 09:04 PM Re: System suspend
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
Except that our Security Admins for perimeter control have disabled WakeOnLan from passing through the routers.
Top
#138567 - 2005-04-23 09:13 PM Re: System suspend
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
AFAIK, the magic packet is non-routable and it is not a diabolical scheme by security admins.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#138568 - 2005-04-23 10:14 PM Re: System suspend
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
Correct it is not routable and I am not a Cisco router admin, but I do know that Desktop support was able to wake up systems on other subnets until the Routers were modified to prevent it. So, perhaps someone with more information on the actual details can step in and explain how it works.
Top
#138569 - 2005-04-24 04:08 AM Re: System suspend
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Have you looked at SETSYSTEMSTATE, which gives you the ability to Hibernate, power off, etc. for a computer?

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#138570 - 2005-04-24 04:29 AM Re: System suspend
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Can not a scheduled task be used to take a PC out of hibernation?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#138571 - 2005-04-24 09:51 AM Re: System suspend
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Probably.. Have not tried it.. What about the WOL "magic packet?"

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#138572 - 2005-04-24 09:48 PM Re: System suspend
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
I'd say that WOL is the only way to wake up the computer. However, I believe the computer has to be shut down for this and not in a C3 state.
_________________________
There are two types of vessels, submarines and targets.

Top
#138573 - 2005-04-25 04:29 PM Re: System suspend
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Makes sense.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#138574 - 2005-04-27 01:38 AM Re: System suspend
OSD Offline
Fresh Scripter

Registered: 2005-04-21
Posts: 9
Right, I can now suspend the system by using SETSYSTEMSTATE. The trouble is, I can't wake it up =)

Do I have to do this on BIOS level are can you guys think of anyway to wake up the system?

Also, I'll soon connect the box I'm trying to suspend/wake up to a LAN. Does this help?

Top
#138575 - 2005-04-27 02:06 AM Re: System suspend
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Use a Scheduled Task to wake up the computer.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#138576 - 2005-04-28 04:05 PM Re: System suspend
OSD Offline
Fresh Scripter

Registered: 2005-04-21
Posts: 9
So how would I go about this? I have made the part that I want executed after the system is woken up, but what before that? Suspend the system, schedule a task(I could probably set the task to be the after-suspension batch file).

s there a way to schedule a task using command line or Kixtart?

Top
#138577 - 2005-04-28 04:40 PM Re: System suspend
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I was chatting with DOC on MSN and he said he would try it. DOC???

There are a couple of UDFs posted that will let you schedule tasks with KiX. I have not tried them to see if the advanced settings are exposed to the CL or not.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#138578 - 2005-04-28 07:40 PM Re: System suspend
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
Sorry, got tied up with other things and didn't get a chance to test it. I'll try to do that today if I get some time.
Top
#138579 - 2005-04-28 08:12 PM Re: System suspend
OSD Offline
Fresh Scripter

Registered: 2005-04-21
Posts: 9
*deleted cause it didn't work*

Edited by OSD (2005-05-02 11:57 AM)

Top
#138580 - 2005-04-28 08:20 PM Re: System suspend
OSD Offline
Fresh Scripter

Registered: 2005-04-21
Posts: 9
The waalarm.bat uses CLAmp, a command line utility for Winamp http://membres.lycos.fr/clamp/

Here are the contents of that if anyone is interested. The CLAmp.exe is located in the same folder as the .bat file. The PING 1.1.1.1 parts are there for delay to allow the songs to finish. Again, I wouldn't have to clear the playlist everytime after a song finishes, but I just tend to things the slow way.

Code:

H:\Musa\CLamp.exe /START /EQSTATUS ON /PLCLEAR /PLADD "Air - Cherry Blossom Girl.mp3" /PLAY /VOLMAX

PING 1.1.1.1 -n 1 -w 230000 >NUL
H:\Musa\CLamp.exe /PLCLEAR /PLADD Battle.mp3 /PLAY

PING 1.1.1.1 -n 1 -w 150000 >NUL
H:\Musa\CLamp.exe /EQSET 32:32:32:32:32:32:32:25:25:28:0:1:0 /PLCLEAR /PLADD "Red hot chili peppers - Search and destroy.mp3" /PLAY

PING 1.1.1.1 -n 1 -w 220000 >NUL
H:\Musa\CLamp.exe /EQSET 32:32:32:32:32:32:32:25:25:28:9:0:0 /QUIT



Top
#138581 - 2005-04-28 08:44 PM Re: System suspend
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
So then I guess I don't need to test this after all.
Top
#138582 - 2005-04-28 09:02 PM Re: System suspend
OSD Offline
Fresh Scripter

Registered: 2005-04-21
Posts: 9
errm, if we want to be nitpicky the script I just posted above doesn't work. =) It suspends the systems alright, but still it won't wake it up. I need to set "Wake the computer to run this task." from task properties, but I don't know how to.

There must be something in the jt.exe to do this, I just can't figure out how to incorporate it to the script. Chances are I'm going to switch my scripting language to BTEwin and see what I can do. If someone does manage this with kixtart, tell me too.

Top
Page 1 of 2 12>


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2141 anonymous users online.
Newest Members
BeeEm, min_seow, Audio, Hoschi, Comet
17882 Registered Users

Generated in 0.324 seconds in which 0.25 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org