[newbie] read an acpi value

Kevin Oberman oberman at es.net
Tue Mar 15 08:57:47 PST 2005


> Date: Tue, 15 Mar 2005 17:50:11 +0100
> From: =?ISO-8859-1?Q?R=E9mi_Vallez?= <remi.vallez at gmail.com>
> Sender: owner-freebsd-acpi at freebsd.org
> 
> I am working on the subject "wifi and power management on laptops" and
> i try to get the battery present rate and battery present voltage.
> i know this 2 values are present in the ACPI  (in the table _BST)  but
> they are not retrieve by sysctl.
> 
> Can you tell me a way to retrieve this values

There is almost certainly a better way, but "acpiconf -i [0|1]" will
return that information. If you want to get it directly, I'd look at the
acpiconf sources.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman at es.net			Phone: +1 510 486-8634


More information about the freebsd-acpi mailing list