ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

How to schedule hibernation On/Off so can run overnite once a week

(1/3) > >>

222fbj:
If I use Hibernation to save power...how can I keep the PC running, or wake it up, for batch/maintenance jobs?  Generally I schedule this once a week...but not sure what to do if I also want to save power with hibernate mode.

thanks for any solutions/ideas....

Barret

cthorpe:
I'm thinking maybe a AutoHotKey automation of opening power settings and disabling hibernate would do the trick.

These should work for Windows XP.  You may have to modify them for other flavors of windows.

Hibernate Off

--- ---WinWait, Program Manager,
IfWinNotActive, Program Manager, , WinActivate, Program Manager,
WinWaitActive, Program Manager,
Send, {LWINDOWN}r{LWINUP}
WinWait, Run,
IfWinNotActive, Run, , WinActivate, Run,
WinWaitActive, Run,
Send, powercfg.cpl{ENTER}
WinWait, Power Options Properties,
IfWinNotActive, Power Options Properties, , WinActivate, Power Options Properties,
WinWaitActive, Power Options Properties,
Send, {CTRLDOWN}{TAB}{TAB}{CTRLUP}{SPACE}{ENTER}


Hibernate On - Change the number of {UP} on the last line to adjust the hibernate time.

--- ---WinWait, Program Manager,
IfWinNotActive, Program Manager, , WinActivate, Program Manager,
WinWaitActive, Program Manager,
Send, {LWINDOWN}r{LWINUP}
WinWait, Run,
IfWinNotActive, Run, , WinActivate, Run,
WinWaitActive, Run,
Send, powercfg.cpl{ENTER}
WinWait, Power Options Properties,
IfWinNotActive, Power Options Properties, , WinActivate, Power Options Properties,
WinWaitActive, Power Options Properties,
Send, {CTRLDOWN}{TAB}{TAB}{CTRLUP}{SPACE}{ALTDOWN}a{ALTUP}{CTRLDOWN}{TAB}{TAB}{CTRLUP}{ALTDOWN}h{ALTUP}{UP}{UP}{UP}{UP}{UP}{ENTER}

You could compile those and then run them using Task Scheduler to stop the hibernation process.  The attached files should turn it off and turn it back on with a 3 hour delay.

Carol Haynes:
Do you use a network router?

If so you may be able to schedule the router to wake up your computer when you want. (My router has scheduling built into the config interface so it is easy to setup and means you wouldn't have to tweak your hibernation settings.) Remember to enable "Wake up on LAN" in your BIOS - that will depend on your BIOS settings and also what 'wake up' facilities are supported by your LAN card or WiFi adapter.

The system should then hibernate again when it has been 'on' for the usual time.

db90h:
Correct me if I'm wrong, but the Windows XP Scheduler has a checkbox for scheduled items that allows you to indicate you want the computer woken up. From what sleep levels it will resume, I dunno.

Carol Haynes:
I'm not sure but I don't think hibernation is a sleep state in that sense as you can remove power once it hibernated. Effectively the scheduler would need to be able to run when the system is powered down.

Navigation

[0] Message Index

[#] Next page

Go to full version