Linux: Do work while computer is running on batteries?

Message boards : BOINC client : Linux: Do work while computer is running on batteries?
Message board moderation

To post messages, you must log in.

AuthorMessage
DJStarfox

Send message
Joined: 19 Jul 07
Posts: 17
Message 12798 - Posted: 29 Sep 2007, 19:25:05 UTC

The "Do work while computer is running on batteries?" option in Linux appears to be unsupported. Sending SIGPWR to the BOINC core client process does nothing. I'm running version 5.8.16, the latest stable version at this time.

Init *should* send SIGPWR to all running processes when apcupsd daemon detects a powerloss. I'm running apcupsd version 3.14.1 (with Fedora Core 7). I tried sending a manual signal to BOINC:
kill -SIGPWR `ps -e|grep boinc|grep -v boincmgr|awk '{ print $1 }'`

However, like I said, this does nothing. Does anyone have a clever way to tell BOINC to SUSPEND when the power goes off? The only boinc_cmd that works in the onbattery script (called by apcupsd) is --quit. Writing a script to go around BOINC seems a hack though; the process should automatically SUSPEND all tasks given SIGPWR and resume previous state on another signal (which one?).
ID: 12798 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 12799 - Posted: 29 Sep 2007, 19:33:40 UTC - in response to Message 12798.  

Does anyone have a clever way to tell BOINC to SUSPEND when the power goes off? The only boinc_cmd that works in the onbattery script (called by apcupsd) is --quit.

Have you tried "boinc_cmd --set_run_mode never"?
ID: 12799 · Report as offensive
DJStarfox

Send message
Joined: 19 Jul 07
Posts: 17
Message 12800 - Posted: 29 Sep 2007, 21:17:35 UTC - in response to Message 12799.  

Have you tried "boinc_cmd --set_run_mode never"?


That works, but when I execute boinc_cmd --set-run-mode auto, the tasks keep suspending, restarting, suspending, restarting every 1 sec. Then, I have to kill BOINC process to stop it.
ID: 12800 · Report as offensive

Message boards : BOINC client : Linux: Do work while computer is running on batteries?

Copyright © 2024 University of California.
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.