BTW, the upper-case strings are C++ constants;
they're not shown to users (at least they shouldn't be).
The user-visible text is defined in suspend_reason_string()
in lib/str_util.cpp; e.g.:
case SUSPEND_REASON_WIFI_STATE: return "not connected to WiFi network";
case SUSPEND_REASON_BATTERY_CHARGING: return "battery low";
case SUSPEND_REASON_BATTERY_OVERHEATED: return "battery thermal protection";
(Note: I changed the last 2 based on suggestions here).
Also: there are 15 different conditions in which processing is suspended,
and any combination of them could be active at a given point.
We don't try to show all the reasons.
We check for them in a certain order, and show only the first one we detect.
-- David
On 08-Apr-2013 9:13 AM, McLeod, John wrote:
It seems a bit odd that while running on batteries, the warning "CHARGING"
can appear. It would make much more sense if it read: "BATTERY LOW", or if
there is not enough space, "BATT LOW". If also overheated, it would read
"BATTERY LOW AND CHARGING".
-----Original Message----- From: boinc_dev
[mailto:[email protected]] On Behalf Of Bruce Allen Sent:
Monday, April 08, 2013 3:41 AM To: Joachim Fritzsch Cc:
[email protected]; [email protected] Subject: Re: [boinc_dev]
[eah_android] BOINC o.A. - client power management bug
Hi All,
In order to help keep communication with the user as clear as possible, I
suggest that you introduce one additional suspend reason:
- run_on_batteries = 0 -- charger connected, battery level > X, temperature
< Y: not suspended -- charger connected, battery level < X, temperature <
Y: suspend reason CHARGING -- charger connected, battery level > X,
temperature > Y: suspend reason OVERHEATED -- charger connected, battery
level < X, temperature > Y: suspend reason OVERHEATED
suggested suspend reason for this case: OVERHEATED_AND_CHARGING
-- on batteries: suspend reason BATTERIES
- run_on_batteries = 1 -- charger connected, battery level > X, temperature
< Y: not suspended -- charger connected, battery level < X, temperature <
Y: suspend reason CHARGING -- charger connected, battery level > X,
temperature > Y: suspend reason OVERHEATED -- charger connected, battery
level < X, temperature > Y: suspend reason OVERHEATED
same here: OVERHEATED_AND_CHARGING
-- on batteries, battery level > X, temperature < Y: not suspended -- on
batteries, battery level < X, temperature < Y: suspend reason CHARGING --
on batteries, battery level > X, temperature > Y: suspend reason
OVERHEATED
same here: OVERHEATED_AND_CHARGING
-- on batteries, battery level < X, temperature > Y: suspend reason
OVERHEATED
Cheers, Bruce
_______________________________________________ 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.
_______________________________________________
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.