Skip to content

rahmedi/thinkfan-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

thinkfan-cli

A minimalist, fast, and terminal-native fan control tool for ThinkPads. Directly interacts with /proc/acpi/ibm/fan for setting fan levels, no dependency on thinkfan.


✨ Features

  • Set manual fan levels instantly
  • Reads and writes directly to IBM ACPI fan interface
  • No daemons or background services required
  • Reading fan status instantly

πŸ“¦ Installation

IMPORTANT!!!

Please enable thinkpad acpi module or thinkfan-cli will not work

sudo modprobe thinkpad_acpi fan_control=1

πŸ“¦ Arch Linux (via AUR)

yay -S thinkfan-cli

πŸ”§ Manual (from source)

git clone https://github.com/rahmedi/thinkfan-cli.git
cd thinkfan-cli
cargo build --release
sudo cp target/release/thinkfan-cli /usr/bin/

πŸš€ Usage

thinkfan-cli -s auto       # Switch to Auto controlled fan mode
thinkfan-cli -s 3   # Set fan to level 3 manually (0–7)

Note: Requires root privileges to write to /proc/acpi/ibm/fan.


πŸ’¬ Feedback & Contributions

Open an issue, suggest a feature, or submit a PR! Tested on T480 | X220 | R61i - reports for other models welcome.


πŸ’™ Author

Maintained by rahmed Licensed under the GPL v3 License.

About

Controlling your thinkpads fan using command line

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages