I looked into the Lumina source code for the NetBSD bits(
LuminaOS-NetBSD.cpp) and for the most parts it is unimplemented. Some functions can be copied from the Free- & OpenBSD files and the rest it is a job for envsys. And also if you don't like the internal structure you can use shell outputs to extract needed information. For example to calculate remaining time on battery you need current discharge rate and charge for all batteries(here is sample for second battery):
Quote:
envstat -s "acpibat1:discharge rate"
envstat -s "acpibat1:charge"
|
Hopefully someone with better C++ skills can do this.