On my Mac Mini (Mac OS 10.6.2, BM 6.10.17) the box marked "Do work while on 
Batteries" is unchecked.  Even when the software from Belkin is running and the 
machine is on batteries boinc is still running workunits.  The idea to run a a 
script though Belkin's software that would shut down boinc is probably a good 
one, at least temporarily.  Also all of you should note that while both Windows 
and Mac OSX do have their own common UPS stuff, many UPS brands just write 
their own software and ignore that.  The OSs' built-in API isn't actually 
compatible with all UPSs.  

On a completely unrelated suggestion:  I think that the managers's tasks tab 
should display the amount of real memory each actively-running task is using in 
column along with the name, time elapsed, etc.  Currently I go into Activity 
monitor to look up this information because some of the rose...@home workunits 
have had memory problems, and having easier access to that info would help a 
lot.  It could be a new column named "memory used" or perhaps just be part of 
the status of the task.

On Nov 21, 2009, at 11:28 AM, John Sanborn wrote:

> BOINC does have options for when it's on battery, under Advanced-Preferences. 
> This is a only an on/off setting though.
>  
> Does the UPS software have the ablitity to run a command when it reaches set 
> levels?  If so, find the command line BOINC options and shut it down that way.
> 
>  
> John
> 
> 
> 


On Nov 21, 2009, at 12:07 PM, Nicolás Alvarez wrote:

> On 11/21/09, Jack Lambert <[email protected]> wrote:
>> Are there hidden UPS options in BOINC somewhere?
> 
> BOINC has absolutely no idea what an UPS is. And I don't even know if
> the “is laptop using batteries” feature works correctly in all laptops
> and all platforms.
> 
>> When the computer has been on UPS power for greater than 5sec OR the battery
>> is less than 60% full, suspend all projects AND put all projects in No New
>> Tasks mode.  When the comp has been on UPS power for greater than one minute
>> OR the battery is at 50% or lower, run the update command on all projects
>> (this way the completed ones can be uploaded before system shutdown.)  I
>> plan to get battery backups for my network equipment someday.  Once the
>> update command for all projects has finished shutdown boinc. System shutdown
>> is at 30% battery power.
> 
> Your needs would probably amount to adding half a dozen more
> preferences to BOINC (we can't hardcode all those percentages!), or
> maybe a whole scripting language.
> 
>> I am aware that the software for dealing with UPS is inconsistent across
>> operating systems and UPS manufacturers, but I think that this improvement
>> to boinc would be really useful.  Even if you can't support my specific
>> situation I think a lot of people would be grateful if future releases of
>> boinc had even basic compatibility with the built-in UPS software most
>> operating systems have now.
> 
> I strongly disagree with adding UPS-specific code to BOINC.
> 
> What would be nice is having a separate program that watches the UPS
> and tells BOINC to suspend. It would have to be *completely* different
> for each platform and UPS brand... In my case, I would need a shell
> script that can be run by apcupsd on Linux. Maybe on other systems you
> would need a plugin that gets loaded by the silly bloated software
> included by the UPS.
> 
> -- 
> Nicolas



On Nov 21, 2009, at 12:32 PM, Rom Walton wrote:

> Jack, which OS are you using?  For Windows I thought we already had the
> basic case covered, Windows would report that the computer is on battery
> power by way of the power management APIs.
> 
> Is Windows able to detect your UPS and setup a power usage profile
> without the Belkin Automatic Power Software?





On Nov 21, 2009, at 12:38 PM, Rom Walton wrote:

> Nicolas,
> 
> I believe both the OS X and Windows provide a common API for power management 
> detection that applies for batteries of a notebook variety as well as a 
> desktop with UPS. Linux would be problematic.
> 
> ----- Rom



> My Original message:
> 
> To BOINC devs,
> 
> I was wondering if anyone knows if boinc could be made to have greater 
> options to change how it (or more accurately the science apps) runs while the 
> machine is on uninterrupted power supply (UPS) battery power as opposed to 
> normal power.  I am not a developer and do not know how to go about doing 
> this.  I just wanted to describe the behavior I want of boinc below and see 
> if it is doable:
> 
> I currently have BM 6.10.17 on my MacOS 10.6.2 Intel 64-bit Mac Mini (2.0GHZ 
> Intel Core 2 Duo, 2gigs RAM).  I live in a rural area where the power lines 
> get knocked out relatively frequently, and I recently got the sense to invest 
> in a UPS (BELKIN-F6C-550-AVR REV. A).  The monitoring software I use is 
> Belkin Automatic Power Software V2.5.02, which is cross-platform but quite 
> archaic.  It uses a USB connection to the device.  Are there hidden UPS 
> options in BOINC somewhere?  I want the following to happen:
> 
> When the computer has been on UPS power for greater than 5sec OR the battery 
> is less than 60% full, suspend all projects AND put all projects in No New 
> Tasks mode.  When the comp has been on UPS power for greater than one minute 
> OR the battery is at 50% or lower, run the update command on all projects 
> (this way the completed ones can be uploaded before system shutdown.)  I plan 
> to get battery backups for my network equipment someday.  Once the update 
> command for all projects has finished shutdown boinc. System shutdown is at 
> 30% battery power.
> 
> I am aware that the software for dealing with UPS is inconsistent across 
> operating systems and UPS manufacturers, but I think that this improvement to 
> boinc would be really useful.  Even if you can't support my specific 
> situation I think a lot of people would be grateful if future releases of 
> boinc had even basic compatibility with the built-in UPS software most 
> operating systems have now.
> 
> Sincerely,
> Jack Lambert
> _______________________________________________
> boinc_dev mailing list
> [email protected]
> http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
> To unsubscribe, visit the above URL and
> (near bottom of page) enter your email address.

_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to