In message <[EMAIL PROTECTED]> Wes Peters writes:
: Poul-Henning Kamp wrote:
: > 
: > In message <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wri
: > tes:
: > 
: > >So what does everyone think? Is it suitable to add a read only
: > >sysctl 'machdep.apm_powerstate' that reports either AC, nn%,
: > >or N/A ? Or should the format be numeric (999 = AC, <=100 = battery %,
: > >-1 = N/A)? Or should we not bother? :-)
: > 
: > yes it is suitable.
: 
: Perhaps machdep.apm.powerstate, leaving room in the namespace for other
: apm parameters?  Charging state and battery life leap immediately to
: mind.

No.  DO NOT CALL IT APM.  APM is i386 specific and is doing its best
to die off in favor acpi.

If you must call it apm, do *NOT* cause being on AC power to override
the batery %.  These are two different things and should be reported
as such.

machdep.apm.battery:    0..100  (for battery percentage)
machdep.apm.runtime:    0..     (for the reported battery life remaining)
machdep.apm.ac:         0 1     (1 means we're running off AC)
machdep.apm.charging:   0 1
machdep.apm.batteries:  0..     (number of batteries apm says are there)

But why bother?  The apm command gives you this already. :-)

Warner


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

Reply via email to