Run folding overnight?

Moderators: Site Moderators, FAHC Science Team

Post Reply
lewis42
Posts: 3
Joined: Fri Nov 12, 2021 9:35 pm

Run folding overnight?

Post by lewis42 »

I've been folding for a while now on my mac. I start the web client at the end of my work day and stop it again in the morning.

I've moved that computer into a cupboard and I'd like to set the start/stop to happen automatically.

I'm fairly sure that is possible, but I can't find any examples on how to do it.

If anyone has instructions or even can point me in the right direction of what terminal commands I should run I can figure out the rest, it's just how to start/stop folding from command line I'm stuck on.

Thanks in advance

Lewis
aetch
Posts: 436
Joined: Thu Jun 25, 2020 3:04 pm
Location: Between chair and keyboard

Re: Run folding overnight?

Post by aetch »

Windows - https://foldingathome.org/support/faq/i ... on/?lng=en
Linux - https://foldingathome.org/support/faq/i ... ns/?lng=en
Mac - https://foldingathome.org/support/faq/i ... ns/?lng=en

Note - The vast majority of us fold 24/7 so don't have a need to automatically start/stop the client.
Folding Rigs - None (25-Jun-2022)

ImageImage
calxalot
Site Moderator
Posts: 1161
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Run folding overnight?

Post by calxalot »

Code: Select all

FAHClient —send-pause
FAHClient —send-unpause
MeeLee
Posts: 1339
Joined: Tue Feb 19, 2019 10:16 pm

Re: Run folding overnight?

Post by MeeLee »

You'll probably have to run the command automatically at a specific time.
You can run an .sh file (with executable enabled), and use the at command:

https://www.linuxjournal.com/content/sc ... -unix-tool

I have no experience on making it run automatically from boot, but I'm sure you can figure it out with a little browsing.
lewis42
Posts: 3
Joined: Fri Nov 12, 2021 9:35 pm

Re: Run folding overnight?

Post by lewis42 »

aetch wrote:Mac - https://foldingathome.org/support/faq/i ... ns/?lng=en
I saw this, but it doesn't actually answer my question, and the man page is super long and doesn't actually mention `—send-pause` or `—send-unpause`. It's good to know I'm an edge case though, thank you. I wonder if more people would run folding if there was a one click way to just have it run overnight. In my experience the "don't run when I'm using my computer" option in the web ui doesn't work on the macOS version. I'm probably an edge cases being on macOS TBH.
calxalot wrote:

Code: Select all

FAHClient —send-pause
FAHClient —send-unpause
Perfect, thank you!
MeeLee wrote:You'll probably have to run the command automatically at a specific time.
Although I haven't done it before, I'm confident I can figure this bit out, thank you :) From my basic research, the macOS way to do this is with `launchd` and Lingon X seems to be the recommended GUI for interfacing with it.

Thanks everyone, this is a great community.
calxalot
Site Moderator
Posts: 1161
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Run folding overnight?

Post by calxalot »

For FAHClient on macOS, idle is when the computer turns off the display, or when the login window is showing.
gunnarre
Posts: 559
Joined: Sun May 24, 2020 7:23 pm
Location: Norway

Re: Run folding overnight?

Post by gunnarre »

There are many ways to schedule things in MacOS, from launchd to cron. MacOS does have a traditional crontab if that's what you want to use.
Image
Online: GTX 1660 Super + occasional CPU folding in the cold.
Offline: Radeon HD 7770, GTX 1050 Ti 4G OC, RX580
lewis42
Posts: 3
Joined: Fri Nov 12, 2021 9:35 pm

Re: Run folding overnight?

Post by lewis42 »

calxalot wrote:For FAHClient on macOS, idle is when the computer turns off the display, or when the login window is showing.
I should try this again as perhaps I misunderstood the UI. I thought I had it set to "idle only" and it ran anyway.
Post Reply