我想用PHP读取我的CPU温度,但是我找不到相关的信息。/proc/acpi/thermal_zone下的所有路径都为空。我试过:
/proc/acpi/热区/THM0 0/温度
/proc/acpi/热区/THRM/温度
/proc/acpi/热区/THR1 1/温度
这些(似乎)都不存在。CPU温度监视器的正确路径是什么?
phpinfo()说:
PHP Version 5.4.12
Linux infong 2.4 #1 SMP Thu Feb 14 13:02:49 CET 2013 i686 GNU/Linux
Safe mode is off
Apache
所以在Linux中有一个命令叫做 nvidia-settings -q=[gpu:0]/GPUCoreTemp 这给了我这个输出,可以看到我的GPU温度是41°C。 Attribute 'GPUCoreTemp' (devnux:0[gpu:0]): 41.
'GPUCoreTemp' is an integer attribute.
'GPUCoreTemp' is a read-only attribute.
'GPUCoreTemp' can use the following target types: X Screen