get mAh value in state file?

Nate Lawson nate at root.org
Sun Feb 3 19:50:05 UTC 2008


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


More information about the freebsd-acpi mailing list