Date: Tue, 15 Mar 2005 08:57:46 -0800 From: "Kevin Oberman" <oberman@es.net> To: =?ISO-8859-1?Q?R=E9mi_Vallez?= <remi.vallez@gmail.com> Cc: freebsd-acpi@freebsd.org Subject: Re: [newbie] read an acpi value Message-ID: <20050315165746.1E84E5D08@ptavv.es.net> In-Reply-To: Your message of "Tue, 15 Mar 2005 17:50:11 %2B0100." <545f9a50050315085067700ebe@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> Date: Tue, 15 Mar 2005 17:50:11 +0100 > From: =?ISO-8859-1?Q?R=E9mi_Vallez?= <remi.vallez@gmail.com> > Sender: owner-freebsd-acpi@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@es.net Phone: +1 510 486-8634
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050315165746.1E84E5D08>