Be the first to rate this file! 5 Downloads (last 30 days) File Size: 2.29 KB File ID: #36194

Insomnia: prevent computer sleep mode

by Francesco Montorsi

 

16 Apr 2012 (Updated 25 Apr 2012)

This small utility prevents, on Windows computers, the automatic sleep mode.

| Watch this File

File Information
Description

This small utility prevents, on Windows computers, the automatic sleep mode often activated by "aggressive" power policies.

Preventing computer sleep mode (a.k.a "power save") is mostly useful while doing long computations in a MATLAB script.

This utility has been inspired by the original INSOMNIA Windows utility!
See http://blogs.msdn.com/b/delay/archive/2009/09/30/give-your-computer-insomnia-free-tool-and-source-code-to-temporarily-prevent-a-machine-from-going-to-sleep.aspx

Required Products MATLAB
MATLAB release MATLAB 7.11 (R2010b)
Tags for This File  
Everyone's Tags
insomnia, long computation, power, save, sleep
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
21 Jul 2012 Jan Simon

Please consider this warning also: http://download.microsoft.com/download/9/c/5/9c5b2167-8017-4bae-9fde-d599bac8184a/AwayMode.doc

25 Apr 2012 Francesco Montorsi

I've updated the ZIP file with corrected files!

25 Apr 2012 Sam Roberts

The file insomnia_header.h appears to be missing from the submission.

18 Apr 2012 Francesco Montorsi

yes, you're right. I will replace global with persistent keyword asap :)

18 Apr 2012 Jan Simon

Perhaps you want to store insomnia_prevExecState as PERSISTENT instead of GLOBAL?

Updates
25 Apr 2012

- changed global to persistent insomnia_prevExecState
- uploaded insomnia_header.h

Contact us