How refresh the ACPI thermal zone temperature?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hello,

I want to write a utility which allow me to read the CPU temperature. My
notebook is an old ThinkPad 600X (PIII 650 MHz) and is ACPI compliant.

I use WMI and the class MSAcpi_ThermalZoneTemperature . Please see my VBS:

strComputer = "."
wmiNS = "\root\wmi"
wmiQuery = "Select * from MSAcpi_ThermalZoneTemperature"

Set objLocator = CreateObject("WbemScripting.SWbemLocator")
Set objWMIService = objLocator.ConnectServer(strComputer, wmiNS)
Set colItems = objWMIService.ExecQuery(wmiQuery)
For Each objItem in colItems
With objItem
wscript.echo "CurrentTemperature: " & .CurrentTemperature
wscript.echo "InstanceName: " & .InstanceName
wscript.echo " "
End With
Next

It works but it does not refresh the temperature. I get always the same
temperature. Only after Reboot I get other values.

Is there a way to force WMI to refresh the ACPI data?

Thanks for your help!

Harald
.



Relevant Pages

  • how do I read CPU temperature in ACPI? (w/ P5WD2 motherboard)
    ... but I need to be able to read the temperature ... to do anything worth while), but no matter what ACPI modules I load, I ... asus_acpi module also, since I have an ASUS motherboard (a P5WD2 ...
    (Linux-Kernel)
  • How refresh ACPI temperature?
    ... I want to write a program which allow me to read the CPU temperature. ... For Each objItem in colItems ... Is there a way to force WMI to refresh the ACPI data? ...
    (microsoft.public.win32.programmer.wmi)
  • how to check temperature on my desktop
    ... Just wondering how to check temperature on my desktop. ... "acpi -V" to see the temperaute. ... motherboard's specs and notice it could be supporting temperature ...
    (Debian-User)
  • overheating Thinkpad X60s with 7.0-RC1
    ... Under heavy load, e.g., make builworld or ... Booting without acpi does not solve the problem since it just does not boot. ... ECDT> port 0x62,0x66 on acpi0 ... put the temperature up a little bit, ...
    (freebsd-stable)
  • Re: how do I read CPU temperature in ACPI? (w/ P5WD2 motherboard)
    ... but I need to be able to read the temperature ... >to do anything worth while), but no matter what ACPI modules I load, I ... But on the Gigabyte they use a IT8212F Super IO so you can use lm_sensors2. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)