how to read CPU temperature and fan speed using c++
I want to read the temperature of my cpu and fan speed using a c++ program and then plot it..
How can i do it? thanks |
For the reading part, it might be worth looking at lmsensors source code http://dl.lm-sensors.org/lm-sensors/snapshots/
Unless you particularly want to write it yourself lmsensors and something like GKrellM will do it. |
or
Code:
man proc |
the directories /proc/acpi/fan/ and /proc/acpi/thermalzone/ are empty they do not have fan0 and zone1/foo in it...
|
All times are GMT -5. The time now is 05:02 AM. |