Page 1 of 1

Can the PC shut down after FAH client is finished?

Posted: Fri Jan 08, 2021 5:37 am
by red454
Is there a way to set the configuration to shut down the PC after you have finished folding for the day (or night)?

Re: Can the PC shut down after FAH client is finished?

Posted: Fri Jan 08, 2021 5:58 am
by Joe_H
Not in the client itself. People have created various methods for monitoring the client to wait for a WU to finish, sometimes including in the script sending the Finish command to the client, and then shutting down their PC after the WU uploads.

Re: Can the PC shut down after FAH client is finished?

Posted: Fri Jan 08, 2021 6:08 pm
by vivatobst
This is how I do it:

Open "run" by pressing "Windows key" + "R"
Type -shutdown -s -t amountofseconds (example:" shutdown -s -t 5400 ") --> your PC will shutdown automatically after 90 minutes

Of course for this method you will need to know how long your workunit will take to finish, but it works for me just fine.

Re: Can the PC shut down after FAH client is finished?

Posted: Fri Jan 08, 2021 8:04 pm
by bruce
The OS is responsible for deciding when to shut down, not FAH. If other applications happen to still be running, FAH will have no way to tell the OS how to decide whether it's ok to kill them or not.

Re: Can the PC shut down after FAH client is finished?

Posted: Sun Jan 10, 2021 5:29 am
by red454
vivatobst wrote:This is how I do it:

Open "run" by pressing "Windows key" + "R"
Type -shutdown -s -t amountofseconds (example:" shutdown -s -t 5400 ") --> your PC will shutdown automatically after 90 minutes

Of course for this method you will need to know how long your workunit will take to finish, but it works for me just fine.

This will work for what I want to do. Sometimes I start a WU that runs longer than expected, like an hour or so after bed time. I don't want to stay up to shut it down, and I don't want the computer to just sit idle all night. Thanks!

Re: Can the PC shut down after FAH client is finished?

Posted: Sun Jan 10, 2021 5:15 pm
by bruce
I don't want the computer to just sit idle all night.
I solve that problem by folding 24x7. ;)

Nevertheless, if you're not using the keyboard/mouse there's not much for it to do except wait for the next command. It can sit like that until morning

This feature has been requested before but unless it's solved for Windows, Linux, and MacOS ... and it can somehow cause FAH to produce MORE science, it's not likely to be included in a future version.

Re: Can the PC shut down after FAH client is finished?

Posted: Sun Jan 10, 2021 5:55 pm
by Joe_H
As bruce mentioned, unlikely to be added as a feature. However there is room and support for others to provide that type of function. The third party API is described here - https://github.com/FoldingAtHome/fah-co ... Client-API. That allows programs or scripts to communicate with the client software and monitor or control it.

Re: Can the PC shut down after FAH client is finished?

Posted: Mon Jan 11, 2021 8:19 pm
by bruce
... but you have to do it yourself. It's not part of FAHClient.