Hi Kaupo,

Kaupo Arulo wrote:
It seems, that 2.6.25 does not contain
/sys/class/power_supply/BATx/charge_* entrys anymore. I used 
/sys/class/power_supply/BATx/energy_*
instead:

I've done some research, and it turns out that there has always been both charge_ and energy_, where charge_ is in uAh, and energy_ is in uWh. I had apparently done too little research for this earlier, my bad. It's the same for the old ACPI battery info interface, some batteries report uAh and other report uWh. I was already wondering why they unified these metrics, but apparently I was not wondering enough to actually check the interface. :-)

I'll just put in a patch that uses whatever is available. And I might also have to put in the old checks for batteries that don't report a capacity -- had to do this for ACPI, so if the new interface exposes the same info, I'm probably going to see batteries with capacity 0, like in the old interface...

Anyway, this will be fixed. Thanks for reporting.

Cheers,
Bart



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to