From: caswell barry on 31 Mar 2010 09:58 Hello, So this should be pretty simple but I can't figure out how. I'm running a set of data analysis functions (basically a lot of parfor loops) that take about four hours to finish. Unfortunately during that time windows goes to sleep and the whole thing breaks. I don't really want to turn of sleep in Windows as I quite like the fact that under ordinary circumstances my machine sleeps after an hour. So what I want to know is if there is anyway to tell matlab to keep windows awake? Thanks!
From: us on 31 Mar 2010 10:07 "caswell barry" <caswell_barry(a)not-hotmail.com> wrote in message <hovkdc$c6u$1(a)fred.mathworks.com>... > Hello, > > So this should be pretty simple but I can't figure out how. I'm running a set of data analysis functions (basically a lot of parfor loops) that take about four hours to finish. Unfortunately during that time windows goes to sleep and the whole thing breaks. I don't really want to turn of sleep in Windows as I quite like the fact that under ordinary circumstances my machine sleeps after an hour. So what I want to know is if there is anyway to tell matlab to keep windows awake? > > Thanks! well... sort of a conundrum, isn't it... why not, for instance, extend the sleep-timer(?)... us
From: caswell barry on 31 Mar 2010 11:01 > > well... sort of a conundrum, isn't it... > why not, for instance, extend the sleep-timer(?)... > > us Thanks for that suggestion. I don't really want to do that though as it would imply that my sleep times would have to be longer than the longest analysis I might run. Because my analyses take some time (potentially >12 hours) I might as well turn off the sleep timer.
From: Jan Simon on 31 Mar 2010 11:52 Dear Caswell! > > why not, for instance, extend the sleep-timer(?)... > > Thanks for that suggestion. I don't really want to do that though as it would imply that my sleep times would have to be longer than the longest analysis I might run. Because my analyses take some time (potentially >12 hours) I might as well turn off the sleep timer. Usually the sleep time works as an idle timer: the timer starts, when the system load is small only. A computer falling to sleep during a high system load is obviously not a practical idea! My WindowsXP, MacOS-9 and OS-X, Windows2000 and 95 systems do (did) not fall asleep during calculations. Is your Matlab running on a laptop with a machine specific power management tool? Kind regards, Jan
From: Jan Simon on 31 Mar 2010 12:28
Dear Caswell! > Unfortunately during that time windows goes to sleep and the whole thing breaks. Another idea: Are you allowed to change the power scheme without admin privilegs? Perhaps this must be enabled by an admin in the group policies. Then you can disable the sleep timer from Matlab temporarily: !powercfg /S "Disable shut-off Timers" <your program> !powercfg /S Desktop Perhaps your power schemes have different names. Use this to show the scheme names: !powercfg /L See also: http://support.microsoft.com/kb/324347 Good luck, Jan |