Y
Y
yahabrovec2018-12-02 20:06:45
linux
yahabrovec, 2018-12-02 20:06:45

How to manually control fan speed in Linux?

Hello.
There was a task to manually control the speed of the cooler. I found articles about fancontrol, but somehow it did not work out. Pokapalsya and found out that he just changes the value in the folder
/sys/class/thermal/cooling_device/
There are 4 such devices on my PC. Three of them are responsible for the processor and one for the backlight. That is, in the cooling_device folder there is a file type. In three it is written Processor and in one LCD. By changing the value in the file, cur_stateI can adjust the backlight level. That is, everything works.
But I do not have a single folder that is responsible for the cooler. Googling found out that almost everyone has it. And I'm kind of special. Well, I decided to create it myself, but there are no rights to create such a folder, and there is no way to get them.
Who did not understand what I mean here is an article on Habré
Tell me what to do?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
TyzhSysAdmin, 2018-12-02
@POS_troi

All your questions are answered in this document
https://www.kernel.org/doc/Documentation/thermal/s...
And it won't, sysfs is not about that :)

A
Alexander, 2018-12-03
@NeiroNx

everything in the sys folder is virtual files for changing parameters of drivers and kernel modules.
You probably need another driver that has cooler control, maybe on the motherboard website.
In any case, if it does not work right away, you will have to figure out at a lower level how to control the cooler, read the technical documentation (SDK) for the motherboard.

R
Radjah, 2018-12-03
@Radjah

fancontrolconfigured with the command pwmconfig. The exhaust will be all your coolers, which theoretically can steer. If the program can not change the speed, then manually steer will not work.
Man on junipers
If there are no necessary coolers in the exhaust, then dig towards the nuclear module for the multicontroller. It is usually responsible for the sensors on the motherboard.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question