mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2003-09-23, 21:53   #23
crash893
 
crash893's Avatar
 
Sep 2002

23·37 Posts
Default

im hopeing its not option 1)


perhapse your looking at it the wrong way

mabey we could just do something to deterime if the system is idle ( i guess mouse /keyboard activity)

and then just start a timmer

so you set your screen saver to 5 min past idle and your monitor to 30 min past idle

you can just set your prime to 40 min past idle and have it crank up to pority 9 or 10 and then when it detects movement just go back to 1 or what ever setting you put in there.
crash893 is offline   Reply With Quote
Old 2003-09-23, 23:49   #24
PrimeCruncher
 
PrimeCruncher's Avatar
 
Sep 2003
Borg HQ, Delta Quadrant

10101111102 Posts
Default

^^
That could work, we could incorporate a command-line option to set the timer for x minutes. This would have to be changed whenever the screensaver kick-in is changed obviously. We could have it load on start-up then just check for WM_MOUSEMOVE messages. If it gets one, it resets the timer. If not and the timer gets to x minutes, the thread priority of prime95 is changed and the prog resumes checking for the message. If it gets one it changes the priority back to what was before.
PrimeCruncher is offline   Reply With Quote
Old 2003-09-24, 23:02   #25
crash893
 
crash893's Avatar
 
Sep 2002

23·37 Posts
Default

sounds good to me
crash893 is offline   Reply With Quote
Old 2003-09-24, 23:45   #26
PrimeCruncher
 
PrimeCruncher's Avatar
 
Sep 2003
Borg HQ, Delta Quadrant

2×33×13 Posts
Default

OK, I'll start work on it. May be a while, sounds simple but the coding will be complex and I don't have lots of time to work on things like this nowadays

I'll get back to you ASAP.
PrimeCruncher is offline   Reply With Quote
Old 2003-09-25, 00:19   #27
crash893
 
crash893's Avatar
 
Sep 2002

23×37 Posts
Default

let me know if you need any thing ( i dont think my very limited programing skills will be able to help but i thought i would offer)
crash893 is offline   Reply With Quote
Old 2003-09-25, 01:13   #28
PrimeCruncher
 
PrimeCruncher's Avatar
 
Sep 2003
Borg HQ, Delta Quadrant

2·33·13 Posts
Default

Do need to know one thing, which operating system is it? Some API calls only work on specific OSes so if you could tell me which OS it is for then it should work first try.
PrimeCruncher is offline   Reply With Quote
Old 2003-09-25, 02:31   #29
crash893
 
crash893's Avatar
 
Sep 2002

23·37 Posts
Default

the systems i want to start on frist are all xp pro sp1

but i have computers on my team 98 2k linux as well ( they are under my direct control so its not that big a deal)
crash893 is offline   Reply With Quote
Old 2003-09-25, 02:46   #30
Complex33
 
Complex33's Avatar
 
Aug 2002
Texas

9B16 Posts
Default

My suggestion for an easy workaround for XP would be to run two instances of Prime95. One that is a service that runs at priority 1 and picks up any stray cycles it can. The second would be a scheduled task that runs when the computer is idle which runs at a higher priority of your choosing. As long as the idle timer is set to something greater than the monitor shut off the second instance will run at high priority while the screen is off and will quit once the computer is actively used by a user. Just my $0.02.
Complex33 is offline   Reply With Quote
Old 2003-09-27, 13:44   #31
PrimeCruncher
 
PrimeCruncher's Avatar
 
Sep 2003
Borg HQ, Delta Quadrant

2BE16 Posts
Default

Crash893,
Sorry about the delay, still haven't begun work. My main desktop (which is my main development PC) is on the fritz and the thing is not making it easy for me to fix it. So I'm stuck on my laptop in the meantime. Hopefully I can get the stinking thing fixed and get back to you.
PrimeCruncher is offline   Reply With Quote
Old 2003-09-27, 20:39   #32
lunna
 
Mar 2003

24 Posts
Default

In the Win32_DesktopMonitor WMI class there is a property named Availability which is probably the one wanted. I say "probably" because I didn't get the VBscript to work when I tried monitoring the Availability event...

http://msdn.microsoft.com/library/de...topmonitor.asp
MSDN: Win32_DesktopMonitor class

http://msdn.microsoft.com/library/de...ing_events.asp
MSDN: Monitoring WMI Events

http://www.mvps.org/vbnet/index.html...topmonitor.htm
An example written in VB
lunna is offline   Reply With Quote
Old 2003-09-28, 19:41   #33
PrimeCruncher
 
PrimeCruncher's Avatar
 
Sep 2003
Borg HQ, Delta Quadrant

10101111102 Posts
Default

2 Problems with above solution:
1) Haven't done any COM programming
2) Works only on NT codebase

I'd hate to spend tons of time learning COM and then find out it doesn't work anyway...
PrimeCruncher is offline   Reply With Quote
Reply

Thread Tools


All times are UTC. The time now is 05:35.


Fri Aug 6 05:35:56 UTC 2021 up 14 days, 4 mins, 1 user, load averages: 3.91, 3.25, 2.85

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.