Announcement

Collapse
No announcement yet.

Temperature CPU

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Temperature CPU

    Is there a way to display the CPU temperature through WMI or so?
    I can use windows commandline utility, but that's a bit of a kludge...

    Code:
    wmic /namespace:\\root\wmi PATH MSAcpi_ThermalZoneTemperature get CurrentTemperature
    (it returns current temp in degrees K * 10. So you need to divide by 10 and subtract 273.15)
    Regards,
    Peter

  • #2
    And that command line would work only with some computers,

    However it looks like this would be a new feature in Windows 10 version 2004
    Patrice Terrier
    www.zapsolution.com
    www.objreader.com
    Addons: GDImage.DLL 32/64-bit (Graphic library), WinLIFT.DLL 32/64-bit (Skin Engine).

    Comment


    • #3
      Download "Core Temp". You will find its a lot more complicated than calling an API or two.
      hutch at movsd dot com
      The MASM Forum

      www.masm32.com

      Comment


      • #4
        Core Temp maybe quite handy, I would prefer it to be a portable application rather than we need to install it on our laptop.

        Comment


        • #5
          Maybe this thread will help:
          https://forum.powerbasic.com/forum/j...nstrumentation

          Comment


          • #6
            I tried WMI with ROOT\WMI -> MSAcpi_ThermalZoneTemperature -> CurrentTemperature, but that doesn't work.
            It always returns 28 degrees Celsius; that cannot be correct...
            Regards,
            Peter

            Comment


            • #7
              Peter,

              One of the problems of directly reading processor hardware is that different processors and different BIOS coding make having a single simple technique of reading individual core temperatures very difficult to do. Even CoreTemp can only go back to the Core2 series of Intel processors as the earlier hardware did not support the methods of getting the data. Most modern (last 10 years) BIOS's have a page that shows the processor "health" so there may be some technique that is supported by the OS to read that data but you would have to search through the MSDN hardware reference to see if its available.
              hutch at movsd dot com
              The MASM Forum

              www.masm32.com

              Comment

              Working...
              X