Im build simple CPU/GPU Monitor on QT. The question arose before me: how to get CPU/GPU tempreature from different OS?
Asked
Active
Viewed 41 times
0
-
2Reading the CPU temperature is highly platform specific. I suggest you first figure out which platforms (OSes if you will) you want to support, then check for which of those SO already provides an answer, if any. Ask separate questions for the rest. – Christian.K Jun 17 '20 at 14:27
-
That depends on the OS and even on the type of CPU / GPU. You are going to have to write some platform specific code for each OS/CPU/GPU combination you want to support. – Jesper Juhl Jun 17 '20 at 14:29
-
i dont think Qt has a class for this... – ΦXocę 웃 Пepeúpa ツ Jun 17 '20 at 14:30
-
OK, for example platform is Linux. How I can get tempreature in Linux. – AlexeyBobrovich Jun 17 '20 at 14:32
-
The book "Mastering Qt 5 - Lazar, Guillaume" is covering it with a task manger for all platforms, there is a free source code on www.packtpub.com even if you don't bought the book. – Ingo Mi Jun 17 '20 at 15:18