Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

how to prevent Windows going to sleep ?

MAURICE_J_
Novice
2,090 Views

Hi,

I am an old FORTRAN developper working nowadays with young engineers. We all have laptops but, for some ununderstandable safety reason, Win7 goes to sleep mode after 15 minutes and we have no access to this parameter in 'configuration panel'. I am working on a 'long' app about 6 hours. When I work on the PC, it's ok but I can't go to eat or, worst, I can't test a new version during night.

In the app, I tried to create 'dummy' files on the HDD every now and then but in vain.

Is there a way, from within a Fortran app running in console mode, to prevent Win7 to go sleeping ?

Thanks in advance

Jean

PS English is not my natural language ! I am 'new' to Intel Fortran.

PS I was very pleased to see on this forum that Fortran was well alived !

0 Kudos
10 Replies
Les_Neilson
Valued Contributor II
2,090 Views

Windows 7 Control Panel -> Hardware and Sound -> Power Options ->Edit Plan Settings

You can set the Sleep options to "Never"

 

0 Kudos
MAURICE_J_
Novice
2,090 Views

Hi Les,

it's my problem : I can not modify any option in the control panel !

Jean

0 Kudos
jimdempseyatthecove
Honored Contributor III
2,090 Views

If that is outside of your control then try writing a little application the simulated mouse movement or keyboard input. See https://msdn.microsoft.com/en-us/library/ms171548(v=vs.110).aspx for information.

Start your application, then start one built using information from the above link. Your little application will have to be in focus when you leave the computer.

You can also search "window simulate mouse" or "windows simulate keyboard" and you may find a ready made program.

Or....

Attach a corded mouse to the laptop, get an osculating fan, and tie the corded mouse to the fan such that the fan rolls it around. ;)

Jim Dempsey

0 Kudos
mecej4
Honored Contributor III
2,090 Views

An osculating fan? Some people love Windows beyond belief, but who wants to touch a mouse that has been osculated?

Oscillating was probably what was intended.

0 Kudos
jimdempseyatthecove
Honored Contributor III
2,090 Views

Yo, u disrespecting Windows.

(damb autospell)

The issue was the has a laptop to which he does not have administrative privileges. As such, he cannot alter the power setting (Les's suggestion).

Consider a Linux situation where the user does not have administrative privileges and the system administrator has configured any of the number of kill job application to kill the apparent runaway application after 10 minutes. Both systems can present the non-administrator with unworkable conditions.

Jim Dempsey

0 Kudos
Steven_L_Intel1
Employee
2,090 Views

If the Windows computer is managed by a domain administrator, a "group policy" can disable certain settings. For example, on my laptop I can't disable the screen from locking after 15 minutes because Intel's policy is to not allow that change.

The only thing one can do is install a program or device that simulates moving the mouse a bit to fool Windows into thinking it is still in use. https://mousejiggler.codeplex.com/ is one link I found - I have not tried it.

0 Kudos
LRaim
New Contributor I
2,090 Views

For running long simulation I disabled sleeping when the power is not from battery.

0 Kudos
Steven_L_Intel1
Employee
2,090 Views

The Mouse Jiggler software I linked to above seems to work.

Luigi, if you can change that setting, that works, but a group policy set on the laptop may prevent that.

0 Kudos
andrew_4619
Honored Contributor III
2,090 Views

A combination of strong black coffee and loud music. :-)

 

0 Kudos
MAURICE_J_
Novice
2,090 Views

Hi Jim,

I found mousemove.codeplex.com and it works great. I can now having meal while leaving my app working. This evening, I'll try a test during the whole night.

>Attach a corded mouse to the laptop, get an osculating fan, and tie the corded mouse to the fan such that the fan rolls it around. ;)

> osculating or oscillating ?

I promise to do that !!! I did'nt know what to do for april's fool day ... I'll try to make a video. I'll write a document in the internal newspaper (I hope you understand) explaining that not only the fan moves the mouse but also cool the laptop because all the core are used 100% with parallelization !!

Thanks for your help

Jean in France

0 Kudos
Reply