Recent

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

helix

  • Newbie
  • Posts: 2
CPU over heat protection
« on: April 17, 2016, 05:22:10 am »
Who would write a program to change the BIOS to CPU's overheating protection?

jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • formatio reticularis
Re: CPU over heat protection
« Reply #1 on: April 19, 2016, 12:23:57 pm »
With Free Pascal?
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

Leledumbo

  • Hero Member
  • *****
  • Posts: 8747
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: CPU over heat protection
« Reply #2 on: April 19, 2016, 02:51:03 pm »

Thaddy

  • Hero Member
  • *****
  • Posts: 14209
  • Probably until I exterminate Putin.
Re: CPU over heat protection
« Reply #3 on: April 19, 2016, 03:23:12 pm »
Who would write a program to change the BIOS to CPU's overheating protection?
Modern day bios's are not really happy with tampering.
That said, it is possible to read out the CPU temperature if it is supported by the CPU using FPC.
But you would only be able to react on it before it overheats, not after....
Since indeed the overheating mechanism relies on hardware, not on the BIOS.
It *may* recover after over heating if you leave it alone long enough (usually at leat a couple of hours) to let the polymer switch repair  itself.
Specialize a type, not a var.

SymbolicFrank

  • Hero Member
  • *****
  • Posts: 1313
Re: CPU over heat protection
« Reply #4 on: April 19, 2016, 03:30:21 pm »
This often happens with older computers where the thermal paste between the CPU and cooler becomes brittle. Wobbling the cooler for a bit tends to make it work again for a while.

The only good way to fix it is to remove the cooler and paste, and apply a new layer.

In this case, the rebooting takes long enough to cool it back down.

But it will destroy the CPU / Motherboard over time if it happens regularly.

Thaddy

  • Hero Member
  • *****
  • Posts: 14209
  • Probably until I exterminate Putin.
Re: CPU over heat protection
« Reply #5 on: April 19, 2016, 03:33:03 pm »
I was referring to a polymer switch near or on the die itself. This has nothing to do with the cooler.
You have a point in that polymer switches are a last resort and will fail after three or four times forever.
It has nothing to do with any coolant glue/paste.
« Last Edit: April 19, 2016, 03:35:34 pm by Thaddy »
Specialize a type, not a var.

SymbolicFrank

  • Hero Member
  • *****
  • Posts: 1313
Re: CPU over heat protection
« Reply #6 on: April 19, 2016, 03:34:55 pm »
The bad contact between the CPU and cooler is what makes it overheat.

Thaddy

  • Hero Member
  • *****
  • Posts: 14209
  • Probably until I exterminate Putin.
Re: CPU over heat protection
« Reply #7 on: April 19, 2016, 03:36:44 pm »
Nope: overclocking does... That's why he wants to control the BIOS.... ;) I have kids in that age range...  (And they know how to apply the glue correctly)
Specialize a type, not a var.

Eugene Loza

  • Hero Member
  • *****
  • Posts: 663
    • My games in Pascal
Re: CPU over heat protection
« Reply #8 on: April 19, 2016, 04:05:39 pm »
Once I was doing extreme amount of calculations that caused my AMD CPU significantly overheat during hot days. And as those required several hours to complete I wasn't able to monitor the CPU tmperature manually and had thought of making some in-program monitor to stop calculations in case CPU temp >70 deg. However, I've failed and gave up after a few tries. However, the question is:
Quote
Who would write a program to change the BIOS to CPU's overheating protection?
I think it's SpeedFan-like program topic starter is after. And as far as I understand it's written in Pascal/Delphi. In some cases you can adjust fan speed based on current CPU temp (however, BIOS does the same but more efficiently).
My FOSS games in FreePascal&CastleGameEngine: https://decoherence.itch.io/ (Sources: https://gitlab.com/EugeneLoza)

Thaddy

  • Hero Member
  • *****
  • Posts: 14209
  • Probably until I exterminate Putin.
Re: CPU over heat protection
« Reply #9 on: April 19, 2016, 04:24:50 pm »
I think it's SpeedFan-like program topic starter is after. And as far as I understand it's written in Pascal/Delphi. In some cases you can adjust fan speed based on current CPU temp (however, BIOS does the same but more efficiently).
That's not correct. It is a simple instruction to read the temp and that is just as efficient from inline assembler in FPC as it is from the BIOS. It is just that you should not tamper with a modern BIOS..... Never... Ever...
Specialize a type, not a var.

SymbolicFrank

  • Hero Member
  • *****
  • Posts: 1313
Re: CPU over heat protection
« Reply #10 on: April 19, 2016, 04:42:14 pm »
There are hardware registers and PCI addresses that you can read and / or write that show various temperatures and which you can use to control the fans.

Code: [Select]
asm
    IN Sensor, AL
end;

You can see these values and addresses in a Linux syslog if lm-sensors is installed.

Warning: there is no standard for these. Each brand and make has their own.

helix

  • Newbie
  • Posts: 2
Re: CPU over heat protection
« Reply #11 on: April 22, 2016, 12:39:01 pm »
Thank you for participating in this discussion. After the replacement of CPU, the problem has been solved. Special thanks to Leledumbo! He gives the Intel technical post to clarify the CPU overheating protection is not under the control of BIOS and not dependent on other sensor outside the processor. The mechanism is builtin to the processor.My initial idea is to change the BIOS to the CPU through the assembly process of overheating protection, technical feasibility, but difficult. Especially in the reverse assembly of the motherboard vendor provided Bios file. There are 2 million 300 thousand lines of assembly code.In theory, even if the temperature control set to find the code module to modify the same can not solve the substantive issues.

 

TinyPortal © 2005-2018