Power consumption script (Was: [ltp] T41p suspend to RAM on 2.6.11.3)

Martin Samuelsson linux-thinkpad@linux-thinkpad.org
Thu, 17 Mar 2005 15:55:03 +0100


On Thu, Mar 17, 2005 at 10:13:25AM +0100, Daniel Stodden wrote:
> i've just written a small script to measure sleep power consumption on
> each suspend to ram. results below, though i did not take the full 15
> minutes.

Even if it would be simple enough to myself grep and awk from
/proc/acpi/battery/BAT0/state I'm lazy enough to ask, could you please
share the script?

> Mar 17 09:59:42 localhost acpi: enter: 1111049982 s, 40340 mWh
> Mar 17 10:07:38 localhost acpi: leave: 1111050458 s, 40270 mWh
> Mar 17 10:07:38 localhost acpi: power consumption: 70 mWh / 476 s = 529
> mWh/h

Wouldn't that simply be 529 mW ? ;)
--
/Martin