Author Topic: CPU over heat protection  (Read 6201 times)

helix

  • Regular Member
  • *
  • Posts: 6
CPU over heat protection
« on: April 16, 2016, 01:46:50 AM »
How to write a program to shut down the motherboard for CPU overheating protection?

jj2007

  • Member
  • *****
  • Posts: 13302
  • Assembly is fun ;-)
    • MasmBasic

helix

  • Regular Member
  • *
  • Posts: 6
Re: CPU over heat protection
« Reply #2 on: April 16, 2016, 10:58:01 AM »
Thank you for jj2007!I don't need shut down the system.I need to shut down CPU overheating protection!Otherwise CPU overheating system will automatically shut down, so very upset!Who can write such a  program.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10005
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: CPU over heat protection
« Reply #3 on: April 16, 2016, 02:51:30 PM »
You need to understand that this forum is not a free code writing facility and if such a program needs to be written, either you write it or it does not get written. Alternately you could try rent a coder. Now the things you can do yourself are things like ensuring the heat sink on your processor is not clogged up, if that does not work you may need a bigger heat sink and if you are overclocking the processor, you may need to drop the overclocking rate.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

sinsi

  • Guest
Re: CPU over heat protection
« Reply #4 on: April 16, 2016, 04:19:14 PM »
>I need to shut down CPU overheating protection
Each motherboard/chipset does this differently, you should be able to change it in the BIOS.
Your motherboard disc should have a Windows utility to adjust those type of settings.

>Otherwise CPU overheating system will automatically shut down
As designed, else your CPU goes *sizzle*pop*

helix

  • Regular Member
  • *
  • Posts: 6
Re: CPU over heat protection
« Reply #5 on: April 16, 2016, 04:46:37 PM »
Thank you hutch for reminding!I think this forum is a service to the public, and can provide us as a place for academic discussion!As for the program and the source code is just a way to solve the problem!jj2007 to provide C++ solution to the problem, but only the shut down system!Sinsi is correct,but my computer BIOS there is no CPU overheating protection this setting.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10005
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: CPU over heat protection
« Reply #6 on: April 16, 2016, 05:27:30 PM »
You are missing a few things here, this forum is NOT a service to the public, its a forum of assembler language programmers, not a code ordering service.

Now the other is your assumption that temperature control is done in software which is nonsense. It is the processor that shuts down if it exceeds a temperature that will damage it and if you keep overheating the processor, you WILL damage it. What you are asking for does not make sense, your choices are EITHER reduce the load OR increase the cooling OR both.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

helix

  • Regular Member
  • *
  • Posts: 6
Re: CPU over heat protection
« Reply #7 on: April 16, 2016, 06:14:54 PM »
Using assembly to make changes is the purpose of my coming to this forum. Usually in the computer BIOS there is a temperature over heat protection control settings. BIOS have no overheating protection is still in the case of overheating protection, which caused the automatic shutdown. What is to be done is to use the program to screen overheating protection.

jj2007

  • Member
  • *****
  • Posts: 13302
  • Assembly is fun ;-)
    • MasmBasic
Re: CPU over heat protection
« Reply #8 on: April 16, 2016, 06:21:11 PM »
It is the processor that shuts down if it exceeds a temperature that will damage it

But it would be interesting to find a workaround: We provide the code, Helix does the test, and then we discuss the results here :icon14:

@Helix: Make sure you have a spare machine with access to the Internet, ok?

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10005
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: CPU over heat protection
« Reply #9 on: April 16, 2016, 06:30:53 PM »
 :biggrin:

Best of luck trying to write BIOS code but don't expect anyone here to write it for you.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

helix

  • Regular Member
  • *
  • Posts: 6
Re: CPU over heat protection
« Reply #10 on: April 16, 2016, 07:13:35 PM »
Welcome everyone to participate in the discussion.I'll be responsible for code testing.Special note, the motherboard and CPU are no problem, do not have to entangled in the cooling and fan.The key point of the problem is how to shutdown overheating protection.

sinsi

  • Guest
Re: CPU over heat protection
« Reply #11 on: April 16, 2016, 07:57:49 PM »
Here's a starting point, look at the Intel documents for
14.7.4  Detection of Thermal Monitor and Software Controlled Clock Modulation Facilities

Quote
Critical Temperature Interrupt Enable (bit 4, R/W) — Enables the generation of an interrupt when the
Critical Temperature Detector has detected a critical thermal condition. The recommended response to this
condition is a system shutdown
. Bit 4 = 0 disables the interrupt; bit 4 = 1 enables the interrupt.

The OS controls access to that, you would need to write a driver.

helix

  • Regular Member
  • *
  • Posts: 6
Re: CPU over heat protection
« Reply #12 on: April 16, 2016, 09:08:04 PM »
Not in the system to write drivers.Use only assembler to change Bios.

Adamanteus

  • Member
  • **
  • Posts: 249
    • LLC "AMS"
Re: CPU over heat protection
« Reply #13 on: April 16, 2016, 09:10:21 PM »
This problem have solution : "cooler" - the name of mutex, after creating thread with "too heating" processor code.
As OS designed such, that program itself must know that about 1 MFLOP could overheat system, so temperature checking before run thread, and thread are quanta on allowed piece of code !

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10005
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: CPU over heat protection
« Reply #14 on: April 16, 2016, 09:25:33 PM »
This nonsense has gone on too long, a number of people who do know what they are talking about have told you its NOT a user level code task, it requires a driver that is tuned to both your motherboard and processor and drivers of this type are usually supplied by the motherboard vendor, not the OS.

This thread is closed.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy: