[ltp] HPET timer on thinkpads?
Igor V. Rafienko
linux-thinkpad@linux-thinkpad.org
Tue, 23 Oct 2007 15:09:56 +0200 (CEST)
on Oct 23, 2007, 14:37, Damien Challet wrote:
[ ... ]
>> Apologies for what is probably a very ignorant question,
>> but how do you find the power consumption on an idle or sleeping machine?
>
> first of all, you need to unplug the ac adaptor
>
> then either with powertop or cat /proc/acpi/battery/BAT0/state
... alternative:
cat /sys/devices/platform/smapi/BAT<number>/power_now
... which requires tp-smapi.
When it comes to measuring power drain in suspended state, you measure the
battery state and time and append both to a file. When the laptop wakes
up, you do the same and compare the difference. My log looks something
like this:
lapdance battery-data # tail -n 5 /tmp/battery-data/2007-10-23T03\:13
1193102003
67470
after:
1193125285
67280
The first number is seconds since the epoch. The second is the battery
capacity in mWh. The formula is left as an exercise for the reader :)
ivr
--
Women wearing Wonder bras and low-cut blouses lose their right to
complain about having their boobs stared at.
"Things men wish women knew"