S
S
Senya42021-10-26 17:54:19
C++ / C#
Senya4, 2021-10-26 17:54:19

How to disable cooler in C#?

Good day, I need to programmatically disable the cooler installed on the processor using C#.
Please advise how to do this.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-10-26
@senya4

First, let's find out what, in principle, can be used to programmatically control fans:
https://stackoverflow.com/questions/485448/program...
We learn that fans are controlled via SuperIO, and SuperIO can be accessed via MMIO/PMIO.
MMIO / PMIO can only be accessed at the kernel level, which means you need your own driver, or some existing software that has an API that we can access.
For our drivers we go here: https://docs.microsoft.com/en-us/windows-hardware/...
For existing ones: https://github.com/starofrainnight/winio
Then you call it via P/Invoke
It seems not so long ago there was an article about this on Habré, but I can’t find it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question