|
![]() |
Overclock.net - Overclocking.net > Overclock.net Forum > Overclock.net Folding@Home Team | |
Guide: Automated pausing of Folding@home.
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | ||||||||||||
|
Folding Fanatic
![]() |
A common issue with GPU folding is the fact that it has to be paused/stopped to play games or run other GPU intense applications.
Users often forget to disable it before running those applications or forget to start Folding@Home again once they're done. In this guide we will automate this proccess. Designed for XP. Have fun with permissions in Vista and making files from CMD. You will probably have to "Run as administrator", especially for the second variant of this program. Set up your GPU2 folding@home console client to run as a proccess and reboot your computer. This can be done during initial run of the folding@home .exe as illustrated: ![]() After rebooting, go to Start -> Run -> Type services.msc ![]() Scroll down to the entry that begins with Folding@home-GPU- and write that name down. (ie "Folding@home-GPU-[3]") ![]() Now we're going to make a tiny batch file that shuts down this process every time we start a specific application. Create a simple .txt file and type in the following Code:
@echo off net stop Folding@home-GPU-[<x>] <HDD>: cd "<HDD>:\<dir>" start /wait <application_executable>.exe net start Folding@home-GPU-[<x>]
Here is an example: Code:
@echo off net stop Folding@home-GPU-[2] C: cd "C:\Live for Speed S2 ALPHA Z\LFS_S2_ALPHA_Z" start /wait LFS.exe net start Folding@home-GPU-[2] You should get the following window and your application will start: ![]() That was it! This should do the trick for most games. [=================================================] If you are running a game in which the executable you run to start it is not the game itself then this application will not work (ie MMO updaters that begin before the game itself). Here's what can be done: First run the game. Once in 3D mode hit Ctrl+Alt+Del to bring up the task manager to find out the game's actual proccess name (ie WoW.exe). Our .bat file should contain the following code: Code:
@echo off net stop Folding@home-GPU-[<x>] <HDD>: cd "<HDD>:\<dir>" start /wait <application_starter>.exe goto check :check tasklist /FI "IMAGENAME eq <actual_executable>.exe" /FO CSV > search.log FOR /F %%A IN (search.log) DO IF %%~zA EQU 0 GOTO end net start Folding@home-GPU-[<x>] goto end :check :end del search.log
Here's an example: Code:
@echo off net stop Folding@home-GPU-[2] C: cd "C:\Live for Speed S2 ALPHA Z\Live for Speed S2 ALPHA Z" start /wait LFS_starter.exe goto check :check tasklist /FI "IMAGENAME eq LFS.exe" /FO CSV > search.log FOR /F %%A IN (search.log) DO IF %%~zA EQU 0 GOTO end net start Folding@home-GPU-[2] goto end :check :end del search.log v0.1 ~ (8 Sep 09) ~ Initial release. v0.2 ~ (9 Sep 09) ~ Allowing auto-updaters to finish before checking for game instance.
__________________
Last edited by MadCatMk2 : 09-09-09 at 03:05 AM |
||||||||||||
|
|
|
|
|
#2 (permalink) | ||||||||
|
*cough* Stock *cough*
![]() |
Wow, nice guide. Rep+
Don't think I'll use it myself though; I don't game that much, so instead I just forget to pause folding while I playing agmes
__________________
"He who is not courageous enough to take risks will accomplish nothing in life" ~Muhammad Ali~
|
||||||||
|
|
|
|
|
#3 (permalink) | ||||||||||
|
Linux Lobbyist
![]() |
O nice I was thinking about making something similar but I couldn't find out how to do cron jobs on Windows.
![]() Im definitely going to use this.
__________________
I <3 Quake 3
Fold for OCN to help us take over the world! Team#37726 Phenom II X4 940 BE @ 3.6GHz 3D Mark Vantage: P 15,517 3D Mark 06: P 15,780 ![]()
|
||||||||||
|
|
|
|
|
#4 (permalink) | |||||||||||||
|
4.0 GHz
|
I don't pause folding while I play games and don't notice any difference. I'm confused, I assumed it auto-paused or at least gave priority to the game by default.
__________________
Quote:
4.5 Ghz Prescott on air cooling.^
|
|||||||||||||
|
|
|
|
|
#5 (permalink) | |||||||||||||
|
Folding Fanatic
![]() |
Quote:
And yes it is meant to give priority to other apps, although it does not seem to work, at least for the most of us. Not to mention how many work units I've personally lost cause of forgetting to close it. But no, it does not auto-pause. On another note, This guide is also useful for "pausing" cpu/smp/vmware CPU clients when you need the RAM.
__________________
Last edited by MadCatMk2 : 09-27-09 at 05:45 PM |
|||||||||||||
|
|
|
|
|
#6 (permalink) | |||||||||||||
|
4.0 GHz
|
Didn't mean to offend, I was just asking. I'm assuming that right clicking the icon and pausing works the same as the auto-pause and therefore isn't sufficient? Or are you talking more about command line style folding, which I know nothing about?
__________________
Quote:
4.5 Ghz Prescott on air cooling.^
|
|||||||||||||
|
|
|
|
|
#7 (permalink) | |||||||||||||
|
Folding Fanatic
![]() |
This guide (+rep, by the way) will pause folding any time you open a certain application, for instance, COD4, and resume once you've closed that application. It will also start by itself when the computer is started.
__________________
REPORT and move on. Everyone, I have an urgent announcement to make:
[PWN]Schubie is tricky. ![]() Usually, 4650<3850<4670<3870<4770<4830<3870X2<4850<5770<487 0<4890<4770 CF<4850X2<4850 CF<5850<5870<5770 CF<4870X2<4870 CF<4890 CF<5850 CF<5970<5870 CF
|
|||||||||||||
|
|
|
|
|
#8 (permalink) | |||||||||||||
|
Folding Fanatic
![]() |
Quote:
Command line has no way to pause by the way, you have to close it and start it again. As some of us like to run it as service it's quite troublesome doing the whole process. Of course no offence taken
__________________
|
|||||||||||||
|
|
|
|
|
#9 (permalink) | |||||||||||||
|
4.0 GHz
|
Alright good. I'm new to folding, didn't mean to step on any toes lmao. Thanks for the info.
__________________
Quote:
4.5 Ghz Prescott on air cooling.^
|
|||||||||||||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|