tags:

views:

135

answers:

3

Can we turn-off the computer fan by programming in C?If there is a way please guide me to it.Or atleast any hint would be great.

+2  A: 

If you do so, you will likely trigger thermal alarms in a short time and the pc will shut down in a few instants. Still, there is the danger of irreversibly damaging the hardware.

fdierre
danger to hardware is interesting,this is what I am thinking that is there any way that software can cause danger to hardware.
fahad
@fahad: IIRC, there was a computer virus in the early 90s that tried to kill your hard drive by repeatedly spinning it up and down. Although these are normal activities, it did manage to break drives when executed for a prolonged period.
Piskvor
@Piskvor:thanks for the information.
fahad
+2  A: 

The processor fan is usually controlled by hardware and cannot be controlled from software.

Some specialized fans may provide an API to do this, but it would be specific to that hardware only.

Alan Geleynse
+4  A: 

First of all, the fans spin for a reason: complex electronics overheat rather quickly. It would be easier to look into a specialized tool that does this, such as SpeedFan for Windows.

On the other hand, if you really want to do it, there are ways - however, they are mostly vendor- and product-specific. For Acer laptops on Linux, see e.g. this - note that it's very low-level (involves BIOS calls) and if it breaks, you get to keep both parts.

Piskvor