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ZXIKUGh5c2ljYWwgaWQgMDoKICB0ZW1wMV9pbnB1dDog NzEuMDAwCiAgdGVtcDFfbWF4OiA4Ni4wMDAKICB0ZW1wMV9jcml0OiAxMDAuMDAwCiAgdGVtcDFf Y3JpdF9hbGFybTogMC4wMDAKQ29yZSAwOgogIHRlbXAyX2lucHV0OiA3MS4wMDAKICB0ZW1wMl9t YXg6IDg2LjAwMAogIHRlbXAyX2NyaXQ6IDEwMC4wMDAKICB0ZW1wMl9jcml0X2FsYXJtOiAwLjAw MApDb3JlIDE6CiAgdGVtcDNfaW5wdXQ6IDcxLjAwMAogIHRlbXAzX21heDogODYuMDAwCiAgdGVt cDNfY3JpdDogMTAwLjAwMAogIHRlbXAzX2NyaXRfYWxhcm06IDAuMDAwCgpwa2ctdGVtcC0wLXZp cnR1YWwtMApBZGFwdGVyOiBWaXJ0dWFsIGRldmljZQp0ZW1wMToKICB0ZW1wMV9pbnB1dDogNzEu MDAwCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpsbS1z ZW5zb3JzIG1haWxpbmcgbGlzdApsbS1zZW5zb3JzQGxtLXNlbnNvcnMub3JnCmh0dHA6Ly9saXN0 cy5sbS1zZW5zb3JzLm9yZy9tYWlsbWFuL2xpc3RpbmZvL2xtLXNlbnNvcnM
Quoted 19 lines · Thomas Mitterfellner
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_critsetting 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"
settemp1_crit99.0
Quoted 6 lines
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 failedSo, how can I adjust the
temp_crit1value 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.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/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?
Quoted 25 lines · Jean Delvare
Quoted 24 lines · Thomas Mitterfellner
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_critsetting 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"
settemp1_crit99.0To
/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
Quoted 8 lines
Quoted 1 line
So, how can I adjust the
temp_crit1value 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
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Thomas,
Please don't top-post.
Quoted 2 lines · Thomas Mitterfellner
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.
Quoted 2 lines
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.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 4 lines
Quoted 1 line
So, how can I adjust the
temp_crit1value 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
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors