The MASM Forum

Miscellaneous => The Orphanage => Topic started by: helix on April 16, 2016, 01:46:50 AM

Title: CPU over heat protection
Post by: helix on April 16, 2016, 01:46:50 AM
How to write a program to shut down the motherboard for CPU overheating protection?
Title: Re: CPU over heat protection
Post by: jj2007 on April 16, 2016, 02:17:39 AM
https://msdn.microsoft.com/en-us/library/aa376871%28VS.85%29.aspx
Title: Re: CPU over heat protection
Post by: helix 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.
Title: Re: CPU over heat protection
Post by: hutch-- 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.
Title: Re: CPU over heat protection
Post by: sinsi 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*
Title: Re: CPU over heat protection
Post by: helix 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.
Title: Re: CPU over heat protection
Post by: hutch-- 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.
Title: Re: CPU over heat protection
Post by: helix 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.
Title: Re: CPU over heat protection
Post by: jj2007 on April 16, 2016, 06:21:11 PM
Quote from: hutch-- on April 16, 2016, 05:27:30 PMIt 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?
Title: Re: CPU over heat protection
Post by: hutch-- 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.
Title: Re: CPU over heat protection
Post by: helix 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.
Title: Re: CPU over heat protection
Post by: sinsi 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

QuoteCritical 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.
Title: Re: CPU over heat protection
Post by: helix on April 16, 2016, 09:08:04 PM
Not in the system to write drivers.Use only assembler to change Bios.
Title: Re: CPU over heat protection
Post by: Adamanteus 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 !
Title: Re: CPU over heat protection
Post by: hutch-- 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.