[ltp] HPET timer on thinkpads?
Dan Sawyer
linux-thinkpad@linux-thinkpad.org
Thu, 25 Oct 2007 12:03:44 -0700
This is a multi-part message in MIME format.
--------------070609070406050802060104
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Leon,
Thank you very much. That was very helpful.
There are a couple of ways you can check. There is a script on the think
pad wike to test power.
The other is to read the battery charge (cat /proc/acpi/battery/BAT0/*)
suspend the machine for 1 or more hours and then reread the charge. The
difference should be about 500mw per hour.
Dan
Leon Brokken wrote:
> Hi Dan,
>
> uhm, how would I check that, without waiting for the batt to run out?
> .config is attached.
>
> Cheers, Leon.
>
>
> Dan Sawyer wrote:
>
>> Leon,
>>
>> Does the low power suspend work on your configuration? If so can you
>> your .config script.
>>
>> Thanks - Dan
>>
>> Leon Brokken wrote:
>>
>>> Hi Shem,
>>>
>>> Shem Multinymous wrote:
>>>
>>>
>>>> Hi Leon,
>>>>
>>>> On 10/23/07, Leon Brokken <leon.brokken@med.lu.se> wrote:
>>>>
>>>>
>>>>
>>>>> Could that explain the hangs every now and then, when my T41 doesn't
>>>>> accept any input any longer? Processes keep running but there is no info
>>>>> from fan, batt or temp available (judged from conky system monitor).
>>>>> Even the power button doesn't work anymore, I need to power off by
>>>>> unplugging AC and removing the battery.
>>>>>
>>>>>
>>>>>
>>>> Judging by the symptoms, what you're seeing is a hang of the embedded
>>>> controller (which is running its own firmware independently of the CPU
>>>> and handles all the things you mentioned). This is very dangerous,
>>>> since the EC is also in charge of fan control, battery charging
>>>> control and emergency thermal shutdown.
>>>>
>>>> It's important to find out what causes the EC hangs. How often do you
>>>> see them? Are they correlated with some activity or configuration?
>>>> Does unloading some modules (in particular acpi, hdaps, tp_smapi)
>>>> prevent them? Are you using an old version of tp_smapi?
>>>>
>>>>
>>>>
>>> In the meantime I found out that tp_smapi (v0.32) was not loaded. I have
>>> now added it to rc.modules so it gets loaded at boot and haven't noticed
>>> a problem yet. Before it happpened maybe once every few days, without
>>> any obvious pattern. I have a T41, Slackware-current, kernel 2.6.23.1. I
>>> never noticed similar issues with 2.6.22.
>>>
>>> Anyway, here's some output from dmesg:
>>>
>>> leon@shpritsz:~$ dmesg|grep -i thinkpad_ec
>>> thinkpad_ec: thinkpad_ec 0.32 loaded.
>>>
>>> leon@shpritsz:~$ dmesg|grep -i smapi
>>> tp_smapi 0.32 loading...
>>> tp_smapi successfully loaded (smapi_port=0xb2).
>>>
>>> leon@shpritsz:~$ dmesg|grep -i hdaps
>>> hdaps: initial mode latch is 0x01
>>> hdaps: setting ec_rate=250, filter_order=2
>>> hdaps: fake_data_mode set to 0
>>> hdaps: device successfully initialized.
>>> input: ThinkPad HDAPS joystick emulation as
>>> /devices/platform/hdaps/input/input9
>>> input: ThinkPad HDAPS accelerometer data as
>>> /devices/platform/hdaps/input/input10
>>> hdaps: driver successfully loaded.
>>> leon@shpritsz:~$
>>>
>>> leon@shpritsz:~$ dmesg|grep thinkpad_acpi
>>> thinkpad_acpi: ThinkPad ACPI Extras v0.18-20071013
>>> thinkpad_acpi: http://ibm-acpi.sf.net/
>>> thinkpad_acpi: ThinkPad BIOS 1RETDRWW (3.23 ), EC 1RHT71WW-3.04
>>> thinkpad_acpi: IBM ThinkPad T41
>>> leon@shpritsz:~$
>>>
>>> I'll report back if it happens again.
>>>
>>> Thanks, Leon.
>>>
>>>
>>>
>
>
--------------070609070406050802060104
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Leon,<br>
<br>
Thank you very much. That was very helpful. <br>
<br>
There are a couple of ways you can check. There is a script on the
think pad wike to test power. <br>
<br>
The other is to read the battery charge (cat /proc/acpi/battery/BAT0/*)
suspend the machine for 1 or more hours and then reread the charge. The
difference should be about 500mw per hour. <br>
<br>
Dan <br>
<br>
Leon Brokken wrote:
<blockquote cite="mid:4720B9BB.4050402@med.lu.se" type="cite">
<pre wrap="">Hi Dan,
uhm, how would I check that, without waiting for the batt to run out?
.config is attached.
Cheers, Leon.
Dan Sawyer wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Leon,
Does the low power suspend work on your configuration? If so can you
your .config script.
Thanks - Dan
Leon Brokken wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Shem,
Shem Multinymous wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Leon,
On 10/23/07, Leon Brokken <a class="moz-txt-link-rfc2396E" href="mailto:leon.brokken@med.lu.se"><leon.brokken@med.lu.se></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Could that explain the hangs every now and then, when my T41 doesn't
accept any input any longer? Processes keep running but there is no info
from fan, batt or temp available (judged from conky system monitor).
Even the power button doesn't work anymore, I need to power off by
unplugging AC and removing the battery.
</pre>
</blockquote>
<pre wrap="">Judging by the symptoms, what you're seeing is a hang of the embedded
controller (which is running its own firmware independently of the CPU
and handles all the things you mentioned). This is very dangerous,
since the EC is also in charge of fan control, battery charging
control and emergency thermal shutdown.
It's important to find out what causes the EC hangs. How often do you
see them? Are they correlated with some activity or configuration?
Does unloading some modules (in particular acpi, hdaps, tp_smapi)
prevent them? Are you using an old version of tp_smapi?
</pre>
</blockquote>
<pre wrap="">In the meantime I found out that tp_smapi (v0.32) was not loaded. I have
now added it to rc.modules so it gets loaded at boot and haven't noticed
a problem yet. Before it happpened maybe once every few days, without
any obvious pattern. I have a T41, Slackware-current, kernel 2.6.23.1. I
never noticed similar issues with 2.6.22.
Anyway, here's some output from dmesg:
leon@shpritsz:~$ dmesg|grep -i thinkpad_ec
thinkpad_ec: thinkpad_ec 0.32 loaded.
leon@shpritsz:~$ dmesg|grep -i smapi
tp_smapi 0.32 loading...
tp_smapi successfully loaded (smapi_port=0xb2).
leon@shpritsz:~$ dmesg|grep -i hdaps
hdaps: initial mode latch is 0x01
hdaps: setting ec_rate=250, filter_order=2
hdaps: fake_data_mode set to 0
hdaps: device successfully initialized.
input: ThinkPad HDAPS joystick emulation as
/devices/platform/hdaps/input/input9
input: ThinkPad HDAPS accelerometer data as
/devices/platform/hdaps/input/input10
hdaps: driver successfully loaded.
leon@shpritsz:~$
leon@shpritsz:~$ dmesg|grep thinkpad_acpi
thinkpad_acpi: ThinkPad ACPI Extras v0.18-20071013
thinkpad_acpi: <a class="moz-txt-link-freetext" href="http://ibm-acpi.sf.net/">http://ibm-acpi.sf.net/</a>
thinkpad_acpi: ThinkPad BIOS 1RETDRWW (3.23 ), EC 1RHT71WW-3.04
thinkpad_acpi: IBM ThinkPad T41
leon@shpritsz:~$
I'll report back if it happens again.
Thanks, Leon.
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>
--------------070609070406050802060104--