Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29234 ディスカッション

how to prevent Windows going to sleep ?

MAURICE_J_
初心者
2,396件の閲覧回数

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 件の賞賛
10 返答(返信)
Les_Neilson
高評価コントリビューター II
2,396件の閲覧回数

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

You can set the Sleep options to "Never"

 

MAURICE_J_
初心者
2,396件の閲覧回数

Hi Les,

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

Jean

jimdempseyatthecove
名誉コントリビューター III
2,396件の閲覧回数

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

mecej4
名誉コントリビューター III
2,396件の閲覧回数

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.

jimdempseyatthecove
名誉コントリビューター III
2,396件の閲覧回数

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

Steven_L_Intel1
従業員
2,396件の閲覧回数

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.

LRaim
新規コントリビューター I
2,396件の閲覧回数

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

Steven_L_Intel1
従業員
2,396件の閲覧回数

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.

andrew_4619
名誉コントリビューター III
2,396件の閲覧回数

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

 

MAURICE_J_
初心者
2,396件の閲覧回数

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

返信