Hi,

I am running Debian Lenny on a thinkpad x61s, with tp_smapi modules. I
incorrectly thought the following problem was fixed:

$ sudo powertop -d | grep "Power usage"
Power usage (ACPI estimate): 200.4W (0.3 hours)

This problem is discussed in Debian bug 497929
(http://bugs.debian.org/497929)
The problem is fixed by reverting the a code change mentioned there:

@@ -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);

Is there a way to fix this?

thanks,

Winfried

_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power

Reply via email to