Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A zero-configuration fan daemon for ThinkPads.

License

NotificationsYou must be signed in to change notification settings

cdown/zcfan

Repository files navigation

Zero-configuration fan control daemon for ThinkPads.

Features

  • Extremely small (~250 lines), simple, and easy to understand code
  • Sensible out of the box, configuration is optional (see "usage" below)
  • Strong focus on stopping the fan as soon as safe to do so, without inducingthrottling
  • Automatic temperature- and time-based hysteresis: no bouncing between fanlevels
  • Watchdog support
  • Minimal resource usage
  • No dependencies

Usage

zcfan has the following default fan states:

Config namethinkpad_acpi fan levelDefault trip temperature (C)
max_tempfull-speed (or 7 if unsupported)90
med_temp480
low_temp170

If no trip temperature is reached, the fan will be turned off.

The fan will also only be reduced once the temperature is now at least 10Cbelow the trip temperature for the current fan state. This can be tuned withthe config parametertemp_hysteresis.

To override these defaults, you can place a file at/etc/zcfan.conf withupdated trip temperatures in degrees celsius and/or fan levels. As an example:

max_temp 85med_temp 70low_temp 55temp_hysteresis 20max_level full-speedmed_level 4low_level 1

Hysteresis

We will only reduce the fan level again once:

  1. The temperature is now at leasttemp_hysteresis Celsius (default 10C)below the trip point, and
  2. At least 3 seconds have elapsed since the initial trip.

This avoids unnecessary fluctuations in fan speed.

Comparison with thinkfan

I wrote zcfan because I found thinkfan's configuration and code complexity toomuch for my tastes. Use whichever suits your needs.

Compilation

Runmake.

Installation

  1. Compile zcfan or install from theAURpackage
  2. Load your thinkpad_acpi module withfan_control=1
    • At runtime:rmmod thinkpad_acpi && modprobe thinkpad_acpi fan_control=1
    • By default:echo options thinkpad_acpi fan_control=1 > /etc/modprobe.d/99-fancontrol.conf
  3. Runzcfan as root (or use thezcfan systemd service provided)

Disclaimer

While the author uses this on their own machine, obviously there is no warrantywhatsoever.


[8]ページ先頭

©2009-2025 Movatter.jp