>>>>> On Mon, 17 Jul 2000 11:15:18 -0700
>>>>> Nick Sayer <[EMAIL PROTECTED]> said:

nsayer> The "why bother" is easy -- one should not have to belong to group
nsayer> operator to determine the current battery state. Too many things
nsayer> already have to be sgid (at least) without making this another reason.

I love this feature.

nsayer> I took a middle ground. I have two ints, machdep.apm_battlevel
nsayer> and machdep.apm_powerstate. The power state number is
nsayer> -1 to 5 for unknown, critical, low, medium, high (which four imply
nsayer> battery power), AC or charging (which two imply AC power).

Then, I cannot switch to use sysctl.  Actually, GKrellM requires
ai_batt_stat, ai_acline, ai_batt_life and ai_batt_time members of
struct apm_info.

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
[EMAIL PROTECTED]  [EMAIL PROTECTED]  [EMAIL PROTECTED]
http://www.imasy.org/~ume/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to