The MASM Forum

General => The Workshop => Topic started by: Farabi on June 17, 2012, 01:29:37 AM

Title: CPUID
Post by: Farabi on June 17, 2012, 01:29:37 AM

Function 0x00000006:
Function 0x6 provides us with some information on Power Management and Temperature Control. Again, these are perating System features, and we won't bother with them much here.


Can I also control the Fan too? Or I just check the bit, see the temperature, and then wait for a big process to prevent shutdown because of overheat?
Title: Re: CPUID
Post by: hutch-- on June 17, 2012, 01:33:47 AM
Onan,

usually items like fan control and temperature checking are motherboard specific and not particularly related to operating system code.
Title: Re: CPUID
Post by: Farabi on June 17, 2012, 01:37:20 AM
Thanks. At least I know what I should do.
Title: Re: CPUID
Post by: dedndave on June 17, 2012, 03:22:54 AM
you might be able to read the temperature
but even that requires access to the MSR's, which usually means a KMD
Title: Re: CPUID
Post by: Zen on June 20, 2012, 06:54:30 AM
ONAN-FARABI,
If you need information about Power Management and Temperature Control,...you can often find this type of data through WMI (http://msdn.microsoft.com/en-us/library/windows/desktop/aa394582(v=vs.85).aspx).
For example,...CIM_CoolingDevice Class (http://msdn.microsoft.com/en-us/library/windows/desktop/aa387232(v=vs.85).aspx)
Here is a complete list of WMI classes available: Common Information Model (CIM) Classes (http://msdn.microsoft.com/en-us/library/windows/desktop/aa386179(v=vs.85).aspx)
EDGAR posted a WMI example on the old MASM Forum (http://www.masmforum.com/board/index.php?topic=4171.0).