6/4/2023 0 Comments Linux cpu temperaturecat /sys/class/thermal/thermal_zone*/temp: Not all hardware uses this path to set temperature, for example AMD Ryzen 7 does not use these paths, also Radeon RX 6800 XT uses this path, so most software that get temperature from this path will be showing the temperature of the GPU and not the CPU, like as Conky and CPU-X.As a user you have to guess using common sense, but my software can't guess. How can I tell if k10temp-pci-00c3 belongs to a CPU and not something else from programming code?. lm_sensors: It does not provide temperature indicators for a CPU, it only reads ids with values but it is not able to indicate which of all the ids corresponds to a CPU, for example, in AMD Ryzen 7 it is k10temp-pci-00c3.I've searched a lot on the internet, even some stackoverflow posts with the same questions, but none of them refer to general getting the temperature of any cpu, they all offer custom solutions for obsolete systems or some specific cpu models, but I don't find any software that can correctly deliver the CPU temperature. ![]() ![]() I am creating a software and I need to obtain the temperature of any CPU (x86_64), either through reading files, executing some api written in C or executing some command with or without privileges in GNU/Linux systems.
0 Comments
Leave a Reply. |