<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=How_to_measure_power_consumption</id>
	<title>How to measure power consumption - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=How_to_measure_power_consumption"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=How_to_measure_power_consumption&amp;action=history"/>
	<updated>2026-04-22T00:16:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=How_to_measure_power_consumption&amp;diff=39439&amp;oldid=prev</id>
		<title>Onnowpurbo: New page: Sumber: http://www.thinkwiki.org/wiki/How_to_measure_power_consumption  ==Direct measurement during operation== To monitor the laptop&#039;s power consumption while it is running, unplug the AC...</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=How_to_measure_power_consumption&amp;diff=39439&amp;oldid=prev"/>
		<updated>2014-01-20T10:41:10Z</updated>

		<summary type="html">&lt;p&gt;New page: Sumber: http://www.thinkwiki.org/wiki/How_to_measure_power_consumption  ==Direct measurement during operation== To monitor the laptop&amp;#039;s power consumption while it is running, unplug the AC...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sumber: http://www.thinkwiki.org/wiki/How_to_measure_power_consumption&lt;br /&gt;
&lt;br /&gt;
==Direct measurement during operation==&lt;br /&gt;
To monitor the laptop&amp;#039;s power consumption while it is running, unplug the AC power and run:&lt;br /&gt;
:{{cmdroot|watch -n1 &amp;#039;cat /proc/acpi/battery/BAT0/*&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
This requires ACPI to be enabled. The value given is (roughly) an averge over the last minute.&lt;br /&gt;
&lt;br /&gt;
Alternatively, load the [[tp_smapi]] module and run the following with AC power unplugged:&lt;br /&gt;
:{{cmdroot|watch -n1 &amp;#039;cat /sys/devices/platform/smapi/BAT0/power_now&amp;#039;}}&lt;br /&gt;
or&lt;br /&gt;
:{{cmdroot|watch -n1 &amp;#039;cat /sys/devices/platform/smapi/BAT0/power_avg&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
The former provides the instantaneous power draw, and the latter is (roughly) an average over the last minute. It&amp;#039;s OK to use  [[tp_smapi]]&amp;#039;s &amp;lt;tt&amp;gt;force_discharge&amp;lt;/tt&amp;gt; function instead of physically disconnecting AC power.&lt;br /&gt;
&lt;br /&gt;
Note that running on battery power may activate power-saving mechanisms, so unless you take care to deactivate them this does not reflect power consumption under AC power.&lt;br /&gt;
&lt;br /&gt;
Dstat is another way to track your laptop&amp;#039;s power consumption, run the following with AC power unplugged to relate power usage (in Watts) and battery information:&lt;br /&gt;
&lt;br /&gt;
 [dag@moria ~]$ dstat --time --power --battery --battery-remain 10&lt;br /&gt;
 ----system---- power batt remai&lt;br /&gt;
      time     |usage|bat0| bat0&lt;br /&gt;
 15-06 08:53:55|0.000|  94| 4h29&lt;br /&gt;
 15-06 08:54:05|15.74|  94| 4h30&lt;br /&gt;
 15-06 08:54:15|15.56|  94| 4h30&lt;br /&gt;
 15-06 08:54:25|15.52|  94| 4h30&lt;br /&gt;
 15-06 08:54:35|15.60|  93| 4h29&lt;br /&gt;
&lt;br /&gt;
==Measurement script==&lt;br /&gt;
See [[Script_for_monitoring_power_consumption]].&lt;br /&gt;
&lt;br /&gt;
==Measurement for synthetic workloads==&lt;br /&gt;
Use the [http://bltk.sourceforge.net Battery Life Tool Kit] tool.&lt;br /&gt;
&lt;br /&gt;
==Measurement during suspend==&lt;br /&gt;
To measure power consumption while the laptop is suspended, use the [[ACPI sleep power drain test script]].&lt;br /&gt;
&lt;br /&gt;
==Hardware-measurement on line or ac-adapter==&lt;br /&gt;
The best (imho) method to measure power consumption is to measure the power drawn by the laptop from the ac-adapter or the power drawn by the ac-adapter itself by a wattmeter. If you want to measure drawn only by the laptop itself, you&amp;#039;ll have to build a little adapter.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
For reducing power consumption, see [[How to reduce power consumption]].&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>