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.
views:
135answers:
3If 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.
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.
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.