<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=SLXViper</id>
	<title>ThinkWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=SLXViper"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/SLXViper"/>
	<updated>2026-05-11T13:59:54Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=How_to_measure_power_consumption&amp;diff=30207</id>
		<title>How to measure power consumption</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=How_to_measure_power_consumption&amp;diff=30207"/>
		<updated>2007-06-01T15:50:08Z</updated>

		<summary type="html">&lt;p&gt;SLXViper: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Direct measurement during operation==&lt;br /&gt;
To monitor the laptop's power consumption while it is running, unplug the AC power and run:&lt;br /&gt;
:{{cmdroot|watch -n1 'cat /proc/acpi/battery/BAT0/*'}}&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 'cat /sys/devices/platform/smapi/BAT0/power_now'}}&lt;br /&gt;
or&lt;br /&gt;
:{{cmdroot|watch -n1 'cat /sys/devices/platform/smapi/BAT0/power_avg'}}&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's OK to use  [[tp_smapi]]'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;
==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'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>SLXViper</name></author>
		
	</entry>
</feed>