[REQUEST] Temp support for older machines
See original GitHub issueI have a laptop that is so old it isn’t properly supported by psutil or apps like Psensor for CPU temperature.
The CPU temperature is accessible via /sys/devices/virtual/thermal/thermal_zone0/temp
.
cat /sys/devices/virtual/thermal/thermal_zone0/hwmon1/name
Result: acpitz
This seems to be short for “ACPI Thermal Zone”.
cat /sys/devices/virtual/thermal/thermal_zone0/type
Result: acpitz
cat /sys/devices/virtual/thermal/thermal_zone0/temp
Result: 48800
(or similar)
Divide by 1000 and if the result is between 20C and 120C or so, and type
or hwmon1/name
is acpitz
it should be a valid CPU temp. Theoretically.
If you can try accessing /sys/devices/virtual/thermal/thermal_zone0/temp
if there is no response from psutil on core temps, I think a lot of these older machines could be supported for at least the main CPU temp.
This machine is a single-core Pentium 4, as many machines prior to Core Duo will be, so there would normally be only one main CPU temp. There were a few late-generation Pentiums with hyper-threading which would probably be reported as dual-core CPUs, but they are a couple of years newer and may be better supported by apps like psutil already.
Issue Analytics
- State:
- Created 3 years ago
- Comments:31 (31 by maintainers)
Top GitHub Comments
@RedBearAK Ok, should be fixed in 1.0.44…
Will give you the title of almighty downbringer of systems if you manage to crash it now, at least with the same error!
Fixed in v1.0.39