Author Topic: CPUID  (Read 2553 times)

Farabi

  • Member
  • ****
  • Posts: 970
  • Neuroscience Fans
CPUID
« on: June 17, 2012, 01:29:37 AM »
Code: [Select]
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?
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 4813
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: CPUID
« Reply #1 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.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin:

Farabi

  • Member
  • ****
  • Posts: 970
  • Neuroscience Fans
Re: CPUID
« Reply #2 on: June 17, 2012, 01:37:20 AM »
Thanks. At least I know what I should do.
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

dedndave

  • Member
  • *****
  • Posts: 8734
  • Still using Abacus 2.0
    • DednDave
Re: CPUID
« Reply #3 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

Zen

  • Member
  • ****
  • Posts: 962
  • slightly red-shifted
Re: CPUID
« Reply #4 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.
For example,...CIM_CoolingDevice Class
Here is a complete list of WMI classes available: Common Information Model (CIM) Classes
EDGAR posted a WMI example on the old MASM Forum.
Zen