* [lm-sensors] How can temp_crit for virtual device be set?
@ 2013-11-28 21:40 Thomas Mitterfellner
2013-11-28 22:05 ` Jean Delvare
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Thomas Mitterfellner @ 2013-11-28 21:40 UTC (permalink / raw)
To: lm-sensors
SGVsbG8hCgpNeSBsYXB0b3AgKHRvc2hpYmEgc2F0ZWxsaXRlIGw3NzAtMTE2LCBJbnRlbCBITTY1
IG1haW5ib2FyZCkgc2h1dHMgZG93bgpmcmVxdWVudGx5IHdoZW4gSSBydW4gQ1BVIGludGVuc2l2
ZSB0YXNrcy4gSSBndWVzcyAoYnV0IEkgY291bGQgbm90IGZpbmQKb3V0IGZvciBzdXJlKSB0aGF0
IHRoZSB0ZW1wMV9jcml0IHNldHRpbmcgb2YgZm9yIHRoZSBhY3BpdHotdmlydHVhbC0wCmRldmlj
ZSBtYXkgYmUgdGhlIGN1bHByaXQuIEl0IHNlZW1zIHRvIG1lIHRoYXQgYQpwcmV0dHkgbG93IHZh
bHVlIG9mIDg0wrBDIGlzIHNldCBoZXJlLiBUaGlzIGlzIHRoZSBzYW1lIHZhbHVlIEkgc2VlIHdo
ZW4KSSBkbyBhY3BpIC1WIChjZi4gb3V0cHV0IGJlbG93KS4gSSBub3RpY2VkIHRoYXQgc29tZXRp
bWVzIChJIGhhdmVuJ3QKZm91bmQgb3V0IHVuZGVyIHdoaWNoIGNpcmN1bXN0YW5jZXMpIHRoaXMg
dmFsdWUgaXMgc2V0IGF0IDk5wrBDLCB3aGljaApzZWVtcyBtb3JlIHJlYXNvbmFibGUgdG8gbWUg
YXMgaXQgY29ycmVuc3BvbmRzIG1vcmUgY2xvc2VseSB0byB0aGUgdmFsdWUKc2hvd24gZm9yIHRo
ZSBwaHlzaWNhbCBkZXZpY2VzICgxMDDCsEMpLCBhbmQgYWxsb3dzIGZvciByZWFzb25hYmxlIHVz
YWdlCm9mIHRoZSBsYXB0b3AuCgoKSSB0cmllZCBhZGRpbmcgdGhlc2Ug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J0dWFsLTAKQWRhcHRlcjogVmlydHVhbCBkZXZpY2UKdGVtcDE6
CiAgdGVtcDFfaW5wdXQ6IDczLjAwMAogIHRlbXAxX2NyaXQ6IDg0LjAwMAoKY29yZXRlbXAtaXNh
LTAwMDAKQWRhcHRlcjogSVNBIGFkYXB0ZXIKUGh5c2ljYWwgaWQgMDoKICB0ZW1wMV9pbnB1dDog
NzEuMDAwCiAgdGVtcDFfbWF4OiA4Ni4wMDAKICB0ZW1wMV9jcml0OiAxMDAuMDAwCiAgdGVtcDFf
Y3JpdF9hbGFybTogMC4wMDAKQ29yZSAwOgogIHRlbXAyX2lucHV0OiA3MS4wMDAKICB0ZW1wMl9t
YXg6IDg2LjAwMAogIHRlbXAyX2NyaXQ6IDEwMC4wMDAKICB0ZW1wMl9jcml0X2FsYXJtOiAwLjAw
MApDb3JlIDE6CiAgdGVtcDNfaW5wdXQ6IDcxLjAwMAogIHRlbXAzX21heDogODYuMDAwCiAgdGVt
cDNfY3JpdDogMTAwLjAwMAogIHRlbXAzX2NyaXRfYWxhcm06IDAuMDAwCgpwa2ctdGVtcC0wLXZp
cnR1YWwtMApBZGFwdGVyOiBWaXJ0dWFsIGRldmljZQp0ZW1wMToKICB0ZW1wMV9pbnB1dDogNzEu
MDAwCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpsbS1z
ZW5zb3JzIG1haWxpbmcgbGlzdApsbS1zZW5zb3JzQGxtLXNlbnNvcnMub3JnCmh0dHA6Ly9saXN0
cy5sbS1zZW5zb3JzLm9yZy9tYWlsbWFuL2xpc3RpbmZvL2xtLXNlbnNvcnM
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [lm-sensors] How can temp_crit for virtual device be set?
2013-11-28 21:40 [lm-sensors] How can temp_crit for virtual device be set? Thomas Mitterfellner
@ 2013-11-28 22:05 ` Jean Delvare
2013-11-29 8:00 ` Thomas Mitterfellner
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Jean Delvare @ 2013-11-28 22:05 UTC (permalink / raw)
To: lm-sensors
On Thu, 28 Nov 2013 22:40:24 +0100, Thomas Mitterfellner wrote:
> Hello!
>
> My laptop (toshiba satellite l770-116, Intel HM65 mainboard) shuts down
> frequently when I run CPU intensive tasks. I guess (but I could not find
> out for sure) that the temp1_crit setting of for the acpitz-virtual-0
> device may be the culprit. It seems to me that a
> pretty low value of 84°C is set here. This is the same value I see when
> I do acpi -V (cf. output below). I noticed that sometimes (I haven't
> found out under which circumstances) this value is set at 99°C, which
> seems more reasonable to me as it corrensponds more closely to the value
> shown for the physical devices (100°C), and allows for reasonable usage
> of the laptop.
>
>
> I tried adding these values:
>
> chip "acpitz-virtual-0"
> set temp1_crit 99.0
>
> To /etc/sensors.d/coretemp, but when doing sensor -s, I get:
>
> Error: File /etc/sensors.d/coretemp, line 3: Failed to set value
> acpitz-virtual-0: At least one "set" statement failed
>
> So, how can I adjust the temp_crit1 value of the acpitz-virtual-0 device?
You can't, thermal zones are read-only at least through the hwmon
interface. If anything can be done, this is through ACPI.
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [lm-sensors] How can temp_crit for virtual device be set?
2013-11-28 21:40 [lm-sensors] How can temp_crit for virtual device be set? Thomas Mitterfellner
2013-11-28 22:05 ` Jean Delvare
@ 2013-11-29 8:00 ` Thomas Mitterfellner
2013-11-29 8:12 ` Jean Delvare
2013-11-30 11:37 ` Thomas Mitterfellner
3 siblings, 0 replies; 5+ messages in thread
From: Thomas Mitterfellner @ 2013-11-29 8:00 UTC (permalink / raw)
To: lm-sensors
OK, thanks for that clarification. Do you have a tip on how I could go
about to set it through ACPI?
Who (which program/demon/whatever) is responsible for creating this virtual
device and its settings?
On Thu, Nov 28, 2013 at 11:05 PM, Jean Delvare <khali@linux-fr.org> wrote:
> On Thu, 28 Nov 2013 22:40:24 +0100, Thomas Mitterfellner wrote:
> > Hello!
> >
> > My laptop (toshiba satellite l770-116, Intel HM65 mainboard) shuts down
> > frequently when I run CPU intensive tasks. I guess (but I could not find
> > out for sure) that the temp1_crit setting of for the acpitz-virtual-0
> > device may be the culprit. It seems to me that a
> > pretty low value of 84°C is set here. This is the same value I see when
> > I do acpi -V (cf. output below). I noticed that sometimes (I haven't
> > found out under which circumstances) this value is set at 99°C, which
> > seems more reasonable to me as it corrensponds more closely to the value
> > shown for the physical devices (100°C), and allows for reasonable usage
> > of the laptop.
> >
> >
> > I tried adding these values:
> >
> > chip "acpitz-virtual-0"
> > set temp1_crit 99.0
> >
> > To /etc/sensors.d/coretemp, but when doing sensor -s, I get:
> >
> > Error: File /etc/sensors.d/coretemp, line 3: Failed to set value
> > acpitz-virtual-0: At least one "set" statement failed
> >
> > So, how can I adjust the temp_crit1 value of the acpitz-virtual-0 device?
>
> You can't, thermal zones are read-only at least through the hwmon
> interface. If anything can be done, this is through ACPI.
>
> --
> Jean Delvare
>
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [lm-sensors] How can temp_crit for virtual device be set?
2013-11-28 21:40 [lm-sensors] How can temp_crit for virtual device be set? Thomas Mitterfellner
2013-11-28 22:05 ` Jean Delvare
2013-11-29 8:00 ` Thomas Mitterfellner
@ 2013-11-29 8:12 ` Jean Delvare
2013-11-30 11:37 ` Thomas Mitterfellner
3 siblings, 0 replies; 5+ messages in thread
From: Jean Delvare @ 2013-11-29 8:12 UTC (permalink / raw)
To: lm-sensors
Hi Thomas,
Please don't top-post.
On Fri, 29 Nov 2013 09:00:04 +0100, Thomas Mitterfellner wrote:
> OK, thanks for that clarification. Do you have a tip on how I could go
> about to set it through ACPI?
I think it used to be overridable with boot parameters and/or procfs
attributes but I seem to recall this feature was removed from the
kernel some times ago. You'll have to ask the ACPI people for the
current status.
I'm afraid the only possibility left is to customize your DSDT and
override the DSDT with your modified copy at boot time.
> Who (which program/demon/whatever) is responsible for creating this virtual
> device and its settings?
The kernel itself is doing it, based on ACPI tables / BIOS information.
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [lm-sensors] How can temp_crit for virtual device be set?
2013-11-28 21:40 [lm-sensors] How can temp_crit for virtual device be set? Thomas Mitterfellner
` (2 preceding siblings ...)
2013-11-29 8:12 ` Jean Delvare
@ 2013-11-30 11:37 ` Thomas Mitterfellner
3 siblings, 0 replies; 5+ messages in thread
From: Thomas Mitterfellner @ 2013-11-30 11:37 UTC (permalink / raw)
To: lm-sensors
>> So, how can I adjust the temp_crit1 value of the acpitz-virtual-0 device?
>
> You can't, thermal zones are read-only at least through the hwmon
> interface. If anything can be done, this is through ACPI.
Just for reference: I asked at the linux-acpi list and they advised me
to add termal.crt=<value> to the kernel boot paramters, which I did
(<value>™) and it actually sets the temperature of the virtual device.
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
Thanks for your hints,
Thomas
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-11-30 11:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-28 21:40 [lm-sensors] How can temp_crit for virtual device be set? Thomas Mitterfellner
2013-11-28 22:05 ` Jean Delvare
2013-11-29 8:00 ` Thomas Mitterfellner
2013-11-29 8:12 ` Jean Delvare
2013-11-30 11:37 ` Thomas Mitterfellner
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.