Can the PC shut down after FAH client is finished?

Moderators: Site Moderators, FAHC Science Team

Post Reply
red454
Posts: 37
Joined: Sun Apr 22, 2012 1:35 pm
Hardware configuration: MSI Z790 ACE | 12700K | Cooler Master Cosmos | TeamGroup 32GB | RTX 4080/4090 | Win10 Pro
Location: Indy
Contact:

Can the PC shut down after FAH client is finished?

Post 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)?
Image
Joe_H
Site Admin
Posts: 7937
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2
Location: W. MA

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

Post 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.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
vivatobst
Posts: 20
Joined: Thu Oct 08, 2020 4:23 pm
Hardware configuration: Intel Core i5-2320, 2*AMD Sapphire R9 380 Nitro

AMD Ryzen 7 2700X, AMD Sapphire Vega 64 Nitro+
Location: North Rhine-Westphalia, Germany

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

Post 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.
Image
Ryzen 7 2700X, AMD Sapphire Vega64 Nitro+
Intel Core i5-2320, 2*AMD Sapphire R9 380
bruce
Posts: 20824
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

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

Post 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.
red454
Posts: 37
Joined: Sun Apr 22, 2012 1:35 pm
Hardware configuration: MSI Z790 ACE | 12700K | Cooler Master Cosmos | TeamGroup 32GB | RTX 4080/4090 | Win10 Pro
Location: Indy
Contact:

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

Post 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!
Image
bruce
Posts: 20824
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

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

Post 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.
Joe_H
Site Admin
Posts: 7937
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2
Location: W. MA

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

Post 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.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
bruce
Posts: 20824
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

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

Post by bruce »

... but you have to do it yourself. It's not part of FAHClient.
Post Reply