* Real Makefile * General clean up of the sources (too many globals, unify nomenclature) * Investigate possible errors in rate computation * Rename libacpi Currently, sysfs interface repeats brokenness of /proc/acpi/battery interface. it is possible to have battery info in energy units and charge units. If you see 'energy_now' variable, then 'current_now' and more appropriate 'power_now' will report in uW units. But if you have 'charge_now', then 'current_now' will report in uA units, and you will not see 'power_now'. So, in short, 'charge_now' reports in same units (sans *h) as capacity, either 'charge_now' or 'energy_now'. The proper way to handle it is to check for 'energy_now' and if it is present, look for 'power_now'. It should be present in 2.6.30 and later kernels (remaining time energy_now/power_now). If it is not present (as in 2.6.29), then you should assume that 'current_now' has value in uW, and remaining time is energy_now/current_now. If you have 'charge_now', remaining time is charge_now/current_now without any complications.