Ping? El 19/06/08 00:01 Felipe Sateler escribió: > El 18/06/08 23:55 Kok, Auke escribió: > > Felipe Sateler wrote: > > > I see that powertop 1.10 reads the sysfs interface to acpi. Great. > > > However, I think that the reading is currently broken, for the > > > following reasons: > > > > > > 1. It reads /sys/class/power_supply/<device>/energy_now which (at least > > > on my debian box) doesn't exist. I think it should read charge_now. > > > 2. It reads current_now as watts_drawn, I think it should be > > > amperes_drawn > > > > > > It also appears that the units are not correctly calculated too. > > > > ok. feel free to take a stab at making a patch and post it here. I'll be > > offline for a week but certainly will look into this next week when I get > > back. > > OK, I took a shot at fixing this. The problem is that there are several > charge sources available from sysfs, depending on the capabilities of the > battery. In my case, the battery wasn't providing the energy_now attribute > which tells the amount of µWh left, but I have charge_now which has the µAh > left. Thus, I changed powertop.c to read both, and use energy_now if > available, and use charge_now*voltage otherwise (which should be a > reasonable approximation). > > > Saludos, > Felipe Sateler
Saludos, Felipe Sateler
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Power mailing list [email protected] http://www.bughost.org/mailman/listinfo/power
