Jump to content

S3 Sleep Via .Bat File?


Recommended Posts

Guest (PeteCresswell)
Posted

I'd like to create a desktop icon that executes a .BAT file that

puts the PC into sleep mode 3.

 

"Sleep" doesn't seem tb the ticket.

 

Anybody know?

--

PeteCresswell

  • Replies 5
  • Created
  • Last Reply

Popular Days

Guest (PeteCresswell)
Posted

Re: S3 Sleep Via .Bat File?

 

Per (PeteCresswell):

>I'd like to create a desktop icon that executes a .BAT file that

>puts the PC into sleep mode 3.

>

>"Sleep" doesn't seem tb the ticket.

>

>Anybody know?

 

 

It's beginning to look like I need a wrapper for PowrProf.dll

and/or it's SetSuspendState entry point.... or maybe the command

line syntax to specify parms on the command line.

 

To wit:

-------------------------------------------

RunDll32.exe PowrProf.dll, SetSuspendState

-------------------------------------------

 

Will make the PC go into hibernation.

 

Close.... what I want is the next level up: "Sleep Level 3", or

"S3".

 

--

PeteCresswell

Guest (PeteCresswell)
Posted

Re: S3 Sleep Via .Bat File?

 

Per (PeteCresswell):

>It's beginning to look like I need a wrapper

 

Got It!

 

PsShutdown.exe -d -t 0

 

http://tinyurl.com/yuxdw4

 

Issues a license acceptance prompt the first time used, but on

subsequent invocations it just does it's thing.

--

PeteCresswell

Guest Newbie Coder
Posted

Re: S3 Sleep Via .Bat File?

 

Peter,

 

This is the regstry key to enable S3 Sleep (Standby Mode in XP):

 

Windows Registry Editor Version 5.00

 

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USB]

"USBBIOSx"=dword:00000000

 

--

Newbie Coder

(It's just a name)

 

 

"(PeteCresswell)" <x@y.Invalid> wrote in message

news:6d2uc3h39hfj8gqq508vjo16asf5pimvme@4ax.com...

> I'd like to create a desktop icon that executes a .BAT file that

> puts the PC into sleep mode 3.

>

> "Sleep" doesn't seem tb the ticket.

>

> Anybody know?

> --

> PeteCresswell

Guest Newbie Coder
Posted

Re: S3 Sleep Via .Bat File?

 

Peter,

 

That utility:

 

http://www.microsoft.com/technet/sysinternals/utilities/psshutdown.mspx

 

-d switch is 'suspend' mode, which is called 'standby' in XP

 

Media Player also stops the standby mode. Have you also set the correct power

options to allow the mode?

 

--

Newbie Coder

(It's just a name)

 

 

"(PeteCresswell)" <x@y.Invalid> wrote in message

news:hgjuc3543n20g5n4stbo7q0iejrmqkj20e@4ax.com...

> Per (PeteCresswell):

> >It's beginning to look like I need a wrapper

>

> Got It!

>

> PsShutdown.exe -d -t 0

>

> http://tinyurl.com/yuxdw4

>

> Issues a license acceptance prompt the first time used, but on

> subsequent invocations it just does it's thing.

> --

> PeteCresswell

Guest (PeteCresswell)
Posted

Re: S3 Sleep Via .Bat File?

 

Per Newbie Coder:

> Have you also set the correct power

>options to allow the mode?

 

Yes - they're in the BIOS setup screen.

 

Some boards support S3, others don't.

 

Also, some boards wake up from USB keyboard/mouse activity and

others need for the user to press the physical power switch.

--

PeteCresswell


×
×
  • Create New...