Command-line tool for controlling ThinkPad fan speed through /proc/acpi/ibm/fan.
- ThinkPad with
thinkpad_acpikernel module loaded
yay -S fangit clone https://github.com/NotiLo-A/fan.git
cd fan
cargo build --release
sudo install -Dm755 target/release/fan /usr/local/bin/fanfan <value>
| Value | Effect |
|---|---|
stat, info |
show current status |
w |
watch status, updates every 1s |
on |
enable fan |
off |
disable fan |
auto |
hand control back to firmware |
max |
full speed |
min |
level 1 |
1–7 |
set specific level |
Commands that write to /proc/acpi/ibm/fan require root. If not run as root, the tool re-executes itself with sudo automatically.