Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Feb 2008 11:50:00 -0800
From:      Nate Lawson <nate@root.org>
To:        =?UTF-8?B?Q2loYW4gS8O2bWXDp2/En2x1?= <cihan@enderunix.org>
Cc:        freebsd-acpi@freebsd.org
Subject:   Re: get mAh value in state file?
Message-ID:  <47A61AE8.5030603@root.org>
In-Reply-To: <406342466.20080203122403@enderunix.org>
References:  <406342466.20080203122403@enderunix.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Cihan Kömeçoğlu wrote:
> Dear list
> 
> I have to write a c program which gets mAh value for battery energy
> measurement from state file. I need to know wheter ACPI send any signal
> or like when this values will be written to state file. That is , How
> can I know when this values will be written?
> 
> And the second question , for file locking mechanism when I read this
> value from state file  What do I have to use?(maybe flock function?)
> 

acpiconf -i flag is what you want, I think.  Not sure if you mean 
current capacity or total.  Also look at sysctl hw.acpi

-- 
Nate



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47A61AE8.5030603>