How can I control my PC's fan speed using C++ in Vista?
Asked Answered
P

1

9

How can I use C++ to control CPU fan speed in Windows Vista Ultimate? I would like to use ACPI.

Paquin answered 24/4, 2009 at 18:10 Comment(3)
I'd be surprised to learn that this is possible to do without using ACPI. AFAIK, ACPI is the BIOS-level protocol for interfacing with these components...Springy
What fan? CPU? GPU? Case? Ceiling?Treva
Similar to this question. If you are interested, I wrote an answer there with links to some sites that I found helpful in developing my own fan control driver.Buber
C
7

ACPI:

You need to learn about and use the WMI - Windows system management interface. Here are a few resources that will give you clues on where to start:

Note that some motherboards don't support fan speed changes, and even those that do may not expose this to the WMI. In the best case you may still have to detect the motherboard type and talk to the fan management controllers directly.

No ACPI:

If you don't want to use ACPI then you're going to have to write your own code to access the SMBUS on the motherboard, and then control the fan controller chips.

Check out the program motherboard monitor for clues on how to get started. It's nontrivial, since every motherboard and bios is different.

Capercaillie answered 24/4, 2009 at 18:14 Comment(5)
Exactly. The API for controlling fans is ACPI. If he doesn't want to use the API that's designed to provide fan control, he's got a lot of work ahead of him.Capercaillie
"I want using ACPI" sounds to me like he wants to use it... possibly anyway... ^^Ixtle
Also note that support for this will vary by mother board and BIOS implementation. Not all systems will support this; some not at all; some will have bugs.Faro
This answer isn't really helpful, especially as all three links you provided point to the same thing.Carpentaria
@cybermonkey sorry it's not as helpful as you'd like. The methods and classes remain available for further research though.Capercaillie

© 2022 - 2024 — McMap. All rights reserved.