All of lore.kernel.org
 help / color / mirror / Atom feed
* How can a critical temperature be set?
@ 2013-11-29  9:06 Thomas Mitterfellner
  2013-11-29 12:25 ` Rafael J. Wysocki
  2013-11-30 10:54 ` Lan Tianyu
  0 siblings, 2 replies; 7+ messages in thread
From: Thomas Mitterfellner @ 2013-11-29  9:06 UTC (permalink / raw)
  To: linux-acpi

Hello!

How can I set a thermal trip point for the critical temperature as
shown by acpi -V? (My laptop, Toshiba Satellite Pro l770-116, intel
HM65 chipset, shuts down frequently under high CPU load and I suspect
too low a critical temperature setting, namely 84°C, to be the
culprit, as I read that 91+°C are not uncommon for my system under
heavy load)

I asked at the lm-sensors mailing list and I was advised to ask here.
I was told that I might have to edit the DSDT tables to accomplish
this. Is there possibly some simpler way or can someone give me a hint
on how to do this?
What I want to accomplish is: I want to set (increase) the temperature
temp_crit1 shown in the output of sensors -u for the virtual device
acpitz-virtual-0.

Thank you for your help,

Thomas


For reference, I attached the output of acpi -V and sensors -u commands.

# acpi -V
[…]
Thermal 0: ok, 57.0 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 84.0
degrees C
Thermal 0: trip point 1 switches to mode passive at temperature 105.0
degrees CThermal 0: ok, 57.0 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 84.0
degrees C
Thermal 0: trip point 1 switches to mode passive at temperature 105.0
degrees C:
[…]

# sensors -u

acpitz-virtual-0
Adapter: Virtual device
temp1:
  temp1_input: 73.000
  temp1_crit: 84.000

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:
  temp1_input: 71.000
  temp1_max: 86.000
  temp1_crit: 100.000
  temp1_crit_alarm: 0.000
Core 0:
  temp2_input: 71.000
  temp2_max: 86.000
  temp2_crit: 100.000
  temp2_crit_alarm: 0.000
Core 1:
  temp3_input: 71.000
  temp3_max: 86.000
  temp3_crit: 100.000
  temp3_crit_alarm: 0.000

pkg-temp-0-virtual-0
Adapter: Virtual device
temp1:
  temp1_input: 71.000
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How can a critical temperature be set?
  2013-11-29  9:06 How can a critical temperature be set? Thomas Mitterfellner
@ 2013-11-29 12:25 ` Rafael J. Wysocki
  2013-12-02  1:52   ` Zhang, Rui
  2013-11-30 10:54 ` Lan Tianyu
  1 sibling, 1 reply; 7+ messages in thread
From: Rafael J. Wysocki @ 2013-11-29 12:25 UTC (permalink / raw)
  To: Thomas Mitterfellner; +Cc: linux-acpi, Zhang Rui

Cc: Rui

On Friday, November 29, 2013 10:06:12 AM Thomas Mitterfellner wrote:
> Hello!
> 
> How can I set a thermal trip point for the critical temperature as
> shown by acpi -V? (My laptop, Toshiba Satellite Pro l770-116, intel
> HM65 chipset, shuts down frequently under high CPU load and I suspect
> too low a critical temperature setting, namely 84°C, to be the
> culprit, as I read that 91+°C are not uncommon for my system under
> heavy load)
> 
> I asked at the lm-sensors mailing list and I was advised to ask here.
> I was told that I might have to edit the DSDT tables to accomplish
> this. Is there possibly some simpler way or can someone give me a hint
> on how to do this?
> What I want to accomplish is: I want to set (increase) the temperature
> temp_crit1 shown in the output of sensors -u for the virtual device
> acpitz-virtual-0.
> 
> Thank you for your help,
> 
> Thomas
> 
> 
> For reference, I attached the output of acpi -V and sensors -u commands.
> 
> # acpi -V
> […]
> Thermal 0: ok, 57.0 degrees C
> Thermal 0: trip point 0 switches to mode critical at temperature 84.0
> degrees C
> Thermal 0: trip point 1 switches to mode passive at temperature 105.0
> degrees CThermal 0: ok, 57.0 degrees C
> Thermal 0: trip point 0 switches to mode critical at temperature 84.0
> degrees C
> Thermal 0: trip point 1 switches to mode passive at temperature 105.0
> degrees C:
> […]
> 
> # sensors -u
> 
> acpitz-virtual-0
> Adapter: Virtual device
> temp1:
>   temp1_input: 73.000
>   temp1_crit: 84.000
> 
> coretemp-isa-0000
> Adapter: ISA adapter
> Physical id 0:
>   temp1_input: 71.000
>   temp1_max: 86.000
>   temp1_crit: 100.000
>   temp1_crit_alarm: 0.000
> Core 0:
>   temp2_input: 71.000
>   temp2_max: 86.000
>   temp2_crit: 100.000
>   temp2_crit_alarm: 0.000
> Core 1:
>   temp3_input: 71.000
>   temp3_max: 86.000
>   temp3_crit: 100.000
>   temp3_crit_alarm: 0.000
> 
> pkg-temp-0-virtual-0
> Adapter: Virtual device
> temp1:
>   temp1_input: 71.000
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How can a critical temperature be set?
  2013-11-29  9:06 How can a critical temperature be set? Thomas Mitterfellner
  2013-11-29 12:25 ` Rafael J. Wysocki
@ 2013-11-30 10:54 ` Lan Tianyu
  2013-11-30 11:31   ` Thomas Mitterfellner
  1 sibling, 1 reply; 7+ messages in thread
From: Lan Tianyu @ 2013-11-30 10:54 UTC (permalink / raw)
  To: Thomas Mitterfellner; +Cc: linux-acpi@vger.kernel.org

2013/11/29 Thomas Mitterfellner <thomas.mitterfellner@gmail.com>:
> Hello!
>
> How can I set a thermal trip point for the critical temperature as
> shown by acpi -V? (My laptop, Toshiba Satellite Pro l770-116, intel
> HM65 chipset, shuts down frequently under high CPU load and I suspect
> too low a critical temperature setting, namely 84°C, to be the
> culprit, as I read that 91+°C are not uncommon for my system under
> heavy load)
>
> I asked at the lm-sensors mailing list and I was advised to ask here.
> I was told that I might have to edit the DSDT tables to accomplish
> this. Is there possibly some simpler way or can someone give me a hint
> on how to do this?

Please try adding kernel param "thermal.crt=91".

> What I want to accomplish is: I want to set (increase) the temperature
> temp_crit1 shown in the output of sensors -u for the virtual device
> acpitz-virtual-0.
>
> Thank you for your help,
>
> Thomas
>
>
> For reference, I attached the output of acpi -V and sensors -u commands.
>
> # acpi -V
> […]
> Thermal 0: ok, 57.0 degrees C
> Thermal 0: trip point 0 switches to mode critical at temperature 84.0
> degrees C
> Thermal 0: trip point 1 switches to mode passive at temperature 105.0
> degrees CThermal 0: ok, 57.0 degrees C
> Thermal 0: trip point 0 switches to mode critical at temperature 84.0
> degrees C
> Thermal 0: trip point 1 switches to mode passive at temperature 105.0
> degrees C:
> […]
>
> # sensors -u
>
> acpitz-virtual-0
> Adapter: Virtual device
> temp1:
>   temp1_input: 73.000
>   temp1_crit: 84.000
>
> coretemp-isa-0000
> Adapter: ISA adapter
> Physical id 0:
>   temp1_input: 71.000
>   temp1_max: 86.000
>   temp1_crit: 100.000
>   temp1_crit_alarm: 0.000
> Core 0:
>   temp2_input: 71.000
>   temp2_max: 86.000
>   temp2_crit: 100.000
>   temp2_crit_alarm: 0.000
> Core 1:
>   temp3_input: 71.000
>   temp3_max: 86.000
>   temp3_crit: 100.000
>   temp3_crit_alarm: 0.000
>
> pkg-temp-0-virtual-0
> Adapter: Virtual device
> temp1:
>   temp1_input: 71.000
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Best regards
Tianyu Lan
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How can a critical temperature be set?
  2013-11-30 10:54 ` Lan Tianyu
@ 2013-11-30 11:31   ` Thomas Mitterfellner
  2013-11-30 12:01     ` Lan Tianyu
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Mitterfellner @ 2013-11-30 11:31 UTC (permalink / raw)
  To: Lan Tianyu; +Cc: linux-acpi@vger.kernel.org


>> How can I set a thermal trip point for the critical temperature as
>> shown by acpi -V?
> 
> Please try adding kernel param "thermal.crt=91".

Yes! That works! Is there a special reason why you suggested the value
91? Because I added thermal.crt=99 as I saw it on some occasion on my
system.

Now I get:

# acpi -V
Thermal 0: ok, 64.0 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 99.0
degrees C
Thermal 0: trip point 1 switches to mode passive at temperature 105.0
degrees C

and

acpitz-virtual-0
Adapter: Virtual device
temp1:
  temp1_input: 66.000
  temp1_crit: 99.000

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:
  temp1_input: 66.000
  temp1_max: 86.000
  temp1_crit: 100.000
  temp1_crit_alarm: 0.000
Core 0:
  temp2_input: 63.000
  temp2_max: 86.000
  temp2_crit: 100.000
  temp2_crit_alarm: 0.000
Core 1:
  temp3_input: 66.000
  temp3_max: 86.000
  temp3_crit: 100.000
  temp3_crit_alarm: 0.000

pkg-temp-0-virtual-0
Adapter: Virtual device
temp1:
  temp1_input: 67.000



Thank you for your kind help,

Thomas

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How can a critical temperature be set?
  2013-11-30 11:31   ` Thomas Mitterfellner
@ 2013-11-30 12:01     ` Lan Tianyu
  0 siblings, 0 replies; 7+ messages in thread
From: Lan Tianyu @ 2013-11-30 12:01 UTC (permalink / raw)
  To: Thomas Mitterfellner; +Cc: linux-acpi@vger.kernel.org

2013/11/30 Thomas Mitterfellner <thomas.mitterfellner@gmail.com>:
>
>>> How can I set a thermal trip point for the critical temperature as
>>> shown by acpi -V?
>>
>> Please try adding kernel param "thermal.crt=91".
>
> Yes! That works! Is there a special reason why you suggested the value
> 91? Because I added thermal.crt=99 as I saw it on some occasion on my
> system.

No, just give an example.

>
> Now I get:
>
> # acpi -V
> Thermal 0: ok, 64.0 degrees C
> Thermal 0: trip point 0 switches to mode critical at temperature 99.0
> degrees C
> Thermal 0: trip point 1 switches to mode passive at temperature 105.0
> degrees C
>
> and
>
> acpitz-virtual-0
> Adapter: Virtual device
> temp1:
>   temp1_input: 66.000
>   temp1_crit: 99.000
>
> coretemp-isa-0000
> Adapter: ISA adapter
> Physical id 0:
>   temp1_input: 66.000
>   temp1_max: 86.000
>   temp1_crit: 100.000
>   temp1_crit_alarm: 0.000
> Core 0:
>   temp2_input: 63.000
>   temp2_max: 86.000
>   temp2_crit: 100.000
>   temp2_crit_alarm: 0.000
> Core 1:
>   temp3_input: 66.000
>   temp3_max: 86.000
>   temp3_crit: 100.000
>   temp3_crit_alarm: 0.000
>
> pkg-temp-0-virtual-0
> Adapter: Virtual device
> temp1:
>   temp1_input: 67.000
>
>
>
> Thank you for your kind help,
>
> Thomas

You are welcome.

-- 
Best regards
Tianyu Lan

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: How can a critical temperature be set?
  2013-11-29 12:25 ` Rafael J. Wysocki
@ 2013-12-02  1:52   ` Zhang, Rui
  2013-12-02  8:18     ` Thomas Mitterfellner
  0 siblings, 1 reply; 7+ messages in thread
From: Zhang, Rui @ 2013-12-02  1:52 UTC (permalink / raw)
  To: Rafael J. Wysocki, Thomas Mitterfellner; +Cc: linux-acpi@vger.kernel.org



> -----Original Message-----
> From: Rafael J. Wysocki [mailto:rjw@rjwysocki.net]
> Sent: Friday, November 29, 2013 8:26 PM
> To: Thomas Mitterfellner
> Cc: linux-acpi@vger.kernel.org; Zhang, Rui
> Subject: Re: How can a critical temperature be set?
> Importance: High
> 
> Cc: Rui
> 
> On Friday, November 29, 2013 10:06:12 AM Thomas Mitterfellner wrote:
> > Hello!
> >
> > How can I set a thermal trip point for the critical temperature as
> > shown by acpi -V? (My laptop, Toshiba Satellite Pro l770-116, intel
> > HM65 chipset, shuts down frequently under high CPU load and I suspect
> > too low a critical temperature setting, namely 84°C, to be the
> > culprit, as I read that 91+°C are not uncommon for my system under
> > heavy load)
> >
> > I asked at the lm-sensors mailing list and I was advised to ask here.
> > I was told that I might have to edit the DSDT tables to accomplish
> > this. Is there possibly some simpler way or can someone give me a
> hint
> > on how to do this?
> > What I want to accomplish is: I want to set (increase) the
> temperature
> > temp_crit1 shown in the output of sensors -u for the virtual device
> > acpitz-virtual-0.
> >

Yes, there is a module parameter "thermal.crt=" for this.
Say, you can reset the critical temperature to 110C via thermal.crt=110.

Thanks,
Rui

> > Thank you for your help,
> >
> > Thomas
> >
> >
> > For reference, I attached the output of acpi -V and sensors -u
> commands.
> >
> > # acpi -V
> > […]
> > Thermal 0: ok, 57.0 degrees C
> > Thermal 0: trip point 0 switches to mode critical at temperature 84.0
> > degrees C Thermal 0: trip point 1 switches to mode passive at
> > temperature 105.0 degrees CThermal 0: ok, 57.0 degrees C Thermal 0:
> > trip point 0 switches to mode critical at temperature 84.0 degrees C
> > Thermal 0: trip point 1 switches to mode passive at temperature 105.0
> > degrees C:
> > […]
> >
> > # sensors -u
> >
> > acpitz-virtual-0
> > Adapter: Virtual device
> > temp1:
> >   temp1_input: 73.000
> >   temp1_crit: 84.000
> >
> > coretemp-isa-0000
> > Adapter: ISA adapter
> > Physical id 0:
> >   temp1_input: 71.000
> >   temp1_max: 86.000
> >   temp1_crit: 100.000
> >   temp1_crit_alarm: 0.000
> > Core 0:
> >   temp2_input: 71.000
> >   temp2_max: 86.000
> >   temp2_crit: 100.000
> >   temp2_crit_alarm: 0.000
> > Core 1:
> >   temp3_input: 71.000
> >   temp3_max: 86.000
> >   temp3_crit: 100.000
> >   temp3_crit_alarm: 0.000
> >
> > pkg-temp-0-virtual-0
> > Adapter: Virtual device
> > temp1:
> >   temp1_input: 71.000
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-acpi"
> > in the body of a message to majordomo@vger.kernel.org More majordomo
> > info at  http://vger.kernel.org/majordomo-info.html
> --
> I speak only for myself.
> Rafael J. Wysocki, Intel Open Source Technology Center.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How can a critical temperature be set?
  2013-12-02  1:52   ` Zhang, Rui
@ 2013-12-02  8:18     ` Thomas Mitterfellner
  0 siblings, 0 replies; 7+ messages in thread
From: Thomas Mitterfellner @ 2013-12-02  8:18 UTC (permalink / raw)
  To: Zhang, Rui; +Cc: Rafael J. Wysocki, linux-acpi@vger.kernel.org

> Yes, there is a module parameter "thermal.crt=" for this.
> Say, you can reset the critical temperature to 110C via thermal.crt=110.

I was able to alleviate the problem with premature shutdown using this
parameter, but now I encounter the behavior that I saw described in
some documentation:

When a certain temperature is hit (I think it is ~84°C), the fan
switches to its maximum state, consequently, the temperature drops
rapidly (~5-7°C) and the fan's speed decreases immediately, causing
the temperature to rise again above that threshold etc. This cycle
repeats again and again in ~2-5 s intervals.

I also read in some documentation (of the thermal module IIRC) that
there is some mechanism to avoid just that unwanted behavior by some
hysteresis parameter which should provide that the fan does not switch
off until the processor is cooled down more thoroughly.
However, I could not find any way how to do that on my system (intel
HM65 chipset), as the virtual device does not seem to offer setting
such a parameter. I could also not find a cooling device of type 'fan'
in my /sys directory, only four virtual cooling devices of type
'processor' and one of type 'LCD' (so I do not quite understand how
the system even controls the different fan levels).

Can someone give me a hint (or reference to some documentation/how-to)
on how to achieve a sane cooling strategy for my laptop? Is it
possible anyway?

Thank you very much,

Thomas
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-12-02  8:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-29  9:06 How can a critical temperature be set? Thomas Mitterfellner
2013-11-29 12:25 ` Rafael J. Wysocki
2013-12-02  1:52   ` Zhang, Rui
2013-12-02  8:18     ` Thomas Mitterfellner
2013-11-30 10:54 ` Lan Tianyu
2013-11-30 11:31   ` Thomas Mitterfellner
2013-11-30 12:01     ` Lan Tianyu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.