mersenneforum.org  

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

Reply
 
Thread Tools
Old 2004-05-16, 19:30   #67
lunna
 
Mar 2003

24 Posts
Default

Quote:
Originally Posted by PrimeCruncher
The problem is that there's no way to know when the monitor goes into powersave. Writing a screensaver really wouldn't be worth the effort, especially considering that the target environment for this is a computer that randomly changes the screensaver..
I believe a global message WM_SYSCOMMAND with a SC_MONITORPOWER is sent when powersave is started.

The "randomly changes the screensaver": by a program or the user changes it himself? If the latter it would only be part of the options for this yet-not-written screensaver.


Quote:
Originally Posted by PrimeCruncher
The only thing here that looks good is the second to last link; the others are platform-specific, which I'm trying to avoid. And the last one is for writing a screensaver, which has been proposed several times on this board and shot down every time.
Yes it was for writing a screensaver
Will try to find some good discussions why a screensaver solution would be bad... (off searching)
lunna is offline   Reply With Quote
Old 2004-05-16, 19:47   #68
PrimeCruncher
 
PrimeCruncher's Avatar
 
Sep 2003
Borg HQ, Delta Quadrant

2·33·13 Posts
Default

Quote:
Originally Posted by lunna
I believe a global message WM_SYSCOMMAND with a SC_MONITORPOWER is sent when powersave is started.
I just tried that... odd, I could've sworn I tried it before and it didn't work. But in any case that makes coding this program a whole heck of a lot easier.

Quote:
Originally Posted by lunna
The "randomly changes the screensaver": by a program or the user changes it himself? If the latter it would only be part of the options for this yet-not-written screensaver.
By a program I believe, but you can ask crash893 to be sure.

Quote:
Originally Posted by lunna
Yes it was for writing a screensaver
Will try to find some good discussions why a screensaver solution would be bad... (off searching)
No need, I can tell you. Basically, Prime95 is designed to capture ALL SPARE cycles and not interfere with normal operations. A screensaver kind of goes against the point.
PrimeCruncher is offline   Reply With Quote
Old 2004-05-17, 21:18   #69
crash893
 
crash893's Avatar
 
Sep 2002

23·37 Posts
Default

not to mention the prime95 screensaver is boreing as hell


when i said randomly changes his wallpaper i ment manualy althogh i think i have seen programs that will do it for you


is tehre anyway we could use the pre built ( run program even when useing laptop battery power) to fool it into not running and then prority 10 when we trick it into thinkits back on ac or something like that
crash893 is offline   Reply With Quote
Old 2004-05-17, 21:38   #70
PrimeCruncher
 
PrimeCruncher's Avatar
 
Sep 2003
Borg HQ, Delta Quadrant

2BE16 Posts
Default

Quote:
Originally Posted by crash893
is tehre anyway we could use the pre built ( run program even when useing laptop battery power) to fool it into not running and then prority 10 when we trick it into thinkits back on ac or something like that
Maybe, but I'd rather not mess around with system settings and such. Plus that kind of eliminates this program as a possibility for people running it on laptops. I don't think we need to do that though; given that we now know we can detect when the monitor goes into powersave (and also when it comes out apparently, I coded another test app to make sure), if we can integrate the SOM script we're good to go.
PrimeCruncher is offline   Reply With Quote
Old 2004-08-03, 00:48   #71
crash893
 
crash893's Avatar
 
Sep 2002

23×37 Posts
Default

any update?
crash893 is offline   Reply With Quote
Old 2004-08-03, 01:41   #72
PrimeCruncher
 
PrimeCruncher's Avatar
 
Sep 2003
Borg HQ, Delta Quadrant

2·33·13 Posts
Default

It's nearly done but there's still one bug I haven't ironed out. It's weird. The SOM script won't execute when I'm executing it in real-time, but when I step through it during debugging, it works fine! Trying to determine what the problem is...
PrimeCruncher is offline   Reply With Quote
Old 2004-08-14, 18:17   #73
PrimeCruncher
 
PrimeCruncher's Avatar
 
Sep 2003
Borg HQ, Delta Quadrant

2·33·13 Posts
Default

Okay, after some more work, I think the SOM script just isn't working when the screensaver is running. Danath, have you tested the script while the screensaver is running?
PrimeCruncher is offline   Reply With Quote
Old 2004-08-16, 13:37   #74
Bundu
 
Bundu's Avatar
 
Jul 2004
Mid Calder, Scotland

18510 Posts
Default

Boy all this stuff sounds quite complex! You sound like you guys know your way round a PC.....How's this for an idea..?

Why not design a screensaver that has a timer built in? It kicks in after 5 min but the timer kills it at 30min when the monitor powers off?

Is this possible, I know nothing about programming screensavers.....

Cheers, Mark
Bundu is offline   Reply With Quote
Old 2004-08-16, 13:43   #75
PrimeCruncher
 
PrimeCruncher's Avatar
 
Sep 2003
Borg HQ, Delta Quadrant

12768 Posts
Default

Quote:
Originally Posted by Bundu
Boy all this stuff sounds quite complex! You sound like you guys know your way round a PC.....How's this for an idea..?

Why not design a screensaver that has a timer built in? It kicks in after 5 min but the timer kills it at 30min when the monitor powers off?

Is this possible, I know nothing about programming screensavers.....

Cheers, Mark
Part of the problem is that the user of the borged computer wants his computer to stay EXACTLY the way it is or he won't run Prime95, period. Killing the screensaver kicks the computer out of 'sleep' anyway, and I also know nothing about programming screensavers.
PrimeCruncher is offline   Reply With Quote
Old 2004-08-17, 19:31   #76
crash893
 
crash893's Avatar
 
Sep 2002

23×37 Posts
Default

Quote:
Originally Posted by Bundu
Boy all this stuff sounds quite complex! You sound like you guys know your way round a PC.....How's this for an idea..?

Why not design a screensaver that has a timer built in? It kicks in after 5 min but the timer kills it at 30min when the monitor powers off?

Is this possible, I know nothing about programming screensavers.....

Cheers, Mark
the reason being that you would have to use just 1 screen saver

the orgional insperation for the idea is my freind who enjoys the eyecandy of his new 9600 video card but also likes to help my team out

so i said there must be a way to kick prime into high gear when the montior goes into powersaver
crash893 is offline   Reply With Quote
Old 2004-08-27, 18:58   #77
Danath
 
Danath's Avatar
 
May 2003
Republic of Moldova

4010 Posts
Default

Finally I have some spare time to post here.

Quote:
Okay, after some more work, I think the SOM script just isn't working when the screensaver is running. Danath, have you tested the script while the screensaver is running?
If you mean the script that changes the Prime95's priority (that I attached to one of my previous posts) - yes, it works also when the screensaver is running. Note that it might not work properly if there are other windows (besides the Prime95's window), the titles of which contain "Prime95" - I guess it's understood why. Also, you can remove the first line of the script (or change it to "Enabled"), to see the messages describing the errors that could appear while executing the script.

At some moment I realised that I was wrong when I said (in one of my previous posts - #54) that terminating the screensaver will wake up the monitor. My fault is that I tried it under Win95 only (yes, I was using also such an old OS at that time). I apologize for misleading you, I should've checked it on other OSes first. Win98/2000/XP have the screensaver/monitor power management functions implemented differently from Win95, so that terminating the screensaver (either by closing its window, or by killing its process) does not cause the monitor to exit the off-state, beginning with Win98 and above. Another correction of my words: the screensaver window's title is "Screen Saver" in Win95/98, but in Win2000/XP the title depends on the screensaver.

I plan to post here a solution soon...
Danath is offline   Reply With Quote
Reply

Thread Tools


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


Fri Aug 6 05:36:00 UTC 2021 up 14 days, 4 mins, 1 user, load averages: 4.07, 3.29, 2.87

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.