21

My BIOS controls my fan speeds, and I want to keep it that way. I have a machine in my basement where it's normally pretty cool, and as long as the machine isn't under high load the fans don't need to run at all. The BIOS already handles this just fine.

But if my fans aren't running, I have no way to test them to make sure they aren't broken. So I'd like to make a script which will turn on the fans full blast for a few seconds, then use lm-sensors to monitor fan speed, and then I will know that the fans aren't broken.

How can I manually turn on the fans to full speed? I don't want to use fancontrol, because I'm not looking for something that keeps running and keeps controlling fan speed. I just want something "low tech" that will turn them on regardless of temperature.

Another thread said:

If you really want to do it yourself, you can probably find special device files named pwm1, pwm2, etc. in /sys/class/hwmon/*/device/. You can cat them to get the current value or write a number between 0 and 255 to change the fan speed.

That would be perfect, but it doesn't seem to work. Fancontrol says that my CPU fan is /sys/devices/platform/it87.656/pwm3, but when I set that to 255, it doesn't affect fan speed at all.

Does anyone know how I can manually turn on the fan from a script, regardless of temperature?

1
  • 1
    There's usually something like pwm3_enable also. It's a bit specific to your it87.656 control chip though, so it's hard for others to be able to say. Can you experiment? Jan 29, 2013 at 22:04

1 Answer 1

13

You can do this with the tool

pwmconfig

This tool is normally used to save a configuration file for fancontrol. But you don't have to do so. You can just start the tool, than it will put all fans on full speed, sowing there current speed like this:

Giving the fans some time to reach full speed...
Found the following fan sensors:
  hwmon0/device/fan1_input     current speed: 2129 RPM
  hwmon0/device/fan2_input     current speed: 1679 RPM
  hwmon0/device/fan3_input     current speed: 0 ... skipping!
  hwmon0/device/fan4_input     current speed: 0 ... skipping!

After that you just skip (Ctr+C) the tool without saving anything.

To install the tool, you can use the following command:

sudo apt-get install fancontrol
4
  • 8
    Does not work on an Asus EeePC Seashell Series netbook - says no compatible sensors found.
    – Ivan
    Aug 28, 2015 at 20:08
  • this is not working... it say it's giving the fans some time to reach full speed, but they are only topping out at around 1700RPM, and I know i have seen them reported over twice that speed when my computer is running hot!
    – Michael
    Jun 6, 2020 at 21:53
  • works great on my 24 core Dell Precision t5610, which it good, cuz im building code on 22 cores, and it was getting toasty.
    – j0h
    Mar 1, 2022 at 21:35
  • Please do not use the above given way. The system asks you to reboot after installation of "fancontrol" and then my pc crashed Oct 29, 2022 at 7:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .