Winfried Tilanus wrote: > Hi, > > I am trying to sort out the following bugreport: > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=497929 > > In short: on a thinkpad x61s with tp-smapi module loaded powertop > reports an insane high Powerusage (200W-300W). This can be traced back > to the following diff: > > @@ -644,7 +651,7 @@ void print_battery_sysfs(void) > continue; > memset(line, 0, 1024); > if (fgets(line, 1024, file) != NULL) { > - watts_drawn = strtoull(line, NULL, 10) / 1000000.0; > + amperes_drawn = strtoull(line, NULL, 10) / > 1000000.0; > } > fclose(file); > > Reverting this gives readings that make more sense. > > What would be the proper way to solve this problem? > > FYI: The Debian version of powertop is a patched version 1.10 and > contains this line. The Debian patch to powertop seems to be taken from > revision 300 of powertop. ( > http://code.google.com/p/powertop/source/detail?r=300 ). Both reverting > this line on the Debian version as reverting the line on the latest > subversion version of powertop result in sane readings.
ok. I'm gonna scrub all the outstanding patches in the coming week and will take a look at the debian patchset as well as what has been reported on the list. thanks. Auke _______________________________________________ Power mailing list [email protected] http://www.bughost.org/mailman/listinfo/power
