• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

HOWTO hibernate winXP via a btach file

J

jnsunkersett

Flightless Bird
Hi,

I came to find, in windows XP SP3, that the command,

%windir%\system32\rundll32.exe PowrProf.dll, SetSuspendState m2
or
rundll32.exe powrprof.dll,SetSuspendState 0,1,0

executed at a command prompt, triggers the hibernation process
as hibermation proceeds; I can see the winXP progress bar.

But unfortunately it does not stop their, my machine resumes from hibernation, within seconds, unless I switch-off the power as soon as hibernation completes.

The same is the case, when I use the power switch.
Thru the Power Config UI, I have chosen the hibernation option, when I press the power switch on my desktop, hibernation is triggerred but still windowsXP, resumes (if not switched off)

Any clues, why winXP behaves this way.
Could I be missing something.

I am using windows XP, SP3

TIA
~ Jeevan (g1)
 
G

Gerald Ross

Flightless Bird
undisclosed wrote:
> Hi,
>
> I came to find, in windows XP SP3, that the command,
>
> _-%windir%\system32\rundll32.exe_PowrProf.dll,_SetSuspendState_m2-_
> or
> _-rundll32.exe_powrprof.dll,SetSuspendState_0,1,0-_
>
> executed at a command prompt, triggers the hibernation process
> as hibermation proceeds; I can see the winXP progress bar.
>
> But unfortunately it does not stop their, my machine resumes from
> hibernation, within seconds, unless I switch-off the power as soon as
> hibernation completes.
>
> The same is the case, when I use the power switch.
> Thru the Power Config UI, I have chosen the hibernation option, when I
> press the power switch on my desktop, hibernation is triggerred but
> still windowsXP, resumes (if not switched off)
>
> Any clues, why winXP behaves this way.
> Could I be missing something.
>
> I am using windows XP, SP3
>
> TIA
> ~ Jeevan (g1)
>
>

Not a batch file, but Wizmo is a tiny .exe program that can do that as
well a many other functions.

--
Gerald Ross
Cochran, GA

I'm here to question all your answers.
 
M

Mike S

Flightless Bird
On 6/16/2010 7:52 AM, undisclosed wrote:
> Hi,
>
> I came to find, in windows XP SP3, that the command,
>
> _-%windir%\system32\rundll32.exe_PowrProf.dll,_SetSuspendState_m2-_
> or
> _-rundll32.exe_powrprof.dll,SetSuspendState_0,1,0-_
>
> executed at a command prompt, triggers the hibernation process
> as hibermation proceeds; I can see the winXP progress bar.
>
> But unfortunately it does not stop their, my machine resumes from
> hibernation, within seconds, unless I switch-off the power as soon as
> hibernation completes.
>
> The same is the case, when I use the power switch.
> Thru the Power Config UI, I have chosen the hibernation option, when I
> press the power switch on my desktop, hibernation is triggerred but
> still windowsXP, resumes (if not switched off)
>
> Any clues, why winXP behaves this way. Could I be missing something.
> I am using windows XP, SP3
> TIA ~ Jeevan (g1)


Did you try any of these:

http://jimcofer.com/personal/?p=864
The first line enables hibernation
powercfg /hibernate on
%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Hibernate

http://www.gladiator-antivirus.com/forum/lofiversion/index.php
/t28851.html
http://dx21.com/coding/libraries/rundll32/default.aspx
"RUNDLL32.EXE PowrProf.dll,SetSuspendState"

Mike
 
Top